pds-dev-kit-web 0.3.5 → 0.3.9
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 +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +4 -1
- package/dist/src/common/components/Spacing/Spacing.d.ts +6 -0
- package/dist/src/common/components/Spacing/Spacing.js +154 -0
- package/dist/src/common/components/Spacing/index.d.ts +1 -0
- package/dist/src/common/components/Spacing/index.js +8 -0
- package/dist/src/common/components/index.d.ts +2 -0
- package/dist/src/common/components/index.js +5 -0
- package/dist/src/common/index.d.ts +4 -2
- package/dist/src/common/index.js +6 -1
- package/dist/src/common/services/i18n/resources/en.json +81 -12
- package/dist/src/common/services/i18n/resources/es.json +81 -12
- package/dist/src/common/services/i18n/resources/index.d.ts +284 -8
- package/dist/src/common/services/i18n/resources/jp.json +81 -12
- package/dist/src/common/services/i18n/resources/ko.json +81 -12
- package/dist/src/common/styles/colorSet/PaletteColor_Dark.json +25 -5
- package/dist/src/common/styles/colorSet/PaletteColor_light.json +24 -4
- package/dist/src/common/styles/colorSet/SemanticColor.json +7 -1
- package/dist/src/common/styles/colorSet/UIColor.json +29 -2
- package/dist/src/common/styles/colorSet/index.d.ts +122 -49
- package/dist/src/common/styles/colorSet/index.js +2 -2
- package/dist/src/common/styles/colorSet/ui-type.d.ts +27 -0
- package/dist/src/common/styles/theme.d.ts +24 -0
- package/dist/src/common/styles/theme.js +26 -2
- package/dist/src/common/styles/ui-colors.js +1 -1
- package/dist/src/common/types/styled-components.d.ts +24 -0
- package/dist/src/desktop/components/TextLabel/TextLabel.d.ts +5 -3
- package/dist/src/desktop/components/TextLabel/TextLabel.js +13 -5
- package/dist/src/desktop/layout/LayoutWF/Containers/ContentsContainer/variation/WFK.js +2 -2
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTA.js +1 -1
- package/dist/src/mobile/components/TextLabel/TextLabel.d.ts +5 -1
- package/dist/src/mobile/components/TextLabel/TextLabel.js +13 -5
- package/package.json +1 -1
|
@@ -11,7 +11,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
11
11
|
return __assign.apply(this, arguments);
|
|
12
12
|
};
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.mobileLineHeight = exports.mobileFontSize = exports.desktopLineHeight = exports.desktopFontSize = exports.fontWeight = void 0;
|
|
14
|
+
exports.spacing = exports.boxShadow = exports.mobileLineHeight = exports.mobileFontSize = exports.desktopLineHeight = exports.desktopFontSize = exports.fontWeight = void 0;
|
|
15
15
|
var ui_colors_1 = require("./ui-colors");
|
|
16
16
|
exports.fontWeight = {
|
|
17
17
|
normal: '500',
|
|
@@ -71,5 +71,29 @@ exports.mobileLineHeight = {
|
|
|
71
71
|
blog1: '1.6',
|
|
72
72
|
singleLine: 'normal'
|
|
73
73
|
};
|
|
74
|
-
|
|
74
|
+
exports.boxShadow = {
|
|
75
|
+
elevation0: '0 0 0 0 #0003',
|
|
76
|
+
elevation1: '0 2px 8px 0 #0003',
|
|
77
|
+
elevation2: '0 3px 12px 0 #0003',
|
|
78
|
+
elevation3: '0 4px 16px 0 #0003',
|
|
79
|
+
elevation4: '0 5px 20px 0 #0003',
|
|
80
|
+
elevation5: '0 6px 24px 0 #0003'
|
|
81
|
+
};
|
|
82
|
+
exports.spacing = {
|
|
83
|
+
spacingA: '4px',
|
|
84
|
+
spacingB: '8px',
|
|
85
|
+
spacingC: '12px',
|
|
86
|
+
spacingD: '16px',
|
|
87
|
+
spacingE: '24px',
|
|
88
|
+
spacingF: '32px',
|
|
89
|
+
spacingG: '48px',
|
|
90
|
+
spacingH: '64px',
|
|
91
|
+
spacingI: '88px',
|
|
92
|
+
spacingJ: '120px',
|
|
93
|
+
spacingK: '160px',
|
|
94
|
+
spacingL: '240px',
|
|
95
|
+
spacingM: '288px',
|
|
96
|
+
spacingN: '320px'
|
|
97
|
+
};
|
|
98
|
+
var theme = __assign({ fontWeight: exports.fontWeight, desktopFontSize: exports.desktopFontSize, desktopLineHeight: exports.desktopLineHeight, mobileFontSize: exports.mobileFontSize, mobileLineHeight: exports.mobileLineHeight, boxShadow: exports.boxShadow, spacing: exports.spacing }, ui_colors_1.uiColors);
|
|
75
99
|
exports.default = theme;
|
|
@@ -57,4 +57,28 @@ export interface PdsDevKitTheme {
|
|
|
57
57
|
blog1: string;
|
|
58
58
|
singleLine: string;
|
|
59
59
|
};
|
|
60
|
+
boxShadow: {
|
|
61
|
+
elevation0: string;
|
|
62
|
+
elevation1: string;
|
|
63
|
+
elevation2: string;
|
|
64
|
+
elevation3: string;
|
|
65
|
+
elevation4: string;
|
|
66
|
+
elevation5: string;
|
|
67
|
+
};
|
|
68
|
+
spacing: {
|
|
69
|
+
spacingA: string;
|
|
70
|
+
spacingB: string;
|
|
71
|
+
spacingC: string;
|
|
72
|
+
spacingD: string;
|
|
73
|
+
spacingE: string;
|
|
74
|
+
spacingF: string;
|
|
75
|
+
spacingG: string;
|
|
76
|
+
spacingH: string;
|
|
77
|
+
spacingI: string;
|
|
78
|
+
spacingJ: string;
|
|
79
|
+
spacingK: string;
|
|
80
|
+
spacingL: string;
|
|
81
|
+
spacingM: string;
|
|
82
|
+
spacingN: string;
|
|
83
|
+
};
|
|
60
84
|
}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { TFunctionResult } from 'i18next';
|
|
3
|
-
|
|
4
|
-
export declare type
|
|
3
|
+
import { uiColors } from '../../../common';
|
|
4
|
+
export declare type UiColors = keyof typeof uiColors;
|
|
5
5
|
export declare type TextLabelProps = {
|
|
6
6
|
text: string | number | TFunctionResult;
|
|
7
7
|
textAlign?: 'left' | 'center' | 'right';
|
|
8
8
|
styleTheme?: 'displayBold' | 'headingBold' | 'leadParaRegular' | 'subTitleBold' | 'subTitleRegular' | 'body1Bold' | 'body1Regular' | 'body2Bold' | 'body2Regular' | 'caption1Bold' | 'caption1Regular' | 'caption2Bold' | 'caption2Regular' | 'form1Regular' | 'form2Regular' | 'blog1Regular';
|
|
9
|
+
colorOverride?: UiColors;
|
|
9
10
|
colorTheme?: 'sysTextPrimary' | 'sysTextSecondary' | 'sysTextTertiary' | 'sysTextWhite' | 'sysTextError' | 'sysTextBrandPrimary' | 'sysTextBrandSeconVariant' | 'usrTextBrandPrimary' | 'usrTextBrandSeconVariant' | 'usrTextBrandOnPrimary';
|
|
10
11
|
underline?: 'none' | 'use';
|
|
11
12
|
singleLineMode?: 'none' | 'use';
|
|
@@ -15,11 +16,12 @@ export declare type TextLabelProps = {
|
|
|
15
16
|
export declare type TextStyleProps = {
|
|
16
17
|
textAlign?: 'left' | 'center' | 'right';
|
|
17
18
|
styleTheme?: 'displayBold' | 'headingBold' | 'leadParaRegular' | 'subTitleBold' | 'subTitleRegular' | 'body1Bold' | 'body1Regular' | 'body2Bold' | 'body2Regular' | 'caption1Bold' | 'caption1Regular' | 'caption2Bold' | 'caption2Regular' | 'form1Regular' | 'form2Regular' | 'blog1Regular';
|
|
19
|
+
colorOverride?: UiColors;
|
|
18
20
|
colorTheme?: 'sysTextPrimary' | 'sysTextSecondary' | 'sysTextTertiary' | 'sysTextWhite' | 'sysTextError' | 'sysTextBrandPrimary' | 'sysTextBrandSeconVariant' | 'usrTextBrandPrimary' | 'usrTextBrandSeconVariant' | 'usrTextBrandOnPrimary';
|
|
19
21
|
underline?: 'none' | 'use';
|
|
20
22
|
singleLineMode?: 'none' | 'use';
|
|
21
23
|
ellipsisMode?: 'none' | 'use';
|
|
22
24
|
lineLimit?: number;
|
|
23
25
|
};
|
|
24
|
-
declare function TextLabel({ text, textAlign, styleTheme, colorTheme, underline, singleLineMode, ellipsisMode, lineLimit }: TextLabelProps): JSX.Element;
|
|
26
|
+
declare function TextLabel({ text, textAlign, styleTheme, colorOverride, colorTheme, underline, singleLineMode, ellipsisMode, lineLimit }: TextLabelProps): JSX.Element;
|
|
25
27
|
export default TextLabel;
|
|
@@ -28,9 +28,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
var react_1 = __importDefault(require("react"));
|
|
30
30
|
var styled_components_1 = __importStar(require("styled-components"));
|
|
31
|
+
var common_1 = require("../../../common");
|
|
31
32
|
function TextLabel(_a) {
|
|
32
|
-
var text = _a.text, _b = _a.textAlign, textAlign = _b === void 0 ? 'left' : _b, _c = _a.styleTheme, styleTheme = _c === void 0 ? 'body2Bold' : _c, _d = _a.colorTheme, colorTheme = _d === void 0 ? 'sysTextPrimary' : _d, _e = _a.underline, underline = _e === void 0 ? 'none' : _e, _f = _a.singleLineMode, singleLineMode = _f === void 0 ? 'none' : _f, _g = _a.ellipsisMode, ellipsisMode = _g === void 0 ? 'none' : _g, lineLimit = _a.lineLimit;
|
|
33
|
-
return (react_1.default.createElement(S_TextLabel, { textAlign: textAlign, styleTheme: styleTheme, colorTheme: colorTheme, underline: underline, singleLineMode: singleLineMode, ellipsisMode: ellipsisMode, lineLimit: lineLimit }, text));
|
|
33
|
+
var text = _a.text, _b = _a.textAlign, textAlign = _b === void 0 ? 'left' : _b, _c = _a.styleTheme, styleTheme = _c === void 0 ? 'body2Bold' : _c, colorOverride = _a.colorOverride, _d = _a.colorTheme, colorTheme = _d === void 0 ? 'sysTextPrimary' : _d, _e = _a.underline, underline = _e === void 0 ? 'none' : _e, _f = _a.singleLineMode, singleLineMode = _f === void 0 ? 'none' : _f, _g = _a.ellipsisMode, ellipsisMode = _g === void 0 ? 'none' : _g, lineLimit = _a.lineLimit;
|
|
34
|
+
return (react_1.default.createElement(S_TextLabel, { textAlign: textAlign, styleTheme: styleTheme, colorOverride: colorOverride, colorTheme: colorTheme, underline: underline, singleLineMode: singleLineMode, ellipsisMode: ellipsisMode, lineLimit: lineLimit }, text));
|
|
34
35
|
}
|
|
35
36
|
var displayBold = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n font-size: ", ";\n line-height: ", ";\n font-weight: ", ";\n"], ["\n font-size: ", ";\n line-height: ", ";\n font-weight: ", ";\n"])), function (_a) {
|
|
36
37
|
var theme = _a.theme;
|
|
@@ -232,11 +233,15 @@ var usrTextBrandOnPrimary = (0, styled_components_1.css)(templateObject_26 || (t
|
|
|
232
233
|
var theme = _a.theme;
|
|
233
234
|
return theme.ui_cpnt_textlabel_usr_brandonprimary;
|
|
234
235
|
});
|
|
235
|
-
var
|
|
236
|
+
var colorOverrideStyle = (0, styled_components_1.css)(templateObject_27 || (templateObject_27 = __makeTemplateObject(["\n color: ", ";\n"], ["\n color: ", ";\n"])), function (_a) {
|
|
237
|
+
var colorOverride = _a.colorOverride;
|
|
238
|
+
return colorOverride && common_1.uiColors[colorOverride];
|
|
239
|
+
});
|
|
240
|
+
var ellipsisStyle = (0, styled_components_1.css)(templateObject_28 || (templateObject_28 = __makeTemplateObject(["\n -webkit-box-orient: vertical;\n display: -webkit-box;\n -webkit-line-clamp: ", ";\n overflow: hidden;\n text-overflow: ellipsis;\n"], ["\n -webkit-box-orient: vertical;\n display: -webkit-box;\n -webkit-line-clamp: ", ";\n overflow: hidden;\n text-overflow: ellipsis;\n"])), function (_a) {
|
|
236
241
|
var lineLimit = _a.lineLimit;
|
|
237
242
|
return lineLimit;
|
|
238
243
|
});
|
|
239
|
-
var S_TextLabel = styled_components_1.default.div(
|
|
244
|
+
var S_TextLabel = styled_components_1.default.div(templateObject_29 || (templateObject_29 = __makeTemplateObject(["\n box-sizing: border-box;\n text-align: ", ";\n text-decoration: ", ";\n white-space: pre-wrap;\n word-break: keep-all;\n\n ", ";\n\n ", ";\n\n line-height: ", ";\n\n ", ";\n\n ", ";\n"], ["\n box-sizing: border-box;\n text-align: ", ";\n text-decoration: ", ";\n white-space: pre-wrap;\n word-break: keep-all;\n\n ", ";\n\n ", ";\n\n line-height: ", ";\n\n ", ";\n\n ", ";\n"])), function (_a) {
|
|
240
245
|
var textAlign = _a.textAlign;
|
|
241
246
|
return textAlign;
|
|
242
247
|
}, function (_a) {
|
|
@@ -284,6 +289,9 @@ var S_TextLabel = styled_components_1.default.div(templateObject_28 || (template
|
|
|
284
289
|
}, function (_a) {
|
|
285
290
|
var ellipsisMode = _a.ellipsisMode, lineLimit = _a.lineLimit;
|
|
286
291
|
return ellipsisMode === 'use' && lineLimit && ellipsisStyle;
|
|
292
|
+
}, function (_a) {
|
|
293
|
+
var colorOverride = _a.colorOverride;
|
|
294
|
+
return colorOverride && colorOverrideStyle;
|
|
287
295
|
});
|
|
288
296
|
exports.default = TextLabel;
|
|
289
|
-
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15, templateObject_16, templateObject_17, templateObject_18, templateObject_19, templateObject_20, templateObject_21, templateObject_22, templateObject_23, templateObject_24, templateObject_25, templateObject_26, templateObject_27, templateObject_28;
|
|
297
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15, templateObject_16, templateObject_17, templateObject_18, templateObject_19, templateObject_20, templateObject_21, templateObject_22, templateObject_23, templateObject_24, templateObject_25, templateObject_26, templateObject_27, templateObject_28, templateObject_29;
|
|
@@ -20,14 +20,14 @@ var WFK = function (_a) {
|
|
|
20
20
|
react_1.default.createElement(S_Content2, null, content2)))));
|
|
21
21
|
};
|
|
22
22
|
var S_Box = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n height: 100%;\n"], ["\n display: flex;\n height: 100%;\n"])));
|
|
23
|
-
var S_ContentsContainer1 = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n background-color: ", ";\n min-width: 360px;\n width:
|
|
23
|
+
var S_ContentsContainer1 = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n background-color: ", ";\n min-width: 360px;\n width: 40%;\n height: 100%;\n ", ";\n"], ["\n background-color: ", ";\n min-width: 360px;\n width: 40%;\n height: 100%;\n ", ";\n"])), function (_a) {
|
|
24
24
|
var theme = _a.theme;
|
|
25
25
|
return theme.ui_contentscontainer01_background;
|
|
26
26
|
}, function (_a) {
|
|
27
27
|
var containerColor = _a.containerColor;
|
|
28
28
|
return "background-color: " + containerColor;
|
|
29
29
|
});
|
|
30
|
-
var S_ContentsContainer2 = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n background-color: ", ";\n border-left: 1px solid ", ";\n min-width: 360px;\n width:
|
|
30
|
+
var S_ContentsContainer2 = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n background-color: ", ";\n border-left: 1px solid ", ";\n min-width: 360px;\n width: 60%;\n overflow-x: hidden;\n overflow-y: auto;\n ", ";\n"], ["\n background-color: ", ";\n border-left: 1px solid ", ";\n min-width: 360px;\n width: 60%;\n overflow-x: hidden;\n overflow-y: auto;\n ", ";\n"])), function (_a) {
|
|
31
31
|
var theme = _a.theme;
|
|
32
32
|
return theme.ui_contentscontainer02_background;
|
|
33
33
|
}, function (_a) {
|
|
@@ -29,7 +29,7 @@ var S_ContentsContainer = styled_components_1.default.div(templateObject_1 || (t
|
|
|
29
29
|
WTA_3: 'min-width: 768px;'
|
|
30
30
|
}[layoutType]);
|
|
31
31
|
});
|
|
32
|
-
var S_ContentsArea = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n box-sizing: border-box;\n border-left: 1px solid ", ";\n border-right: 1px solid ", ";\n padding-bottom: 88px;\n ", ";\n ", ";\n"], ["\n box-sizing: border-box;\n border-left: 1px solid ", ";\n border-right: 1px solid ", ";\n padding-bottom: 88px;\n ", ";\n ", ";\n"])), function (_a) {
|
|
32
|
+
var S_ContentsArea = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n box-sizing: border-box;\n border-left: 1px solid ", ";\n border-right: 1px solid ", ";\n padding-bottom: 88px;\n height: 100%;\n overflow: auto;\n ", ";\n ", ";\n"], ["\n box-sizing: border-box;\n border-left: 1px solid ", ";\n border-right: 1px solid ", ";\n padding-bottom: 88px;\n height: 100%;\n overflow: auto;\n ", ";\n ", ";\n"])), function (_a) {
|
|
33
33
|
var theme = _a.theme;
|
|
34
34
|
return theme.ui_area_divider;
|
|
35
35
|
}, function (_a) {
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { TFunctionResult } from 'i18next';
|
|
3
|
+
import { uiColors } from '../../../common';
|
|
4
|
+
export declare type UiColors = keyof typeof uiColors;
|
|
3
5
|
export declare type TextLabelProps = {
|
|
4
6
|
text: string | number | TFunctionResult;
|
|
5
7
|
textAlign?: 'left' | 'center' | 'right';
|
|
6
8
|
styleTheme?: 'displayBold' | 'headingBold' | 'leadParaRegular' | 'subTitleBold' | 'subTitleRegular' | 'body1Bold' | 'body1Regular' | 'body2Bold' | 'body2Regular' | 'caption1Bold' | 'caption1Regular' | 'caption2Bold' | 'caption2Regular' | 'form1Regular' | 'form2Regular' | 'blog1Regular';
|
|
9
|
+
colorOverride?: UiColors;
|
|
7
10
|
colorTheme?: 'sysTextPrimary' | 'sysTextSecondary' | 'sysTextTertiary' | 'sysTextWhite' | 'sysTextError' | 'sysTextBrandPrimary' | 'sysTextBrandSeconVariant' | 'usrTextBrandPrimary' | 'usrTextBrandSeconVariant' | 'usrTextBrandOnPrimary';
|
|
8
11
|
underline?: 'none' | 'use';
|
|
9
12
|
singleLineMode?: 'none' | 'use';
|
|
@@ -13,11 +16,12 @@ export declare type TextLabelProps = {
|
|
|
13
16
|
export declare type TextStyleProps = {
|
|
14
17
|
textAlign?: 'left' | 'center' | 'right';
|
|
15
18
|
styleTheme?: 'displayBold' | 'headingBold' | 'leadParaRegular' | 'subTitleBold' | 'subTitleRegular' | 'body1Bold' | 'body1Regular' | 'body2Bold' | 'body2Regular' | 'caption1Bold' | 'caption1Regular' | 'caption2Bold' | 'caption2Regular' | 'form1Regular' | 'form2Regular' | 'blog1Regular';
|
|
19
|
+
colorOverride?: UiColors;
|
|
16
20
|
colorTheme?: 'sysTextPrimary' | 'sysTextSecondary' | 'sysTextTertiary' | 'sysTextWhite' | 'sysTextError' | 'sysTextBrandPrimary' | 'sysTextBrandSeconVariant' | 'usrTextBrandPrimary' | 'usrTextBrandSeconVariant' | 'usrTextBrandOnPrimary';
|
|
17
21
|
underline?: 'none' | 'use';
|
|
18
22
|
singleLineMode?: 'none' | 'use';
|
|
19
23
|
ellipsisMode?: 'none' | 'use';
|
|
20
24
|
lineLimit?: number;
|
|
21
25
|
};
|
|
22
|
-
declare function TextLabel({ text, textAlign, styleTheme, colorTheme, underline, singleLineMode, ellipsisMode, lineLimit }: TextLabelProps): JSX.Element;
|
|
26
|
+
declare function TextLabel({ text, textAlign, styleTheme, colorOverride, colorTheme, underline, singleLineMode, ellipsisMode, lineLimit }: TextLabelProps): JSX.Element;
|
|
23
27
|
export default TextLabel;
|
|
@@ -28,9 +28,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
var react_1 = __importDefault(require("react"));
|
|
30
30
|
var styled_components_1 = __importStar(require("styled-components"));
|
|
31
|
+
var common_1 = require("../../../common");
|
|
31
32
|
function TextLabel(_a) {
|
|
32
|
-
var text = _a.text, _b = _a.textAlign, textAlign = _b === void 0 ? 'left' : _b, _c = _a.styleTheme, styleTheme = _c === void 0 ? 'body2Bold' : _c, _d = _a.colorTheme, colorTheme = _d === void 0 ? 'sysTextPrimary' : _d, _e = _a.underline, underline = _e === void 0 ? 'none' : _e, _f = _a.singleLineMode, singleLineMode = _f === void 0 ? 'none' : _f, _g = _a.ellipsisMode, ellipsisMode = _g === void 0 ? 'none' : _g, lineLimit = _a.lineLimit;
|
|
33
|
-
return (react_1.default.createElement(S_TextLabel, { textAlign: textAlign, styleTheme: styleTheme, colorTheme: colorTheme, underline: underline, singleLineMode: singleLineMode, ellipsisMode: ellipsisMode, lineLimit: lineLimit }, text));
|
|
33
|
+
var text = _a.text, _b = _a.textAlign, textAlign = _b === void 0 ? 'left' : _b, _c = _a.styleTheme, styleTheme = _c === void 0 ? 'body2Bold' : _c, colorOverride = _a.colorOverride, _d = _a.colorTheme, colorTheme = _d === void 0 ? 'sysTextPrimary' : _d, _e = _a.underline, underline = _e === void 0 ? 'none' : _e, _f = _a.singleLineMode, singleLineMode = _f === void 0 ? 'none' : _f, _g = _a.ellipsisMode, ellipsisMode = _g === void 0 ? 'none' : _g, lineLimit = _a.lineLimit;
|
|
34
|
+
return (react_1.default.createElement(S_TextLabel, { textAlign: textAlign, styleTheme: styleTheme, colorOverride: colorOverride, colorTheme: colorTheme, underline: underline, singleLineMode: singleLineMode, ellipsisMode: ellipsisMode, lineLimit: lineLimit }, text));
|
|
34
35
|
}
|
|
35
36
|
var displayBold = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n font-size: ", ";\n line-height: ", ";\n font-weight: ", ";\n"], ["\n font-size: ", ";\n line-height: ", ";\n font-weight: ", ";\n"])), function (_a) {
|
|
36
37
|
var theme = _a.theme;
|
|
@@ -232,11 +233,15 @@ var usrTextBrandOnPrimary = (0, styled_components_1.css)(templateObject_26 || (t
|
|
|
232
233
|
var theme = _a.theme;
|
|
233
234
|
return theme.ui_cpnt_textlabel_usr_brandonprimary;
|
|
234
235
|
});
|
|
235
|
-
var
|
|
236
|
+
var colorOverrideStyle = (0, styled_components_1.css)(templateObject_27 || (templateObject_27 = __makeTemplateObject(["\n color: ", ";\n"], ["\n color: ", ";\n"])), function (_a) {
|
|
237
|
+
var colorOverride = _a.colorOverride;
|
|
238
|
+
return colorOverride && common_1.uiColors[colorOverride];
|
|
239
|
+
});
|
|
240
|
+
var ellipsisStyle = (0, styled_components_1.css)(templateObject_28 || (templateObject_28 = __makeTemplateObject(["\n -webkit-box-orient: vertical;\n display: -webkit-box;\n -webkit-line-clamp: ", ";\n overflow: hidden;\n text-overflow: ellipsis;\n"], ["\n -webkit-box-orient: vertical;\n display: -webkit-box;\n -webkit-line-clamp: ", ";\n overflow: hidden;\n text-overflow: ellipsis;\n"])), function (_a) {
|
|
236
241
|
var lineLimit = _a.lineLimit;
|
|
237
242
|
return lineLimit;
|
|
238
243
|
});
|
|
239
|
-
var S_TextLabel = styled_components_1.default.div(
|
|
244
|
+
var S_TextLabel = styled_components_1.default.div(templateObject_29 || (templateObject_29 = __makeTemplateObject(["\n box-sizing: border-box;\n text-align: ", ";\n text-decoration: ", ";\n white-space: pre-wrap;\n word-break: keep-all;\n\n ", ";\n\n ", ";\n\n line-height: ", ";\n\n ", ";\n\n ", ";\n"], ["\n box-sizing: border-box;\n text-align: ", ";\n text-decoration: ", ";\n white-space: pre-wrap;\n word-break: keep-all;\n\n ", ";\n\n ", ";\n\n line-height: ", ";\n\n ", ";\n\n ", ";\n"])), function (_a) {
|
|
240
245
|
var textAlign = _a.textAlign;
|
|
241
246
|
return textAlign;
|
|
242
247
|
}, function (_a) {
|
|
@@ -284,6 +289,9 @@ var S_TextLabel = styled_components_1.default.div(templateObject_28 || (template
|
|
|
284
289
|
}, function (_a) {
|
|
285
290
|
var ellipsisMode = _a.ellipsisMode, lineLimit = _a.lineLimit;
|
|
286
291
|
return ellipsisMode === 'use' && lineLimit && ellipsisStyle;
|
|
292
|
+
}, function (_a) {
|
|
293
|
+
var colorOverride = _a.colorOverride;
|
|
294
|
+
return colorOverride && colorOverrideStyle;
|
|
287
295
|
});
|
|
288
296
|
exports.default = TextLabel;
|
|
289
|
-
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15, templateObject_16, templateObject_17, templateObject_18, templateObject_19, templateObject_20, templateObject_21, templateObject_22, templateObject_23, templateObject_24, templateObject_25, templateObject_26, templateObject_27, templateObject_28;
|
|
297
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15, templateObject_16, templateObject_17, templateObject_18, templateObject_19, templateObject_20, templateObject_21, templateObject_22, templateObject_23, templateObject_24, templateObject_25, templateObject_26, templateObject_27, templateObject_28, templateObject_29;
|