@digitalc/dxp-ui 0.0.5-alpha.12 → 0.0.5-alpha.14
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/es/assets/token.json +6 -6
- package/es/components/Amount/index.js +6 -3
- package/es/components/IconButton/index.d.ts +1 -0
- package/es/components/IconButton/index.js +3 -2
- package/es/components/Navigation/index.d.ts +2 -0
- package/es/components/Navigation/index.js +7 -4
- package/es/components/Navigation/style/index.less +0 -1
- package/es/components/Search/designTokens.js +3 -3
- package/es/components/StickyFooter/index.d.ts +1 -0
- package/es/components/StickyFooter/index.js +8 -2
- package/es/components/TextInputOutside/designTokens.d.ts +5 -5
- package/es/components/TextInputOutside/designTokens.js +8 -8
- package/es/utils/tokenManager.js +1 -1
- package/lib/assets/token.json +6 -6
- package/lib/components/Amount/index.js +7 -3
- package/lib/components/IconButton/index.d.ts +1 -0
- package/lib/components/IconButton/index.js +3 -1
- package/lib/components/Navigation/index.d.ts +2 -0
- package/lib/components/Navigation/index.js +12 -11
- package/lib/components/Navigation/style/index.less +0 -1
- package/lib/components/Search/designTokens.js +3 -3
- package/lib/components/StickyFooter/index.d.ts +1 -0
- package/lib/components/StickyFooter/index.js +12 -4
- package/lib/components/TextInputOutside/designTokens.d.ts +5 -5
- package/lib/components/TextInputOutside/designTokens.js +8 -8
- package/lib/utils/tokenManager.js +1 -1
- package/package.json +1 -1
- package/umd/dxp-ui.min.css +1 -1
- package/umd/dxp-ui.min.js +1 -1
package/es/assets/token.json
CHANGED
|
@@ -831,12 +831,12 @@
|
|
|
831
831
|
"borderRadiusXs": 4,
|
|
832
832
|
"colorTextAmount": "#ff5e00",
|
|
833
833
|
"opacityDefault": 100,
|
|
834
|
-
"fontFamilySecondaryRegular": "
|
|
835
|
-
"fontFamilyPromaryRegular": "
|
|
836
|
-
"fontFamilyPromaryBold": "
|
|
837
|
-
"fontFamilyPromarySemiBold": "
|
|
838
|
-
"fontFamilySecondarySemiBold": "
|
|
839
|
-
"fontFamilySecondaryBold": "
|
|
834
|
+
"fontFamilySecondaryRegular": "SF Pro Text",
|
|
835
|
+
"fontFamilyPromaryRegular": "SF Pro Text",
|
|
836
|
+
"fontFamilyPromaryBold": "SF Pro Text",
|
|
837
|
+
"fontFamilyPromarySemiBold": "SF Pro Text",
|
|
838
|
+
"fontFamilySecondarySemiBold": "SF Pro Text",
|
|
839
|
+
"fontFamilySecondaryBold": "SF Pro Text",
|
|
840
840
|
"boolean": true,
|
|
841
841
|
"colorTagGrey": "#545454",
|
|
842
842
|
"colorTagRed": "#fa2c2c",
|
|
@@ -5,7 +5,7 @@ import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
|
5
5
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
6
6
|
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
7
7
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
8
|
-
var _excluded = ["children", "className", "size", "title", "position", "prefixCls", "priceStrikethrough", "style", "priceColor", "textColor", "colorStrikethrough", "onDropDownClick"];
|
|
8
|
+
var _excluded = ["children", "className", "size", "title", "position", "prefixCls", "priceStrikethrough", "style", "priceColor", "textColor", "colorStrikethrough", "onDropDownClick", "showIcon", "iconType"];
|
|
9
9
|
import React, { PureComponent } from 'react';
|
|
10
10
|
import { default as classNames } from 'classnames';
|
|
11
11
|
import { designTokens } from "./designTokens";
|
|
@@ -36,6 +36,9 @@ var Amount = /*#__PURE__*/function (_PureComponent) {
|
|
|
36
36
|
textColor = _this$props.textColor,
|
|
37
37
|
colorStrikethrough = _this$props.colorStrikethrough,
|
|
38
38
|
onDropDownClick = _this$props.onDropDownClick,
|
|
39
|
+
showIcon = _this$props.showIcon,
|
|
40
|
+
_this$props$iconType = _this$props.iconType,
|
|
41
|
+
iconType = _this$props$iconType === void 0 ? 'icon-a-Arrow-Down' : _this$props$iconType,
|
|
39
42
|
attr = _objectWithoutProperties(_this$props, _excluded);
|
|
40
43
|
var colorCardTextPrice = designTokens.colorCardTextPrice,
|
|
41
44
|
colorCardTextPriceStrikethrough = designTokens.colorCardTextPriceStrikethrough,
|
|
@@ -71,9 +74,9 @@ var Amount = /*#__PURE__*/function (_PureComponent) {
|
|
|
71
74
|
style: {
|
|
72
75
|
color: textColor || colorCardTextTitle
|
|
73
76
|
},
|
|
74
|
-
children: [title, /*#__PURE__*/_jsx(Icon, {
|
|
77
|
+
children: [title, showIcon && /*#__PURE__*/_jsx(Icon, {
|
|
75
78
|
size: 12,
|
|
76
|
-
name:
|
|
79
|
+
name: iconType,
|
|
77
80
|
onClick: onDropDownClick
|
|
78
81
|
})]
|
|
79
82
|
})
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
3
|
-
var _excluded = ["prefixCls", "size", "disabled", "loading", "style", "className", "onMouseDown", "onClick", "onMouseEnter", "onMouseLeave"];
|
|
3
|
+
var _excluded = ["prefixCls", "size", "customeIconSize", "disabled", "loading", "style", "className", "onMouseDown", "onClick", "onMouseEnter", "onMouseLeave"];
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import classNames from 'classnames';
|
|
6
6
|
import { Theme, useStyleRegister } from '@ant-design/cssinjs';
|
|
@@ -31,6 +31,7 @@ var IconButton = function IconButton(props) {
|
|
|
31
31
|
prefixCls = _props$prefixCls === void 0 ? cssClasses.PREFIX + '-icon-button' : _props$prefixCls,
|
|
32
32
|
_props$size = props.size,
|
|
33
33
|
size = _props$size === void 0 ? 'medium' : _props$size,
|
|
34
|
+
customeIconSize = props.customeIconSize,
|
|
34
35
|
_props$disabled = props.disabled,
|
|
35
36
|
disabled = _props$disabled === void 0 ? false : _props$disabled,
|
|
36
37
|
_props$loading = props.loading,
|
|
@@ -88,7 +89,7 @@ var IconButton = function IconButton(props) {
|
|
|
88
89
|
onMouseEnter: onMouseEnter,
|
|
89
90
|
onMouseLeave: onMouseLeave,
|
|
90
91
|
children: /*#__PURE__*/_jsx(Icon, _objectSpread(_objectSpread({}, restProps), {}, {
|
|
91
|
-
size: iconSize,
|
|
92
|
+
size: customeIconSize || iconSize,
|
|
92
93
|
style: _objectSpread({}, otherDesignTokens)
|
|
93
94
|
}))
|
|
94
95
|
});
|
|
@@ -15,6 +15,7 @@ export interface TitleIconBadgeConfig {
|
|
|
15
15
|
}
|
|
16
16
|
export interface INavigationProps {
|
|
17
17
|
rightIcons?: RightIcon[];
|
|
18
|
+
leftIconName?: string;
|
|
18
19
|
imgBackground?: boolean;
|
|
19
20
|
rightLink?: RightLinkConfig;
|
|
20
21
|
titleIconBadge?: TitleIconBadgeConfig;
|
|
@@ -24,6 +25,7 @@ export interface INavigationProps {
|
|
|
24
25
|
goBack?: () => void;
|
|
25
26
|
isInverse?: boolean;
|
|
26
27
|
noRight?: boolean;
|
|
28
|
+
leftIconSize?: string | number;
|
|
27
29
|
}
|
|
28
30
|
declare const Navigation: React.FC<INavigationProps>;
|
|
29
31
|
export default Navigation;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
3
|
-
var _excluded = ["hideBorder", "className", "rightIcons", "rightLink", "title", "goBack", "isInverse", "titleIconBadge", "imgBackground", "noRight"];
|
|
3
|
+
var _excluded = ["hideBorder", "className", "rightIcons", "rightLink", "title", "goBack", "isInverse", "titleIconBadge", "imgBackground", "noRight", "leftIconName", "leftIconSize"];
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import designTokens from "./designTokens";
|
|
6
6
|
import { useStyleRegister } from '@ant-design/cssinjs';
|
|
@@ -23,6 +23,8 @@ var Navigation = function Navigation(_ref) {
|
|
|
23
23
|
imgBackground = _ref.imgBackground,
|
|
24
24
|
_ref$noRight = _ref.noRight,
|
|
25
25
|
noRight = _ref$noRight === void 0 ? false : _ref$noRight,
|
|
26
|
+
leftIconName = _ref.leftIconName,
|
|
27
|
+
leftIconSize = _ref.leftIconSize,
|
|
26
28
|
restProps = _objectWithoutProperties(_ref, _excluded);
|
|
27
29
|
var spacingTopNavigationPaddingHorizontal = designTokens.spacingTopNavigationPaddingHorizontal,
|
|
28
30
|
spacingTopNavigationPaddingBottom = designTokens.spacingTopNavigationPaddingBottom,
|
|
@@ -40,7 +42,7 @@ var Navigation = function Navigation(_ref) {
|
|
|
40
42
|
token: {},
|
|
41
43
|
path: ["".concat(cssClasses.PREFIX, "-header")]
|
|
42
44
|
}, function () {
|
|
43
|
-
return "\n .".concat(cssClasses.PREFIX, "-header {\n padding-left: ").concat(spacingTopNavigationPaddingHorizontal, "px;\n padding-right: ").concat(spacingTopNavigationPaddingHorizontal, "px;\n padding-bottom: ").concat(spacingTopNavigationPaddingBottom, "px;\n padding-top: ").concat(spacingTopNavigationPaddingBottom, "px; // TODO\uFF1A\u8BBE\u8BA1\u7A3F\u4E0A\u6CA1\u6709\u6682\u65F6\u52A0\u7684\n border-bottom: 1px solid ").concat(colorTopNavigationBorderBottom, ";\n background-color:").concat(colorTopNavigationBackground, ";\n &.inverse {\n background-color:").concat(colorTopNavigationBackgroundInverse, ";\n }\n &.imgBackground {\n background:").concat(colorTopNavigationGradient, ";\n }\n &.hideBorder {\n border-bottom:none;\n }\n &.noRight{\n justify-content:center !important;\n .").concat(cssClasses.PREFIX, "-header-back {\n position:absolute;\n left: ").concat(spacingTopNavigationPaddingHorizontal, "px;\n }\n }\n }\n .").concat(cssClasses.PREFIX, "-title {\n color:").concat(colorTopNavigationTitleStandard, ";\n &.inverse {\n color:").concat(colorTopNavigationTitleInverse, ";\n }\n }\n .").concat(cssClasses.PREFIX, "-right-link {\n padding-right: ").concat(spacingTopNavigationTextLinkPaddingRight, "px;\n }\n ");
|
|
45
|
+
return "\n .".concat(cssClasses.PREFIX, "-header {\n padding-left: ").concat(spacingTopNavigationPaddingHorizontal, "px;\n padding-right: ").concat(spacingTopNavigationPaddingHorizontal, "px;\n padding-bottom: ").concat(spacingTopNavigationPaddingBottom, "px;\n padding-top: ").concat(spacingTopNavigationPaddingBottom, "px; // TODO\uFF1A\u8BBE\u8BA1\u7A3F\u4E0A\u6CA1\u6709\u6682\u65F6\u52A0\u7684\n border-bottom: 1px solid ").concat(colorTopNavigationBorderBottom, ";\n background-color:").concat(colorTopNavigationBackground, ";\n &.inverse {\n background-color:").concat(colorTopNavigationBackgroundInverse, ";\n }\n &.imgBackground {\n background:").concat(colorTopNavigationGradient, ";\n }\n &.hideBorder {\n border-bottom:none;\n box-shadow: 0px -2px 10px 0px rgba(26, 24, 134, 0.1);\n }\n &.noRight{\n justify-content:center !important;\n .dxp-title-warp{\n line-height:41px;\n }\n .").concat(cssClasses.PREFIX, "-header-back {\n position:absolute;\n left: ").concat(spacingTopNavigationPaddingHorizontal, "px;\n }\n }\n }\n .").concat(cssClasses.PREFIX, "-title {\n color:").concat(colorTopNavigationTitleStandard, ";\n &.inverse {\n color:").concat(colorTopNavigationTitleInverse, ";\n }\n }\n .").concat(cssClasses.PREFIX, "-right-link {\n padding-right: ").concat(spacingTopNavigationTextLinkPaddingRight, "px;\n }\n ");
|
|
44
46
|
});
|
|
45
47
|
return hashId;
|
|
46
48
|
};
|
|
@@ -51,13 +53,14 @@ var Navigation = function Navigation(_ref) {
|
|
|
51
53
|
}
|
|
52
54
|
};
|
|
53
55
|
return /*#__PURE__*/_jsxs("header", _objectSpread(_objectSpread({
|
|
54
|
-
className: "
|
|
56
|
+
className: "".concat(cssClasses.PREFIX, "-header ").concat(hideBorder ? 'hideBorder' : '', " ").concat(isInverse ? 'inverse' : '', " ").concat(imgBackground ? 'imgBackground' : '', " ").concat(noRight ? 'noRight' : '', " ").concat(className || '')
|
|
55
57
|
}, restProps), {}, {
|
|
56
58
|
children: [/*#__PURE__*/_jsx(IconButton, {
|
|
57
59
|
className: "".concat(cssClasses.PREFIX, "-header-back"),
|
|
60
|
+
customeIconSize: leftIconSize,
|
|
58
61
|
inverse: isInverse,
|
|
59
62
|
size: "medium",
|
|
60
|
-
name: "icon-a-Backarrow-copy",
|
|
63
|
+
name: leftIconName || "icon-a-Backarrow-copy",
|
|
61
64
|
onClick: onGoBack
|
|
62
65
|
}), /*#__PURE__*/_jsx("div", {
|
|
63
66
|
className: "\n ".concat(cssClasses.PREFIX, "-title-warp\n "),
|
|
@@ -32,8 +32,8 @@ var designTokens = {
|
|
|
32
32
|
// hover边框颜色
|
|
33
33
|
activeBorderColor: getToken('colorInputBorderActive'),
|
|
34
34
|
// active边框颜色
|
|
35
|
-
activeShadow: '
|
|
36
|
-
// 边框shadow颜色
|
|
35
|
+
activeShadow: 'none',
|
|
36
|
+
// activeShadow: '0px 0px 0px 2px #180C8E33', // 边框shadow颜色
|
|
37
37
|
colorBgContainer: getToken('colorInputBackground'),
|
|
38
38
|
// 背景颜色
|
|
39
39
|
borderWidthInputStandard: getToken('borderWidthInputStandard'),
|
|
@@ -42,7 +42,7 @@ var designTokens = {
|
|
|
42
42
|
// 标准边框颜色
|
|
43
43
|
colorInputTextPlaceholder: getToken('colorInputTextPlaceholder'),
|
|
44
44
|
// placeholder文本颜色
|
|
45
|
-
fontSize: getToken('
|
|
45
|
+
fontSize: getToken('ContentC14Regular'),
|
|
46
46
|
// 字体大小
|
|
47
47
|
lineHeight: 1.5
|
|
48
48
|
// colorBgContainerDisabled: getToken('colorInputBackgroundHaze'), // 背景颜色
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
3
|
-
var _excluded = ["type", "price", "priceStrikethrough", "buttonText", "title", "position", "size", "children", "onDropDownClick", "onRightBtnClick", "onBtnClick"];
|
|
3
|
+
var _excluded = ["type", "colorPrice", "price", "priceStrikethrough", "buttonText", "title", "position", "size", "children", "onDropDownClick", "onRightBtnClick", "onBtnClick", "showIcon", "iconType"];
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { useStyleRegister } from '@ant-design/cssinjs';
|
|
6
6
|
import { theme } from "../../utils/theme";
|
|
@@ -12,6 +12,7 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
|
|
|
12
12
|
var StickyFooter = function StickyFooter(props) {
|
|
13
13
|
var _props$type = props.type,
|
|
14
14
|
type = _props$type === void 0 ? 'default' : _props$type,
|
|
15
|
+
colorPrice = props.colorPrice,
|
|
15
16
|
price = props.price,
|
|
16
17
|
priceStrikethrough = props.priceStrikethrough,
|
|
17
18
|
_props$buttonText = props.buttonText,
|
|
@@ -23,6 +24,9 @@ var StickyFooter = function StickyFooter(props) {
|
|
|
23
24
|
onDropDownClick = props.onDropDownClick,
|
|
24
25
|
onRightBtnClick = props.onRightBtnClick,
|
|
25
26
|
onBtnClick = props.onBtnClick,
|
|
27
|
+
_props$showIcon = props.showIcon,
|
|
28
|
+
showIcon = _props$showIcon === void 0 ? true : _props$showIcon,
|
|
29
|
+
iconType = props.iconType,
|
|
26
30
|
attr = _objectWithoutProperties(props, _excluded);
|
|
27
31
|
var padding = designTokens.padding,
|
|
28
32
|
borderTop = designTokens.borderTop,
|
|
@@ -58,13 +62,15 @@ var StickyFooter = function StickyFooter(props) {
|
|
|
58
62
|
}), type === 'priceVariant1' && /*#__PURE__*/_jsxs(_Fragment, {
|
|
59
63
|
children: [/*#__PURE__*/_jsx(Amount, {
|
|
60
64
|
priceStrikethrough: priceStrikethrough,
|
|
61
|
-
priceColor: priceColor,
|
|
65
|
+
priceColor: colorPrice || priceColor,
|
|
62
66
|
textColor: title === 'discount' ? textDiscontColor : textColor,
|
|
63
67
|
colorStrikethrough: colorStrikethrough,
|
|
64
68
|
title: title,
|
|
65
69
|
position: position,
|
|
66
70
|
size: size,
|
|
71
|
+
showIcon: showIcon,
|
|
67
72
|
onDropDownClick: onDropDownClick,
|
|
73
|
+
iconType: iconType,
|
|
68
74
|
children: price
|
|
69
75
|
}), /*#__PURE__*/_jsx(Button, {
|
|
70
76
|
type: "primary",
|
|
@@ -11,7 +11,7 @@ declare const designTokens: {
|
|
|
11
11
|
borderWidthInputStandard: any;
|
|
12
12
|
colorBorder: any;
|
|
13
13
|
colorInputTextPlaceholder: any;
|
|
14
|
-
fontSize:
|
|
14
|
+
fontSize: any;
|
|
15
15
|
colorBgContainerDisabled: any;
|
|
16
16
|
};
|
|
17
17
|
declare const designFormTokens: {
|
|
@@ -20,8 +20,8 @@ declare const designFormTokens: {
|
|
|
20
20
|
lineHeight: number;
|
|
21
21
|
labelHeight: number;
|
|
22
22
|
labelColor: any;
|
|
23
|
-
labelFontSize:
|
|
24
|
-
fontSize:
|
|
23
|
+
labelFontSize: any;
|
|
24
|
+
fontSize: any;
|
|
25
25
|
itemMarginBottom: number;
|
|
26
26
|
};
|
|
27
27
|
declare const designFormHorizontalTokens: {
|
|
@@ -31,8 +31,8 @@ declare const designFormHorizontalTokens: {
|
|
|
31
31
|
labelHeight: string;
|
|
32
32
|
labelColor: any;
|
|
33
33
|
lineHeight: number;
|
|
34
|
-
labelFontSize:
|
|
35
|
-
fontSize:
|
|
34
|
+
labelFontSize: any;
|
|
35
|
+
fontSize: any;
|
|
36
36
|
itemMarginBottom: number;
|
|
37
37
|
};
|
|
38
38
|
declare const styleToken: {
|
|
@@ -27,7 +27,7 @@ var designTokens = {
|
|
|
27
27
|
// 标准边框颜色
|
|
28
28
|
colorInputTextPlaceholder: getToken('colorInputTextPlaceholder'),
|
|
29
29
|
// placeholder文本颜色
|
|
30
|
-
fontSize:
|
|
30
|
+
fontSize: getToken('ContentC14Regular'),
|
|
31
31
|
// 字体大小
|
|
32
32
|
colorBgContainerDisabled: getToken('colorInputBackgroundHaze') // 背景颜色
|
|
33
33
|
};
|
|
@@ -35,14 +35,14 @@ var designFormTokens = {
|
|
|
35
35
|
labelRequiredMarkColor: getToken('colorInputTextError'),
|
|
36
36
|
colorError: getToken('colorInputTextError'),
|
|
37
37
|
// 错误信息文本颜色
|
|
38
|
-
lineHeight: 24 /
|
|
38
|
+
lineHeight: 24 / getToken('ContentC14Regular'),
|
|
39
39
|
// 行高
|
|
40
|
-
labelHeight: 24 /
|
|
40
|
+
labelHeight: 24 / getToken('ContentC14Regular'),
|
|
41
41
|
// 行高
|
|
42
42
|
labelColor: getToken('colorInputTextLabel'),
|
|
43
43
|
// label文本颜色
|
|
44
|
-
labelFontSize:
|
|
45
|
-
fontSize:
|
|
44
|
+
labelFontSize: getToken('ContentC14Regular'),
|
|
45
|
+
fontSize: getToken('ContentC14Regular'),
|
|
46
46
|
// 字体大小
|
|
47
47
|
itemMarginBottom: 28
|
|
48
48
|
};
|
|
@@ -55,10 +55,10 @@ var designFormHorizontalTokens = {
|
|
|
55
55
|
// label高
|
|
56
56
|
labelColor: getToken('colorInputTextLabel'),
|
|
57
57
|
// label文本颜色
|
|
58
|
-
lineHeight: 24 /
|
|
58
|
+
lineHeight: 24 / getToken('ContentC14Regular'),
|
|
59
59
|
// 行高
|
|
60
|
-
labelFontSize:
|
|
61
|
-
fontSize:
|
|
60
|
+
labelFontSize: getToken('ContentC14Regular'),
|
|
61
|
+
fontSize: getToken('ContentC14Regular'),
|
|
62
62
|
// 字体大小
|
|
63
63
|
itemMarginBottom: 28
|
|
64
64
|
};
|
package/es/utils/tokenManager.js
CHANGED
|
@@ -752,7 +752,7 @@ export var getComponentToken = function getComponentToken() {
|
|
|
752
752
|
borderWidthChip: tokenRef === null || tokenRef === void 0 || (_tokenRef$root739 = tokenRef.root) === null || _tokenRef$root739 === void 0 ? void 0 : _tokenRef$root739.borderWidthStandard,
|
|
753
753
|
borderRadiusDrawerTopLeft: tokenRef === null || tokenRef === void 0 || (_tokenRef$root740 = tokenRef.root) === null || _tokenRef$root740 === void 0 ? void 0 : _tokenRef$root740.borderRadiusMd,
|
|
754
754
|
borderRadiusDrawerTopRight: tokenRef === null || tokenRef === void 0 || (_tokenRef$root741 = tokenRef.root) === null || _tokenRef$root741 === void 0 ? void 0 : _tokenRef$root741.borderRadiusMd,
|
|
755
|
-
borderRadiusButton: tokenRef === null || tokenRef === void 0 || (_tokenRef$root742 = tokenRef.root) === null || _tokenRef$root742 === void 0 ? void 0 : _tokenRef$root742.
|
|
755
|
+
borderRadiusButton: tokenRef === null || tokenRef === void 0 || (_tokenRef$root742 = tokenRef.root) === null || _tokenRef$root742 === void 0 ? void 0 : _tokenRef$root742.borderRadiusButton,
|
|
756
756
|
borderRadiusCarouselFixed: tokenRef === null || tokenRef === void 0 || (_tokenRef$root743 = tokenRef.root) === null || _tokenRef$root743 === void 0 ? void 0 : _tokenRef$root743.borderRadiusSm,
|
|
757
757
|
borderRadiusInput: tokenRef === null || tokenRef === void 0 || (_tokenRef$root744 = tokenRef.root) === null || _tokenRef$root744 === void 0 ? void 0 : _tokenRef$root744.borderRadiusSm,
|
|
758
758
|
borderRadiusSearchInput: tokenRef === null || tokenRef === void 0 || (_tokenRef$root745 = tokenRef.root) === null || _tokenRef$root745 === void 0 ? void 0 : _tokenRef$root745.borderRadiusSm,
|
package/lib/assets/token.json
CHANGED
|
@@ -831,12 +831,12 @@
|
|
|
831
831
|
"borderRadiusXs": 4,
|
|
832
832
|
"colorTextAmount": "#ff5e00",
|
|
833
833
|
"opacityDefault": 100,
|
|
834
|
-
"fontFamilySecondaryRegular": "
|
|
835
|
-
"fontFamilyPromaryRegular": "
|
|
836
|
-
"fontFamilyPromaryBold": "
|
|
837
|
-
"fontFamilyPromarySemiBold": "
|
|
838
|
-
"fontFamilySecondarySemiBold": "
|
|
839
|
-
"fontFamilySecondaryBold": "
|
|
834
|
+
"fontFamilySecondaryRegular": "SF Pro Text",
|
|
835
|
+
"fontFamilyPromaryRegular": "SF Pro Text",
|
|
836
|
+
"fontFamilyPromaryBold": "SF Pro Text",
|
|
837
|
+
"fontFamilyPromarySemiBold": "SF Pro Text",
|
|
838
|
+
"fontFamilySecondarySemiBold": "SF Pro Text",
|
|
839
|
+
"fontFamilySecondaryBold": "SF Pro Text",
|
|
840
840
|
"boolean": true,
|
|
841
841
|
"colorTagGrey": "#545454",
|
|
842
842
|
"colorTagRed": "#fa2c2c",
|
|
@@ -81,7 +81,9 @@ var Amount = class extends import_react.PureComponent {
|
|
|
81
81
|
priceColor,
|
|
82
82
|
textColor,
|
|
83
83
|
colorStrikethrough,
|
|
84
|
-
onDropDownClick
|
|
84
|
+
onDropDownClick,
|
|
85
|
+
showIcon,
|
|
86
|
+
iconType = "icon-a-Arrow-Down"
|
|
85
87
|
} = _a, attr = __objRest(_a, [
|
|
86
88
|
"children",
|
|
87
89
|
"className",
|
|
@@ -94,7 +96,9 @@ var Amount = class extends import_react.PureComponent {
|
|
|
94
96
|
"priceColor",
|
|
95
97
|
"textColor",
|
|
96
98
|
"colorStrikethrough",
|
|
97
|
-
"onDropDownClick"
|
|
99
|
+
"onDropDownClick",
|
|
100
|
+
"showIcon",
|
|
101
|
+
"iconType"
|
|
98
102
|
]);
|
|
99
103
|
const {
|
|
100
104
|
colorCardTextPrice,
|
|
@@ -127,7 +131,7 @@ var Amount = class extends import_react.PureComponent {
|
|
|
127
131
|
return "ContentC12Bold";
|
|
128
132
|
}
|
|
129
133
|
};
|
|
130
|
-
const TitleDom = () => /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, title === "discount" ? /* @__PURE__ */ import_react.default.createElement(import__.Text, { size: "ContentC12Bold", style: { color: textColor || "#D01660" } }, "Discount") : /* @__PURE__ */ import_react.default.createElement(import__.Text, { size: "ContentC12Regular", style: { color: textColor || colorCardTextTitle } }, title, /* @__PURE__ */ import_react.default.createElement(import__.Icon, { size: 12, name:
|
|
134
|
+
const TitleDom = () => /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, title === "discount" ? /* @__PURE__ */ import_react.default.createElement(import__.Text, { size: "ContentC12Bold", style: { color: textColor || "#D01660" } }, "Discount") : /* @__PURE__ */ import_react.default.createElement(import__.Text, { size: "ContentC12Regular", style: { color: textColor || colorCardTextTitle } }, title, showIcon && /* @__PURE__ */ import_react.default.createElement(import__.Icon, { size: 12, name: iconType, onClick: onDropDownClick })));
|
|
131
135
|
const PriceDom = () => /* @__PURE__ */ import_react.default.createElement(import__.Text, { size: getSize(size), style: { color: priceColor || colorCardTextPrice } }, children);
|
|
132
136
|
const PriceStrikethroughDom = () => /* @__PURE__ */ import_react.default.createElement(import__.Text, { size: "ContentC12Strikethrough", style: { color: colorStrikethrough || colorCardTextPriceStrikethrough } }, priceStrikethrough);
|
|
133
137
|
const positionLeft = () => /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(TitleDom, null), /* @__PURE__ */ import_react.default.createElement("div", null, /* @__PURE__ */ import_react.default.createElement(PriceStrikethroughDom, null), /* @__PURE__ */ import_react.default.createElement(PriceDom, null)));
|
|
@@ -82,6 +82,7 @@ var IconButton = (props) => {
|
|
|
82
82
|
const _a = props, {
|
|
83
83
|
prefixCls = import_constants.cssClasses.PREFIX + "-icon-button",
|
|
84
84
|
size = "medium",
|
|
85
|
+
customeIconSize,
|
|
85
86
|
disabled = false,
|
|
86
87
|
loading = false,
|
|
87
88
|
style,
|
|
@@ -93,6 +94,7 @@ var IconButton = (props) => {
|
|
|
93
94
|
} = _a, restProps = __objRest(_a, [
|
|
94
95
|
"prefixCls",
|
|
95
96
|
"size",
|
|
97
|
+
"customeIconSize",
|
|
96
98
|
"disabled",
|
|
97
99
|
"loading",
|
|
98
100
|
"style",
|
|
@@ -194,7 +196,7 @@ var IconButton = (props) => {
|
|
|
194
196
|
onMouseEnter,
|
|
195
197
|
onMouseLeave
|
|
196
198
|
},
|
|
197
|
-
/* @__PURE__ */ import_react.default.createElement(import_Icon.default, __spreadProps(__spreadValues({}, restProps), { size: iconSize, style: __spreadValues({}, import_designTokens.otherDesignTokens) }))
|
|
199
|
+
/* @__PURE__ */ import_react.default.createElement(import_Icon.default, __spreadProps(__spreadValues({}, restProps), { size: customeIconSize || iconSize, style: __spreadValues({}, import_designTokens.otherDesignTokens) }))
|
|
198
200
|
);
|
|
199
201
|
};
|
|
200
202
|
var IconButton_default = IconButton;
|
|
@@ -15,6 +15,7 @@ export interface TitleIconBadgeConfig {
|
|
|
15
15
|
}
|
|
16
16
|
export interface INavigationProps {
|
|
17
17
|
rightIcons?: RightIcon[];
|
|
18
|
+
leftIconName?: string;
|
|
18
19
|
imgBackground?: boolean;
|
|
19
20
|
rightLink?: RightLinkConfig;
|
|
20
21
|
titleIconBadge?: TitleIconBadgeConfig;
|
|
@@ -24,6 +25,7 @@ export interface INavigationProps {
|
|
|
24
25
|
goBack?: () => void;
|
|
25
26
|
isInverse?: boolean;
|
|
26
27
|
noRight?: boolean;
|
|
28
|
+
leftIconSize?: string | number;
|
|
27
29
|
}
|
|
28
30
|
declare const Navigation: React.FC<INavigationProps>;
|
|
29
31
|
export default Navigation;
|
|
@@ -77,7 +77,9 @@ var Navigation = (_a) => {
|
|
|
77
77
|
isInverse,
|
|
78
78
|
titleIconBadge,
|
|
79
79
|
imgBackground,
|
|
80
|
-
noRight = false
|
|
80
|
+
noRight = false,
|
|
81
|
+
leftIconName,
|
|
82
|
+
leftIconSize
|
|
81
83
|
} = _b, restProps = __objRest(_b, [
|
|
82
84
|
"hideBorder",
|
|
83
85
|
"className",
|
|
@@ -88,7 +90,9 @@ var Navigation = (_a) => {
|
|
|
88
90
|
"isInverse",
|
|
89
91
|
"titleIconBadge",
|
|
90
92
|
"imgBackground",
|
|
91
|
-
"noRight"
|
|
93
|
+
"noRight",
|
|
94
|
+
"leftIconName",
|
|
95
|
+
"leftIconSize"
|
|
92
96
|
]);
|
|
93
97
|
var _a2;
|
|
94
98
|
const {
|
|
@@ -124,9 +128,13 @@ var Navigation = (_a) => {
|
|
|
124
128
|
}
|
|
125
129
|
&.hideBorder {
|
|
126
130
|
border-bottom:none;
|
|
131
|
+
box-shadow: 0px -2px 10px 0px rgba(26, 24, 134, 0.1);
|
|
127
132
|
}
|
|
128
133
|
&.noRight{
|
|
129
134
|
justify-content:center !important;
|
|
135
|
+
.dxp-title-warp{
|
|
136
|
+
line-height:41px;
|
|
137
|
+
}
|
|
130
138
|
.${import_constants.cssClasses.PREFIX}-header-back {
|
|
131
139
|
position:absolute;
|
|
132
140
|
left: ${spacingTopNavigationPaddingHorizontal}px;
|
|
@@ -154,16 +162,9 @@ var Navigation = (_a) => {
|
|
|
154
162
|
return /* @__PURE__ */ import_react.default.createElement(
|
|
155
163
|
"header",
|
|
156
164
|
__spreadValues({
|
|
157
|
-
className: `
|
|
158
|
-
${import_constants.cssClasses.PREFIX}-header
|
|
159
|
-
${hideBorder ? "hideBorder" : ""}
|
|
160
|
-
${isInverse ? "inverse" : ""}
|
|
161
|
-
${imgBackground ? "imgBackground" : ""}
|
|
162
|
-
${noRight ? "noRight" : ""}
|
|
163
|
-
${className || ""}
|
|
164
|
-
`
|
|
165
|
+
className: `${import_constants.cssClasses.PREFIX}-header ${hideBorder ? "hideBorder" : ""} ${isInverse ? "inverse" : ""} ${imgBackground ? "imgBackground" : ""} ${noRight ? "noRight" : ""} ${className || ""}`
|
|
165
166
|
}, restProps),
|
|
166
|
-
/* @__PURE__ */ import_react.default.createElement(import__.IconButton, { className: `${import_constants.cssClasses.PREFIX}-header-back`, inverse: isInverse, size: "medium", name: "icon-a-Backarrow-copy", onClick: onGoBack }),
|
|
167
|
+
/* @__PURE__ */ import_react.default.createElement(import__.IconButton, { className: `${import_constants.cssClasses.PREFIX}-header-back`, customeIconSize: leftIconSize, inverse: isInverse, size: "medium", name: leftIconName || "icon-a-Backarrow-copy", onClick: onGoBack }),
|
|
167
168
|
/* @__PURE__ */ import_react.default.createElement("div", { className: `
|
|
168
169
|
${import_constants.cssClasses.PREFIX}-title-warp
|
|
169
170
|
` }, !(0, import_lodash.isEmpty)(titleIconBadge) ? /* @__PURE__ */ import_react.default.createElement("div", { className: `${import_constants.cssClasses.PREFIX}-title-badge` }, /* @__PURE__ */ import_react.default.createElement(import__.Icon, { inverse: isInverse, size: 24, style: { marginRight: "4px" }, name: titleIconBadge.iconName }), /* @__PURE__ */ import_react.default.createElement(import__.Text, { inverse: isInverse, size: "ContentC14Bold", className: `${import_constants.cssClasses.PREFIX}-title ${isInverse ? "inverse" : ""} ` }, titleIconBadge.title), /* @__PURE__ */ import_react.default.createElement("div", { className: `${import_constants.cssClasses.PREFIX}-badge` }, +titleIconBadge.badge > 99 ? "99+" : titleIconBadge.badge)) : /* @__PURE__ */ import_react.default.createElement(import__.Text, { inverse: isInverse, size: "ContentC14Bold", className: `${import_constants.cssClasses.PREFIX}-title ${isInverse ? "inverse" : ""} ` }, title)),
|
|
@@ -56,8 +56,8 @@ var designTokens = {
|
|
|
56
56
|
// hover边框颜色
|
|
57
57
|
activeBorderColor: (0, import_tokenHelper.getToken)("colorInputBorderActive"),
|
|
58
58
|
// active边框颜色
|
|
59
|
-
activeShadow: "
|
|
60
|
-
// 边框shadow颜色
|
|
59
|
+
activeShadow: "none",
|
|
60
|
+
// activeShadow: '0px 0px 0px 2px #180C8E33', // 边框shadow颜色
|
|
61
61
|
colorBgContainer: (0, import_tokenHelper.getToken)("colorInputBackground"),
|
|
62
62
|
// 背景颜色
|
|
63
63
|
borderWidthInputStandard: (0, import_tokenHelper.getToken)("borderWidthInputStandard"),
|
|
@@ -66,7 +66,7 @@ var designTokens = {
|
|
|
66
66
|
// 标准边框颜色
|
|
67
67
|
colorInputTextPlaceholder: (0, import_tokenHelper.getToken)("colorInputTextPlaceholder"),
|
|
68
68
|
// placeholder文本颜色
|
|
69
|
-
fontSize: (0, import_tokenHelper.getToken)("
|
|
69
|
+
fontSize: (0, import_tokenHelper.getToken)("ContentC14Regular"),
|
|
70
70
|
// 字体大小
|
|
71
71
|
lineHeight: 1.5
|
|
72
72
|
// colorBgContainerDisabled: getToken('colorInputBackgroundHaze'), // 背景颜色
|
|
@@ -68,6 +68,7 @@ var import_style = require("./style/index.less");
|
|
|
68
68
|
var StickyFooter = (props) => {
|
|
69
69
|
const _a = props, {
|
|
70
70
|
type = "default",
|
|
71
|
+
colorPrice,
|
|
71
72
|
price,
|
|
72
73
|
priceStrikethrough,
|
|
73
74
|
buttonText = "Confirm",
|
|
@@ -77,9 +78,12 @@ var StickyFooter = (props) => {
|
|
|
77
78
|
children,
|
|
78
79
|
onDropDownClick,
|
|
79
80
|
onRightBtnClick,
|
|
80
|
-
onBtnClick
|
|
81
|
+
onBtnClick,
|
|
82
|
+
showIcon = true,
|
|
83
|
+
iconType
|
|
81
84
|
} = _a, attr = __objRest(_a, [
|
|
82
85
|
"type",
|
|
86
|
+
"colorPrice",
|
|
83
87
|
"price",
|
|
84
88
|
"priceStrikethrough",
|
|
85
89
|
"buttonText",
|
|
@@ -89,7 +93,9 @@ var StickyFooter = (props) => {
|
|
|
89
93
|
"children",
|
|
90
94
|
"onDropDownClick",
|
|
91
95
|
"onRightBtnClick",
|
|
92
|
-
"onBtnClick"
|
|
96
|
+
"onBtnClick",
|
|
97
|
+
"showIcon",
|
|
98
|
+
"iconType"
|
|
93
99
|
]);
|
|
94
100
|
const {
|
|
95
101
|
padding,
|
|
@@ -126,13 +132,15 @@ var StickyFooter = (props) => {
|
|
|
126
132
|
import__.Amount,
|
|
127
133
|
{
|
|
128
134
|
priceStrikethrough,
|
|
129
|
-
priceColor,
|
|
135
|
+
priceColor: colorPrice || priceColor,
|
|
130
136
|
textColor: title === "discount" ? textDiscontColor : textColor,
|
|
131
137
|
colorStrikethrough,
|
|
132
138
|
title,
|
|
133
139
|
position,
|
|
134
140
|
size,
|
|
135
|
-
|
|
141
|
+
showIcon,
|
|
142
|
+
onDropDownClick,
|
|
143
|
+
iconType
|
|
136
144
|
},
|
|
137
145
|
price
|
|
138
146
|
), /* @__PURE__ */ import_react.default.createElement(import__.Button, { type: "primary", onClick: onRightBtnClick }, buttonText)),
|
|
@@ -11,7 +11,7 @@ declare const designTokens: {
|
|
|
11
11
|
borderWidthInputStandard: any;
|
|
12
12
|
colorBorder: any;
|
|
13
13
|
colorInputTextPlaceholder: any;
|
|
14
|
-
fontSize:
|
|
14
|
+
fontSize: any;
|
|
15
15
|
colorBgContainerDisabled: any;
|
|
16
16
|
};
|
|
17
17
|
declare const designFormTokens: {
|
|
@@ -20,8 +20,8 @@ declare const designFormTokens: {
|
|
|
20
20
|
lineHeight: number;
|
|
21
21
|
labelHeight: number;
|
|
22
22
|
labelColor: any;
|
|
23
|
-
labelFontSize:
|
|
24
|
-
fontSize:
|
|
23
|
+
labelFontSize: any;
|
|
24
|
+
fontSize: any;
|
|
25
25
|
itemMarginBottom: number;
|
|
26
26
|
};
|
|
27
27
|
declare const designFormHorizontalTokens: {
|
|
@@ -31,8 +31,8 @@ declare const designFormHorizontalTokens: {
|
|
|
31
31
|
labelHeight: string;
|
|
32
32
|
labelColor: any;
|
|
33
33
|
lineHeight: number;
|
|
34
|
-
labelFontSize:
|
|
35
|
-
fontSize:
|
|
34
|
+
labelFontSize: any;
|
|
35
|
+
fontSize: any;
|
|
36
36
|
itemMarginBottom: number;
|
|
37
37
|
};
|
|
38
38
|
declare const styleToken: {
|
|
@@ -53,7 +53,7 @@ var designTokens = {
|
|
|
53
53
|
// 标准边框颜色
|
|
54
54
|
colorInputTextPlaceholder: (0, import_tokenHelper.getToken)("colorInputTextPlaceholder"),
|
|
55
55
|
// placeholder文本颜色
|
|
56
|
-
fontSize:
|
|
56
|
+
fontSize: (0, import_tokenHelper.getToken)("ContentC14Regular"),
|
|
57
57
|
// 字体大小
|
|
58
58
|
colorBgContainerDisabled: (0, import_tokenHelper.getToken)("colorInputBackgroundHaze")
|
|
59
59
|
// 背景颜色
|
|
@@ -62,14 +62,14 @@ var designFormTokens = {
|
|
|
62
62
|
labelRequiredMarkColor: (0, import_tokenHelper.getToken)("colorInputTextError"),
|
|
63
63
|
colorError: (0, import_tokenHelper.getToken)("colorInputTextError"),
|
|
64
64
|
// 错误信息文本颜色
|
|
65
|
-
lineHeight: 24 /
|
|
65
|
+
lineHeight: 24 / (0, import_tokenHelper.getToken)("ContentC14Regular"),
|
|
66
66
|
// 行高
|
|
67
|
-
labelHeight: 24 /
|
|
67
|
+
labelHeight: 24 / (0, import_tokenHelper.getToken)("ContentC14Regular"),
|
|
68
68
|
// 行高
|
|
69
69
|
labelColor: (0, import_tokenHelper.getToken)("colorInputTextLabel"),
|
|
70
70
|
// label文本颜色
|
|
71
|
-
labelFontSize:
|
|
72
|
-
fontSize:
|
|
71
|
+
labelFontSize: (0, import_tokenHelper.getToken)("ContentC14Regular"),
|
|
72
|
+
fontSize: (0, import_tokenHelper.getToken)("ContentC14Regular"),
|
|
73
73
|
// 字体大小
|
|
74
74
|
itemMarginBottom: 28
|
|
75
75
|
};
|
|
@@ -82,10 +82,10 @@ var designFormHorizontalTokens = {
|
|
|
82
82
|
// label高
|
|
83
83
|
labelColor: (0, import_tokenHelper.getToken)("colorInputTextLabel"),
|
|
84
84
|
// label文本颜色
|
|
85
|
-
lineHeight: 24 /
|
|
85
|
+
lineHeight: 24 / (0, import_tokenHelper.getToken)("ContentC14Regular"),
|
|
86
86
|
// 行高
|
|
87
|
-
labelFontSize:
|
|
88
|
-
fontSize:
|
|
87
|
+
labelFontSize: (0, import_tokenHelper.getToken)("ContentC14Regular"),
|
|
88
|
+
fontSize: (0, import_tokenHelper.getToken)("ContentC14Regular"),
|
|
89
89
|
// 字体大小
|
|
90
90
|
itemMarginBottom: 28
|
|
91
91
|
};
|