pds-dev-kit-web 0.6.1 → 0.6.4
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/src/common/assets/icons/line/ArrowRoundLeft.d.ts +4 -0
- package/dist/src/common/assets/icons/line/ArrowRoundLeft.js +34 -0
- package/dist/src/common/assets/icons/line/PostVote.d.ts +4 -0
- package/dist/src/common/assets/icons/line/PostVote.js +38 -0
- package/dist/src/common/assets/icons/line/TenSecBackArrow.js +1 -1
- package/dist/src/common/assets/icons/line/TenSecForwardArrow.js +1 -1
- package/dist/src/common/assets/icons/line/index.d.ts +2 -0
- package/dist/src/common/assets/icons/line/index.js +4 -0
- package/dist/src/common/styles/colorSet/PaletteColor_Dark.json +4 -1
- package/dist/src/common/styles/colorSet/PaletteColor_light.json +4 -1
- package/dist/src/common/styles/colorSet/SemanticColor.json +2 -1
- package/dist/src/common/styles/colorSet/UIColor.json +13 -4
- package/dist/src/common/styles/colorSet/index.d.ts +71 -55
- package/dist/src/common/styles/colorSet/index.js +2 -2
- package/dist/src/common/styles/colorSet/ui-type.d.ts +9 -0
- package/dist/src/common/styles/index.d.ts +0 -2
- package/dist/src/common/styles/theme.d.ts +0 -2
- package/dist/src/common/styles/theme.js +3 -5
- package/dist/src/common/styles/ui-colors.d.ts +5 -0
- package/dist/src/common/styles/ui-colors.js +4 -0
- package/dist/src/common/types/styled-components.d.ts +0 -2
- package/dist/src/desktop/common/components/TextFieldBase/TextFieldBase.js +10 -1
- package/dist/src/desktop/components/Chip/Chip.js +6 -6
- package/dist/src/desktop/components/DesktopTabBar/DesktopTabBar.js +6 -4
- package/dist/src/desktop/components/EditApplyTextField/EditApplyTextField.js +1 -0
- package/dist/src/desktop/components/FloatingActionButton/FloatingActionButton.js +2 -2
- package/dist/src/desktop/components/IconButton/IconButton.js +6 -2
- package/dist/src/desktop/components/MainButton/MainButton.js +1 -1
- package/dist/src/desktop/components/ReactionButton/ReactionButton.js +1 -1
- package/dist/src/desktop/components/StatusBlock/StatusBlock.js +1 -1
- package/dist/src/desktop/components/TextButton/TextButton.js +1 -1
- package/dist/src/desktop/components/TextLabel/TextLabel.d.ts +1 -3
- package/dist/src/desktop/components/TextLabel/TextLabel.js +8 -9
- package/dist/src/desktop/components/UploadIconButton/UploadIconButton.js +6 -2
- package/dist/src/desktop/components/UploadMainButton/UploadMainButton.js +1 -1
- package/dist/src/desktop/components/UploadTextButton/UploadTextButton.js +1 -1
- package/dist/src/desktop/layout/LayoutWF/Containers/ContentsContainer/variation/WFB.js +1 -1
- package/dist/src/desktop/layout/LayoutWS/Containers/ContentsContainer/variation/WSE.js +2 -2
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/ContentsContainer.d.ts +1 -1
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/ContentsContainer.js +4 -2
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTA.js +5 -2
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTI.d.ts +2 -1
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTI.js +17 -5
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTK.js +5 -2
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTN.d.ts +2 -1
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTN.js +17 -5
- package/dist/src/desktop/layout/LayoutWT/Containers/PageMenuContainer/variation/TopPageMenu.js +5 -2
- package/dist/src/desktop/layout/LayoutWT/ContainersBox/ContainersBox.d.ts +1 -1
- package/dist/src/desktop/layout/LayoutWT/ContainersBox/ContainersBox.js +9 -3
- package/dist/src/hybrid/components/Icon/Icon.d.ts +1 -6
- package/dist/src/hybrid/components/Icon/Icon.js +2 -2
- package/dist/src/mobile/common/components/TextFieldBase/TextFieldBase.js +10 -1
- package/dist/src/mobile/components/Chip/Chip.js +6 -6
- package/dist/src/mobile/components/IconButton/IconButton.js +6 -2
- package/dist/src/mobile/components/MainButton/MainButton.js +1 -1
- package/dist/src/mobile/components/MobileHeaderBar/MobileHeaderBar.js +1 -1
- package/dist/src/mobile/components/ReactionButton/ReactionButton.js +1 -1
- package/dist/src/mobile/components/StatusBlock/StatusBlock.js +1 -1
- package/dist/src/mobile/components/TextButton/TextButton.js +1 -1
- package/dist/src/mobile/components/TextLabel/TextLabel.d.ts +1 -3
- package/dist/src/mobile/components/TextLabel/TextLabel.js +8 -9
- package/dist/src/mobile/components/UploadIconButton/UploadIconButton.js +6 -2
- package/dist/src/mobile/components/UploadMainButton/UploadMainButton.js +1 -1
- package/dist/src/mobile/components/UploadTextButton/UploadTextButton.js +1 -1
- package/package.json +1 -1
|
@@ -29,21 +29,21 @@ function Chip(_a) {
|
|
|
29
29
|
return (react_1.default.createElement(S_CategoryChoiceChip, { isActive: chipId === activeChipId, onClick: handleClick },
|
|
30
30
|
chipId !== activeChipId && (react_1.default.createElement(S_CategoryIconWrapper, { isActive: chipId === activeChipId },
|
|
31
31
|
react_1.default.createElement(hybrid_1.Icon, { size: 16, fillType: "line", iconName: "ic_filter", colorKey: "ui_cpnt_chip_line_icon_01" }))),
|
|
32
|
-
react_1.default.createElement(TextLabel_1.TextLabel, { text: text, styleTheme: "caption1Regular",
|
|
32
|
+
react_1.default.createElement(TextLabel_1.TextLabel, { text: text, styleTheme: "caption1Regular", singleLineMode: "use", colorTheme: chipId === activeChipId ? 'usrTextBrandOnPrimary' : 'sysTextPrimary' }),
|
|
33
33
|
chipId === activeChipId && (react_1.default.createElement(S_CategoryIconWrapper, { isActive: chipId === activeChipId },
|
|
34
34
|
react_1.default.createElement(hybrid_1.Icon, { size: 12, fillType: "line", iconName: "ic_xmark", colorKey: "ui_cpnt_chip_fill_icon_active_01" })))));
|
|
35
35
|
case 'information':
|
|
36
36
|
return (react_1.default.createElement(S_InfoChip, { onClick: handleClick },
|
|
37
|
-
react_1.default.createElement(TextLabel_1.TextLabel, { text: text, styleTheme: "caption2Regular",
|
|
37
|
+
react_1.default.createElement(TextLabel_1.TextLabel, { text: text, styleTheme: "caption2Regular", singleLineMode: "use", colorTheme: "sysTextPrimary" })));
|
|
38
38
|
case 'label':
|
|
39
39
|
return (react_1.default.createElement(S_LabelChip, { onClick: handleClick },
|
|
40
|
-
react_1.default.createElement(TextLabel_1.TextLabel, { text: text, styleTheme: "caption2Bold",
|
|
40
|
+
react_1.default.createElement(TextLabel_1.TextLabel, { text: text, styleTheme: "caption2Bold", singleLineMode: "use", colorTheme: "sysTextTertiary" })));
|
|
41
41
|
case 'time':
|
|
42
42
|
return (react_1.default.createElement(S_TimeChip, { onClick: handleClick },
|
|
43
|
-
react_1.default.createElement(TextLabel_1.TextLabel, { text: text, styleTheme: "caption2Bold",
|
|
43
|
+
react_1.default.createElement(TextLabel_1.TextLabel, { text: text, styleTheme: "caption2Bold", singleLineMode: "use", colorTheme: "sysTextWhite" })));
|
|
44
44
|
case 'removable':
|
|
45
45
|
return (react_1.default.createElement(S_RemovableChip, { onClick: handleClick },
|
|
46
|
-
react_1.default.createElement(TextLabel_1.TextLabel, { text: text, styleTheme: "caption1Regular",
|
|
46
|
+
react_1.default.createElement(TextLabel_1.TextLabel, { text: text, styleTheme: "caption1Regular", singleLineMode: "use", colorTheme: "sysTextSecondary" }),
|
|
47
47
|
react_1.default.createElement(S_XIconWrapper, { onClick: handleClickXMarkIcon },
|
|
48
48
|
react_1.default.createElement(hybrid_1.Icon, { size: 12, iconName: "ic_xmark", fillType: "line", colorKey: "ui_cpnt_chip_fill_icon_inactive" }))));
|
|
49
49
|
default:
|
|
@@ -52,7 +52,7 @@ function Chip(_a) {
|
|
|
52
52
|
react_1.default.createElement(hybrid_1.Icon, { fillType: iconFillType, iconName: iconName, size: 16, colorKey: chipId === activeChipId
|
|
53
53
|
? 'ui_cpnt_chip_fill_icon_active_01'
|
|
54
54
|
: 'ui_cpnt_chip_line_icon_02' }))),
|
|
55
|
-
react_1.default.createElement(TextLabel_1.TextLabel, { text: text, styleTheme: "caption1Regular",
|
|
55
|
+
react_1.default.createElement(TextLabel_1.TextLabel, { text: text, styleTheme: "caption1Regular", singleLineMode: "use", colorTheme: chipId === activeChipId ? 'usrTextBrandOnPrimary' : 'sysTextSecondary' })));
|
|
56
56
|
}
|
|
57
57
|
};
|
|
58
58
|
return react_1.default.createElement(S_ChipWrapper, null, chipType());
|
|
@@ -73,7 +73,9 @@ var fillDisabled = (0, styled_components_1.css)(templateObject_1 || (templateObj
|
|
|
73
73
|
});
|
|
74
74
|
var fill = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n background-color: ", ";\n\n &:active:enabled {\n ", "\n }\n\n ", ";\n"], ["\n background-color: ", ";\n\n &:active:enabled {\n ", "\n }\n\n ", ";\n"])), function (_a) {
|
|
75
75
|
var theme = _a.theme, baseColorKey = _a.baseColorKey;
|
|
76
|
-
return baseColorKey
|
|
76
|
+
return baseColorKey
|
|
77
|
+
? (0, ui_colors_1.customTheme)(window.PdsUtils ? window.PdsUtils.tone : 'DARK')[baseColorKey]
|
|
78
|
+
: theme.ui_cpnt_button_fill_base_primary;
|
|
77
79
|
}, function (_a) {
|
|
78
80
|
var theme = _a.theme, baseColorKey = _a.baseColorKey;
|
|
79
81
|
return baseColorKey === 'ui_cpnt_button_fill_base_transparent'
|
|
@@ -95,7 +97,9 @@ var line = (0, styled_components_1.css)(templateObject_4 || (templateObject_4 =
|
|
|
95
97
|
return theme.ui_cpnt_button_line_base_default;
|
|
96
98
|
}, function (_a) {
|
|
97
99
|
var theme = _a.theme, borderColorKey = _a.borderColorKey;
|
|
98
|
-
return borderColorKey
|
|
100
|
+
return borderColorKey
|
|
101
|
+
? (0, ui_colors_1.customTheme)(window.PdsUtils ? window.PdsUtils.tone : 'DARK')[borderColorKey]
|
|
102
|
+
: theme.ui_cpnt_button_line_border_enabled;
|
|
99
103
|
}, function (_a) {
|
|
100
104
|
var colorTheme = _a.colorTheme;
|
|
101
105
|
switch (colorTheme) {
|
|
@@ -98,7 +98,7 @@ function MainButton(_a) {
|
|
|
98
98
|
size !== 'xsmall' && iconMode === 'left' && (react_1.default.createElement(react_1.default.Fragment, null,
|
|
99
99
|
react_1.default.createElement(hybrid_1.Icon, { iconName: iconName, size: size === 'large' || size === 'rlarge' ? 20 : 16, colorKey: iconColor(), fillType: iconFillType }),
|
|
100
100
|
react_1.default.createElement(hybrid_1.Spacing, { size: size === 'large' || size === 'rlarge' ? 'spacing_b' : 'spacing_a', spacingType: "width" }))),
|
|
101
|
-
react_1.default.createElement(TextLabel_1.TextLabel, { text: text, styleTheme: textStyle[size],
|
|
101
|
+
react_1.default.createElement(TextLabel_1.TextLabel, { text: text, styleTheme: textStyle[size], singleLineMode: "use", colorTheme: state === 'disabled' ? 'sysTextTertiary' : textColor[fillType], colorOverride: selectTextThemeColor() }),
|
|
102
102
|
size !== 'xsmall' && iconMode === 'right' && (react_1.default.createElement(react_1.default.Fragment, null,
|
|
103
103
|
react_1.default.createElement(hybrid_1.Spacing, { size: size === 'large' || size === 'rlarge' ? 'spacing_b' : 'spacing_a', spacingType: "width" }),
|
|
104
104
|
react_1.default.createElement(hybrid_1.Icon, { iconName: iconName, size: size === 'large' || size === 'rlarge' ? 20 : 16, colorKey: iconColor(), fillType: iconFillType })))));
|
|
@@ -47,7 +47,7 @@ function MobileHeaderBar(_a) {
|
|
|
47
47
|
return react_1.default.createElement("div", null);
|
|
48
48
|
}
|
|
49
49
|
return (react_1.default.createElement(S_LeftButtonBox, null,
|
|
50
|
-
react_1.default.createElement(IconButton_1.IconButton, { iconName: iconName, fillType: "fill", iconFillType: "line", baseSize: "large", iconSize: 24, shapeType: "rectangle", onClick: handleClickLeftBtn, baseColorKey: "ui_cpnt_button_fill_base_transparent" })));
|
|
50
|
+
react_1.default.createElement(IconButton_1.IconButton, { iconName: iconName, fillType: "fill", iconFillType: "line", baseSize: "large", iconSize: 24, shapeType: "rectangle", onClick: handleClickLeftBtn, iconColorKey: "ui_cpnt_button_icon_enabled", baseColorKey: "ui_cpnt_button_fill_base_transparent" })));
|
|
51
51
|
};
|
|
52
52
|
var title = function () {
|
|
53
53
|
switch (titleType) {
|
|
@@ -100,7 +100,7 @@ function ReactionButton(_a) {
|
|
|
100
100
|
react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_a", spacingType: "width" }),
|
|
101
101
|
react_1.default.createElement(hybrid_1.Icon, { size: 16, fillType: "fill", iconName: iconName, colorKey: colorTheme === 'none' ? IconColorByStatus() : IconColorByColorByTheme() }),
|
|
102
102
|
react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_a", spacingType: "width" }),
|
|
103
|
-
react_1.default.createElement(TextLabel_1.TextLabel, { text: convertFormatHelper(text), styleTheme: "body2Regular",
|
|
103
|
+
react_1.default.createElement(TextLabel_1.TextLabel, { text: convertFormatHelper(text), styleTheme: "body2Regular", singleLineMode: "use", colorTheme: TextLabelColorBySelect(), colorOverride: TextLabelColorByByColorTheme() })));
|
|
104
104
|
}
|
|
105
105
|
var ReactionButtonStyle = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n align-items: center;\n background-color: transparent;\n border: none;\n display: flex;\n justify-content: center;\n padding: 0;\n"], ["\n align-items: center;\n background-color: transparent;\n border: none;\n display: flex;\n justify-content: center;\n padding: 0;\n"])));
|
|
106
106
|
var S_ReactionButton = styled_components_1.default.button(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), ReactionButtonStyle);
|
|
@@ -37,7 +37,7 @@ function StatusBlock(_a) {
|
|
|
37
37
|
small: 'body2Bold'
|
|
38
38
|
};
|
|
39
39
|
return (react_1.default.createElement(S_StatusBlock, { size: size, state: state, "$width": width },
|
|
40
|
-
react_1.default.createElement(TextLabel_1.TextLabel, { text: text, styleTheme: textLabelStyleThemeObj[size], textAlign: "center",
|
|
40
|
+
react_1.default.createElement(TextLabel_1.TextLabel, { text: text, styleTheme: textLabelStyleThemeObj[size], textAlign: "center", singleLineMode: "use", colorTheme: "sysTextWhite" })));
|
|
41
41
|
}
|
|
42
42
|
var large = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n border-radius: 8px;\n height: 48px;\n"], ["\n border-radius: 8px;\n height: 48px;\n"])));
|
|
43
43
|
var medium = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n border-radius: 8px;\n height: 40px;\n"], ["\n border-radius: 8px;\n height: 40px;\n"])));
|
|
@@ -68,7 +68,7 @@ function TextButton(_a) {
|
|
|
68
68
|
xsmall: 'caption1Regular'
|
|
69
69
|
};
|
|
70
70
|
return (react_1.default.createElement(S_Button, __assign({}, rest, { size: size, responsiveMode: responsiveMode, onClick: handleClick, type: type, fontWeight: fontWeight, disabled: state === 'disabled' }),
|
|
71
|
-
react_1.default.createElement(TextLabel_1.TextLabel, { text: text, styleTheme: textStyle[size], colorTheme: state === 'disabled' ? 'sysTextTertiary' : 'usrTextBrandPrimary',
|
|
71
|
+
react_1.default.createElement(TextLabel_1.TextLabel, { text: text, styleTheme: textStyle[size], colorTheme: state === 'disabled' ? 'sysTextTertiary' : 'usrTextBrandPrimary', singleLineMode: "use" })));
|
|
72
72
|
}
|
|
73
73
|
var large = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n height: 48px;\n ", ";\n"], ["\n height: 48px;\n ", ";\n"])), function (_a) {
|
|
74
74
|
var size = _a.size;
|
|
@@ -10,7 +10,6 @@ export declare type TextLabelProps = {
|
|
|
10
10
|
singleLineMode?: 'none' | 'use';
|
|
11
11
|
ellipsisMode?: 'none' | 'use';
|
|
12
12
|
lineLimit?: number;
|
|
13
|
-
btnMode?: 'none' | 'use';
|
|
14
13
|
};
|
|
15
14
|
export declare type TextStyleProps = {
|
|
16
15
|
textAlign?: 'left' | 'center' | 'right';
|
|
@@ -21,7 +20,6 @@ export declare type TextStyleProps = {
|
|
|
21
20
|
singleLineMode?: 'none' | 'use';
|
|
22
21
|
ellipsisMode?: 'none' | 'use';
|
|
23
22
|
lineLimit?: number;
|
|
24
|
-
btnMode?: 'none' | 'use';
|
|
25
23
|
};
|
|
26
|
-
declare function TextLabel({ text, textAlign, styleTheme, colorOverride, colorTheme, underline, singleLineMode, ellipsisMode, lineLimit
|
|
24
|
+
declare function TextLabel({ text, textAlign, styleTheme, colorOverride, colorTheme, underline, singleLineMode, ellipsisMode, lineLimit }: TextLabelProps): JSX.Element;
|
|
27
25
|
export default TextLabel;
|
|
@@ -30,8 +30,8 @@ var react_1 = __importDefault(require("react"));
|
|
|
30
30
|
var styled_components_1 = __importStar(require("styled-components"));
|
|
31
31
|
var common_1 = require("../../../common");
|
|
32
32
|
function TextLabel(_a) {
|
|
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
|
|
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));
|
|
35
35
|
}
|
|
36
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) {
|
|
37
37
|
var theme = _a.theme;
|
|
@@ -245,13 +245,13 @@ var usrTextBrandOnPrimary = (0, styled_components_1.css)(templateObject_27 || (t
|
|
|
245
245
|
});
|
|
246
246
|
var colorOverrideStyle = (0, styled_components_1.css)(templateObject_28 || (templateObject_28 = __makeTemplateObject(["\n color: ", ";\n"], ["\n color: ", ";\n"])), function (_a) {
|
|
247
247
|
var colorOverride = _a.colorOverride;
|
|
248
|
-
return colorOverride && common_1.
|
|
248
|
+
return colorOverride && (0, common_1.customTheme)(window.PdsUtils ? window.PdsUtils.tone : 'DARK')[colorOverride];
|
|
249
249
|
});
|
|
250
250
|
var ellipsisStyle = (0, styled_components_1.css)(templateObject_29 || (templateObject_29 = __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) {
|
|
251
251
|
var lineLimit = _a.lineLimit;
|
|
252
252
|
return lineLimit;
|
|
253
253
|
});
|
|
254
|
-
var S_TextLabel = styled_components_1.default.div(templateObject_30 || (templateObject_30 = __makeTemplateObject(["\n box-sizing: border-box;\n text-align: ", ";\n text-decoration: ", ";\n white-space: pre-wrap;\n word-break: break-all;\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n
|
|
254
|
+
var S_TextLabel = styled_components_1.default.div(templateObject_30 || (templateObject_30 = __makeTemplateObject(["\n box-sizing: border-box;\n text-align: ", ";\n text-decoration: ", ";\n white-space: pre-wrap;\n word-break: break-all;\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n"], ["\n box-sizing: border-box;\n text-align: ", ";\n text-decoration: ", ";\n white-space: pre-wrap;\n word-break: break-all;\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n"])), function (_a) {
|
|
255
255
|
var textAlign = _a.textAlign;
|
|
256
256
|
return textAlign;
|
|
257
257
|
}, function (_a) {
|
|
@@ -295,11 +295,10 @@ var S_TextLabel = styled_components_1.default.div(templateObject_30 || (template
|
|
|
295
295
|
usrTextBrandOnPrimary: usrTextBrandOnPrimary
|
|
296
296
|
}[colorTheme];
|
|
297
297
|
}, function (_a) {
|
|
298
|
-
var singleLineMode = _a.singleLineMode, theme = _a.theme;
|
|
299
|
-
return singleLineMode === 'use' &&
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
return btnMode === 'use' && "line-height: " + theme.desktopLineHeight.btn;
|
|
298
|
+
var singleLineMode = _a.singleLineMode, ellipsisMode = _a.ellipsisMode, theme = _a.theme;
|
|
299
|
+
return singleLineMode === 'use' &&
|
|
300
|
+
ellipsisMode === 'none' &&
|
|
301
|
+
"line-height: " + theme.desktopLineHeight.singleLine;
|
|
303
302
|
}, function (_a) {
|
|
304
303
|
var ellipsisMode = _a.ellipsisMode, lineLimit = _a.lineLimit;
|
|
305
304
|
return ellipsisMode === 'use' && lineLimit && ellipsisStyle;
|
|
@@ -62,7 +62,9 @@ var fillDisabled = (0, styled_components_1.css)(templateObject_1 || (templateObj
|
|
|
62
62
|
});
|
|
63
63
|
var fill = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n background-color: ", ";\n\n &:active:not([disabled]) {\n background-image: ", ";\n }\n\n ", ";\n"], ["\n background-color: ", ";\n\n &:active:not([disabled]) {\n background-image: ", ";\n }\n\n ", ";\n"])), function (_a) {
|
|
64
64
|
var theme = _a.theme, baseColorKey = _a.baseColorKey;
|
|
65
|
-
return baseColorKey
|
|
65
|
+
return baseColorKey
|
|
66
|
+
? (0, common_1.customTheme)(window.PdsUtils ? window.PdsUtils.tone : 'DARK')[baseColorKey]
|
|
67
|
+
: theme.ui_cpnt_button_fill_base_primary;
|
|
66
68
|
}, function (_a) {
|
|
67
69
|
var theme = _a.theme, baseColorKey = _a.baseColorKey;
|
|
68
70
|
return baseColorKey === 'ui_cpnt_button_fill_base_transparent'
|
|
@@ -92,7 +94,9 @@ var line = (0, styled_components_1.css)(templateObject_6 || (templateObject_6 =
|
|
|
92
94
|
return theme.ui_cpnt_button_line_base_default;
|
|
93
95
|
}, function (_a) {
|
|
94
96
|
var theme = _a.theme, borderColorKey = _a.borderColorKey;
|
|
95
|
-
return borderColorKey
|
|
97
|
+
return borderColorKey
|
|
98
|
+
? (0, common_1.customTheme)(window.PdsUtils ? window.PdsUtils.tone : 'DARK')[borderColorKey]
|
|
99
|
+
: theme.ui_cpnt_button_line_border_enabled;
|
|
96
100
|
}, function (_a) {
|
|
97
101
|
var colorTheme = _a.colorTheme;
|
|
98
102
|
switch (colorTheme) {
|
|
@@ -64,7 +64,7 @@ function UploadMainButton(_a) {
|
|
|
64
64
|
size !== 'xsmall' && iconMode === 'left' && (react_1.default.createElement(react_1.default.Fragment, null,
|
|
65
65
|
react_1.default.createElement(hybrid_1.Icon, { iconName: iconName, size: size === 'large' || size === 'rlarge' ? 20 : 16, colorKey: iconColor(), fillType: iconFillType }),
|
|
66
66
|
react_1.default.createElement(hybrid_1.Spacing, { size: size === 'large' || size === 'rlarge' ? 'spacing_b' : 'spacing_a', spacingType: "width" }))),
|
|
67
|
-
react_1.default.createElement(TextLabel_1.TextLabel, { text: text, styleTheme: types_1.textStyles[size],
|
|
67
|
+
react_1.default.createElement(TextLabel_1.TextLabel, { text: text, styleTheme: types_1.textStyles[size], singleLineMode: "use", colorTheme: state === 'disabled' ? 'sysTextTertiary' : types_1.textColors[fillType], colorOverride: selectTextThemeColor() }),
|
|
68
68
|
size !== 'xsmall' && iconMode === 'right' && (react_1.default.createElement(react_1.default.Fragment, null,
|
|
69
69
|
react_1.default.createElement(hybrid_1.Spacing, { size: size === 'large' || size === 'rlarge' ? 'spacing_b' : 'spacing_a', spacingType: "width" }),
|
|
70
70
|
react_1.default.createElement(hybrid_1.Icon, { iconName: iconName, size: size === 'large' || size === 'rlarge' ? 20 : 16, colorKey: iconColor(), fillType: iconFillType })))));
|
|
@@ -45,7 +45,7 @@ function UploadTextButton(_a) {
|
|
|
45
45
|
};
|
|
46
46
|
return (react_1.default.createElement(S_UploadTextButton, { size: size, responsiveMode: responsiveMode, fontWeight: fontWeight, disabled: state === 'disabled' },
|
|
47
47
|
react_1.default.createElement("input", { type: "file", hidden: true, disabled: state === 'disabled', accept: accept, multiple: multipleMode === 'use', onChange: handleClick }),
|
|
48
|
-
react_1.default.createElement(TextLabel_1.TextLabel, { text: text, styleTheme: textStyle[size], colorTheme: state === 'disabled' ? 'sysTextTertiary' : 'usrTextBrandPrimary',
|
|
48
|
+
react_1.default.createElement(TextLabel_1.TextLabel, { text: text, styleTheme: textStyle[size], colorTheme: state === 'disabled' ? 'sysTextTertiary' : 'usrTextBrandPrimary', singleLineMode: "use" })));
|
|
49
49
|
}
|
|
50
50
|
var large = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n height: 48px;\n width: ", ";\n"], ["\n height: 48px;\n width: ", ";\n"])), function (_a) {
|
|
51
51
|
var size = _a.size;
|