@digitalc/dxp-ui 0.0.5-alpha.10 → 0.0.5-alpha.11
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/README.md +1 -1
- package/es/assets/token.json +4 -1
- package/es/components/Amount/index.d.ts +1 -0
- package/es/components/Amount/index.js +4 -2
- package/es/components/Button/index.d.ts +14 -18
- package/es/components/Button/index.js +82 -36
- package/es/components/Icon/index.d.ts +1 -1
- package/es/components/Image/index.d.ts +2 -0
- package/es/components/Image/index.js +11 -2
- package/es/components/ListItem/designTokens.d.ts +30 -0
- package/es/components/ListItem/designTokens.js +31 -0
- package/es/components/ListItem/index.d.ts +60 -0
- package/es/components/ListItem/index.js +227 -0
- package/es/components/ListItem/style/index.less +77 -0
- package/es/components/ListItem/style/variables.less +1 -0
- package/es/components/Navigation/index.d.ts +1 -0
- package/es/components/Navigation/index.js +8 -4
- package/es/components/Navigation/style/index.less +7 -0
- package/es/components/StickyFooter/index.d.ts +3 -0
- package/es/components/StickyFooter/index.js +7 -1
- package/es/components/Tabs/index.js +1 -1
- package/es/components/Text/designTokens.d.ts +6 -0
- package/es/components/Text/designTokens.js +7 -1
- package/es/components/Text/index.js +14 -2
- package/es/components/TextLink/index.d.ts +1 -1
- package/es/components/index.d.ts +3 -0
- package/es/components/index.js +4 -1
- package/es/fonts/SF/SF-Pro-Display-BlackItalic.otf +0 -0
- package/es/fonts/SF/SF-Pro-Text-Bold.otf +0 -0
- package/es/fonts/SF/SF-Pro-Text-Medium.eot +0 -0
- package/es/fonts/SF/SF-Pro-Text-Medium.otf +0 -0
- package/es/fonts/SF/SF-Pro-Text-Medium.svg +40549 -0
- package/es/fonts/SF/SF-Pro-Text-Medium.ttf +0 -0
- package/es/fonts/SF/SF-Pro-Text-Medium.woff +0 -0
- package/es/fonts/SF/SF-Pro-Text-Medium.woff2 +0 -0
- package/es/fonts/SF/SF-Pro-Text-Regular.otf +0 -0
- package/es/fonts/SF/SF-Pro-Text-Regular.ttf +0 -0
- package/es/fonts/SF/SF-Pro-Text-Semibold.otf +0 -0
- package/es/fonts/SF/SF-Pro-Text-SemiboldItalic.otf +0 -0
- package/es/style/variables.less +53 -27
- package/es/tokens/DXPGlobal.d.ts +1 -1
- package/es/tokens/DXPGlobal.js +3 -2
- package/es/utils/tokenManager.d.ts +12 -0
- package/es/utils/tokenManager.js +11 -5
- package/lib/assets/token.json +4 -1
- package/lib/components/Amount/index.d.ts +1 -0
- package/lib/components/Amount/index.js +5 -3
- package/lib/components/Button/demo/index.d.ts +3 -0
- package/lib/components/Button/demo/index.js +138 -0
- package/lib/components/Button/index.d.ts +14 -18
- package/lib/components/Button/index.js +46 -15
- package/lib/components/Icon/index.d.ts +1 -1
- package/lib/components/Image/index.d.ts +2 -0
- package/lib/components/Image/index.js +23 -3
- package/lib/components/ListItem/designTokens.d.ts +30 -0
- package/lib/components/ListItem/designTokens.js +65 -0
- package/lib/components/ListItem/index.d.ts +60 -0
- package/lib/components/ListItem/index.js +348 -0
- package/lib/components/ListItem/style/index.less +77 -0
- package/lib/components/ListItem/style/variables.less +1 -0
- package/lib/components/Navigation/index.d.ts +1 -0
- package/lib/components/Navigation/index.js +18 -5
- package/lib/components/Navigation/style/index.less +7 -0
- package/lib/components/StickyFooter/index.d.ts +3 -0
- package/lib/components/StickyFooter/index.js +12 -5
- package/lib/components/Tabs/index.js +1 -1
- package/lib/components/Text/designTokens.d.ts +6 -0
- package/lib/components/Text/designTokens.js +7 -1
- package/lib/components/Text/index.js +52 -37
- package/lib/components/TextLink/index.d.ts +1 -1
- package/lib/components/index.d.ts +3 -0
- package/lib/components/index.js +7 -0
- package/lib/fonts/SF/SF-Pro-Display-BlackItalic.otf +0 -0
- package/lib/fonts/SF/SF-Pro-Text-Bold.otf +0 -0
- package/lib/fonts/SF/SF-Pro-Text-Medium.eot +0 -0
- package/lib/fonts/SF/SF-Pro-Text-Medium.otf +0 -0
- package/lib/fonts/SF/SF-Pro-Text-Medium.svg +40549 -0
- package/lib/fonts/SF/SF-Pro-Text-Medium.ttf +0 -0
- package/lib/fonts/SF/SF-Pro-Text-Medium.woff +0 -0
- package/lib/fonts/SF/SF-Pro-Text-Medium.woff2 +0 -0
- package/lib/fonts/SF/SF-Pro-Text-Regular.otf +0 -0
- package/lib/fonts/SF/SF-Pro-Text-Regular.ttf +0 -0
- package/lib/fonts/SF/SF-Pro-Text-Semibold.otf +0 -0
- package/lib/fonts/SF/SF-Pro-Text-SemiboldItalic.otf +0 -0
- package/lib/style/variables.less +53 -27
- package/lib/tokens/DXPGlobal.d.ts +1 -1
- package/lib/tokens/DXPGlobal.js +1 -1
- package/lib/utils/tokenManager.d.ts +12 -0
- package/lib/utils/tokenManager.js +9 -3
- package/package.json +2 -2
- package/umd/dxp-ui.min.css +1 -1
- package/umd/dxp-ui.min.js +1 -1
- package/umd/static/SF-Pro-Text-Bold.89d66db4.otf +0 -0
- package/umd/static/SF-Pro-Text-Regular.e042d171.ttf +0 -0
- package/umd/static/SF-Pro-Text-Regular.f09e811b.otf +0 -0
- package/umd/static/SF-Pro-Text-Semibold.a5a4b4bc.otf +0 -0
- package/umd/static/SF-Pro-Text-SemiboldItalic.ed8f4a28.otf +0 -0
|
@@ -76,7 +76,8 @@ var Navigation = (_a) => {
|
|
|
76
76
|
goBack,
|
|
77
77
|
isInverse,
|
|
78
78
|
titleIconBadge,
|
|
79
|
-
imgBackground
|
|
79
|
+
imgBackground,
|
|
80
|
+
noRight = false
|
|
80
81
|
} = _b, restProps = __objRest(_b, [
|
|
81
82
|
"hideBorder",
|
|
82
83
|
"className",
|
|
@@ -86,7 +87,8 @@ var Navigation = (_a) => {
|
|
|
86
87
|
"goBack",
|
|
87
88
|
"isInverse",
|
|
88
89
|
"titleIconBadge",
|
|
89
|
-
"imgBackground"
|
|
90
|
+
"imgBackground",
|
|
91
|
+
"noRight"
|
|
90
92
|
]);
|
|
91
93
|
var _a2;
|
|
92
94
|
const {
|
|
@@ -111,6 +113,7 @@ var Navigation = (_a) => {
|
|
|
111
113
|
padding-left: ${spacingTopNavigationPaddingHorizontal}px;
|
|
112
114
|
padding-right: ${spacingTopNavigationPaddingHorizontal}px;
|
|
113
115
|
padding-bottom: ${spacingTopNavigationPaddingBottom}px;
|
|
116
|
+
padding-top: ${spacingTopNavigationPaddingBottom}px; // TODO:设计稿上没有暂时加的
|
|
114
117
|
border-bottom: 1px solid ${colorTopNavigationBorderBottom};
|
|
115
118
|
background-color:${colorTopNavigationBackground};
|
|
116
119
|
&.inverse {
|
|
@@ -122,6 +125,13 @@ var Navigation = (_a) => {
|
|
|
122
125
|
&.hideBorder {
|
|
123
126
|
border-bottom:none;
|
|
124
127
|
}
|
|
128
|
+
&.noRight{
|
|
129
|
+
justify-content:center !important;
|
|
130
|
+
.${import_constants.cssClasses.PREFIX}-header-back {
|
|
131
|
+
position:absolute;
|
|
132
|
+
left: ${spacingTopNavigationPaddingHorizontal}px;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
125
135
|
}
|
|
126
136
|
.${import_constants.cssClasses.PREFIX}-title {
|
|
127
137
|
color:${colorTopNavigationTitleStandard};
|
|
@@ -149,12 +159,15 @@ var Navigation = (_a) => {
|
|
|
149
159
|
${hideBorder ? "hideBorder" : ""}
|
|
150
160
|
${isInverse ? "inverse" : ""}
|
|
151
161
|
${imgBackground ? "imgBackground" : ""}
|
|
162
|
+
${noRight ? "noRight" : ""}
|
|
152
163
|
${className || ""}
|
|
153
164
|
`
|
|
154
165
|
}, restProps),
|
|
155
|
-
/* @__PURE__ */ import_react.default.createElement(import__.IconButton, { inverse: isInverse, size: "medium", name: "icon-a-Backarrow-copy", onClick: onGoBack }),
|
|
156
|
-
/* @__PURE__ */ import_react.default.createElement("div",
|
|
157
|
-
|
|
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("div", { className: `
|
|
168
|
+
${import_constants.cssClasses.PREFIX}-title-warp
|
|
169
|
+
` }, !(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)),
|
|
170
|
+
!noRight && /* @__PURE__ */ import_react.default.createElement(import__.IconButtonGroup, { className: `${import_constants.cssClasses.PREFIX}-rightWarp` }, (_a2 = rightIcons == null ? void 0 : rightIcons.slice(0, 3)) == null ? void 0 : _a2.map((i, index) => /* @__PURE__ */ import_react.default.createElement(import__.IconButton, { inverse: isInverse, key: index, name: i.iconName, size: "medium", onClick: i.onIconClick })), !(0, import_lodash.isEmpty)(rightLink) && /* @__PURE__ */ import_react.default.createElement(import__.TextLink, { inverse: isInverse, className: `${import_constants.cssClasses.PREFIX}-right-link`, type: import__.TextLinkEnum.default, text: rightLink.linkText, onClick: rightLink.onLinkClick }))
|
|
158
171
|
);
|
|
159
172
|
};
|
|
160
173
|
var Navigation_default = Navigation;
|
|
@@ -13,6 +13,13 @@
|
|
|
13
13
|
z-index: 999;
|
|
14
14
|
box-shadow: 0px -2px 10px 0px rgba(26, 24, 134, 0.1);
|
|
15
15
|
|
|
16
|
+
|
|
17
|
+
.@{prefix}-title-warp {
|
|
18
|
+
white-space: nowrap;
|
|
19
|
+
overflow: hidden;
|
|
20
|
+
text-overflow: ellipsis;
|
|
21
|
+
}
|
|
22
|
+
|
|
16
23
|
.@{prefix}-title {
|
|
17
24
|
white-space: nowrap;
|
|
18
25
|
overflow: hidden;
|
|
@@ -8,6 +8,9 @@ export interface StickyFooterProps {
|
|
|
8
8
|
priceStrikethrough?: string;
|
|
9
9
|
style?: React.CSSProperties;
|
|
10
10
|
[key: string]: any;
|
|
11
|
+
onDropDownClick?: React.MouseEventHandler;
|
|
12
|
+
onRightBtnClick?: React.MouseEventHandler;
|
|
13
|
+
onBtnClick?: React.MouseEventHandler;
|
|
11
14
|
}
|
|
12
15
|
declare const StickyFooter: (props: StickyFooterProps) => React.JSX.Element;
|
|
13
16
|
export default StickyFooter;
|
|
@@ -74,7 +74,10 @@ var StickyFooter = (props) => {
|
|
|
74
74
|
title,
|
|
75
75
|
position,
|
|
76
76
|
size,
|
|
77
|
-
children
|
|
77
|
+
children,
|
|
78
|
+
onDropDownClick,
|
|
79
|
+
onRightBtnClick,
|
|
80
|
+
onBtnClick
|
|
78
81
|
} = _a, attr = __objRest(_a, [
|
|
79
82
|
"type",
|
|
80
83
|
"price",
|
|
@@ -83,7 +86,10 @@ var StickyFooter = (props) => {
|
|
|
83
86
|
"title",
|
|
84
87
|
"position",
|
|
85
88
|
"size",
|
|
86
|
-
"children"
|
|
89
|
+
"children",
|
|
90
|
+
"onDropDownClick",
|
|
91
|
+
"onRightBtnClick",
|
|
92
|
+
"onBtnClick"
|
|
87
93
|
]);
|
|
88
94
|
const {
|
|
89
95
|
padding,
|
|
@@ -115,7 +121,7 @@ var StickyFooter = (props) => {
|
|
|
115
121
|
className: `${import_constants.cssClasses.PREFIX}-stickyFooter ${import_constants.cssClasses.PREFIX}-stickyFooter-${type}`,
|
|
116
122
|
onClick: props.onClick
|
|
117
123
|
}, attr),
|
|
118
|
-
type === "default" && /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(import__.Button, { type: "primary", block: true }, buttonText)),
|
|
124
|
+
type === "default" && /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(import__.Button, { type: "primary", block: true, onClick: onBtnClick }, buttonText)),
|
|
119
125
|
type === "priceVariant1" && /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(
|
|
120
126
|
import__.Amount,
|
|
121
127
|
{
|
|
@@ -125,10 +131,11 @@ var StickyFooter = (props) => {
|
|
|
125
131
|
colorStrikethrough,
|
|
126
132
|
title,
|
|
127
133
|
position,
|
|
128
|
-
size
|
|
134
|
+
size,
|
|
135
|
+
onDropDownClick
|
|
129
136
|
},
|
|
130
137
|
price
|
|
131
|
-
), /* @__PURE__ */ import_react.default.createElement(import__.Button, { type: "primary" }, buttonText)),
|
|
138
|
+
), /* @__PURE__ */ import_react.default.createElement(import__.Button, { type: "primary", onClick: onRightBtnClick }, buttonText)),
|
|
132
139
|
children
|
|
133
140
|
);
|
|
134
141
|
};
|
|
@@ -41,5 +41,11 @@ declare const otherDesignTokens: {
|
|
|
41
41
|
fontSizeMobileTitleT41: string;
|
|
42
42
|
fontSizeMobileTitleT45: string;
|
|
43
43
|
fontSizeMobileNavigation: string;
|
|
44
|
+
fontFamilyPromaryRegular: any;
|
|
45
|
+
fontFamilyPromarySemiBold: any;
|
|
46
|
+
fontFamilyPromaryBold: any;
|
|
47
|
+
fontFamilySecondaryRegular: any;
|
|
48
|
+
fontFamilySecondarySemiBold: any;
|
|
49
|
+
fontFamilySecondaryBold: any;
|
|
44
50
|
};
|
|
45
51
|
export { otherDesignTokens };
|
|
@@ -65,5 +65,11 @@ var otherDesignTokens = {
|
|
|
65
65
|
fontSizeMobileTitleT34: `${(0, import_tokenHelper.getToken)("fontSizeMobileTitleT34")}px`,
|
|
66
66
|
fontSizeMobileTitleT41: `${(0, import_tokenHelper.getToken)("fontSizeMobileTitleT41")}px`,
|
|
67
67
|
fontSizeMobileTitleT45: `${(0, import_tokenHelper.getToken)("fontSizeMobileTitleT45")}px`,
|
|
68
|
-
fontSizeMobileNavigation: `${(0, import_tokenHelper.getToken)("fontSizeMobileNavigation")}px
|
|
68
|
+
fontSizeMobileNavigation: `${(0, import_tokenHelper.getToken)("fontSizeMobileNavigation")}px`,
|
|
69
|
+
fontFamilyPromaryRegular: (0, import_tokenHelper.getToken)("fontFamilyPromaryRegular"),
|
|
70
|
+
fontFamilyPromarySemiBold: (0, import_tokenHelper.getToken)("fontFamilyPromarySemiBold"),
|
|
71
|
+
fontFamilyPromaryBold: (0, import_tokenHelper.getToken)("fontFamilyPromaryBold"),
|
|
72
|
+
fontFamilySecondaryRegular: (0, import_tokenHelper.getToken)("fontFamilySecondaryRegular"),
|
|
73
|
+
fontFamilySecondarySemiBold: (0, import_tokenHelper.getToken)("fontFamilySecondarySemiBold"),
|
|
74
|
+
fontFamilySecondaryBold: (0, import_tokenHelper.getToken)("fontFamilySecondaryBold")
|
|
69
75
|
};
|
|
@@ -121,10 +121,24 @@ var Text = (props) => {
|
|
|
121
121
|
// fontSizeMobileTitleT25,
|
|
122
122
|
fontSizeMobileTitleT32,
|
|
123
123
|
// fontSizeMobileTitleT34,
|
|
124
|
-
fontSizeMobileTitleT41
|
|
124
|
+
fontSizeMobileTitleT41,
|
|
125
125
|
// fontSizeMobileTitleT45,
|
|
126
126
|
// fontSizeMobileNavigation,
|
|
127
|
+
// fontFamilyPromaryRegular,
|
|
128
|
+
// fontFamilyPromarySemiBold,
|
|
129
|
+
fontFamilyPromaryBold,
|
|
130
|
+
fontFamilySecondaryRegular,
|
|
131
|
+
fontFamilySecondarySemiBold,
|
|
132
|
+
fontFamilySecondaryBold
|
|
127
133
|
} = import_designTokens.otherDesignTokens;
|
|
134
|
+
const fontFamilyMap = {
|
|
135
|
+
fontFamilyPromaryRegular: "Regular",
|
|
136
|
+
fontFamilyPromarySemiBold: "SemiBold",
|
|
137
|
+
fontFamilyPromaryBold: "Bold",
|
|
138
|
+
fontFamilySecondaryRegular: "Regular",
|
|
139
|
+
fontFamilySecondarySemiBold: "SemiBold",
|
|
140
|
+
fontFamilySecondaryBold: "Bold"
|
|
141
|
+
};
|
|
128
142
|
const useCustomButtonStyle = () => {
|
|
129
143
|
const hashId = (0, import_cssinjs.useStyleRegister)({
|
|
130
144
|
theme: import_theme.theme,
|
|
@@ -134,43 +148,44 @@ var Text = (props) => {
|
|
|
134
148
|
.${prefixCls}-mobile.${prefixCls}-size-TitleT41Bold {
|
|
135
149
|
font-size: ${fontSizeMobileTitleT41};
|
|
136
150
|
line-height: 1.2;
|
|
137
|
-
font-family:
|
|
151
|
+
font-family: ${fontFamilyPromaryBold}-${fontFamilyMap.fontFamilyPromaryBold};
|
|
152
|
+
// font-family: ${fontFamilyPromaryBold}-${fontFamilyMap.fontFamilyPromaryBold};
|
|
138
153
|
font-weight: bold;
|
|
139
154
|
}
|
|
140
155
|
.${prefixCls}-mobile.${prefixCls}-size-TitleT32Bold {
|
|
141
156
|
font-size: ${fontSizeMobileTitleT32};
|
|
142
157
|
line-height: 1.2;
|
|
143
|
-
font-family:
|
|
158
|
+
font-family: ${fontFamilyPromaryBold}-${fontFamilyMap.fontFamilyPromaryBold};
|
|
144
159
|
font-weight: bold;
|
|
145
160
|
}
|
|
146
161
|
.${prefixCls}-mobile.${prefixCls}-size-TitleT23Bold {
|
|
147
162
|
font-size: ${fontSizeMobileTitleT23};
|
|
148
163
|
line-height: 1.2;
|
|
149
|
-
font-family:
|
|
164
|
+
font-family: ${fontFamilyPromaryBold}-${fontFamilyMap.fontFamilyPromaryBold};
|
|
150
165
|
font-weight: bold;
|
|
151
166
|
}
|
|
152
167
|
.${prefixCls}-mobile.${prefixCls}-size-TitleT21Bold {
|
|
153
168
|
font-size: ${fontSizeMobileTitleT21};
|
|
154
169
|
line-height: 1.25;
|
|
155
|
-
font-family:
|
|
170
|
+
font-family: ${fontFamilyPromaryBold}-${fontFamilyMap.fontFamilyPromaryBold};
|
|
156
171
|
font-weight: bold;
|
|
157
172
|
}
|
|
158
173
|
.${prefixCls}-mobile.${prefixCls}-size-TitleT15Bold {
|
|
159
174
|
font-size: ${fontSizeMobileTitleT15};
|
|
160
175
|
line-height: 1.25;
|
|
161
|
-
font-family:
|
|
176
|
+
font-family: ${fontFamilyPromaryBold}-${fontFamilyMap.fontFamilyPromaryBold};
|
|
162
177
|
font-weight: bold;
|
|
163
178
|
}
|
|
164
179
|
.${prefixCls}-mobile.${prefixCls}-size-ContentC14Bold {
|
|
165
180
|
font-size: ${fontSizeMobileContentC14};
|
|
166
181
|
line-height: 1.5;
|
|
167
|
-
font-family:
|
|
182
|
+
font-family: ${fontFamilySecondaryBold}-${fontFamilyMap.fontFamilySecondaryBold};
|
|
168
183
|
font-weight: bold;
|
|
169
184
|
}
|
|
170
185
|
.${prefixCls}-mobile.${prefixCls}-size-ContentC14Regular {
|
|
171
186
|
font-size: ${fontSizeMobileContentC14};
|
|
172
187
|
line-height: 1.5;
|
|
173
|
-
font-family:
|
|
188
|
+
font-family: ${fontFamilySecondaryRegular}-${fontFamilyMap.fontFamilySecondaryRegular};
|
|
174
189
|
font-weight: normal;
|
|
175
190
|
letter-spacing: 0.1px;
|
|
176
191
|
}
|
|
@@ -178,14 +193,14 @@ var Text = (props) => {
|
|
|
178
193
|
color: #757575;
|
|
179
194
|
font-size: ${fontSizeMobileContentC14};
|
|
180
195
|
line-height: 1.5;
|
|
181
|
-
font-family:
|
|
196
|
+
font-family: ${fontFamilySecondaryRegular}-${fontFamilyMap.fontFamilySecondaryRegular};
|
|
182
197
|
font-weight: normal;
|
|
183
198
|
text-decoration: line-through;
|
|
184
199
|
letter-spacing: 0.1px;
|
|
185
200
|
}
|
|
186
201
|
.${prefixCls}-mobile.${prefixCls}-size-ContentC14TextLink {
|
|
187
202
|
color: #4E28E8;
|
|
188
|
-
font-family:
|
|
203
|
+
font-family: ${fontFamilySecondaryBold}-${fontFamilyMap.fontFamilySecondaryBold};
|
|
189
204
|
font-weight: bold;
|
|
190
205
|
font-size: ${fontSizeMobileContentC14};
|
|
191
206
|
line-height: 1.5;
|
|
@@ -195,13 +210,13 @@ var Text = (props) => {
|
|
|
195
210
|
.${prefixCls}-mobile.${prefixCls}-size-ContentC13Bold {
|
|
196
211
|
font-size: ${fontSizeMobileContentC13};
|
|
197
212
|
line-height: 1.5;
|
|
198
|
-
font-family:
|
|
213
|
+
font-family: ${fontFamilySecondaryBold}-${fontFamilyMap.fontFamilySecondaryBold};
|
|
199
214
|
font-weight: bold;
|
|
200
215
|
}
|
|
201
216
|
.${prefixCls}-mobile.${prefixCls}-size-ContentC13Regular {
|
|
202
217
|
font-size: ${fontSizeMobileContentC13};
|
|
203
218
|
line-height: 1.5;
|
|
204
|
-
font-family:
|
|
219
|
+
font-family: ${fontFamilySecondaryRegular}-${fontFamilyMap.fontFamilySecondaryRegular};
|
|
205
220
|
font-weight: normal;
|
|
206
221
|
letter-spacing: 0.1px;
|
|
207
222
|
}
|
|
@@ -209,14 +224,14 @@ var Text = (props) => {
|
|
|
209
224
|
color: #757575;
|
|
210
225
|
font-size: ${fontSizeMobileContentC13};
|
|
211
226
|
line-height: 1.5;
|
|
212
|
-
font-family:
|
|
227
|
+
font-family: ${fontFamilySecondaryRegular}-${fontFamilyMap.fontFamilySecondaryRegular};
|
|
213
228
|
font-weight: normal;
|
|
214
229
|
text-decoration: line-through;
|
|
215
230
|
letter-spacing: 0.1px;
|
|
216
231
|
}
|
|
217
232
|
.${prefixCls}-mobile.${prefixCls}-size-ContentC13TextLink {
|
|
218
233
|
color: #4E28E8;
|
|
219
|
-
font-family:
|
|
234
|
+
font-family: ${fontFamilySecondaryBold}-${fontFamilyMap.fontFamilySecondaryBold};
|
|
220
235
|
font-weight: bold;
|
|
221
236
|
font-size: ${fontSizeMobileContentC13};
|
|
222
237
|
line-height: 1.5;
|
|
@@ -224,7 +239,7 @@ var Text = (props) => {
|
|
|
224
239
|
letter-spacing: 0.1px;
|
|
225
240
|
}
|
|
226
241
|
.${prefixCls}-mobile.${prefixCls}-size-ContentC12Regular {
|
|
227
|
-
font-family:
|
|
242
|
+
font-family: ${fontFamilySecondaryRegular}-${fontFamilyMap.fontFamilySecondaryRegular};
|
|
228
243
|
font-weight: normal;
|
|
229
244
|
font-size: ${fontSizeMobileContentC12};
|
|
230
245
|
line-height: 1.5;
|
|
@@ -232,7 +247,7 @@ var Text = (props) => {
|
|
|
232
247
|
}
|
|
233
248
|
.${prefixCls}-mobile.${prefixCls}-size-ContentC12Strikethrough {
|
|
234
249
|
color: #757575;
|
|
235
|
-
font-family:
|
|
250
|
+
font-family: ${fontFamilySecondaryRegular}-${fontFamilyMap.fontFamilySecondaryRegular};
|
|
236
251
|
font-weight: normal;
|
|
237
252
|
font-size: ${fontSizeMobileContentC12};
|
|
238
253
|
line-height: 1.5;
|
|
@@ -240,14 +255,14 @@ var Text = (props) => {
|
|
|
240
255
|
letter-spacing: 0.2px;
|
|
241
256
|
}
|
|
242
257
|
.${prefixCls}-mobile.${prefixCls}-size-ContentC12SemiBold {
|
|
243
|
-
font-family:
|
|
258
|
+
font-family: ${fontFamilySecondarySemiBold}-${fontFamilyMap.fontFamilySecondarySemiBold};
|
|
244
259
|
font-weight: bold;
|
|
245
260
|
font-size: ${fontSizeMobileContentC12};
|
|
246
261
|
line-height: 1.5;
|
|
247
262
|
letter-spacing: 0.2px;
|
|
248
263
|
}
|
|
249
264
|
.${prefixCls}-mobile.${prefixCls}-size-ContentC12Bold {
|
|
250
|
-
font-family:
|
|
265
|
+
font-family: ${fontFamilySecondaryBold}-${fontFamilyMap.fontFamilySecondaryBold};
|
|
251
266
|
font-weight: bold;
|
|
252
267
|
font-size: ${fontSizeMobileContentC12};
|
|
253
268
|
line-height: 1.5;
|
|
@@ -255,7 +270,7 @@ var Text = (props) => {
|
|
|
255
270
|
}
|
|
256
271
|
.${prefixCls}-mobile.${prefixCls}-size-ContentC12TextLink {
|
|
257
272
|
color: #4E28E8;
|
|
258
|
-
font-family:
|
|
273
|
+
font-family: ${fontFamilySecondaryBold}-${fontFamilyMap.fontFamilySecondaryBold};
|
|
259
274
|
font-weight: bold;
|
|
260
275
|
font-size: ${fontSizeMobileContentC12};
|
|
261
276
|
line-height: 1.5;
|
|
@@ -265,43 +280,43 @@ var Text = (props) => {
|
|
|
265
280
|
.${prefixCls}-desktop.${prefixCls}-size-TitleT41Bold {
|
|
266
281
|
font-size: ${fontSizeDesktopTitleT41};
|
|
267
282
|
line-height: 1.2;
|
|
268
|
-
font-family:
|
|
283
|
+
font-family: ${fontFamilyPromaryBold}-${fontFamilyMap.fontFamilyPromaryBold};
|
|
269
284
|
font-weight: bold;
|
|
270
285
|
}
|
|
271
286
|
.${prefixCls}-desktop.${prefixCls}-size-TitleT32Bold {
|
|
272
287
|
font-size: ${fontSizeDesktopTitleT32};
|
|
273
288
|
line-height: 1.2;
|
|
274
|
-
font-family:
|
|
289
|
+
font-family: ${fontFamilyPromaryBold}-${fontFamilyMap.fontFamilyPromaryBold};
|
|
275
290
|
font-weight: bold;
|
|
276
291
|
}
|
|
277
292
|
.${prefixCls}-desktop.${prefixCls}-size-TitleT23Bold {
|
|
278
293
|
font-size: ${fontSizeDesktopTitleT23};
|
|
279
294
|
line-height: 1.2;
|
|
280
|
-
font-family:
|
|
295
|
+
font-family: ${fontFamilyPromaryBold}-${fontFamilyMap.fontFamilyPromaryBold};
|
|
281
296
|
font-weight: bold;
|
|
282
297
|
}
|
|
283
298
|
.${prefixCls}-desktop.${prefixCls}-size-TitleT21Bold {
|
|
284
299
|
font-size: ${fontSizeDesktopTitleT21};
|
|
285
300
|
line-height: 1.25;
|
|
286
|
-
font-family:
|
|
301
|
+
font-family: ${fontFamilyPromaryBold}-${fontFamilyMap.fontFamilyPromaryBold};
|
|
287
302
|
font-weight: bold;
|
|
288
303
|
}
|
|
289
304
|
.${prefixCls}-desktop.${prefixCls}-size-TitleT15Bold {
|
|
290
305
|
font-size: ${fontSizeDesktopTitleT15};
|
|
291
306
|
line-height: 1.25;
|
|
292
|
-
font-family:
|
|
307
|
+
font-family: ${fontFamilyPromaryBold}-${fontFamilyMap.fontFamilyPromaryBold};
|
|
293
308
|
font-weight: bold;
|
|
294
309
|
}
|
|
295
310
|
.${prefixCls}-desktop.${prefixCls}-size-ContentC14Bold {
|
|
296
311
|
font-size: ${fontSizeDesktopContentC14};
|
|
297
312
|
line-height: 1.5;
|
|
298
|
-
font-family:
|
|
313
|
+
font-family: ${fontFamilySecondaryBold}-${fontFamilyMap.fontFamilySecondaryBold};
|
|
299
314
|
font-weight: bold;
|
|
300
315
|
}
|
|
301
316
|
.${prefixCls}-desktop.${prefixCls}-size-ContentC14Regular {
|
|
302
317
|
font-size: ${fontSizeDesktopContentC14};
|
|
303
318
|
line-height: 1.5;
|
|
304
|
-
font-family:
|
|
319
|
+
font-family: ${fontFamilySecondaryRegular}-${fontFamilyMap.fontFamilySecondaryRegular};
|
|
305
320
|
font-weight: normal;
|
|
306
321
|
letter-spacing: 0.1px;
|
|
307
322
|
}
|
|
@@ -309,14 +324,14 @@ var Text = (props) => {
|
|
|
309
324
|
color: #757575;
|
|
310
325
|
font-size: ${fontSizeDesktopContentC14};
|
|
311
326
|
line-height: 1.5;
|
|
312
|
-
font-family:
|
|
327
|
+
font-family: ${fontFamilySecondaryRegular}-${fontFamilyMap.fontFamilySecondaryRegular};
|
|
313
328
|
font-weight: normal;
|
|
314
329
|
text-decoration: line-through;
|
|
315
330
|
letter-spacing: 0.1px;
|
|
316
331
|
}
|
|
317
332
|
.${prefixCls}-desktop.${prefixCls}-size-ContentC14TextLink {
|
|
318
333
|
color: #4E28E8;
|
|
319
|
-
font-family:
|
|
334
|
+
font-family: ${fontFamilySecondaryBold}-${fontFamilyMap.fontFamilySecondaryBold};
|
|
320
335
|
font-weight: bold;
|
|
321
336
|
font-size: ${fontSizeDesktopContentC14};
|
|
322
337
|
line-height: 1.5;
|
|
@@ -326,13 +341,13 @@ var Text = (props) => {
|
|
|
326
341
|
.${prefixCls}-desktop.${prefixCls}-size-ContentC13Bold {
|
|
327
342
|
font-size: ${fontSizeDesktopContentC13};
|
|
328
343
|
line-height: 1.5;
|
|
329
|
-
font-family:
|
|
344
|
+
font-family: ${fontFamilySecondaryBold}-${fontFamilyMap.fontFamilySecondaryBold};
|
|
330
345
|
font-weight: bold;
|
|
331
346
|
}
|
|
332
347
|
.${prefixCls}-desktop.${prefixCls}-size-ContentC13Regular {
|
|
333
348
|
font-size: ${fontSizeDesktopContentC13};
|
|
334
349
|
line-height: 1.5;
|
|
335
|
-
font-family:
|
|
350
|
+
font-family: ${fontFamilySecondaryRegular}-${fontFamilyMap.fontFamilySecondaryRegular};
|
|
336
351
|
font-weight: normal;
|
|
337
352
|
letter-spacing: 0.1px;
|
|
338
353
|
}
|
|
@@ -340,14 +355,14 @@ var Text = (props) => {
|
|
|
340
355
|
color: #757575;
|
|
341
356
|
font-size: ${fontSizeDesktopContentC13};
|
|
342
357
|
line-height: 1.5;
|
|
343
|
-
font-family:
|
|
358
|
+
font-family: ${fontFamilySecondaryRegular}-${fontFamilyMap.fontFamilySecondaryRegular};
|
|
344
359
|
font-weight: normal;
|
|
345
360
|
text-decoration: line-through;
|
|
346
361
|
letter-spacing: 0.1px;
|
|
347
362
|
}
|
|
348
363
|
.${prefixCls}-desktop.${prefixCls}-size-ContentC13TextLink {
|
|
349
364
|
color: #4E28E8;
|
|
350
|
-
font-family:
|
|
365
|
+
font-family: ${fontFamilySecondaryBold}-${fontFamilyMap.fontFamilySecondaryBold};
|
|
351
366
|
font-weight: bold;
|
|
352
367
|
font-size: ${fontSizeDesktopContentC13};
|
|
353
368
|
line-height: 1.5;
|
|
@@ -355,7 +370,7 @@ var Text = (props) => {
|
|
|
355
370
|
letter-spacing: 0.1px;
|
|
356
371
|
}
|
|
357
372
|
.${prefixCls}-desktop.${prefixCls}-size-ContentC12Regular {
|
|
358
|
-
font-family:
|
|
373
|
+
font-family: ${fontFamilySecondaryRegular}-${fontFamilyMap.fontFamilySecondaryRegular};
|
|
359
374
|
font-weight: normal;
|
|
360
375
|
font-size: ${fontSizeDesktopContentC12};
|
|
361
376
|
line-height: 1.5;
|
|
@@ -363,7 +378,7 @@ var Text = (props) => {
|
|
|
363
378
|
}
|
|
364
379
|
.${prefixCls}-desktop.${prefixCls}-size-ContentC12Strikethrough {
|
|
365
380
|
color: #757575;
|
|
366
|
-
font-family:
|
|
381
|
+
font-family: ${fontFamilySecondaryRegular}-${fontFamilyMap.fontFamilySecondaryRegular};
|
|
367
382
|
font-weight: normal;
|
|
368
383
|
font-size: ${fontSizeDesktopContentC12};
|
|
369
384
|
line-height: 1.5;
|
|
@@ -371,14 +386,14 @@ var Text = (props) => {
|
|
|
371
386
|
letter-spacing: 0.2px;
|
|
372
387
|
}
|
|
373
388
|
.${prefixCls}-desktop.${prefixCls}-size-ContentC12SemiBold {
|
|
374
|
-
font-family:
|
|
389
|
+
font-family: ${fontFamilySecondarySemiBold}-${fontFamilyMap.fontFamilySecondarySemiBold};
|
|
375
390
|
font-weight: bold;
|
|
376
391
|
font-size: ${fontSizeDesktopContentC12};
|
|
377
392
|
line-height: 1.5;
|
|
378
393
|
letter-spacing: 0.2px;
|
|
379
394
|
}
|
|
380
395
|
.${prefixCls}-desktop.${prefixCls}-size-ContentC12Bold {
|
|
381
|
-
font-family:
|
|
396
|
+
font-family: ${fontFamilySecondaryBold}-${fontFamilyMap.fontFamilySecondaryBold};
|
|
382
397
|
font-weight: bold;
|
|
383
398
|
font-size: ${fontSizeDesktopContentC12};
|
|
384
399
|
line-height: 1.5;
|
|
@@ -386,7 +401,7 @@ var Text = (props) => {
|
|
|
386
401
|
}
|
|
387
402
|
.${prefixCls}-desktop.${prefixCls}-size-ContentC12TextLink {
|
|
388
403
|
color: #4E28E8;
|
|
389
|
-
font-family:
|
|
404
|
+
font-family: ${fontFamilySecondaryBold}-${fontFamilyMap.fontFamilySecondaryBold};
|
|
390
405
|
font-weight: bold;
|
|
391
406
|
font-size: ${fontSizeDesktopContentC12};
|
|
392
407
|
line-height: 1.5;
|
|
@@ -13,7 +13,7 @@ export interface ITextLinkProps {
|
|
|
13
13
|
iconSize?: string | number;
|
|
14
14
|
text?: string;
|
|
15
15
|
inverse?: boolean;
|
|
16
|
-
onClick?: () => void;
|
|
16
|
+
onClick?: (e: React.MouseEvent<HTMLDivElement>) => void;
|
|
17
17
|
className?: string;
|
|
18
18
|
}
|
|
19
19
|
declare const TextLink: (props: ITextLinkProps) => React.JSX.Element;
|
|
@@ -28,6 +28,7 @@ export { default as Toggle } from './Toggle';
|
|
|
28
28
|
export type { IToggleProps } from './Toggle';
|
|
29
29
|
export { default as Image } from './Image';
|
|
30
30
|
export type { IImageProps } from './Image';
|
|
31
|
+
export { BackImageEunm } from './Image';
|
|
31
32
|
export { default as Icon } from './Icon';
|
|
32
33
|
export type { IIconProps } from './Icon';
|
|
33
34
|
export { default as TextLink, TextLinkEnum } from './TextLink';
|
|
@@ -44,3 +45,5 @@ export type { BottomDrawerProps, DrawerType } from './Drawer';
|
|
|
44
45
|
export { DrawerTypeEnum } from './Drawer';
|
|
45
46
|
export { default as Navigation } from './Navigation';
|
|
46
47
|
export type { RightLinkConfig, RightIcon, TitleIconBadgeConfig, INavigationProps } from './Navigation';
|
|
48
|
+
export { default as ListItem } from './ListItem';
|
|
49
|
+
export { ListItemTypes, TAPPABLE_AREAS } from './ListItem';
|
package/lib/components/index.js
CHANGED
|
@@ -32,6 +32,7 @@ var components_exports = {};
|
|
|
32
32
|
__export(components_exports, {
|
|
33
33
|
Accordion: () => import_Accordion.default,
|
|
34
34
|
Amount: () => import_Amount.default,
|
|
35
|
+
BackImageEunm: () => import_Image2.BackImageEunm,
|
|
35
36
|
Button: () => import_Button.default,
|
|
36
37
|
Chip: () => import_Chip.default,
|
|
37
38
|
Divider: () => import_Divider.default,
|
|
@@ -41,11 +42,14 @@ __export(components_exports, {
|
|
|
41
42
|
IconButton: () => import_IconButton.default,
|
|
42
43
|
IconButtonGroup: () => import_IconButtonGroup.default,
|
|
43
44
|
Image: () => import_Image.default,
|
|
45
|
+
ListItem: () => import_ListItem.default,
|
|
46
|
+
ListItemTypes: () => import_ListItem2.ListItemTypes,
|
|
44
47
|
Modal: () => import_Modal.default,
|
|
45
48
|
Navigation: () => import_Navigation.default,
|
|
46
49
|
Search: () => import_Search.default,
|
|
47
50
|
Stepper: () => import_Stepper.default,
|
|
48
51
|
StickyFooter: () => import_StickyFooter.default,
|
|
52
|
+
TAPPABLE_AREAS: () => import_ListItem2.TAPPABLE_AREAS,
|
|
49
53
|
Tabs: () => import_Tabs.default,
|
|
50
54
|
Tag: () => import_Tag.default,
|
|
51
55
|
Text: () => import_Text.default,
|
|
@@ -72,6 +76,7 @@ var import_Search = __toESM(require("./Search"));
|
|
|
72
76
|
var import_Accordion = __toESM(require("./Accordion"));
|
|
73
77
|
var import_Toggle = __toESM(require("./Toggle"));
|
|
74
78
|
var import_Image = __toESM(require("./Image"));
|
|
79
|
+
var import_Image2 = require("./Image");
|
|
75
80
|
var import_Icon = __toESM(require("./Icon"));
|
|
76
81
|
var import_TextLink = __toESM(require("./TextLink"));
|
|
77
82
|
var import_Toast = require("./Toast");
|
|
@@ -81,3 +86,5 @@ var import_IconButtonGroup = __toESM(require("./IconButtonGroup"));
|
|
|
81
86
|
var import_Drawer = __toESM(require("./Drawer"));
|
|
82
87
|
var import_Drawer2 = require("./Drawer");
|
|
83
88
|
var import_Navigation = __toESM(require("./Navigation"));
|
|
89
|
+
var import_ListItem = __toESM(require("./ListItem"));
|
|
90
|
+
var import_ListItem2 = require("./ListItem");
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|