pds-dev-kit-web 2.2.257 → 2.2.259
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/services/i18n/resources/en.json +2 -1
- package/dist/src/common/services/i18n/resources/es.json +2 -1
- package/dist/src/common/services/i18n/resources/fil.json +2 -1
- package/dist/src/common/services/i18n/resources/index.d.ts +7 -0
- package/dist/src/common/services/i18n/resources/ja.json +2 -1
- package/dist/src/common/services/i18n/resources/ko.json +2 -1
- package/dist/src/common/services/i18n/resources/zh-cn.json +2 -1
- package/dist/src/common/services/i18n/resources/zh-tw.json +2 -1
- package/dist/src/common/styles/colorSet/UIColor.json +6 -1
- package/dist/src/common/styles/colorSet/index.d.ts +131 -126
- package/dist/src/common/styles/colorSet/index.js +2 -2
- package/dist/src/common/styles/colorSet/ui-type.d.ts +5 -0
- package/dist/src/desktop/components/ChatBubbleListItem/ChatBubbleListItem.d.ts +12 -1
- package/dist/src/desktop/components/ChatBubbleListItem/ChatBubbleListItem.js +12 -7
- package/dist/src/desktop/components/ChatBubbleListItem/components/ReactionBubble.d.ts +11 -0
- package/dist/src/desktop/components/ChatBubbleListItem/components/ReactionBubble.js +86 -0
- package/dist/src/desktop/components/ChatBubbleListItem/components/ReactionRow.d.ts +18 -0
- package/dist/src/desktop/components/ChatBubbleListItem/components/ReactionRow.js +133 -0
- package/dist/src/desktop/components/ChatBubbleListItem/components/index.d.ts +1 -0
- package/dist/src/desktop/components/ChatBubbleListItem/components/index.js +8 -0
- package/dist/src/desktop/components/TextButton/TextButton.d.ts +3 -2
- package/dist/src/desktop/components/TextButton/TextButton.js +27 -19
- package/dist/src/hybrid/components/LottieIcon/LottieIcon.js +1 -1
- package/dist/src/mobile/components/ChatBubbleListItem/ChatBubbleListItem.d.ts +12 -1
- package/dist/src/mobile/components/ChatBubbleListItem/ChatBubbleListItem.js +12 -7
- package/dist/src/mobile/components/ChatBubbleListItem/components/ReactionBubble.d.ts +11 -0
- package/dist/src/mobile/components/ChatBubbleListItem/components/ReactionBubble.js +86 -0
- package/dist/src/mobile/components/ChatBubbleListItem/components/ReactionRow.d.ts +18 -0
- package/dist/src/mobile/components/ChatBubbleListItem/components/ReactionRow.js +126 -0
- package/dist/src/mobile/components/ChatBubbleListItem/components/index.d.ts +1 -0
- package/dist/src/mobile/components/ChatBubbleListItem/components/index.js +8 -0
- package/dist/src/mobile/components/TextButton/TextButton.d.ts +3 -2
- package/dist/src/mobile/components/TextButton/TextButton.js +27 -19
- package/package.json +1 -1
- package/release-note.md +3 -2
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
+
return cooked;
|
|
5
|
+
};
|
|
6
|
+
var __assign = (this && this.__assign) || function () {
|
|
7
|
+
__assign = Object.assign || function(t) {
|
|
8
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
9
|
+
s = arguments[i];
|
|
10
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
11
|
+
t[p] = s[p];
|
|
12
|
+
}
|
|
13
|
+
return t;
|
|
14
|
+
};
|
|
15
|
+
return __assign.apply(this, arguments);
|
|
16
|
+
};
|
|
17
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
18
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
19
|
+
};
|
|
20
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
22
|
+
var react_1 = require("react");
|
|
23
|
+
var components_1 = require("../../../../hybrid/components");
|
|
24
|
+
var TextLabel_1 = require("../../../components/TextLabel");
|
|
25
|
+
var styled_components_1 = __importDefault(require("styled-components"));
|
|
26
|
+
var ReactionBubble_1 = __importDefault(require("./ReactionBubble"));
|
|
27
|
+
function ReactionRow(_a) {
|
|
28
|
+
var isMe = _a.isMe, downloadIBtnMode = _a.downloadIBtnMode, reactionBtnMode = _a.reactionBtnMode, reactionBtnText = _a.reactionBtnText, reactionArray = _a.reactionArray, reactionBubblePosition = _a.reactionBubblePosition, onClickReactionBtn = _a.onClickReactionBtn;
|
|
29
|
+
var _b = (0, react_1.useState)(false), isOpenReactionBubble = _b[0], setIsOpenReactionBubble = _b[1];
|
|
30
|
+
var bubbleRef = (0, react_1.useRef)(null);
|
|
31
|
+
var buttonRef = (0, react_1.useRef)(null);
|
|
32
|
+
/**
|
|
33
|
+
* @when : 컴포넌트 렌더링 시
|
|
34
|
+
* @expected : ReactionBubble의 외부를 클릭하면 ReactionBubble가 닫히도록 클릭 이벤트를 등록합니다.
|
|
35
|
+
* @clear document의 클릭 이벤트를 제거합니다.
|
|
36
|
+
*/
|
|
37
|
+
(0, react_1.useEffect)(function () {
|
|
38
|
+
function handleClickOutside(event) {
|
|
39
|
+
var _a, _b;
|
|
40
|
+
event.stopPropagation();
|
|
41
|
+
if (event.target instanceof Node &&
|
|
42
|
+
(((_a = buttonRef.current) === null || _a === void 0 ? void 0 : _a.contains(event.target)) || ((_b = bubbleRef.current) === null || _b === void 0 ? void 0 : _b.contains(event.target))))
|
|
43
|
+
return;
|
|
44
|
+
if (isOpenReactionBubble) {
|
|
45
|
+
setIsOpenReactionBubble(false);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
document.addEventListener('mousedown', handleClickOutside);
|
|
49
|
+
return function () {
|
|
50
|
+
document.removeEventListener('mousedown', handleClickOutside);
|
|
51
|
+
};
|
|
52
|
+
}, [isOpenReactionBubble]);
|
|
53
|
+
var defaultReactions = [
|
|
54
|
+
{ iconName: 'ic_lottie_heart', type: 'heart' },
|
|
55
|
+
{ iconName: 'ic_lottie_thumb_up', type: 'like' },
|
|
56
|
+
{ iconName: 'ic_lottie_confetti', type: 'confetti' }
|
|
57
|
+
];
|
|
58
|
+
var handleClickReactionButton = function () {
|
|
59
|
+
isOpenReactionBubble ? setIsOpenReactionBubble(false) : setIsOpenReactionBubble(true);
|
|
60
|
+
};
|
|
61
|
+
return ((0, jsx_runtime_1.jsxs)(S_Wrapper, { children: [(0, jsx_runtime_1.jsxs)(S_ReactionWrapper, __assign({ isMe: isMe, downloadIBtnMode: downloadIBtnMode === 'use' }, { children: [(0, jsx_runtime_1.jsx)(S_ButtonWrapper, __assign({ ref: buttonRef }, { children: !isMe && reactionBtnMode === 'use' && ((0, jsx_runtime_1.jsxs)(S_ReactionButton, __assign({ onClick: handleClickReactionButton }, { children: [(0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: "ic_plus_circle", size: 12 }), (0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: reactionBtnText, singleLineMode: "use", styleTheme: "caption2Bold" })] }))) })), reactionArray && ((0, jsx_runtime_1.jsx)(S_ReactionBadgeWrapper, { children: reactionArray.map(function (reaction, index) {
|
|
62
|
+
var iconName = function () {
|
|
63
|
+
switch (reaction.type) {
|
|
64
|
+
case 'heart':
|
|
65
|
+
return 'ic_lottie_heart';
|
|
66
|
+
case 'like':
|
|
67
|
+
return 'ic_lottie_thumb_up';
|
|
68
|
+
case 'confetti':
|
|
69
|
+
return 'ic_lottie_confetti';
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
return ((0, jsx_runtime_1.jsx)(S_ReactionBadge, __assign({ type: reaction.type }, { children: (0, jsx_runtime_1.jsx)(components_1.LottieIcon, { iconName: iconName(), size: 16, autoplayMode: "none", loopMode: "none" }) }), index));
|
|
73
|
+
}) }))] })), (0, jsx_runtime_1.jsx)(S_ReactionBubbleWrapper, __assign({ ref: bubbleRef, reactionBubblePosition: reactionBubblePosition }, { children: isOpenReactionBubble && ((0, jsx_runtime_1.jsx)(ReactionBubble_1.default, __assign({ pointingPosition: reactionBubblePosition === 'bottom' ? 'start_top' : 'start_bottom' }, { children: (0, jsx_runtime_1.jsx)(S_ReactionBadgeWrapper, { children: defaultReactions.map(function (reaction, index) { return ((0, jsx_runtime_1.jsx)(S_ReactionBadge, __assign({ type: reaction.type, isButton: true, onClick: function () {
|
|
74
|
+
onClickReactionBtn && onClickReactionBtn(reaction.type);
|
|
75
|
+
setIsOpenReactionBubble(false);
|
|
76
|
+
} }, { children: (0, jsx_runtime_1.jsx)(components_1.LottieIcon, { iconName: reaction.iconName, size: 16, autoplayMode: "none", loopMode: "none" }) }), index)); }) }) }))) }))] }));
|
|
77
|
+
}
|
|
78
|
+
exports.default = ReactionRow;
|
|
79
|
+
var S_Wrapper = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n align-items: flex-start;\n display: flex;\n flex-direction: column;\n gap: ", ";\n position: relative;\n"], ["\n align-items: flex-start;\n display: flex;\n flex-direction: column;\n gap: ", ";\n position: relative;\n"])), function (_a) {
|
|
80
|
+
var theme = _a.theme;
|
|
81
|
+
return theme.spacing.spacingA;
|
|
82
|
+
});
|
|
83
|
+
var S_ReactionWrapper = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: flex;\n gap: ", ";\n justify-content: space-between;\n max-width: -webkit-fill-available;\n padding-right: ", ";\n padding-top: ", ";\n width: 100%;\n"], ["\n display: flex;\n gap: ", ";\n justify-content: space-between;\n max-width: -webkit-fill-available;\n padding-right: ", ";\n padding-top: ", ";\n width: 100%;\n"])), function (_a) {
|
|
84
|
+
var theme = _a.theme;
|
|
85
|
+
return theme.spacing.spacingB;
|
|
86
|
+
}, function (_a) {
|
|
87
|
+
var isMe = _a.isMe, downloadIBtnMode = _a.downloadIBtnMode;
|
|
88
|
+
return !isMe && (downloadIBtnMode ? '40px' : '34px');
|
|
89
|
+
}, function (_a) {
|
|
90
|
+
var theme = _a.theme;
|
|
91
|
+
return theme.spacing.spacingA;
|
|
92
|
+
});
|
|
93
|
+
var S_ButtonWrapper = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n"], ["\n display: flex;\n flex-direction: column;\n"])));
|
|
94
|
+
var S_ReactionButton = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n align-items: center;\n background-color: ", ";\n border-radius: 8px;\n box-sizing: border-box;\n cursor: pointer;\n display: flex;\n gap: ", ";\n height: 24px;\n justify-content: center;\n padding: 0 ", ";\n"], ["\n align-items: center;\n background-color: ", ";\n border-radius: 8px;\n box-sizing: border-box;\n cursor: pointer;\n display: flex;\n gap: ", ";\n height: 24px;\n justify-content: center;\n padding: 0 ", ";\n"])), function (_a) {
|
|
95
|
+
var theme = _a.theme;
|
|
96
|
+
return theme.ui_cpnt_sheet_base_02;
|
|
97
|
+
}, function (_a) {
|
|
98
|
+
var theme = _a.theme;
|
|
99
|
+
return theme.spacing.spacingA;
|
|
100
|
+
}, function (_a) {
|
|
101
|
+
var theme = _a.theme;
|
|
102
|
+
return theme.spacing.spacingB;
|
|
103
|
+
});
|
|
104
|
+
var S_ReactionBadgeWrapper = styled_components_1.default.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n display: flex;\n gap: ", ";\n"], ["\n display: flex;\n gap: ", ";\n"])), function (_a) {
|
|
105
|
+
var theme = _a.theme;
|
|
106
|
+
return theme.spacing.spacingA;
|
|
107
|
+
});
|
|
108
|
+
var S_ReactionBadge = styled_components_1.default.div(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n align-items: center;\n background-color: ", ";\n border-radius: 100%;\n cursor: ", ";\n display: flex;\n height: 24px;\n justify-content: center;\n width: 24px;\n"], ["\n align-items: center;\n background-color: ", ";\n border-radius: 100%;\n cursor: ", ";\n display: flex;\n height: 24px;\n justify-content: center;\n width: 24px;\n"])), function (_a) {
|
|
109
|
+
var theme = _a.theme, type = _a.type;
|
|
110
|
+
switch (type) {
|
|
111
|
+
case 'heart':
|
|
112
|
+
return theme.ui_cpnt_message_reaction_base_01;
|
|
113
|
+
case 'like':
|
|
114
|
+
return theme.ui_cpnt_message_reaction_base_02;
|
|
115
|
+
case 'confetti':
|
|
116
|
+
return theme.ui_cpnt_message_reaction_base_03;
|
|
117
|
+
}
|
|
118
|
+
}, function (_a) {
|
|
119
|
+
var isButton = _a.isButton;
|
|
120
|
+
return isButton && 'pointer';
|
|
121
|
+
});
|
|
122
|
+
var S_ReactionBubbleWrapper = styled_components_1.default.div(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n left: 0;\n position: absolute;\n ", "\n z-index: 10;\n"], ["\n left: 0;\n position: absolute;\n ", "\n z-index: 10;\n"])), function (_a) {
|
|
123
|
+
var reactionBubblePosition = _a.reactionBubblePosition;
|
|
124
|
+
return reactionBubblePosition === 'bottom' ? 'top: 28px;' : 'bottom: 24px;';
|
|
125
|
+
});
|
|
126
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as ReactionRow } from './ReactionRow';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.ReactionRow = void 0;
|
|
7
|
+
var ReactionRow_1 = require("./ReactionRow");
|
|
8
|
+
Object.defineProperty(exports, "ReactionRow", { enumerable: true, get: function () { return __importDefault(ReactionRow_1).default; } });
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type { PDSIconType, PDSTextType } from '../../../common';
|
|
2
|
+
import type { PDSIconType, PDSTextType, UiColors } from '../../../common';
|
|
3
3
|
export type TextButtonProps = {
|
|
4
4
|
text?: PDSTextType;
|
|
5
5
|
size?: 'rlarge' | 'large' | 'medium' | 'small' | 'xsmall';
|
|
@@ -11,7 +11,8 @@ export type TextButtonProps = {
|
|
|
11
11
|
iconFillType?: 'fill' | 'line';
|
|
12
12
|
iconName?: PDSIconType;
|
|
13
13
|
colorTheme?: 'none' | 'red' | 'grey_01' | 'grey2' | 'grey3' | 'white' | 'white2';
|
|
14
|
+
overrideColorKey?: UiColors;
|
|
14
15
|
onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
15
16
|
};
|
|
16
|
-
declare function TextButton({ text, size, responsiveMode, fontWeight, type, state, iconMode, iconFillType, iconName, colorTheme, onClick, ...rest }: TextButtonProps): JSX.Element;
|
|
17
|
+
declare function TextButton({ text, size, responsiveMode, fontWeight, type, state, iconMode, iconFillType, iconName, colorTheme, overrideColorKey, onClick, ...rest }: TextButtonProps): JSX.Element;
|
|
17
18
|
export default TextButton;
|
|
@@ -70,14 +70,16 @@ var textColor = {
|
|
|
70
70
|
white: 'sysTextWhite',
|
|
71
71
|
white2: 'sysTextWhite'
|
|
72
72
|
};
|
|
73
|
-
var
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
73
|
+
var getIconColor = function (overrideColorKey) {
|
|
74
|
+
return ({
|
|
75
|
+
none: overrideColorKey ? overrideColorKey : 'ui_cpnt_button_icon_primary',
|
|
76
|
+
red: overrideColorKey ? overrideColorKey : 'ui_cpnt_button_icon_error',
|
|
77
|
+
grey_01: overrideColorKey ? overrideColorKey : 'ui_cpnt_button_icon_enabled',
|
|
78
|
+
grey2: overrideColorKey ? overrideColorKey : 'ui_cpnt_button_icon_default',
|
|
79
|
+
grey3: overrideColorKey ? overrideColorKey : 'ui_141',
|
|
80
|
+
white: overrideColorKey ? overrideColorKey : 'ui_cpnt_sidebar_icon_01',
|
|
81
|
+
white2: overrideColorKey ? overrideColorKey : 'ui_cpnt_sidebar_icon_01'
|
|
82
|
+
});
|
|
81
83
|
};
|
|
82
84
|
var textDisabledColor = {
|
|
83
85
|
none: 'sysTextTertiary',
|
|
@@ -88,14 +90,16 @@ var textDisabledColor = {
|
|
|
88
90
|
white: 'sysTextTertiary',
|
|
89
91
|
white2: 'sysTextTertiary'
|
|
90
92
|
};
|
|
91
|
-
var
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
93
|
+
var getOverrideTextColor = function (overrideColorKey) {
|
|
94
|
+
return ({
|
|
95
|
+
none: overrideColorKey,
|
|
96
|
+
red: overrideColorKey,
|
|
97
|
+
grey_01: overrideColorKey,
|
|
98
|
+
grey2: overrideColorKey,
|
|
99
|
+
grey3: overrideColorKey ? overrideColorKey : 'ui_141',
|
|
100
|
+
white: overrideColorKey,
|
|
101
|
+
white2: overrideColorKey
|
|
102
|
+
});
|
|
99
103
|
};
|
|
100
104
|
var overrideTextDisabledColor = {
|
|
101
105
|
none: undefined,
|
|
@@ -116,15 +120,19 @@ var backgroundPressedColor = {
|
|
|
116
120
|
white2: 'ui_cpnt_textbutton_white_variation_base_pressed'
|
|
117
121
|
};
|
|
118
122
|
function TextButton(_a) {
|
|
119
|
-
var text = _a.text, _b = _a.size, size = _b === void 0 ? 'large' : _b, _c = _a.responsiveMode, responsiveMode = _c === void 0 ? 'none' : _c, fontWeight = _a.fontWeight, _d = _a.type, type = _d === void 0 ? 'button' : _d, _e = _a.state, state = _e === void 0 ? 'normal' : _e, _f = _a.iconMode, iconMode = _f === void 0 ? 'none' : _f, _g = _a.iconFillType, iconFillType = _g === void 0 ? 'line' : _g, iconName = _a.iconName, _h = _a.colorTheme, colorTheme = _h === void 0 ? 'none' : _h, onClick = _a.onClick, rest = __rest(_a, ["text", "size", "responsiveMode", "fontWeight", "type", "state", "iconMode", "iconFillType", "iconName", "colorTheme", "onClick"]);
|
|
123
|
+
var text = _a.text, _b = _a.size, size = _b === void 0 ? 'large' : _b, _c = _a.responsiveMode, responsiveMode = _c === void 0 ? 'none' : _c, fontWeight = _a.fontWeight, _d = _a.type, type = _d === void 0 ? 'button' : _d, _e = _a.state, state = _e === void 0 ? 'normal' : _e, _f = _a.iconMode, iconMode = _f === void 0 ? 'none' : _f, _g = _a.iconFillType, iconFillType = _g === void 0 ? 'line' : _g, iconName = _a.iconName, _h = _a.colorTheme, colorTheme = _h === void 0 ? 'none' : _h, overrideColorKey = _a.overrideColorKey, onClick = _a.onClick, rest = __rest(_a, ["text", "size", "responsiveMode", "fontWeight", "type", "state", "iconMode", "iconFillType", "iconName", "colorTheme", "overrideColorKey", "onClick"]);
|
|
120
124
|
var handleClick = function (e) {
|
|
121
125
|
if (onClick) {
|
|
122
126
|
onClick(e);
|
|
123
127
|
}
|
|
124
128
|
};
|
|
125
|
-
return ((0, jsx_runtime_1.jsxs)(S_Button, __assign({ "x-pds-name": "TextButton", "x-pds-element-type": "component", "x-pds-device-type": "mobile" }, rest, { size: size, responsiveMode: responsiveMode, onClick: handleClick, type: type, fontWeight: fontWeight, disabled: state === 'disabled', pressedColor: backgroundPressedColor[colorTheme] }, { children: [size !== 'xsmall' && iconMode === 'left' && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: iconName, size: size === 'large' || size === 'rlarge' ? 20 : 16, colorKey: state === 'disabled'
|
|
129
|
+
return ((0, jsx_runtime_1.jsxs)(S_Button, __assign({ "x-pds-name": "TextButton", "x-pds-element-type": "component", "x-pds-device-type": "mobile" }, rest, { size: size, responsiveMode: responsiveMode, onClick: handleClick, type: type, fontWeight: fontWeight, disabled: state === 'disabled', pressedColor: backgroundPressedColor[colorTheme] }, { children: [size !== 'xsmall' && iconMode === 'left' && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: iconName, size: size === 'large' || size === 'rlarge' ? 20 : 16, colorKey: state === 'disabled'
|
|
130
|
+
? 'ui_cpnt_button_text_disabled'
|
|
131
|
+
: getIconColor(overrideColorKey)[colorTheme], fillType: iconFillType }), (0, jsx_runtime_1.jsx)(components_1.Spacing, { size: size === 'large' || size === 'rlarge' ? 'spacing_b' : 'spacing_a', spacingType: "width" })] })), (0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: text, styleTheme: textStyle[size], colorTheme: state === 'disabled' ? textDisabledColor[colorTheme] : textColor[colorTheme], colorOverride: state === 'disabled'
|
|
126
132
|
? overrideTextDisabledColor[colorTheme]
|
|
127
|
-
:
|
|
133
|
+
: getOverrideTextColor(overrideColorKey)[colorTheme], singleLineMode: "use" }), size !== 'xsmall' && iconMode === 'right' && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(components_1.Spacing, { size: size === 'large' || size === 'rlarge' ? 'spacing_b' : 'spacing_a', spacingType: "width" }), (0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: iconName, size: size === 'large' || size === 'rlarge' ? 20 : 16, colorKey: state === 'disabled'
|
|
134
|
+
? 'ui_cpnt_button_text_disabled'
|
|
135
|
+
: getIconColor(overrideColorKey)[colorTheme], fillType: iconFillType })] }))] })));
|
|
128
136
|
}
|
|
129
137
|
var large = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n border-radius: 14px;\n height: 48px;\n ", ";\n\n & > div {\n height: 48px;\n line-height: 48px;\n }\n"], ["\n border-radius: 14px;\n height: 48px;\n ", ";\n\n & > div {\n height: 48px;\n line-height: 48px;\n }\n"])), function (_a) {
|
|
130
138
|
var size = _a.size;
|
package/package.json
CHANGED
package/release-note.md
CHANGED