antdv-next 1.0.0-alpha.3 → 1.0.0-alpha.5
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/ActionButton.js +22 -10
- package/dist/_util/ContextIsolator.js +4 -2
- package/dist/_util/tools.js +2 -1
- package/dist/_util/wave/WaveEffect.js +6 -1
- package/dist/_util/wave/index.js +6 -3
- package/dist/_util/wave/style.js +4 -3
- package/dist/affix/index.d.ts +3 -3
- package/dist/affix/index.js +14 -6
- package/dist/alert/Alert.d.ts +4 -3
- package/dist/alert/Alert.js +52 -26
- package/dist/anchor/Anchor.d.ts +5 -5
- package/dist/anchor/Anchor.js +28 -14
- package/dist/anchor/AnchorLink.js +14 -8
- package/dist/anchor/index.d.ts +1 -1
- package/dist/antd.js +86 -86
- package/dist/app/App.d.ts +2 -2
- package/dist/app/App.js +12 -5
- package/dist/auto-complete/index.d.ts +77 -0
- package/dist/auto-complete/index.js +627 -0
- package/dist/avatar/Avatar.d.ts +3 -3
- package/dist/avatar/Avatar.js +24 -12
- package/dist/avatar/AvatarGroup.d.ts +2 -2
- package/dist/avatar/AvatarGroup.js +10 -5
- package/dist/badge/Ribbon.d.ts +3 -3
- package/dist/badge/Ribbon.js +14 -6
- package/dist/badge/ScrollNumber.js +10 -5
- package/dist/badge/SingleNumber.js +6 -3
- package/dist/badge/index.d.ts +3 -3
- package/dist/badge/index.js +32 -15
- package/dist/breadcrumb/Breadcrumb.d.ts +5 -5
- package/dist/breadcrumb/Breadcrumb.js +24 -19
- package/dist/breadcrumb/BreadcrumbItem.d.ts +1 -1
- package/dist/breadcrumb/BreadcrumbItem.js +33 -33
- package/dist/breadcrumb/index.d.ts +1 -1
- package/dist/button/Button.d.ts +3 -3
- package/dist/button/Button.js +46 -22
- package/dist/button/DefaultLoadingIcon.js +12 -6
- package/dist/button/IconWrapper.js +2 -1
- package/dist/button/style/variant.js +116 -104
- package/dist/calendar/Header.js +81 -37
- package/dist/calendar/generateCalendar.js +44 -19
- package/dist/calendar/index.d.ts +3 -3
- package/dist/card/Card.d.ts +3 -3
- package/dist/card/Card.js +50 -25
- package/dist/card/CardGrid.d.ts +2 -2
- package/dist/card/CardGrid.js +4 -2
- package/dist/card/CardMeta.d.ts +3 -3
- package/dist/card/CardMeta.js +12 -6
- package/dist/carousel/index.d.ts +3 -3
- package/dist/carousel/index.js +112 -56
- package/dist/cascader/Panel.d.ts +3 -3
- package/dist/cascader/Panel.js +44 -17
- package/dist/cascader/index.d.ts +3 -3
- package/dist/cascader/index.js +175 -82
- package/dist/checkbox/Checkbox.d.ts +3 -3
- package/dist/checkbox/Checkbox.js +36 -17
- package/dist/checkbox/Group.d.ts +3 -3
- package/dist/checkbox/Group.js +16 -8
- package/dist/collapse/Collapse.d.ts +3 -3
- package/dist/collapse/Collapse.js +34 -17
- package/dist/color-picker/ColorPicker.d.ts +4 -4
- package/dist/color-picker/ColorPicker.js +58 -28
- package/dist/color-picker/ColorPickerPanel.js +74 -35
- package/dist/color-picker/components/ColorAlphaInput.js +6 -3
- package/dist/color-picker/components/ColorClear.js +8 -4
- package/dist/color-picker/components/ColorHexInput.js +6 -3
- package/dist/color-picker/components/ColorHsbInput.js +6 -3
- package/dist/color-picker/components/ColorInput.js +16 -7
- package/dist/color-picker/components/ColorPresets.js +8 -4
- package/dist/color-picker/components/ColorRgbInput.js +6 -3
- package/dist/color-picker/components/ColorSlider.js +58 -27
- package/dist/color-picker/components/ColorSteppers.js +14 -7
- package/dist/color-picker/components/ColorTrigger.js +20 -9
- package/dist/color-picker/components/PanelPicker/GradientColorBar.js +40 -19
- package/dist/components.d.ts +3 -2
- package/dist/components.js +7 -4
- package/dist/config-provider/SizeContext.js +2 -1
- package/dist/config-provider/context.js +2 -2
- package/dist/config-provider/defaultRenderEmpty.js +2 -1
- package/dist/config-provider/index.d.ts +3 -3
- package/dist/config-provider/index.js +304 -152
- package/dist/date-picker/PickerButton.js +46 -22
- package/dist/date-picker/generatePicker/SuffixIcon.js +8 -4
- package/dist/date-picker/generatePicker/generateRangePicker.js +555 -257
- package/dist/date-picker/generatePicker/generateSinglePicker.js +559 -257
- package/dist/date-picker/generatePicker/index.d.ts +15 -15
- package/dist/date-picker/index.d.ts +25 -25
- package/dist/descriptions/Cell.js +20 -10
- package/dist/descriptions/Row.js +16 -8
- package/dist/descriptions/index.d.ts +3 -3
- package/dist/descriptions/index.js +30 -15
- package/dist/divider/index.d.ts +2 -2
- package/dist/divider/index.js +26 -13
- package/dist/drawer/DrawerPanel.js +38 -18
- package/dist/drawer/index.d.ts +3 -3
- package/dist/drawer/index.js +130 -62
- package/dist/dropdown/dropdown.d.ts +4 -4
- package/dist/dropdown/dropdown.js +47 -24
- package/dist/empty/index.d.ts +3 -3
- package/dist/empty/index.js +12 -6
- package/dist/flex/index.d.ts +3 -3
- package/dist/flex/index.js +28 -9
- package/dist/float-button/BackTop.d.ts +3 -3
- package/dist/float-button/BackTop.js +36 -18
- package/dist/float-button/FloatButton.d.ts +3 -3
- package/dist/float-button/FloatButton.js +32 -16
- package/dist/float-button/FloatButtonGroup.d.ts +3 -3
- package/dist/float-button/FloatButtonGroup.js +42 -21
- package/dist/float-button/PurePanel.js +78 -39
- package/dist/float-button/style/button.js +4 -4
- package/dist/float-button/style/group.js +12 -12
- package/dist/form/ErrorList.js +12 -6
- package/dist/form/Form.d.ts +3 -3
- package/dist/form/Form.js +48 -24
- package/dist/form/FormItem/ItemHolder.js +66 -33
- package/dist/form/FormItem/StatusProvider.js +18 -8
- package/dist/form/FormItem/index.d.ts +3 -3
- package/dist/form/FormItem/index.js +56 -28
- package/dist/form/FormItemInput.js +24 -12
- package/dist/form/FormItemLabel.js +20 -10
- package/dist/form/context.js +10 -5
- package/dist/form/style/index.js +3 -2
- package/dist/grid/col.js +26 -13
- package/dist/grid/row.js +10 -5
- package/dist/grid/style/index.js +5 -4
- package/dist/image/PreviewGroup.d.ts +2 -2
- package/dist/image/PreviewGroup.js +20 -9
- package/dist/image/index.d.ts +4 -4
- package/dist/image/index.js +24 -12
- package/dist/index.d.ts +5 -4
- package/dist/index.js +5 -4
- package/dist/input/Group.js +6 -3
- package/dist/input/Input.js +71 -30
- package/dist/input/OTP/OTPInput.js +76 -33
- package/dist/input/OTP/index.js +37 -18
- package/dist/input/Password.js +76 -33
- package/dist/input/Search.js +80 -33
- package/dist/input/TextArea.d.ts +3 -3
- package/dist/input/TextArea.js +59 -26
- package/dist/input/index.d.ts +11 -11
- package/dist/input-number/index.d.ts +3 -3
- package/dist/input-number/index.js +89 -38
- package/dist/input-number/style/index.js +18 -17
- package/dist/layout/Sider.js +20 -10
- package/dist/layout/index.d.ts +6 -6
- package/dist/layout/layout.d.ts +2 -2
- package/dist/layout/layout.js +28 -14
- package/dist/locale/index.js +4 -2
- package/dist/masonry/Masonry.d.ts +3 -3
- package/dist/masonry/Masonry.js +28 -15
- package/dist/masonry/MasonryItem.js +18 -8
- package/dist/mentions/index.d.ts +3 -3
- package/dist/mentions/index.js +63 -29
- package/dist/mentions/style/index.js +18 -17
- package/dist/menu/MenuContext.js +2 -1
- package/dist/menu/MenuDivider.d.ts +2 -2
- package/dist/menu/MenuDivider.js +4 -2
- package/dist/menu/MenuItem.d.ts +3 -3
- package/dist/menu/MenuItem.js +38 -19
- package/dist/menu/OverrideContext.js +2 -1
- package/dist/menu/SubMenu.d.ts +3 -3
- package/dist/menu/SubMenu.js +40 -19
- package/dist/menu/index.d.ts +5 -5
- package/dist/menu/index.js +84 -37
- package/dist/menu/menu.js +88 -39
- package/dist/message/PurePanel.d.ts +2 -2
- package/dist/message/PurePanel.js +42 -20
- package/dist/message/index.js +6 -3
- package/dist/message/useMessage.js +26 -12
- package/dist/modal/ConfirmDialog.js +392 -184
- package/dist/modal/Modal.d.ts +3 -3
- package/dist/modal/Modal.js +102 -47
- package/dist/modal/confirm.js +116 -54
- package/dist/modal/shared.js +18 -9
- package/dist/modal/useModal/HookModal.js +8 -4
- package/dist/notification/PurePanel.d.ts +2 -2
- package/dist/notification/PurePanel.js +56 -27
- package/dist/notification/index.js +6 -3
- package/dist/notification/useNotification.js +34 -16
- package/dist/package.d.ts +109 -3
- package/dist/package.js +1 -1
- package/dist/pagination/Pagination.d.ts +3 -3
- package/dist/pagination/Pagination.js +69 -34
- package/dist/pagination/style/index.js +61 -50
- package/dist/popconfirm/PurePanel.d.ts +2 -2
- package/dist/popconfirm/PurePanel.js +68 -34
- package/dist/popconfirm/index.d.ts +3 -3
- package/dist/popconfirm/index.js +76 -35
- package/dist/popover/PurePanel.js +132 -60
- package/dist/popover/index.d.ts +3 -3
- package/dist/popover/index.js +60 -27
- package/dist/popover/style/index.js +11 -8
- package/dist/progress/Circle.js +52 -26
- package/dist/progress/Line.js +52 -26
- package/dist/progress/Steps.js +50 -25
- package/dist/progress/progress.d.ts +3 -3
- package/dist/progress/progress.js +50 -25
- package/dist/qrcode/QrcodeStatus.js +12 -5
- package/dist/qrcode/index.d.ts +3 -3
- package/dist/qrcode/index.js +48 -23
- package/dist/radio/group.js +34 -15
- package/dist/radio/index.d.ts +5 -5
- package/dist/radio/radio.d.ts +3 -3
- package/dist/radio/radio.js +36 -17
- package/dist/radio/radioButton.js +30 -14
- package/dist/rate/index.d.ts +3 -3
- package/dist/rate/index.js +34 -17
- package/dist/result/index.d.ts +3 -3
- package/dist/result/index.js +28 -12
- package/dist/result/noFound.d.ts +2 -2
- package/dist/result/serverError.d.ts +2 -2
- package/dist/result/unauthorized.d.ts +2 -2
- package/dist/segmented/index.d.ts +3 -3
- package/dist/segmented/index.js +36 -18
- package/dist/select/index.d.ts +6 -6
- package/dist/select/index.js +150 -74
- package/dist/select/style/select-input-multiple.js +31 -29
- package/dist/select/style/select-input.js +50 -44
- package/dist/skeleton/Avatar.d.ts +2 -2
- package/dist/skeleton/Avatar.js +10 -5
- package/dist/skeleton/Button.d.ts +2 -2
- package/dist/skeleton/Button.js +12 -6
- package/dist/skeleton/Element.js +10 -5
- package/dist/skeleton/Image.d.ts +2 -2
- package/dist/skeleton/Image.js +6 -3
- package/dist/skeleton/Input.d.ts +2 -2
- package/dist/skeleton/Input.js +10 -5
- package/dist/skeleton/Node.d.ts +3 -3
- package/dist/skeleton/Node.js +8 -4
- package/dist/skeleton/Paragraph.js +8 -4
- package/dist/skeleton/Skeleton.d.ts +3 -3
- package/dist/skeleton/Skeleton.js +20 -10
- package/dist/skeleton/Title.js +8 -4
- package/dist/slider/SliderTooltip.js +62 -28
- package/dist/slider/index.d.ts +3 -3
- package/dist/slider/index.js +60 -29
- package/dist/space/Addon.js +8 -4
- package/dist/space/Compact.d.ts +2 -0
- package/dist/space/Compact.js +37 -15
- package/dist/space/Item.js +8 -4
- package/dist/space/index.d.ts +5 -5
- package/dist/space/index.js +23 -12
- package/dist/space/style/addon.js +20 -19
- package/dist/space/style/compact.js +20 -0
- package/dist/spin/Indicator/Looper.js +4 -2
- package/dist/spin/Indicator/Progress.js +8 -4
- package/dist/spin/Indicator/index.js +6 -3
- package/dist/spin/index.d.ts +3 -3
- package/dist/spin/index.js +24 -12
- package/dist/splitter/Panel.js +18 -9
- package/dist/splitter/SplitBar.js +53 -24
- package/dist/splitter/Splitter.d.ts +3 -3
- package/dist/splitter/Splitter.js +22 -11
- package/dist/splitter/index.d.ts +2 -2
- package/dist/splitter/style/index.js +6 -6
- package/dist/statistic/Number.js +12 -6
- package/dist/statistic/Statistic.d.ts +3 -3
- package/dist/statistic/Statistic.js +30 -15
- package/dist/statistic/Timer.d.ts +5 -5
- package/dist/statistic/Timer.js +34 -17
- package/dist/statistic/index.d.ts +5 -5
- package/dist/steps/PanelArrow.js +2 -1
- package/dist/steps/ProgressIcon.js +13 -4
- package/dist/steps/index.d.ts +3 -3
- package/dist/steps/index.js +51 -26
- package/dist/steps/style/horizontal.js +13 -10
- package/dist/steps/style/icon.js +11 -8
- package/dist/steps/style/index.js +19 -18
- package/dist/steps/style/inline.js +19 -16
- package/dist/steps/style/label-placement.js +22 -20
- package/dist/steps/style/nav.js +7 -5
- package/dist/steps/style/panel.js +34 -32
- package/dist/steps/style/progress-dot.js +10 -8
- package/dist/steps/style/progress.js +29 -58
- package/dist/steps/style/rtl.js +6 -4
- package/dist/steps/style/small.js +10 -8
- package/dist/steps/style/status.js +124 -121
- package/dist/steps/style/util.js +7 -4
- package/dist/steps/style/vertical.js +17 -14
- package/dist/style/placementArrow.js +7 -5
- package/dist/switch/index.d.ts +3 -3
- package/dist/switch/index.js +34 -17
- package/dist/table/Column.d.ts +3 -3
- package/dist/table/Column.js +86 -41
- package/dist/table/ColumnGroup.d.ts +3 -3
- package/dist/table/ColumnGroup.js +84 -41
- package/dist/table/InternalTable.js +107 -53
- package/dist/table/Table.d.ts +3 -3
- package/dist/table/Table.js +104 -51
- package/dist/table/hooks/useFilter/FilterDropdown.js +39 -19
- package/dist/table/hooks/useFilter/FilterWrapper.js +4 -2
- package/dist/tabs/TabPane.d.ts +3 -3
- package/dist/tabs/index.d.ts +3 -3
- package/dist/tabs/index.js +62 -31
- package/dist/tag/CheckableTag.d.ts +3 -3
- package/dist/tag/CheckableTag.js +10 -5
- package/dist/tag/CheckableTagGroup.d.ts +3 -3
- package/dist/tag/CheckableTagGroup.js +28 -12
- package/dist/tag/index.d.ts +3 -3
- package/dist/tag/index.js +30 -14
- package/dist/theme/index.d.ts +4 -4
- package/dist/theme/util/genStyleUtils.js +8 -5
- package/dist/time-picker/index.d.ts +7 -7
- package/dist/time-picker/index.js +1106 -509
- package/dist/timeline/Timeline.d.ts +3 -3
- package/dist/timeline/Timeline.js +20 -10
- package/dist/timeline/TimelineItem.js +22 -10
- package/dist/timeline/TimelineItemList.js +24 -12
- package/dist/tooltip/PurePanel.d.ts +2 -2
- package/dist/tooltip/PurePanel.js +61 -29
- package/dist/tooltip/UniqueProvider/index.d.ts +2 -2
- package/dist/tooltip/index.d.ts +3 -3
- package/dist/tooltip/index.js +62 -30
- package/dist/tooltip/style/index.js +10 -8
- package/dist/tooltip/util.js +5 -3
- package/dist/tour/index.d.ts +3 -3
- package/dist/tour/index.js +52 -25
- package/dist/tour/panelRender.js +18 -9
- package/dist/tour/style/index.js +5 -4
- package/dist/transfer/Actions.d.ts +2 -2
- package/dist/transfer/Actions.js +36 -18
- package/dist/transfer/ListBody.js +76 -38
- package/dist/transfer/ListItem.js +22 -11
- package/dist/transfer/Section.d.ts +2 -2
- package/dist/transfer/Section.js +76 -38
- package/dist/transfer/Transfer.d.ts +3 -3
- package/dist/transfer/Transfer.js +53 -27
- package/dist/transfer/search.js +8 -4
- package/dist/tree/DirectoryTree.d.ts +3 -3
- package/dist/tree/DirectoryTree.js +90 -45
- package/dist/tree/Tree.d.ts +3 -3
- package/dist/tree/Tree.js +90 -45
- package/dist/tree/utils/iconUtil.js +10 -5
- package/dist/tree-select/index.d.ts +4 -4
- package/dist/tree-select/index.js +195 -95
- package/dist/typography/Base/CopyBtn.js +24 -12
- package/dist/typography/Base/Ellipsis.js +16 -8
- package/dist/typography/Base/EllipsisTooltip.js +6 -3
- package/dist/typography/Base/index.js +42 -20
- package/dist/typography/Editable.js +28 -13
- package/dist/typography/Link.d.ts +3 -3
- package/dist/typography/Link.js +48 -23
- package/dist/typography/Paragraph.d.ts +3 -3
- package/dist/typography/Paragraph.js +42 -20
- package/dist/typography/Text.js +42 -20
- package/dist/typography/Title.d.ts +3 -3
- package/dist/typography/Title.js +42 -20
- package/dist/typography/Typography.d.ts +3 -3
- package/dist/typography/Typography.js +16 -7
- package/dist/typography/index.d.ts +9 -9
- package/dist/upload/Dragger.d.ts +6 -3
- package/dist/upload/Dragger.js +76 -38
- package/dist/upload/Upload.d.ts +3 -3
- package/dist/upload/Upload.js +74 -37
- package/dist/upload/UploadList/ListItem.js +44 -22
- package/dist/upload/UploadList/index.js +50 -24
- package/dist/upload/index.d.ts +6 -3
- package/dist/watermark/index.d.ts +2 -2
- package/dist/watermark/index.js +22 -11
- package/global.d.ts +2 -0
- package/package.json +22 -4
- package/web-tags.json +4524 -0
- package/web-types.json +12779 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { resetComponent, textEllipsis } from "../../style/index.js";
|
|
2
|
-
import { genStyleHooks } from "../../theme/util/genStyleUtils.js";
|
|
2
|
+
import { genCssVar, genStyleHooks } from "../../theme/util/genStyleUtils.js";
|
|
3
3
|
import { mergeToken } from "../../theme/internal.js";
|
|
4
4
|
import horizontal_default from "./horizontal.js";
|
|
5
5
|
import icon_default from "./icon.js";
|
|
@@ -16,20 +16,21 @@ import vertical_default from "./vertical.js";
|
|
|
16
16
|
|
|
17
17
|
//#region src/steps/style/index.ts
|
|
18
18
|
const genBasicStyle = (token) => {
|
|
19
|
-
const { componentCls } = token;
|
|
19
|
+
const { componentCls, antCls } = token;
|
|
20
20
|
const itemCls = `${componentCls}-item`;
|
|
21
|
+
const [varName, varRef] = genCssVar(antCls, "cmp-steps");
|
|
21
22
|
return { [componentCls]: {
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
23
|
+
[varName("title-font-size")]: token.fontSizeLG,
|
|
24
|
+
[varName("title-line-height")]: token.lineHeightLG,
|
|
25
|
+
[varName("subtitle-font-size")]: token.fontSize,
|
|
26
|
+
[varName("subtitle-line-height")]: token.lineHeight,
|
|
27
|
+
[varName("item-wrapper-padding-top")]: "0px",
|
|
28
|
+
[varName("rail-size")]: token.lineWidth,
|
|
29
|
+
[varName("rail-line-style")]: token.lineType,
|
|
29
30
|
...resetComponent(token),
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
display: "flex",
|
|
32
|
+
flexWrap: "nowrap",
|
|
33
|
+
alignItems: "flex-start",
|
|
33
34
|
[itemCls]: {
|
|
34
35
|
flex: "none",
|
|
35
36
|
position: "relative"
|
|
@@ -37,7 +38,7 @@ const genBasicStyle = (token) => {
|
|
|
37
38
|
[`${itemCls}-wrapper`]: {
|
|
38
39
|
display: "flex",
|
|
39
40
|
flexWrap: "nowrap",
|
|
40
|
-
paddingTop:
|
|
41
|
+
paddingTop: varRef("item-wrapper-padding-top")
|
|
41
42
|
},
|
|
42
43
|
[`${itemCls}-header`]: {
|
|
43
44
|
display: "flex",
|
|
@@ -46,15 +47,15 @@ const genBasicStyle = (token) => {
|
|
|
46
47
|
},
|
|
47
48
|
[`${itemCls}-title`]: {
|
|
48
49
|
color: token.colorText,
|
|
49
|
-
fontSize:
|
|
50
|
-
lineHeight:
|
|
50
|
+
fontSize: varRef("title-font-size"),
|
|
51
|
+
lineHeight: varRef("title-line-height"),
|
|
51
52
|
wordBreak: "break-word"
|
|
52
53
|
},
|
|
53
54
|
[`${itemCls}-subtitle`]: {
|
|
54
55
|
color: token.colorTextDescription,
|
|
55
56
|
fontWeight: "normal",
|
|
56
|
-
fontSize:
|
|
57
|
-
lineHeight:
|
|
57
|
+
fontSize: varRef("subtitle-font-size"),
|
|
58
|
+
lineHeight: varRef("subtitle-line-height"),
|
|
58
59
|
marginInlineStart: token.marginXS,
|
|
59
60
|
wordBreak: "break-word"
|
|
60
61
|
},
|
|
@@ -65,7 +66,7 @@ const genBasicStyle = (token) => {
|
|
|
65
66
|
wordBreak: "break-word"
|
|
66
67
|
},
|
|
67
68
|
[`${itemCls}-rail`]: {
|
|
68
|
-
borderStyle: "
|
|
69
|
+
borderStyle: varRef("rail-line-style"),
|
|
69
70
|
borderWidth: 0
|
|
70
71
|
},
|
|
71
72
|
[`${itemCls}-title, ${itemCls}-subtitle, ${itemCls}-content, ${itemCls}-rail`]: { transition: `all ${token.motionDurationSlow}` },
|
|
@@ -1,28 +1,31 @@
|
|
|
1
|
+
import { genCssVar } from "../../theme/util/genStyleUtils.js";
|
|
2
|
+
|
|
1
3
|
//#region src/steps/style/inline.ts
|
|
2
4
|
const genInlineStyle = (token) => {
|
|
3
|
-
const { componentCls, inlineDotSize } = token;
|
|
4
|
-
const containerPaddingTop =
|
|
5
|
+
const { componentCls, inlineDotSize, paddingXS, lineWidth, antCls, calc } = token;
|
|
6
|
+
const containerPaddingTop = calc(paddingXS).add(lineWidth).equal();
|
|
5
7
|
const itemCls = `${componentCls}-item`;
|
|
8
|
+
const [varName, varRef] = genCssVar(antCls, "cmp-steps");
|
|
6
9
|
return { [`${componentCls}-inline`]: {
|
|
7
|
-
"
|
|
8
|
-
"
|
|
10
|
+
[varName("items-offset")]: "0",
|
|
11
|
+
[varName("item-wrapper-padding-top")]: containerPaddingTop,
|
|
9
12
|
"display": "inline-flex",
|
|
10
13
|
"&:before": {
|
|
11
14
|
content: "\"\"",
|
|
12
|
-
flex: "
|
|
15
|
+
flex: varRef("items-offset")
|
|
13
16
|
},
|
|
14
17
|
[itemCls]: {
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
18
|
+
[varName("title-vertical-row-gap")]: paddingXS,
|
|
19
|
+
[varName("icon-size")]: inlineDotSize,
|
|
20
|
+
[varName("icon-size-active")]: inlineDotSize,
|
|
21
|
+
[varName("title-font-size")]: token.fontSizeSM,
|
|
22
|
+
[varName("title-line-height")]: token.lineHeightSM,
|
|
23
|
+
[varName("item-title-color")]: token.colorTextSecondary,
|
|
24
|
+
[varName("subtitle-font-size")]: token.fontSizeSM,
|
|
25
|
+
[varName("subtitle-line-height")]: token.lineHeightSM,
|
|
26
|
+
[varName("item-subtitle-color")]: token.colorTextQuaternary,
|
|
27
|
+
[varName("rail-size")]: token.lineWidth,
|
|
28
|
+
[varName("title-horizontal-rail-gap")]: "0px",
|
|
26
29
|
"flex": 1,
|
|
27
30
|
"&-wrapper": {
|
|
28
31
|
"paddingInline": token.paddingXXS,
|
|
@@ -1,21 +1,23 @@
|
|
|
1
|
+
import { genCssVar } from "../../theme/util/genStyleUtils.js";
|
|
1
2
|
import { getItemWithWidthStyle } from "./util.js";
|
|
2
3
|
|
|
3
4
|
//#region src/steps/style/label-placement.ts
|
|
4
5
|
const genLabelPlacementStyle = (token) => {
|
|
5
|
-
const { componentCls, descriptionMaxWidth, marginXS, fontHeightLG, calc } = token;
|
|
6
|
+
const { componentCls, descriptionMaxWidth, marginXS, fontHeightLG, margin, paddingSM, marginXXS, antCls, calc } = token;
|
|
6
7
|
const itemCls = `${componentCls}-item`;
|
|
8
|
+
const [varName, varRef] = genCssVar(antCls, "cmp-steps");
|
|
7
9
|
return {
|
|
8
10
|
[componentCls]: {
|
|
9
|
-
"
|
|
10
|
-
[`${itemCls}-icon`]: { marginBlockStart: `calc((
|
|
11
|
+
[varName("icon-size-max")]: `max(${varRef("icon-size")}, ${varRef("icon-size-active", varRef("icon-size"))})`,
|
|
12
|
+
[`${itemCls}-icon`]: { marginBlockStart: `calc((${varRef("heading-height")} - ${varRef("icon-size")}) / 2)` }
|
|
11
13
|
},
|
|
12
14
|
[`${componentCls}-title-horizontal`]: {
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"
|
|
15
|
+
[varName("title-horizontal-item-margin")]: margin,
|
|
16
|
+
[varName("title-horizontal-rail-margin")]: margin,
|
|
17
|
+
[varName("title-horizontal-title-height")]: fontHeightLG,
|
|
18
|
+
[varName("heading-height")]: `max(${varRef("icon-size")}, ${varRef("title-horizontal-title-height")})`,
|
|
17
19
|
[`&${componentCls}-horizontal, &${componentCls}-horizontal-alternate`]: {
|
|
18
|
-
[`${itemCls}:not(:first-child)`]: { marginInlineStart:
|
|
20
|
+
[`${itemCls}:not(:first-child)`]: { marginInlineStart: varRef("title-horizontal-item-margin") },
|
|
19
21
|
[`${itemCls}:last-child`]: { flex: "0 1 auto" },
|
|
20
22
|
[`${itemCls}-wrapper`]: { columnGap: token.marginXS }
|
|
21
23
|
},
|
|
@@ -23,32 +25,32 @@ const genLabelPlacementStyle = (token) => {
|
|
|
23
25
|
[`${itemCls}-wrapper`]: { columnGap: token.margin },
|
|
24
26
|
[`${itemCls}-empty-header`]: {
|
|
25
27
|
[`${itemCls}-header`]: { minHeight: "auto" },
|
|
26
|
-
[`${itemCls}-content`]: { marginTop: calc("
|
|
28
|
+
[`${itemCls}-content`]: { marginTop: calc(varRef("heading-height")).sub(token.fontHeight).div(2).equal() }
|
|
27
29
|
}
|
|
28
30
|
},
|
|
29
31
|
[`${itemCls}-section`]: {
|
|
30
32
|
flex: 1,
|
|
31
33
|
minWidth: 0
|
|
32
34
|
},
|
|
33
|
-
[`${itemCls}-header`]: { minHeight: "
|
|
35
|
+
[`${itemCls}-header`]: { minHeight: varRef("heading-height") },
|
|
34
36
|
[`${itemCls}-title`]: { flex: "0 1 auto" },
|
|
35
37
|
[`${itemCls}-content`]: { maxWidth: descriptionMaxWidth },
|
|
36
38
|
[`${itemCls}-subtitle`]: { flex: "0 9999 auto" },
|
|
37
39
|
[`&${componentCls}-horizontal ${itemCls}-rail`]: {
|
|
38
|
-
"
|
|
39
|
-
|
|
40
|
-
|
|
40
|
+
[varName("item-wrapper-padding-top")]: "0px",
|
|
41
|
+
flex: "1 1 0%",
|
|
42
|
+
marginInlineStart: varRef("title-horizontal-rail-margin")
|
|
41
43
|
}
|
|
42
44
|
},
|
|
43
45
|
[`${componentCls}-title-vertical`]: {
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
46
|
+
[varName("title-vertical-row-gap")]: paddingSM,
|
|
47
|
+
[varName("title-horizontal-rail-gap")]: marginXXS,
|
|
48
|
+
[varName("heading-height")]: varRef("icon-size-max"),
|
|
47
49
|
[`> ${itemCls}`]: {
|
|
48
|
-
flex: 1,
|
|
50
|
+
flex: "1 1 0%",
|
|
49
51
|
[`${itemCls}-wrapper`]: {
|
|
50
52
|
flexDirection: "column",
|
|
51
|
-
rowGap:
|
|
53
|
+
rowGap: varRef("title-vertical-row-gap"),
|
|
52
54
|
alignItems: "center"
|
|
53
55
|
},
|
|
54
56
|
[`${itemCls}-section`]: { alignSelf: "stretch" },
|
|
@@ -64,8 +66,8 @@ const genLabelPlacementStyle = (token) => {
|
|
|
64
66
|
[`${itemCls}-rail`]: {
|
|
65
67
|
position: "absolute",
|
|
66
68
|
top: 0,
|
|
67
|
-
width: `calc(100% -
|
|
68
|
-
insetInlineStart: `calc(50% +
|
|
69
|
+
width: `calc(100% - ${varRef("icon-size")} - ${varRef("title-horizontal-rail-gap")} * 2)`,
|
|
70
|
+
insetInlineStart: `calc(50% + ${varRef("icon-size")} / 2 + ${varRef("title-horizontal-rail-gap")})`
|
|
69
71
|
}
|
|
70
72
|
},
|
|
71
73
|
...getItemWithWidthStyle(token, marginXS, {
|
package/dist/steps/style/nav.js
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
+
import { genCssVar } from "../../theme/util/genStyleUtils.js";
|
|
1
2
|
import { unit } from "@antdv-next/cssinjs";
|
|
2
3
|
|
|
3
4
|
//#region src/steps/style/nav.ts
|
|
4
5
|
const genLegacyNavStyle = (token) => {
|
|
5
|
-
const { componentCls, fontSizeIcon,
|
|
6
|
+
const { componentCls, fontSizeIcon, navContentMaxWidth, navArrowColor, colorPrimary, motionDurationSlow, antCls, calc } = token;
|
|
6
7
|
const itemCls = `${componentCls}-item`;
|
|
7
8
|
const stepsNavActiveColor = colorPrimary;
|
|
9
|
+
const [varName, varRef] = genCssVar(antCls, "cmp-steps");
|
|
8
10
|
return { [`${componentCls}${componentCls}-navigation`]: {
|
|
9
11
|
[itemCls.repeat(4)]: {
|
|
10
12
|
"display": "flex",
|
|
@@ -33,10 +35,10 @@ const genLegacyNavStyle = (token) => {
|
|
|
33
35
|
content: "\"\""
|
|
34
36
|
},
|
|
35
37
|
[`&${itemCls}-active`]: {
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
38
|
+
[varName("item-content-active-color")]: varRef("item-content-color"),
|
|
39
|
+
[varName("item-icon-active-bg-color")]: varRef("item-icon-bg-color"),
|
|
40
|
+
[varName("item-icon-active-border-color")]: varRef("item-icon-border-color"),
|
|
41
|
+
[varName("item-icon-active-text-color")]: varRef("item-icon-text-color")
|
|
40
42
|
}
|
|
41
43
|
},
|
|
42
44
|
[`&${componentCls}-horizontal`]: { [itemCls]: {
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
+
import { genCssVar } from "../../theme/util/genStyleUtils.js";
|
|
1
2
|
import { unit } from "@antdv-next/cssinjs";
|
|
2
3
|
|
|
3
4
|
//#region src/steps/style/panel.ts
|
|
4
5
|
const genPanelStyle = (token) => {
|
|
5
|
-
const { componentCls,
|
|
6
|
+
const { componentCls, lineWidthBold, borderRadius, borderRadiusSM, motionDurationMid, paddingXS, lineType, paddingSM, antCls, calc } = token;
|
|
6
7
|
const itemCls = `${componentCls}-item`;
|
|
7
|
-
const
|
|
8
|
+
const [varName, varRef] = genCssVar(antCls, "cmp-steps");
|
|
9
|
+
const borderStyle = `${unit(lineWidthBold)} ${lineType} ${varRef("panel-border-color")}`;
|
|
8
10
|
return { [`${componentCls}${componentCls}-panel`]: [
|
|
9
11
|
{
|
|
10
12
|
[`${itemCls}-rail`]: { display: "none" },
|
|
@@ -18,17 +20,17 @@ const genPanelStyle = (token) => {
|
|
|
18
20
|
},
|
|
19
21
|
{
|
|
20
22
|
"&": {
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
+
[varName("panel-padding")]: paddingSM,
|
|
24
|
+
[varName("item-border-radius")]: borderRadius,
|
|
23
25
|
[itemCls]: {
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
|
|
26
|
+
[varName("panel-bg-color")]: varRef("item-icon-bg-color"),
|
|
27
|
+
[varName("panel-border-color")]: varRef("item-icon-border-color"),
|
|
28
|
+
[varName("panel-active-bg-color")]: varRef("item-icon-active-bg-color"),
|
|
29
|
+
[varName("panel-active-border-color")]: varRef("item-icon-active-border-color"),
|
|
30
|
+
[varName("panel-title-height")]: `calc(${varRef("title-font-size")} * ${varRef("title-line-height")})`,
|
|
31
|
+
[varName("item-base-height")]: calc(varRef("panel-padding")).mul(2).add(varRef("icon-size")).add(varRef("panel-title-height")).equal(),
|
|
32
|
+
[varName("item-base-width")]: `calc(${varRef("item-base-height")} * 0.7071)`,
|
|
33
|
+
transition: `background ${motionDurationMid}`
|
|
32
34
|
}
|
|
33
35
|
},
|
|
34
36
|
[`${itemCls}-icon`]: { display: "none" },
|
|
@@ -39,12 +41,12 @@ const genPanelStyle = (token) => {
|
|
|
39
41
|
insetInlineStart: "100%",
|
|
40
42
|
zIndex: 1,
|
|
41
43
|
height: calc(lineWidthBold).mul(2).add("100%").equal(),
|
|
42
|
-
width: "
|
|
44
|
+
width: varRef("item-base-width"),
|
|
43
45
|
overflow: "visible",
|
|
44
46
|
strokeLinecap: "round",
|
|
45
47
|
path: {
|
|
46
|
-
fill: "
|
|
47
|
-
stroke: "
|
|
48
|
+
fill: varRef("panel-bg-color"),
|
|
49
|
+
stroke: varRef("panel-border-color"),
|
|
48
50
|
strokeWidth: lineWidthBold,
|
|
49
51
|
vectorEffect: "non-scaling-stroke",
|
|
50
52
|
transition: `fill ${motionDurationMid}`
|
|
@@ -52,42 +54,42 @@ const genPanelStyle = (token) => {
|
|
|
52
54
|
},
|
|
53
55
|
[`${itemCls}:last-child ${componentCls}-panel-arrow`]: { display: "none" },
|
|
54
56
|
[itemCls]: {
|
|
55
|
-
"padding": "
|
|
56
|
-
"background": "
|
|
57
|
+
"padding": varRef("panel-padding"),
|
|
58
|
+
"background": varRef("panel-bg-color"),
|
|
57
59
|
"position": "relative",
|
|
58
60
|
"borderBlock": borderStyle,
|
|
59
|
-
"&:not(:first-child)": { paddingInlineStart: `calc(
|
|
61
|
+
"&:not(:first-child)": { paddingInlineStart: `calc(${varRef("panel-padding")} + ${varRef("item-base-width")})` },
|
|
60
62
|
"&:first-child": {
|
|
61
63
|
borderInlineStart: borderStyle,
|
|
62
|
-
borderStartStartRadius: "
|
|
63
|
-
borderEndStartRadius: "
|
|
64
|
+
borderStartStartRadius: varRef("item-border-radius"),
|
|
65
|
+
borderEndStartRadius: varRef("item-border-radius")
|
|
64
66
|
},
|
|
65
67
|
"&:last-child": {
|
|
66
68
|
borderInlineEnd: borderStyle,
|
|
67
|
-
borderStartEndRadius: "
|
|
68
|
-
borderEndEndRadius: "
|
|
69
|
+
borderStartEndRadius: varRef("item-border-radius"),
|
|
70
|
+
borderEndEndRadius: varRef("item-border-radius")
|
|
69
71
|
},
|
|
70
72
|
"&-active": {
|
|
71
|
-
background: "
|
|
72
|
-
borderColor: "
|
|
73
|
+
background: varRef("panel-active-bg-color"),
|
|
74
|
+
borderColor: varRef("panel-active-border-color"),
|
|
73
75
|
[`${componentCls}-panel-arrow`]: { path: {
|
|
74
|
-
fill: "
|
|
75
|
-
stroke: "
|
|
76
|
+
fill: varRef("panel-active-bg-color"),
|
|
77
|
+
stroke: varRef("panel-active-border-color")
|
|
76
78
|
} },
|
|
77
|
-
[`${itemCls}-title, ${itemCls}-subtitle, ${itemCls}-content`]: { color: "
|
|
79
|
+
[`${itemCls}-title, ${itemCls}-subtitle, ${itemCls}-content`]: { color: varRef("item-icon-active-text-color") }
|
|
78
80
|
}
|
|
79
81
|
}
|
|
80
82
|
},
|
|
81
83
|
{ [`&${componentCls}-small`]: {
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
+
[varName("panel-padding")]: paddingXS,
|
|
85
|
+
[varName("item-border-radius")]: borderRadiusSM
|
|
84
86
|
} },
|
|
85
87
|
{ [`&${componentCls}-filled`]: { [itemCls]: { "&:not(:first-child)": { clipPath: `polygon(${[
|
|
86
88
|
`${unit(lineWidthBold)} 0`,
|
|
87
|
-
|
|
88
|
-
|
|
89
|
+
`calc(100% + ${varRef("item-base-width")}) 0`,
|
|
90
|
+
`calc(100% + ${varRef("item-base-width")}) 100%`,
|
|
89
91
|
`${unit(lineWidthBold)} 100%`,
|
|
90
|
-
`calc(
|
|
92
|
+
`calc(${varRef("item-base-width")} + ${unit(lineWidthBold)}) 50%`
|
|
91
93
|
].join(",")})` } } } },
|
|
92
94
|
{ [`&${componentCls}-outlined`]: { [`${componentCls}-panel-arrow`]: {
|
|
93
95
|
top: calc(lineWidthBold).div(2).mul(-1).equal(),
|
|
@@ -1,16 +1,18 @@
|
|
|
1
|
+
import { genCssVar } from "../../theme/util/genStyleUtils.js";
|
|
1
2
|
import { getItemWithWidthStyle } from "./util.js";
|
|
2
3
|
|
|
3
4
|
//#region src/steps/style/progress-dot.ts
|
|
4
5
|
const genDotStyle = (token) => {
|
|
5
|
-
const { componentCls, iconSize, dotSize, dotCurrentSize, marginXXS, lineWidthBold, fontSizeSM } = token;
|
|
6
|
+
const { componentCls, iconSize, dotSize, dotCurrentSize, marginXXS, lineWidthBold, fontSizeSM, antCls } = token;
|
|
6
7
|
const itemCls = `${componentCls}-item`;
|
|
8
|
+
const [varName, varRef] = genCssVar(antCls, "cmp-steps");
|
|
7
9
|
return { [`${componentCls}${componentCls}-dot`]: {
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"
|
|
10
|
+
[varName("icon-size-active")]: dotCurrentSize,
|
|
11
|
+
[varName("icon-size")]: dotSize,
|
|
12
|
+
[varName("dot-icon-size")]: dotSize,
|
|
13
|
+
[varName("dot-icon-border-width")]: lineWidthBold,
|
|
14
|
+
[varName("rail-size")]: lineWidthBold,
|
|
15
|
+
[varName("icon-border-width")]: lineWidthBold,
|
|
14
16
|
[`${itemCls}-custom ${itemCls}-icon`]: { fontSize: fontSizeSM },
|
|
15
17
|
[`${itemCls}-icon`]: {
|
|
16
18
|
"position": "relative",
|
|
@@ -28,7 +30,7 @@ const genDotStyle = (token) => {
|
|
|
28
30
|
transform: "translate(-50%, -50%)"
|
|
29
31
|
}
|
|
30
32
|
},
|
|
31
|
-
[`${itemCls}-active ${itemCls}-icon`]: { "
|
|
33
|
+
[`${itemCls}-active ${itemCls}-icon`]: { [varName("icon-size")]: varRef("icon-size-active") },
|
|
32
34
|
[`&${componentCls}-horizontal`]: { [`&, &${componentCls}-small`]: getItemWithWidthStyle(token, marginXXS) }
|
|
33
35
|
} };
|
|
34
36
|
};
|
|
@@ -1,68 +1,39 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { genCssVar } from "../../theme/util/genStyleUtils.js";
|
|
2
2
|
|
|
3
3
|
//#region src/steps/style/progress.ts
|
|
4
4
|
const genStepsProgressStyle = (token) => {
|
|
5
|
-
const { calc, antCls, componentCls,
|
|
5
|
+
const { calc, antCls, componentCls, lineWidthBold, motionDurationSlow } = token;
|
|
6
6
|
const itemCls = `${componentCls}-item`;
|
|
7
|
-
const
|
|
8
|
-
const progressSizeSM = token.calc(iconSizeSM).add(token.calc(token.lineWidth).mul(4).equal()).equal();
|
|
7
|
+
const [varName, varRef] = genCssVar(antCls, "cmp-steps");
|
|
9
8
|
const enhanceSize = calc(lineWidthBold).add(lineWidthBold).equal();
|
|
10
|
-
return {
|
|
11
|
-
[
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
"
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
"height": "auto"
|
|
24
|
-
},
|
|
25
|
-
"&-circle": {
|
|
26
|
-
"lineHeight": `var(--icon-size-ptg-unitless)`,
|
|
27
|
-
"strokeWidth": calc(`var(--icon-size-ptg-unitless)`).mul(lineWidthBold).equal(),
|
|
28
|
-
"--progress-r": calc(`var(--steps-svg-size)`).sub(lineWidthBold).mul(`var(--icon-size-ptg-unitless)`).div(2).equal(),
|
|
29
|
-
"r": `var(--progress-r)`,
|
|
30
|
-
"fill": "none",
|
|
31
|
-
"cx": 50,
|
|
32
|
-
"cy": 50,
|
|
33
|
-
"transition": `all ${token.motionDurationSlow} ease-in-out`,
|
|
34
|
-
"&-rail": { stroke: token.colorSplit },
|
|
35
|
-
"&-ptg": { stroke: token.colorPrimary }
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
[`&${componentCls}-with-progress11`]: {
|
|
40
|
-
[itemCls]: {
|
|
41
|
-
paddingTop: paddingXXS,
|
|
42
|
-
paddingInlineStart: paddingXXS
|
|
43
|
-
},
|
|
44
|
-
[`${itemCls}-icon`]: {
|
|
45
|
-
position: "relative",
|
|
46
|
-
[`${antCls}-progress`]: {
|
|
47
|
-
"position": "absolute",
|
|
48
|
-
"left": {
|
|
49
|
-
_skip_check_: true,
|
|
50
|
-
value: "50%"
|
|
51
|
-
},
|
|
52
|
-
"top": "50%",
|
|
53
|
-
"transform": "translate(-50%, -50%)",
|
|
54
|
-
"&-body": {
|
|
55
|
-
width: `${unit(progressSize)} !important`,
|
|
56
|
-
height: `${unit(progressSize)} !important`
|
|
57
|
-
}
|
|
58
|
-
}
|
|
9
|
+
return { [`${componentCls}${componentCls}-with-progress`]: {
|
|
10
|
+
[varName("item-wrapper-padding-top")]: enhanceSize,
|
|
11
|
+
[`${itemCls}${itemCls}-process`]: { [`${itemCls}-icon`]: { position: "relative" } },
|
|
12
|
+
[`${itemCls}-progress-icon`]: {
|
|
13
|
+
"&-svg": {
|
|
14
|
+
[varName("svg-size")]: calc(enhanceSize).mul(2).add(varRef("icon-size")).equal(),
|
|
15
|
+
[varName("icon-size-ptg-unitless")]: `calc(100 / tan(atan2(${varRef("svg-size")}, 1px)))`,
|
|
16
|
+
fontSize: varRef("svg-size"),
|
|
17
|
+
lineHeight: varRef("icon-size-ptg-unitless"),
|
|
18
|
+
position: "absolute",
|
|
19
|
+
inset: calc(enhanceSize).mul(-1).equal(),
|
|
20
|
+
width: "auto",
|
|
21
|
+
height: "auto"
|
|
59
22
|
},
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
23
|
+
"&-circle": {
|
|
24
|
+
"lineHeight": varRef("icon-size-ptg-unitless"),
|
|
25
|
+
"strokeWidth": calc(varRef("icon-size-ptg-unitless")).mul(lineWidthBold).equal(),
|
|
26
|
+
[varName("progress-radius")]: calc(varRef("svg-size")).sub(lineWidthBold).mul(varRef("icon-size-ptg-unitless")).div(2).equal(),
|
|
27
|
+
"r": varRef("progress-radius"),
|
|
28
|
+
"fill": "none",
|
|
29
|
+
"cx": 50,
|
|
30
|
+
"cy": 50,
|
|
31
|
+
"transition": `all ${motionDurationSlow} ease-in-out`,
|
|
32
|
+
"&-rail": { stroke: token.colorSplit },
|
|
33
|
+
"&-ptg": { stroke: token.colorPrimary }
|
|
34
|
+
}
|
|
64
35
|
}
|
|
65
|
-
};
|
|
36
|
+
} };
|
|
66
37
|
};
|
|
67
38
|
var progress_default = genStepsProgressStyle;
|
|
68
39
|
|
package/dist/steps/style/rtl.js
CHANGED
|
@@ -1,20 +1,22 @@
|
|
|
1
|
+
import { genCssVar } from "../../theme/util/genStyleUtils.js";
|
|
1
2
|
import { unit } from "@antdv-next/cssinjs";
|
|
2
3
|
|
|
3
4
|
//#region src/steps/style/rtl.ts
|
|
4
5
|
const genRTLStyle = (token) => {
|
|
5
|
-
const { componentCls, lineWidthBold } = token;
|
|
6
|
+
const { componentCls, lineWidthBold, antCls } = token;
|
|
6
7
|
const itemCls = `${componentCls}-item`;
|
|
8
|
+
const [, varRef] = genCssVar(antCls, "cmp-steps");
|
|
7
9
|
return { [`${componentCls}${componentCls}-rtl`]: {
|
|
8
10
|
direction: "rtl",
|
|
9
11
|
[`&${componentCls}-navigation${componentCls}-horizontal`]: { [`${itemCls}:after`]: { transform: "translateY(-50%) rotate(-45deg)" } },
|
|
10
12
|
[`&${componentCls}-panel`]: {
|
|
11
13
|
[`${componentCls}-panel-arrow`]: { transform: `scaleX(-1)` },
|
|
12
14
|
[`&${componentCls}-filled`]: { [itemCls]: { "&:not(:first-child)": { clipPath: `polygon(${[
|
|
13
|
-
`calc(0px -
|
|
15
|
+
`calc(0px - ${varRef("item-base-width")}) 0px`,
|
|
14
16
|
`calc(100% - ${unit(lineWidthBold)}) 0px`,
|
|
15
|
-
`calc(100% -
|
|
17
|
+
`calc(100% - ${varRef("item-base-width")} - ${unit(lineWidthBold)}) 50%`,
|
|
16
18
|
`calc(100% - ${unit(lineWidthBold)}) 100%`,
|
|
17
|
-
`calc(0px -
|
|
19
|
+
`calc(0px - ${varRef("item-base-width")}) 100%`
|
|
18
20
|
].join(",")})` } } }
|
|
19
21
|
}
|
|
20
22
|
} };
|
|
@@ -1,16 +1,18 @@
|
|
|
1
|
+
import { genCssVar } from "../../theme/util/genStyleUtils.js";
|
|
1
2
|
import { getItemWithWidthStyle } from "./util.js";
|
|
2
3
|
|
|
3
4
|
//#region src/steps/style/small.ts
|
|
4
5
|
const genSmallStyle = (token) => {
|
|
5
|
-
const { componentCls, iconSizeSM, fontSize, lineHeight, marginXS } = token;
|
|
6
|
+
const { componentCls, iconSizeSM, fontSize, lineHeight, marginXS, fontHeight, marginSM, paddingXS, antCls } = token;
|
|
7
|
+
const [varName] = genCssVar(antCls, "cmp-steps");
|
|
6
8
|
return { [`${componentCls}${componentCls}-small`]: {
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"
|
|
9
|
+
[varName("icon-size")]: iconSizeSM,
|
|
10
|
+
[varName("title-horizontal-item-margin")]: marginSM,
|
|
11
|
+
[varName("title-vertical-row-gap")]: paddingXS,
|
|
12
|
+
[varName("title-font-size")]: fontSize,
|
|
13
|
+
[varName("title-line-height")]: lineHeight,
|
|
14
|
+
[varName("title-horizontal-rail-margin")]: marginXS,
|
|
15
|
+
[varName("title-horizontal-title-height")]: fontHeight,
|
|
14
16
|
[`&${componentCls}-horizontal${componentCls}-title-vertical`]: getItemWithWidthStyle(token, marginXS)
|
|
15
17
|
} };
|
|
16
18
|
};
|