pds-dev-kit-web-test 0.2.54 → 0.3.0
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/fill/BellOff.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/BellOff.js +30 -0
- package/dist/src/common/assets/icons/fill/VideocallPro.js +1 -1
- package/dist/src/common/assets/icons/fill/Vodplus.js +1 -1
- package/dist/src/common/assets/icons/fill/index.d.ts +1 -0
- package/dist/src/common/assets/icons/fill/index.js +2 -0
- package/dist/src/common/assets/icons/line/BellOff.d.ts +4 -0
- package/dist/src/common/assets/icons/line/BellOff.js +30 -0
- package/dist/src/common/assets/icons/line/ChatRoom11.d.ts +4 -0
- package/dist/src/common/assets/icons/line/ChatRoom11.js +30 -0
- package/dist/src/common/assets/icons/line/ChatRoomFree.d.ts +4 -0
- package/dist/src/common/assets/icons/line/ChatRoomFree.js +30 -0
- package/dist/src/common/assets/icons/line/ChatRoomGroup.d.ts +4 -0
- package/dist/src/common/assets/icons/line/ChatRoomGroup.js +30 -0
- package/dist/src/common/assets/icons/line/ChatRoomPaid.d.ts +4 -0
- package/dist/src/common/assets/icons/line/ChatRoomPaid.js +30 -0
- package/dist/src/common/assets/icons/line/DesignPreference.js +1 -1
- package/dist/src/common/assets/icons/line/PappType.js +1 -1
- package/dist/src/common/assets/icons/line/PaymentRegularly.js +1 -1
- package/dist/src/common/assets/icons/line/PostVote.js +1 -1
- package/dist/src/common/assets/icons/line/Target.js +1 -1
- package/dist/src/common/assets/icons/line/TypefaceDisplay20.d.ts +4 -0
- package/dist/src/common/assets/icons/line/TypefaceDisplay20.js +30 -0
- package/dist/src/common/assets/icons/line/TypefaceHand20.d.ts +4 -0
- package/dist/src/common/assets/icons/line/TypefaceHand20.js +30 -0
- package/dist/src/common/assets/icons/line/TypefaceMonospace20.d.ts +4 -0
- package/dist/src/common/assets/icons/line/TypefaceMonospace20.js +30 -0
- package/dist/src/common/assets/icons/line/TypefaceSansSerif20.d.ts +4 -0
- package/dist/src/common/assets/icons/line/TypefaceSansSerif20.js +30 -0
- package/dist/src/common/assets/icons/line/TypefaceSerif20.d.ts +4 -0
- package/dist/src/common/assets/icons/line/TypefaceSerif20.js +30 -0
- package/dist/src/common/assets/icons/line/index.d.ts +10 -0
- package/dist/src/common/assets/icons/line/index.js +20 -0
- package/dist/src/common/hooks/index.d.ts +1 -0
- package/dist/src/common/hooks/index.js +3 -1
- package/dist/src/common/hooks/useAbsolutePositioner.d.ts +13 -0
- package/dist/src/common/hooks/useAbsolutePositioner.js +54 -0
- package/dist/src/common/hooks/useTooltip.d.ts +17 -0
- package/dist/src/common/hooks/useTooltip.js +76 -0
- package/dist/src/common/styles/colorSet/PaletteColor_Dark.json +2 -1
- package/dist/src/common/styles/colorSet/PaletteColor_light.json +2 -1
- package/dist/src/common/styles/colorSet/UIColor.json +2 -1
- package/dist/src/common/styles/colorSet/index.d.ts +963 -960
- package/dist/src/common/styles/colorSet/index.js +5 -5
- package/dist/src/common/styles/colorSet/ui-type.d.ts +1 -0
- package/dist/src/common/styles/systemUI/index.d.ts +1 -0
- package/dist/src/common/styles/systemUI/index.js +5 -0
- package/dist/src/common/styles/systemUI/tooltipStyle.d.ts +1 -0
- package/dist/src/common/styles/systemUI/tooltipStyle.js +28 -0
- package/dist/src/common/types/components.d.ts +3 -2
- package/dist/src/common/types/systemUI.d.ts +13 -0
- package/dist/src/common/types/systemUI.js +2 -0
- package/dist/src/common/utils/SystemUIPositionGenerator/clickTypeSystemUICssGenerator.d.ts +13 -0
- package/dist/src/common/utils/SystemUIPositionGenerator/clickTypeSystemUICssGenerator.js +20 -0
- package/dist/src/common/utils/SystemUIPositionGenerator/hoverTypeSystemUICssGenerator.d.ts +17 -0
- package/dist/src/common/utils/SystemUIPositionGenerator/hoverTypeSystemUICssGenerator.js +71 -0
- package/dist/src/common/utils/SystemUIPositionGenerator/index.d.ts +1 -0
- package/dist/src/common/utils/SystemUIPositionGenerator/index.js +8 -0
- package/dist/src/desktop/components/BasicButtonGroup/BasicButtonGroup.js +54 -42
- package/dist/src/desktop/components/BasicButtonGroup/constants.d.ts +0 -6
- package/dist/src/desktop/components/BasicButtonGroup/constants.js +1 -8
- package/dist/src/desktop/components/BasicChatListItem/BasicChatListItem.d.ts +2 -4
- package/dist/src/desktop/components/BasicChatListItem/BasicChatListItem.js +14 -5
- package/dist/src/desktop/components/ChatBubbleListItem/ChatBubbleListItem.d.ts +3 -3
- package/dist/src/desktop/components/ChatBubbleListItem/ChatBubbleListItem.js +41 -45
- package/dist/src/desktop/components/ContextMenu/ContextMenu.js +1 -1
- package/dist/src/desktop/components/Dropdown/Dropdown.js +48 -9
- package/dist/src/desktop/components/IconButton/IconButton.d.ts +3 -1
- package/dist/src/desktop/components/IconButton/IconButton.js +48 -44
- package/dist/src/desktop/components/SegmentedButtonGroup/SegmentedButtonGroup.js +54 -42
- package/dist/src/desktop/components/SegmentedButtonGroup/constants.d.ts +0 -6
- package/dist/src/desktop/components/SegmentedButtonGroup/constants.js +1 -8
- package/dist/src/desktop/components/TextLabel/TextLabel.d.ts +3 -1
- package/dist/src/desktop/components/TextLabel/TextLabel.js +33 -63
- package/dist/src/desktop/components/UploadIconButton/UploadIconButton.d.ts +3 -1
- package/dist/src/desktop/components/UploadIconButton/UploadIconButton.js +49 -45
- package/dist/src/desktop/components/UploadIconButton/constants.d.ts +7 -0
- package/dist/src/desktop/components/UploadIconButton/constants.js +10 -0
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/ContentsContainer.d.ts +1 -1
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/ContentsContainer.js +2 -1
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTW.d.ts +18 -0
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTW.js +112 -0
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/index.d.ts +1 -0
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/index.js +3 -1
- package/dist/src/desktop/layout/LayoutWT/ContainersBox/ContainersBox.d.ts +1 -1
- package/dist/src/desktop/layout/LayoutWT/ContainersBox/ContainersBox.js +8 -4
- package/dist/src/hybrid/components/Icon/Icon.js +2 -1
- package/dist/src/mobile/components/BasicChatListItem/BasicChatListItem.d.ts +2 -4
- package/dist/src/mobile/components/BasicChatListItem/BasicChatListItem.js +14 -5
- package/dist/src/mobile/components/ChatBubbleListItem/ChatBubbleListItem.d.ts +3 -3
- package/dist/src/mobile/components/ChatBubbleListItem/ChatBubbleListItem.js +41 -45
- package/dist/src/mobile/components/ContextMenu/ContextMenu.js +1 -1
- package/dist/src/mobile/components/Dropdown/Dropdown.js +48 -9
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/fill/VideocallPro.js +1 -1
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/fill/Vodplus.js +1 -1
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/DesignPreference.js +1 -1
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/PappType.js +1 -1
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/PaymentRegularly.js +1 -1
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/PostVote.js +1 -1
- package/dist/src/sub/DynamicLayout/pagesPreviewMock.js +1 -1
- package/dist/src/sub/DynamicLayout/sectionActionTypes.d.ts +4 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/CustomSection.js +19 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/textUtil.js +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parsePlacement.js +2 -2
- package/dist/src/sub/GoogleFontkit/headless/GoogleFontItem.js +0 -6
- package/dist/src/sub/GoogleFontkit/headless/GoogleFontsList.js +17 -37
- package/dist/src/sub/GoogleFontkit/types.d.ts +1 -1
- package/dist/src/sub/GoogleFontkit/utils/applyActiveFont.d.ts +0 -3
- package/dist/src/sub/GoogleFontkit/utils/applyActiveFont.js +0 -3
- package/dist/src/sub/GoogleFontkit/utils/createStyleSheet.d.ts +0 -3
- package/dist/src/sub/GoogleFontkit/utils/createStyleSheet.js +0 -3
- package/dist/src/sub/GoogleFontkit/utils/extractFontStyles.js +0 -4
- package/dist/src/sub/GoogleFontkit/utils/fillStyleSheet.d.ts +0 -3
- package/dist/src/sub/GoogleFontkit/utils/fillStyleSheet.js +0 -4
- package/dist/src/sub/GoogleFontkit/utils/getActiveFontStylesheet.d.ts +0 -3
- package/dist/src/sub/GoogleFontkit/utils/getActiveFontStylesheet.js +0 -3
- package/dist/src/sub/GoogleFontkit/utils/getFontId.d.ts +0 -3
- package/dist/src/sub/GoogleFontkit/utils/getFontId.js +0 -3
- package/dist/src/sub/GoogleFontkit/utils/isStyleSheetExists.d.ts +0 -3
- package/dist/src/sub/GoogleFontkit/utils/isStyleSheetExists.js +0 -3
- package/dist/src/sub/GoogleFontkit/utils/setStyleSheetType.d.ts +0 -3
- package/dist/src/sub/GoogleFontkit/utils/setStyleSheetType.js +0 -3
- package/package.json +1 -1
- package/release-note.md +3 -3
|
@@ -41,40 +41,37 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
41
41
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
42
42
|
var react_1 = require("react");
|
|
43
43
|
var react_dom_1 = require("react-dom");
|
|
44
|
+
var systemUI_1 = require("../../../common/styles/systemUI");
|
|
45
|
+
var SystemUIPositionGenerator_1 = require("../../../common/utils/SystemUIPositionGenerator");
|
|
44
46
|
var styled_components_1 = __importStar(require("styled-components"));
|
|
45
47
|
var hybrid_1 = require("../../../hybrid");
|
|
46
48
|
function TextLabel(_a) {
|
|
47
|
-
var text = _a.text, tooltipText = _a.tooltipText, _b = _a.tooltipPosition, tooltipPosition = _b === void 0 ? '
|
|
49
|
+
var text = _a.text, tooltipText = _a.tooltipText, _b = _a.tooltipPosition, tooltipPosition = _b === void 0 ? 'bottom' : _b, _c = _a.tooltipIconColorKey, tooltipIconColorKey = _c === void 0 ? 'ui_cpnt_icon_sys_grey_03' : _c, _d = _a.textAlign, textAlign = _d === void 0 ? 'left' : _d, _e = _a.styleTheme, styleTheme = _e === void 0 ? 'body2Bold' : _e, colorOverride = _a.colorOverride, _f = _a.colorTheme, colorTheme = _f === void 0 ? 'sysTextPrimary' : _f, _g = _a.singleLineMode, singleLineMode = _g === void 0 ? 'none' : _g, _h = _a.ellipsisMode, ellipsisMode = _h === void 0 ? 'none' : _h, lineLimit = _a.lineLimit, _j = _a.userSelectMode, userSelectMode = _j === void 0 ? 'none' : _j, customFontSize = _a.customFontSize, customFontWeight = _a.customFontWeight, _k = _a.textDecorationType, textDecorationType = _k === void 0 ? 'none' : _k, _l = _a.requirementMode, requirementMode = _l === void 0 ? 'none' : _l, _m = _a.bulletPointMode, bulletPointMode = _m === void 0 ? 'none' : _m, wordBreak = _a.wordBreak, letterSpacing = _a.letterSpacing;
|
|
48
50
|
var _o = (0, react_1.useState)(false), isTooltipOpen = _o[0], setIsTooltipOpen = _o[1];
|
|
51
|
+
var tooltipPositionTargetRef = (0, react_1.useRef)(null);
|
|
52
|
+
var tooltipRef = (0, react_1.useRef)(null);
|
|
49
53
|
var _p = (0, react_1.useState)(null), tooltipSizeOffset = _p[0], setTooltipSizeOffset = _p[1];
|
|
50
54
|
var _q = (0, react_1.useState)(null), tooltipPositionOffset = _q[0], setTooltipPositionOffset = _q[1];
|
|
51
|
-
var tooltipRef = (0, react_1.useRef)(null);
|
|
52
|
-
var tooltipPositionTargetRef = (0, react_1.useRef)(null);
|
|
53
|
-
var handleTooltipOpen = function () {
|
|
54
|
-
setIsTooltipOpen(true);
|
|
55
|
-
};
|
|
56
|
-
var handleTooltipClose = function () {
|
|
57
|
-
setIsTooltipOpen(false);
|
|
58
|
-
};
|
|
59
55
|
/**
|
|
60
|
-
* @when :
|
|
56
|
+
* @when : 화면진입 시, dependency 변경되었을 때
|
|
61
57
|
* @expected : tooltipPositionTargetRef, tooltipRef 의 위치를 업데이트합니다.
|
|
62
58
|
* @clear :
|
|
63
59
|
*/
|
|
64
60
|
(0, react_1.useEffect)(function () {
|
|
65
|
-
if (tooltipPositionTargetRef.current) {
|
|
66
|
-
|
|
67
|
-
setTooltipPositionOffset({
|
|
68
|
-
top: top_1 + window.scrollY,
|
|
69
|
-
right: right + window.scrollX,
|
|
70
|
-
bottom: bottom + window.scrollY,
|
|
71
|
-
left: left + window.scrollX
|
|
72
|
-
});
|
|
61
|
+
if (!tooltipPositionTargetRef.current || !tooltipText) {
|
|
62
|
+
return;
|
|
73
63
|
}
|
|
74
64
|
if (!isTooltipOpen && tooltipRef.current) {
|
|
75
65
|
setTooltipSizeOffset(null);
|
|
76
66
|
return;
|
|
77
67
|
}
|
|
68
|
+
var _a = tooltipPositionTargetRef.current.getBoundingClientRect(), top = _a.top, right = _a.right, left = _a.left, bottom = _a.bottom;
|
|
69
|
+
setTooltipPositionOffset({
|
|
70
|
+
top: top + window.scrollY,
|
|
71
|
+
right: right + window.scrollX,
|
|
72
|
+
bottom: bottom + window.scrollY,
|
|
73
|
+
left: left + window.scrollX
|
|
74
|
+
});
|
|
78
75
|
if (tooltipRef.current) {
|
|
79
76
|
setTooltipSizeOffset({
|
|
80
77
|
height: tooltipRef.current.offsetHeight,
|
|
@@ -82,34 +79,22 @@ function TextLabel(_a) {
|
|
|
82
79
|
});
|
|
83
80
|
}
|
|
84
81
|
}, [isTooltipOpen]);
|
|
85
|
-
var tooltipPositionCss =
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
var
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
var
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
switch (positionType) {
|
|
102
|
-
case 'left_bottom':
|
|
103
|
-
return "\n left: ".concat(isOverLeft ? 5 : leftValue, "px;\n ").concat(isOverBottom ? 'bottom: 5px;' : "top: ".concat(bottomValue, "px;"));
|
|
104
|
-
case 'left_top':
|
|
105
|
-
return "\n left: ".concat(isOverLeft ? 5 : leftValue, "px;\n top: ").concat(isOverTop ? 5 : topValue, "px;");
|
|
106
|
-
case 'right_bottom':
|
|
107
|
-
return "\n ".concat(isOverRight ? 'right: 5px;' : "left: ".concat(isOverRight ? 5 : left, "px;"), "\n ").concat(isOverBottom ? 'bottom: 5px;' : "top: ".concat(bottomValue, "px;"));
|
|
108
|
-
case 'right_top':
|
|
109
|
-
return "\n ".concat(isOverRight ? 'right: 5px;' : "left: ".concat(isOverRight ? 5 : left, "px;"), "\n top: ").concat(isOverTop ? 5 : topValue, "px;");
|
|
110
|
-
default:
|
|
111
|
-
return '';
|
|
112
|
-
}
|
|
82
|
+
var tooltipPositionCss = (0, SystemUIPositionGenerator_1.hoverTypeSystemUICssGenerator)({
|
|
83
|
+
baseSize: 16,
|
|
84
|
+
sizeOffset: tooltipSizeOffset,
|
|
85
|
+
positionOffset: tooltipPositionOffset,
|
|
86
|
+
systemUIPosition: tooltipPosition.includes('_')
|
|
87
|
+
? tooltipPosition
|
|
88
|
+
: "right_".concat(tooltipPosition),
|
|
89
|
+
distance: 4
|
|
90
|
+
});
|
|
91
|
+
var handleTooltipOpen = function () {
|
|
92
|
+
setIsTooltipOpen(true);
|
|
93
|
+
};
|
|
94
|
+
var handleTooltipClose = function () {
|
|
95
|
+
setIsTooltipOpen(false);
|
|
96
|
+
};
|
|
97
|
+
return ((0, jsx_runtime_1.jsxs)(S_TextLabel, __assign({ "x-pds-name": "TextLabel", "x-pds-element-type": "component", "x-pds-device-type": "desktop", textAlign: textAlign, styleTheme: styleTheme, colorOverride: colorOverride, colorTheme: colorTheme, singleLineMode: singleLineMode, ellipsisMode: ellipsisMode, lineLimit: lineLimit, userSelectMode: userSelectMode, customFontSize: customFontSize, customFontWeight: customFontWeight, textDecorationType: textDecorationType, bulletPointMode: bulletPointMode, wordBreak: wordBreak, "$letterSpacing": letterSpacing }, { children: [text, requirementMode === 'use' && ((0, jsx_runtime_1.jsx)(S_AfterTextBox, __assign({ styleTheme: styleTheme }, { children: (0, jsx_runtime_1.jsx)(S_IconWrapper, { children: (0, jsx_runtime_1.jsx)(hybrid_1.Icon, { iconName: "ic_requirement", size: 16, fillType: "line", colorKey: "ui_cpnt_icon_sys_error_01" }) }) }))), tooltipText && ((0, jsx_runtime_1.jsx)(S_AfterTextBox, __assign({ styleTheme: styleTheme }, { children: (0, jsx_runtime_1.jsxs)(S_IconWrapper, __assign({ ref: tooltipPositionTargetRef, onPointerEnter: handleTooltipOpen, onPointerLeave: handleTooltipClose }, { children: [(0, jsx_runtime_1.jsx)(hybrid_1.Icon, { iconName: "ic_question", size: 16, fillType: "fill", colorKey: tooltipIconColorKey }), isTooltipOpen && ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, react_dom_1.createPortal)((0, jsx_runtime_1.jsx)(S_TooltipWrapper, __assign({ className: "TooltipWrapper", ref: tooltipRef, tooltipPositionCss: tooltipPositionCss }, { children: tooltipText })), document.body) }))] })) })))] })));
|
|
113
98
|
}
|
|
114
99
|
var displayBold = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n"], ["\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n"])), function (_a) {
|
|
115
100
|
var theme = _a.theme;
|
|
@@ -508,24 +493,9 @@ var S_AfterTextBox = styled_components_1.default.div(templateObject_51 || (templ
|
|
|
508
493
|
}[styleTheme];
|
|
509
494
|
});
|
|
510
495
|
var S_IconWrapper = styled_components_1.default.div(templateObject_52 || (templateObject_52 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n height: 16px;\n height: 100%;\n justify-content: center;\n width: 16px;\n"], ["\n align-items: center;\n display: flex;\n height: 16px;\n height: 100%;\n justify-content: center;\n width: 16px;\n"])));
|
|
511
|
-
var S_TooltipWrapper = styled_components_1.default.div(templateObject_53 || (templateObject_53 = __makeTemplateObject(["\n ", "\n
|
|
512
|
-
var theme = _a.theme;
|
|
513
|
-
return theme.ui_cpnt_button_tooltip_base;
|
|
514
|
-
}, function (_a) {
|
|
515
|
-
var theme = _a.theme;
|
|
516
|
-
return theme.spacing.spacingA;
|
|
517
|
-
}, function (_a) {
|
|
518
|
-
var theme = _a.theme;
|
|
519
|
-
return theme.ui_cpnt_textlabel_button_tooltip;
|
|
520
|
-
}, function (_a) {
|
|
521
|
-
var theme = _a.theme;
|
|
522
|
-
return "".concat(theme.spacing.spacingA, " ").concat(theme.spacing.spacingB);
|
|
523
|
-
}, function (_a) {
|
|
524
|
-
var isTooltipOpen = _a.isTooltipOpen;
|
|
525
|
-
return !isTooltipOpen && 'display: none';
|
|
526
|
-
}, function (_a) {
|
|
496
|
+
var S_TooltipWrapper = styled_components_1.default.div(templateObject_53 || (templateObject_53 = __makeTemplateObject(["\n ", "\n\n ", ";\n"], ["\n ", "\n\n ", ";\n"])), systemUI_1.TooltipWrapperStyle, function (_a) {
|
|
527
497
|
var tooltipPositionCss = _a.tooltipPositionCss;
|
|
528
|
-
return tooltipPositionCss
|
|
498
|
+
return tooltipPositionCss;
|
|
529
499
|
});
|
|
530
500
|
exports.default = TextLabel;
|
|
531
501
|
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, templateObject_30, templateObject_31, templateObject_32, templateObject_33, templateObject_34, templateObject_35, templateObject_36, templateObject_37, templateObject_38, templateObject_39, templateObject_40, templateObject_41, templateObject_42, templateObject_43, templateObject_44, templateObject_45, templateObject_46, templateObject_47, templateObject_48, templateObject_49, templateObject_50, templateObject_51, templateObject_52, templateObject_53;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { FillIconNameKeys, LineIconNameKeys, PDSTextType, UiColors } from '../../../common';
|
|
3
|
+
import type { IconCaseTooltipPositionType } from '../../../common/types/systemUI';
|
|
3
4
|
export type UploadIconButtonProps = {
|
|
4
5
|
fillType?: 'fill' | 'line';
|
|
5
6
|
shapeType?: 'circular' | 'rectangle' | 'round';
|
|
@@ -16,7 +17,8 @@ export type UploadIconButtonProps = {
|
|
|
16
17
|
accept?: string;
|
|
17
18
|
multipleMode?: 'none' | 'use';
|
|
18
19
|
tooltipText?: PDSTextType;
|
|
19
|
-
|
|
20
|
+
/** @deprecated 'left_top', 'left_bottom', 'right_top', 'right_bottom' will replace 'top' or 'bottom' */
|
|
21
|
+
tooltipPosition?: IconCaseTooltipPositionType;
|
|
20
22
|
onClick?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
21
23
|
};
|
|
22
24
|
declare function UploadIconButton({ fillType, shapeType, baseSize, baseColorKey, borderColorKey, iconSize, iconFillType, iconName, iconColorKey, shadow, colorTheme, state, accept, multipleMode, tooltipText, tooltipPosition, onClick }: UploadIconButtonProps): JSX.Element;
|
|
@@ -40,15 +40,56 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
40
40
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
41
41
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
42
42
|
var react_1 = require("react");
|
|
43
|
+
var react_dom_1 = require("react-dom");
|
|
44
|
+
var systemUI_1 = require("../../../common/styles/systemUI");
|
|
45
|
+
var SystemUIPositionGenerator_1 = require("../../../common/utils/SystemUIPositionGenerator");
|
|
43
46
|
var styled_components_1 = __importStar(require("styled-components"));
|
|
44
47
|
var transitionStyle_1 = require("../../../common/styles/movement/transitionStyle");
|
|
45
48
|
var hybrid_1 = require("../../../hybrid");
|
|
46
|
-
var constants_1 = require("
|
|
47
|
-
var TextLabel_1 = require("../TextLabel");
|
|
49
|
+
var constants_1 = require("./constants");
|
|
48
50
|
var types_1 = require("./types");
|
|
49
51
|
function UploadIconButton(_a) {
|
|
50
|
-
var _b = _a.fillType, fillType = _b === void 0 ? 'fill' : _b, _c = _a.shapeType, shapeType = _c === void 0 ? 'rectangle' : _c, _d = _a.baseSize, baseSize = _d === void 0 ? 'small' : _d, baseColorKey = _a.baseColorKey, borderColorKey = _a.borderColorKey, _e = _a.iconSize, iconSize = _e === void 0 ? 24 : _e, _f = _a.iconFillType, iconFillType = _f === void 0 ? 'line' : _f, _g = _a.iconName, iconName = _g === void 0 ? 'ic_upload' : _g, iconColorKey = _a.iconColorKey, _h = _a.shadow, shadow = _h === void 0 ? 'hidden' : _h, _j = _a.colorTheme, colorTheme = _j === void 0 ? 'none' : _j, _k = _a.state, state = _k === void 0 ? 'normal' : _k, _l = _a.accept, accept = _l === void 0 ? '*' : _l, _m = _a.multipleMode, multipleMode = _m === void 0 ? 'none' : _m, tooltipText = _a.tooltipText, _o = _a.tooltipPosition, tooltipPosition = _o === void 0 ? '
|
|
52
|
+
var _b = _a.fillType, fillType = _b === void 0 ? 'fill' : _b, _c = _a.shapeType, shapeType = _c === void 0 ? 'rectangle' : _c, _d = _a.baseSize, baseSize = _d === void 0 ? 'small' : _d, baseColorKey = _a.baseColorKey, borderColorKey = _a.borderColorKey, _e = _a.iconSize, iconSize = _e === void 0 ? 24 : _e, _f = _a.iconFillType, iconFillType = _f === void 0 ? 'line' : _f, _g = _a.iconName, iconName = _g === void 0 ? 'ic_upload' : _g, iconColorKey = _a.iconColorKey, _h = _a.shadow, shadow = _h === void 0 ? 'hidden' : _h, _j = _a.colorTheme, colorTheme = _j === void 0 ? 'none' : _j, _k = _a.state, state = _k === void 0 ? 'normal' : _k, _l = _a.accept, accept = _l === void 0 ? '*' : _l, _m = _a.multipleMode, multipleMode = _m === void 0 ? 'none' : _m, tooltipText = _a.tooltipText, _o = _a.tooltipPosition, tooltipPosition = _o === void 0 ? 'bottom' : _o, onClick = _a.onClick;
|
|
51
53
|
var _p = (0, react_1.useState)(false), isTooltipOpen = _p[0], setIsTooltipOpen = _p[1];
|
|
54
|
+
var tooltipPositionTargetRef = (0, react_1.useRef)(null);
|
|
55
|
+
var tooltipRef = (0, react_1.useRef)(null);
|
|
56
|
+
var _q = (0, react_1.useState)(null), tooltipSizeOffset = _q[0], setTooltipSizeOffset = _q[1];
|
|
57
|
+
var _r = (0, react_1.useState)(null), tooltipPositionOffset = _r[0], setTooltipPositionOffset = _r[1];
|
|
58
|
+
/**
|
|
59
|
+
* @when : 화면진입 시, dependency 변경되었을 때
|
|
60
|
+
* @expected : tooltipPositionTargetRef, tooltipRef 의 위치를 업데이트합니다.
|
|
61
|
+
* @clear :
|
|
62
|
+
*/
|
|
63
|
+
(0, react_1.useEffect)(function () {
|
|
64
|
+
if (!tooltipPositionTargetRef.current || !tooltipText) {
|
|
65
|
+
return;
|
|
66
|
+
}
|
|
67
|
+
if (!isTooltipOpen && tooltipRef.current) {
|
|
68
|
+
setTooltipSizeOffset(null);
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
71
|
+
var _a = tooltipPositionTargetRef.current.getBoundingClientRect(), top = _a.top, right = _a.right, left = _a.left, bottom = _a.bottom;
|
|
72
|
+
setTooltipPositionOffset({
|
|
73
|
+
top: top + window.scrollY,
|
|
74
|
+
right: right + window.scrollX,
|
|
75
|
+
bottom: bottom + window.scrollY,
|
|
76
|
+
left: left + window.scrollX
|
|
77
|
+
});
|
|
78
|
+
if (tooltipRef.current) {
|
|
79
|
+
setTooltipSizeOffset({
|
|
80
|
+
height: tooltipRef.current.offsetHeight,
|
|
81
|
+
width: tooltipRef.current.offsetWidth
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
}, [isTooltipOpen]);
|
|
85
|
+
var tooltipPositionCss = (0, SystemUIPositionGenerator_1.hoverTypeSystemUICssGenerator)({
|
|
86
|
+
baseSize: constants_1.ICON_BUTTON_SIZE[baseSize],
|
|
87
|
+
sizeOffset: tooltipSizeOffset,
|
|
88
|
+
positionOffset: tooltipPositionOffset,
|
|
89
|
+
systemUIPosition: tooltipPosition.includes('_')
|
|
90
|
+
? tooltipPosition
|
|
91
|
+
: "center_".concat(tooltipPosition)
|
|
92
|
+
});
|
|
52
93
|
var handleTooltipToggle = function (value) {
|
|
53
94
|
setIsTooltipOpen(value);
|
|
54
95
|
};
|
|
@@ -70,7 +111,7 @@ function UploadIconButton(_a) {
|
|
|
70
111
|
}
|
|
71
112
|
return types_1.iconStateColors[fillType];
|
|
72
113
|
};
|
|
73
|
-
return ((0, jsx_runtime_1.jsxs)(S_UploadIconButton, __assign({ "x-pds-name": "UploadIconButton", "x-pds-element-type": "component", "x-pds-device-type": "desktop", fillType: fillType, shapeType: shapeType, baseSize: baseSize, baseColorKey: baseColorKey, borderColorKey: borderColorKey, shadow: shadow, colorTheme: colorTheme, isDisabled: state === 'disabled', onPointerEnter: function () { return tooltipText && handleTooltipToggle(true); }, onPointerLeave: function () { return tooltipText && handleTooltipToggle(false); } }, { children: [(0, jsx_runtime_1.jsx)("input", { type: "file", hidden: true, disabled: state === 'disabled', accept: accept, multiple: multipleMode === 'use', onChange: handleClick }), (0, jsx_runtime_1.jsx)(hybrid_1.Icon, { iconName: iconName, size: iconSize, colorKey: IconColorSelect(), fillType: iconFillType }),
|
|
114
|
+
return ((0, jsx_runtime_1.jsxs)(S_UploadIconButton, __assign({ "x-pds-name": "UploadIconButton", "x-pds-element-type": "component", "x-pds-device-type": "desktop", ref: tooltipPositionTargetRef, fillType: fillType, shapeType: shapeType, baseSize: baseSize, baseColorKey: baseColorKey, borderColorKey: borderColorKey, shadow: shadow, colorTheme: colorTheme, isDisabled: state === 'disabled', onPointerEnter: function () { return tooltipText && handleTooltipToggle(true); }, onPointerLeave: function () { return tooltipText && handleTooltipToggle(false); } }, { children: [(0, jsx_runtime_1.jsx)("input", { type: "file", hidden: true, disabled: state === 'disabled', accept: accept, multiple: multipleMode === 'use', onChange: handleClick }), (0, jsx_runtime_1.jsx)(hybrid_1.Icon, { iconName: iconName, size: iconSize, colorKey: IconColorSelect(), fillType: iconFillType }), isTooltipOpen && ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, react_dom_1.createPortal)((0, jsx_runtime_1.jsx)(S_TooltipWrapper, __assign({ className: "TooltipWrapper", ref: tooltipRef, tooltipPositionCss: tooltipPositionCss }, { children: tooltipText })), document.body) }))] })));
|
|
74
115
|
}
|
|
75
116
|
var fillDisabled = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n background-color: ", ";\n\n &:hover:not([disabled])::before {\n background-color: unset;\n }\n\n &:active:not([disabled])::before {\n background-color: unset;\n }\n"], ["\n background-color: ", ";\n\n &:hover:not([disabled])::before {\n background-color: unset;\n }\n\n &:active:not([disabled])::before {\n background-color: unset;\n }\n"])), function (_a) {
|
|
76
117
|
var theme = _a.theme, baseColorKey = _a.baseColorKey;
|
|
@@ -173,46 +214,9 @@ var S_UploadIconButton = styled_components_1.default.label(templateObject_13 ||
|
|
|
173
214
|
xsmall: xsmall
|
|
174
215
|
}[baseSize];
|
|
175
216
|
});
|
|
176
|
-
var
|
|
177
|
-
var
|
|
178
|
-
return
|
|
179
|
-
{
|
|
180
|
-
xxlarge: constants_1.TOOLTIP_POSITION_SPACING.xxlarge,
|
|
181
|
-
large: constants_1.TOOLTIP_POSITION_SPACING.large,
|
|
182
|
-
medium: constants_1.TOOLTIP_POSITION_SPACING.medium,
|
|
183
|
-
small: constants_1.TOOLTIP_POSITION_SPACING.small,
|
|
184
|
-
xsmall: constants_1.TOOLTIP_POSITION_SPACING.xsmall
|
|
185
|
-
}[baseSize];
|
|
186
|
-
});
|
|
187
|
-
var tooltipLeftTop = (0, styled_components_1.css)(templateObject_15 || (templateObject_15 = __makeTemplateObject(["\n bottom: ", ";\n right: 0;\n"], ["\n bottom: ", ";\n right: 0;\n"])), tooltipPositionSpacing);
|
|
188
|
-
var tooltipLeftBottom = (0, styled_components_1.css)(templateObject_16 || (templateObject_16 = __makeTemplateObject(["\n right: 0;\n top: ", ";\n"], ["\n right: 0;\n top: ", ";\n"])), tooltipPositionSpacing);
|
|
189
|
-
var tooltipCenterTop = (0, styled_components_1.css)(templateObject_17 || (templateObject_17 = __makeTemplateObject(["\n bottom: ", ";\n"], ["\n bottom: ", ";\n"])), tooltipPositionSpacing);
|
|
190
|
-
var tooltipCenterBottom = (0, styled_components_1.css)(templateObject_18 || (templateObject_18 = __makeTemplateObject(["\n top: ", ";\n"], ["\n top: ", ";\n"])), tooltipPositionSpacing);
|
|
191
|
-
var tooltipRightTop = (0, styled_components_1.css)(templateObject_19 || (templateObject_19 = __makeTemplateObject(["\n bottom: ", ";\n left: 0;\n"], ["\n bottom: ", ";\n left: 0;\n"])), tooltipPositionSpacing);
|
|
192
|
-
var tooltipRightBottom = (0, styled_components_1.css)(templateObject_20 || (templateObject_20 = __makeTemplateObject(["\n left: 0;\n top: ", ";\n"], ["\n left: 0;\n top: ", ";\n"])), tooltipPositionSpacing);
|
|
193
|
-
var S_TooltipWrapper = styled_components_1.default.div(templateObject_21 || (templateObject_21 = __makeTemplateObject(["\n align-items: center;\n background-color: ", ";\n border-radius: ", ";\n box-sizing: border-box;\n display: flex;\n justify-content: center;\n padding: ", ";\n position: absolute;\n width: max-content;\n z-index: 400;\n\n ", ";\n\n ", "\n"], ["\n align-items: center;\n background-color: ", ";\n border-radius: ", ";\n box-sizing: border-box;\n display: flex;\n justify-content: center;\n padding: ", ";\n position: absolute;\n width: max-content;\n z-index: 400;\n\n ", ";\n\n ", "\n"])), function (_a) {
|
|
194
|
-
var theme = _a.theme;
|
|
195
|
-
return theme.ui_cpnt_button_tooltip_base;
|
|
196
|
-
}, function (_a) {
|
|
197
|
-
var theme = _a.theme;
|
|
198
|
-
return theme.spacing.spacingA;
|
|
199
|
-
}, function (_a) {
|
|
200
|
-
var theme = _a.theme;
|
|
201
|
-
return "".concat(theme.spacing.spacingA, " ").concat(theme.spacing.spacingB);
|
|
202
|
-
}, function (_a) {
|
|
203
|
-
var isTooltipOpen = _a.isTooltipOpen;
|
|
204
|
-
return !isTooltipOpen && 'display: none';
|
|
205
|
-
}, function (_a) {
|
|
206
|
-
var tooltipPosition = _a.tooltipPosition;
|
|
207
|
-
return tooltipPosition &&
|
|
208
|
-
{
|
|
209
|
-
left_top: tooltipLeftTop,
|
|
210
|
-
left_bottom: tooltipLeftBottom,
|
|
211
|
-
center_top: tooltipCenterTop,
|
|
212
|
-
center_bottom: tooltipCenterBottom,
|
|
213
|
-
right_top: tooltipRightTop,
|
|
214
|
-
right_bottom: tooltipRightBottom
|
|
215
|
-
}[tooltipPosition];
|
|
217
|
+
var S_TooltipWrapper = styled_components_1.default.div(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n ", "\n\n ", ";\n"], ["\n ", "\n\n ", ";\n"])), systemUI_1.TooltipWrapperStyle, function (_a) {
|
|
218
|
+
var tooltipPositionCss = _a.tooltipPositionCss;
|
|
219
|
+
return tooltipPositionCss;
|
|
216
220
|
});
|
|
217
221
|
exports.default = UploadIconButton;
|
|
218
|
-
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
|
|
222
|
+
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;
|
package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/ContentsContainer.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import type { MutableRefObject } from 'react';
|
|
|
3
3
|
export type ContentsContainerProps = {
|
|
4
4
|
content1?: JSX.Element;
|
|
5
5
|
content2?: JSX.Element;
|
|
6
|
-
layoutType: 'WTA_1' | 'WTA_2' | 'WTA_3' | 'WTB_1' | 'WTC_1' | 'WTD_1' | 'WTD_2' | 'WTD_3' | 'WTD_4' | 'WTD_5' | 'WTD_6' | 'WTE_1' | 'WTF_1' | 'WTF_2' | 'WTF_3' | 'WTF_4' | 'WTF_5' | 'WTF_6' | 'WTG_1' | 'WTH_1' | 'WTH_2' | 'WTH_3' | 'WTI_1' | 'WTI_2' | 'WTJ_1' | 'WTK_1' | 'WTK_2' | 'WTK_3' | 'WTK_4' | 'WTL_1' | 'WTM_1' | 'WTM_2' | 'WTM_3' | 'WTN_1' | 'WTN_2' | 'WTN_3' | 'WTO_1' | 'WTP_1' | 'WTP_2' | 'WTQ_1' | 'WTS_1' | 'WTS_2' | 'WTT_1' | 'WTT_2' | 'WTU_1' | 'WTV_1';
|
|
6
|
+
layoutType: 'WTA_1' | 'WTA_2' | 'WTA_3' | 'WTB_1' | 'WTC_1' | 'WTD_1' | 'WTD_2' | 'WTD_3' | 'WTD_4' | 'WTD_5' | 'WTD_6' | 'WTE_1' | 'WTF_1' | 'WTF_2' | 'WTF_3' | 'WTF_4' | 'WTF_5' | 'WTF_6' | 'WTG_1' | 'WTH_1' | 'WTH_2' | 'WTH_3' | 'WTI_1' | 'WTI_2' | 'WTJ_1' | 'WTK_1' | 'WTK_2' | 'WTK_3' | 'WTK_4' | 'WTL_1' | 'WTM_1' | 'WTM_2' | 'WTM_3' | 'WTN_1' | 'WTN_2' | 'WTN_3' | 'WTO_1' | 'WTP_1' | 'WTP_2' | 'WTQ_1' | 'WTS_1' | 'WTS_2' | 'WTT_1' | 'WTT_2' | 'WTU_1' | 'WTV_1' | 'WTW_1';
|
|
7
7
|
containerColor?: string;
|
|
8
8
|
areaColor?: string;
|
|
9
9
|
isLoadingContainer1?: boolean;
|
|
@@ -50,7 +50,8 @@ var ContentsContainer = function (_a) {
|
|
|
50
50
|
WTT_1: ((0, jsx_runtime_1.jsx)(variation_1.WTT, { layoutType: "WTT_1", content1: content1, content2: content2, containerColor: containerColor, areaColor: areaColor, container1Ref: container1Ref, isLoadingContainer1: isLoadingContainer1, overrideContainer1ColorKey: overrideContainer1ColorKey })),
|
|
51
51
|
WTT_2: ((0, jsx_runtime_1.jsx)(variation_1.WTT, { layoutType: "WTT_2", content1: content1, content2: content2, containerColor: containerColor, areaColor: areaColor, container1Ref: container1Ref, isLoadingContainer1: isLoadingContainer1, overrideContainer1ColorKey: overrideContainer1ColorKey })),
|
|
52
52
|
WTU_1: ((0, jsx_runtime_1.jsx)(variation_1.WTU, { layoutType: "WTU_1", content1: content1, content2: content2, containerColor: containerColor, areaColor: areaColor, isLoadingContainer1: isLoadingContainer1, isLoadingContainer2: isLoadingContainer2, overrideContainer1ColorKey: overrideContainer1ColorKey, overrideContainer2ColorKey: overrideContainer2ColorKey })),
|
|
53
|
-
WTV_1: ((0, jsx_runtime_1.jsx)(variation_1.WTV, { layoutType: "WTV_1", content1: content1, content2: content2, containerColor: containerColor, areaColor: areaColor, isLoadingContainer1: isLoadingContainer1, isLoadingContainer2: isLoadingContainer2, overrideContainer1ColorKey: overrideContainer1ColorKey, overrideContainer2ColorKey: overrideContainer2ColorKey }))
|
|
53
|
+
WTV_1: ((0, jsx_runtime_1.jsx)(variation_1.WTV, { layoutType: "WTV_1", content1: content1, content2: content2, containerColor: containerColor, areaColor: areaColor, isLoadingContainer1: isLoadingContainer1, isLoadingContainer2: isLoadingContainer2, overrideContainer1ColorKey: overrideContainer1ColorKey, overrideContainer2ColorKey: overrideContainer2ColorKey })),
|
|
54
|
+
WTW_1: ((0, jsx_runtime_1.jsx)(variation_1.WTW, { layoutType: "WTW_1", content1: content1, content2: content2, containerColor: containerColor, areaColor: areaColor, isLoadingContainer1: isLoadingContainer1, isLoadingContainer2: isLoadingContainer2, overrideContainer1ColorKey: overrideContainer1ColorKey, overrideContainer2ColorKey: overrideContainer2ColorKey }))
|
|
54
55
|
}[layoutType] }));
|
|
55
56
|
};
|
|
56
57
|
exports.default = ContentsContainer;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { UiColors } from '../../../../../../common';
|
|
3
|
+
export type WTWProps = {
|
|
4
|
+
content1?: JSX.Element;
|
|
5
|
+
content2?: JSX.Element;
|
|
6
|
+
layoutType?: 'WTW_1';
|
|
7
|
+
containerColor?: string;
|
|
8
|
+
areaColor?: string;
|
|
9
|
+
isLoadingContainer1?: boolean;
|
|
10
|
+
isLoadingContainer2?: boolean;
|
|
11
|
+
overrideContainer1ColorKey?: UiColors;
|
|
12
|
+
overrideContainer2ColorKey?: UiColors;
|
|
13
|
+
};
|
|
14
|
+
export type StyleProps = {
|
|
15
|
+
$contentsArea2Width?: number;
|
|
16
|
+
};
|
|
17
|
+
declare const WTW: ({ content1, content2, layoutType, containerColor, areaColor, isLoadingContainer1, isLoadingContainer2, overrideContainer1ColorKey, overrideContainer2ColorKey }: WTWProps) => JSX.Element;
|
|
18
|
+
export default WTW;
|
|
@@ -0,0 +1,112 @@
|
|
|
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 __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
18
|
+
if (k2 === undefined) k2 = k;
|
|
19
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
20
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
21
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
22
|
+
}
|
|
23
|
+
Object.defineProperty(o, k2, desc);
|
|
24
|
+
}) : (function(o, m, k, k2) {
|
|
25
|
+
if (k2 === undefined) k2 = k;
|
|
26
|
+
o[k2] = m[k];
|
|
27
|
+
}));
|
|
28
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
29
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
30
|
+
}) : function(o, v) {
|
|
31
|
+
o["default"] = v;
|
|
32
|
+
});
|
|
33
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
34
|
+
if (mod && mod.__esModule) return mod;
|
|
35
|
+
var result = {};
|
|
36
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
37
|
+
__setModuleDefault(result, mod);
|
|
38
|
+
return result;
|
|
39
|
+
};
|
|
40
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
41
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
42
|
+
var react_1 = require("react");
|
|
43
|
+
var styled_components_1 = __importStar(require("styled-components"));
|
|
44
|
+
var components_1 = require("../../../../../../common/components");
|
|
45
|
+
var WTW = function (_a) {
|
|
46
|
+
var _b, _c;
|
|
47
|
+
var content1 = _a.content1, content2 = _a.content2, _d = _a.layoutType, layoutType = _d === void 0 ? 'WTW_1' : _d, containerColor = _a.containerColor, areaColor = _a.areaColor, isLoadingContainer1 = _a.isLoadingContainer1, isLoadingContainer2 = _a.isLoadingContainer2, overrideContainer1ColorKey = _a.overrideContainer1ColorKey, overrideContainer2ColorKey = _a.overrideContainer2ColorKey;
|
|
48
|
+
var contentsArea2Ref = (0, react_1.useRef)(null);
|
|
49
|
+
var _e = (0, react_1.useState)((_c = (_b = contentsArea2Ref.current) === null || _b === void 0 ? void 0 : _b.offsetWidth) !== null && _c !== void 0 ? _c : 720), contentsArea2Width = _e[0], setContentsArea2Width = _e[1];
|
|
50
|
+
var handleResize = function () {
|
|
51
|
+
if (contentsArea2Ref === null || contentsArea2Ref.current === null) {
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
setContentsArea2Width(contentsArea2Ref.current.offsetWidth);
|
|
55
|
+
};
|
|
56
|
+
/**
|
|
57
|
+
@when : 브라우저 화면 사이즈가 변경될 때
|
|
58
|
+
@expected : contentsArea2의 너비를 contentsArea2Width에 저장합니다.
|
|
59
|
+
@clear : 이벤트 등록을 해제합니다.
|
|
60
|
+
*/
|
|
61
|
+
(0, react_1.useEffect)(function () {
|
|
62
|
+
window.addEventListener('resize', handleResize);
|
|
63
|
+
return function () {
|
|
64
|
+
window.removeEventListener('resize', handleResize);
|
|
65
|
+
};
|
|
66
|
+
}, []);
|
|
67
|
+
return ((0, jsx_runtime_1.jsxs)(S_Box, { children: [(0, jsx_runtime_1.jsx)(S_ContentsContainer1, __assign({ "x-pds-name": "ContentsContainer", "x-pds-element-type": "layout", "x-pds-device-type": "desktop", "x-pds-layout-type": "WTW", layoutType: layoutType, containerColor: containerColor, overrideContainer1ColorKey: overrideContainer1ColorKey, "$contentsArea2Width": contentsArea2Width }, { children: isLoadingContainer1 ? ((0, jsx_runtime_1.jsx)(components_1.ThreeBarProgress, {})) : ((0, jsx_runtime_1.jsx)(S_ContentsArea1, __assign({ "x-pds-name": "ContentsArea", "x-pds-element-type": "layout", "x-pds-device-type": "desktop", "x-pds-layout-type": "WTW", layoutType: layoutType, areaColor: areaColor }, { children: (0, jsx_runtime_1.jsx)(S_Content1, __assign({ "x-pds-name": "Content1", "x-pds-element-type": "layout", "x-pds-device-type": "desktop", "x-pds-layout-type": "WTW", layoutType: layoutType }, { children: content1 })) }))) })), (0, jsx_runtime_1.jsx)(S_ContentsContainer2, __assign({ "x-pds-name": "ContentsContainer", "x-pds-element-type": "layout", "x-pds-device-type": "desktop", "x-pds-layout-type": "WTW", layoutType: layoutType, containerColor: containerColor, overrideContainer2ColorKey: overrideContainer2ColorKey, "$contentsArea2Width": contentsArea2Width }, { children: isLoadingContainer2 ? ((0, jsx_runtime_1.jsx)(components_1.ThreeBarProgress, {})) : ((0, jsx_runtime_1.jsx)(S_ContentsArea2, __assign({ "x-pds-name": "ContentsArea", "x-pds-element-type": "layout", "x-pds-device-type": "desktop", "x-pds-layout-type": "WTW", layoutType: layoutType, areaColor: areaColor, ref: contentsArea2Ref }, { children: (0, jsx_runtime_1.jsx)(S_Content2, __assign({ "x-pds-name": "Content2", "x-pds-element-type": "layout", "x-pds-device-type": "desktop", "x-pds-layout-type": "WTW", layoutType: layoutType }, { children: content2 })) }))) }))] }));
|
|
68
|
+
};
|
|
69
|
+
var overrideStyleContainer1 = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n background-color: ", ";\n"], ["\n background-color: ", ";\n"])), function (_a) {
|
|
70
|
+
var theme = _a.theme, overrideContainer1ColorKey = _a.overrideContainer1ColorKey;
|
|
71
|
+
return overrideContainer1ColorKey && theme[overrideContainer1ColorKey];
|
|
72
|
+
});
|
|
73
|
+
var overrideStyleContainer2 = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n background-color: ", ";\n"], ["\n background-color: ", ";\n"])), function (_a) {
|
|
74
|
+
var theme = _a.theme, overrideContainer2ColorKey = _a.overrideContainer2ColorKey;
|
|
75
|
+
return overrideContainer2ColorKey && theme[overrideContainer2ColorKey];
|
|
76
|
+
});
|
|
77
|
+
var S_Box = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n display: flex;\n height: 100%;\n"], ["\n display: flex;\n height: 100%;\n"])));
|
|
78
|
+
var S_ContentsContainer1 = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n align-items: flex-start;\n background-color: ", ";\n display: flex;\n justify-content: flex-end;\n margin: 0;\n overflow-x: hidden;\n overflow-y: auto;\n width: ", ";\n ", ";\n\n ", "\n"], ["\n align-items: flex-start;\n background-color: ", ";\n display: flex;\n justify-content: flex-end;\n margin: 0;\n overflow-x: hidden;\n overflow-y: auto;\n width: ", ";\n ", ";\n\n ", "\n"])), function (_a) {
|
|
79
|
+
var theme = _a.theme;
|
|
80
|
+
return theme.ui_contentscontainer01_background;
|
|
81
|
+
}, function (_a) {
|
|
82
|
+
var $contentsArea2Width = _a.$contentsArea2Width;
|
|
83
|
+
return "calc(50% - (".concat($contentsArea2Width, "px - 480px) / 2)");
|
|
84
|
+
}, function (_a) {
|
|
85
|
+
var containerColor = _a.containerColor;
|
|
86
|
+
return "background-color: ".concat(containerColor);
|
|
87
|
+
}, overrideStyleContainer1);
|
|
88
|
+
var S_ContentsContainer2 = styled_components_1.default.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n background-color: ", ";\n border-left: 1px solid ", ";\n height: 100%;\n width: ", ";\n ", ";\n\n ", "\n"], ["\n background-color: ", ";\n border-left: 1px solid ", ";\n height: 100%;\n width: ", ";\n ", ";\n\n ", "\n"])), function (_a) {
|
|
89
|
+
var theme = _a.theme;
|
|
90
|
+
return theme.ui_contentscontainer02_background;
|
|
91
|
+
}, function (_a) {
|
|
92
|
+
var theme = _a.theme;
|
|
93
|
+
return theme.ui_container_divider;
|
|
94
|
+
}, function (_a) {
|
|
95
|
+
var $contentsArea2Width = _a.$contentsArea2Width;
|
|
96
|
+
return "calc(50% + (".concat($contentsArea2Width, "px - 480px) / 2)");
|
|
97
|
+
}, function (_a) {
|
|
98
|
+
var containerColor = _a.containerColor;
|
|
99
|
+
return "background-color: ".concat(containerColor);
|
|
100
|
+
}, overrideStyleContainer2);
|
|
101
|
+
var S_ContentsArea1 = styled_components_1.default.div(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n box-sizing: border-box;\n max-width: 480px;\n padding-bottom: 88px;\n padding-left: 24px;\n padding-right: 24px;\n width: 480px;\n ", ";\n"], ["\n box-sizing: border-box;\n max-width: 480px;\n padding-bottom: 88px;\n padding-left: 24px;\n padding-right: 24px;\n width: 480px;\n ", ";\n"])), function (_a) {
|
|
102
|
+
var areaColor = _a.areaColor;
|
|
103
|
+
return "background-color: ".concat(areaColor);
|
|
104
|
+
});
|
|
105
|
+
var S_ContentsArea2 = styled_components_1.default.div(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n height: 100%;\n max-width: 920px;\n min-width: 720px;\n width: 60%;\n ", ";\n"], ["\n height: 100%;\n max-width: 920px;\n min-width: 720px;\n width: 60%;\n ", ";\n"])), function (_a) {
|
|
106
|
+
var areaColor = _a.areaColor;
|
|
107
|
+
return "background-color: ".concat(areaColor);
|
|
108
|
+
});
|
|
109
|
+
var S_Content1 = styled_components_1.default.div(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n margin: 0;\n"], ["\n margin: 0;\n"])));
|
|
110
|
+
var S_Content2 = styled_components_1.default.div(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n height: 100%;\n overflow: hidden;\n"], ["\n height: 100%;\n overflow: hidden;\n"])));
|
|
111
|
+
exports.default = WTW;
|
|
112
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9;
|
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.WTV = exports.WTU = exports.WTT = exports.WTS = exports.WTQ = exports.WTP = exports.WTO = exports.WTN = exports.WTM = exports.WTL = exports.WTK = exports.WTJ = exports.WTI = exports.WTH = exports.WTG = exports.WTF = exports.WTE = exports.WTD = exports.WTC = exports.WTB = exports.WTA = void 0;
|
|
6
|
+
exports.WTW = exports.WTV = exports.WTU = exports.WTT = exports.WTS = exports.WTQ = exports.WTP = exports.WTO = exports.WTN = exports.WTM = exports.WTL = exports.WTK = exports.WTJ = exports.WTI = exports.WTH = exports.WTG = exports.WTF = exports.WTE = exports.WTD = exports.WTC = exports.WTB = exports.WTA = void 0;
|
|
7
7
|
var WTA_1 = require("./WTA");
|
|
8
8
|
Object.defineProperty(exports, "WTA", { enumerable: true, get: function () { return __importDefault(WTA_1).default; } });
|
|
9
9
|
var WTB_1 = require("./WTB");
|
|
@@ -46,3 +46,5 @@ var WTU_1 = require("./WTU");
|
|
|
46
46
|
Object.defineProperty(exports, "WTU", { enumerable: true, get: function () { return __importDefault(WTU_1).default; } });
|
|
47
47
|
var WTV_1 = require("./WTV");
|
|
48
48
|
Object.defineProperty(exports, "WTV", { enumerable: true, get: function () { return __importDefault(WTV_1).default; } });
|
|
49
|
+
var WTW_1 = require("./WTW");
|
|
50
|
+
Object.defineProperty(exports, "WTW", { enumerable: true, get: function () { return __importDefault(WTW_1).default; } });
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { UiColors } from '../../../../common';
|
|
2
2
|
import type { MutableRefObject } from 'react';
|
|
3
3
|
export type ContainersBoxProps = {
|
|
4
|
-
layoutType: 'WTA_1' | 'WTA_2' | 'WTA_3' | 'WTB_1' | 'WTC_1' | 'WTD_1' | 'WTD_2' | 'WTD_3' | 'WTD_4' | 'WTD_5' | 'WTD_6' | 'WTE_1' | 'WTF_1' | 'WTF_2' | 'WTF_3' | 'WTF_4' | 'WTF_5' | 'WTF_6' | 'WTG_1' | 'WTH_1' | 'WTH_2' | 'WTH_3' | 'WTI_1' | 'WTI_2' | 'WTJ_1' | 'WTK_1' | 'WTK_2' | 'WTK_3' | 'WTK_4' | 'WTL_1' | 'WTM_1' | 'WTM_2' | 'WTM_3' | 'WTN_1' | 'WTN_2' | 'WTN_3' | 'WTO_1' | 'WTP_1' | 'WTP_2' | 'WTQ_1' | 'WTS_1' | 'WTS_2' | 'WTT_1' | 'WTT_2' | 'WTU_1' | 'WTV_1';
|
|
4
|
+
layoutType: 'WTA_1' | 'WTA_2' | 'WTA_3' | 'WTB_1' | 'WTC_1' | 'WTD_1' | 'WTD_2' | 'WTD_3' | 'WTD_4' | 'WTD_5' | 'WTD_6' | 'WTE_1' | 'WTF_1' | 'WTF_2' | 'WTF_3' | 'WTF_4' | 'WTF_5' | 'WTF_6' | 'WTG_1' | 'WTH_1' | 'WTH_2' | 'WTH_3' | 'WTI_1' | 'WTI_2' | 'WTJ_1' | 'WTK_1' | 'WTK_2' | 'WTK_3' | 'WTK_4' | 'WTL_1' | 'WTM_1' | 'WTM_2' | 'WTM_3' | 'WTN_1' | 'WTN_2' | 'WTN_3' | 'WTO_1' | 'WTP_1' | 'WTP_2' | 'WTQ_1' | 'WTS_1' | 'WTS_2' | 'WTT_1' | 'WTT_2' | 'WTU_1' | 'WTV_1' | 'WTW_1';
|
|
5
5
|
pageMenuContent?: JSX.Element;
|
|
6
6
|
tabMenuContent?: JSX.Element;
|
|
7
7
|
subMenuContent?: JSX.Element;
|
|
@@ -89,7 +89,8 @@ var ContainersBox = function (_a) {
|
|
|
89
89
|
WTT_1: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {}),
|
|
90
90
|
WTT_2: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {}),
|
|
91
91
|
WTU_1: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {}),
|
|
92
|
-
WTV_1: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {})
|
|
92
|
+
WTV_1: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {}),
|
|
93
|
+
WTW_1: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {})
|
|
93
94
|
}[layoutType], (0, jsx_runtime_1.jsxs)(S_RightBox, { children: [{
|
|
94
95
|
WTA_1: ((0, jsx_runtime_1.jsx)(Containers_1.PageMenuContainer, { pageMenuType: "top_page_menu_mobile_480", pageMenuContent: pageMenuContent, containerColor: containerColor, areaColor: areaColor })),
|
|
95
96
|
WTA_2: ((0, jsx_runtime_1.jsx)(Containers_1.PageMenuContainer, { pageMenuType: "top_page_menu_mobile_600", pageMenuContent: pageMenuContent, containerColor: containerColor, areaColor: areaColor })),
|
|
@@ -136,7 +137,8 @@ var ContainersBox = function (_a) {
|
|
|
136
137
|
WTT_1: ((0, jsx_runtime_1.jsx)(Containers_1.PageMenuContainer, { pageMenuType: "top_page_menu", pageMenuContent: pageMenuContent, containerColor: containerColor, areaColor: areaColor })),
|
|
137
138
|
WTT_2: ((0, jsx_runtime_1.jsx)(Containers_1.PageMenuContainer, { pageMenuType: "top_page_menu", pageMenuContent: pageMenuContent, containerColor: containerColor, areaColor: areaColor })),
|
|
138
139
|
WTU_1: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {}),
|
|
139
|
-
WTV_1: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {})
|
|
140
|
+
WTV_1: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {}),
|
|
141
|
+
WTW_1: ((0, jsx_runtime_1.jsx)(Containers_1.PageMenuContainer, { pageMenuType: "top_page_menu", pageMenuContent: pageMenuContent, containerColor: containerColor, areaColor: areaColor }))
|
|
140
142
|
}[layoutType], {
|
|
141
143
|
WTA_1: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {}),
|
|
142
144
|
WTA_2: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {}),
|
|
@@ -183,7 +185,8 @@ var ContainersBox = function (_a) {
|
|
|
183
185
|
WTT_1: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {}),
|
|
184
186
|
WTT_2: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {}),
|
|
185
187
|
WTU_1: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {}),
|
|
186
|
-
WTV_1: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {})
|
|
188
|
+
WTV_1: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {}),
|
|
189
|
+
WTW_1: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {})
|
|
187
190
|
}[layoutType], (0, jsx_runtime_1.jsxs)(S_BottomWrapper, __assign({ layoutType: layoutType }, { children: [{
|
|
188
191
|
WTA_1: '',
|
|
189
192
|
WTA_2: '',
|
|
@@ -230,7 +233,8 @@ var ContainersBox = function (_a) {
|
|
|
230
233
|
WTT_1: '',
|
|
231
234
|
WTT_2: '',
|
|
232
235
|
WTU_1: '',
|
|
233
|
-
WTV_1: ''
|
|
236
|
+
WTV_1: '',
|
|
237
|
+
WTW_1: ''
|
|
234
238
|
}[layoutType], (0, jsx_runtime_1.jsx)(Containers_1.ContentsContainer, { layoutType: layoutType, content1: content1, content2: content2, containerColor: containerColor, areaColor: areaColor, isLoadingContainer1: isLoadingContainer1, isLoadingContainer2: isLoadingContainer2, overrideContainer1ColorKey: overrideContainer1ColorKey, overrideContainer2ColorKey: overrideContainer2ColorKey, container1Ref: container1Ref })] }))] })] }));
|
|
235
239
|
};
|
|
236
240
|
var S_ContainersBox = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n align-items: flex-start;\n display: flex;\n height: 100%;\n"], ["\n align-items: flex-start;\n display: flex;\n height: 100%;\n"])));
|
|
@@ -10,10 +10,11 @@ var line_1 = __importDefault(require("../../../common/assets/icons/line"));
|
|
|
10
10
|
var Icon = function (_a) {
|
|
11
11
|
var _b = _a.iconName, iconName = _b === void 0 ? 'ic_unavailable' : _b, _c = _a.size, size = _c === void 0 ? 24 : _c, _d = _a.colorKey, colorKey = _d === void 0 ? 'ui_cpnt_icon_sys_grey_01' : _d, _e = _a.fillType, fillType = _e === void 0 ? 'line' : _e;
|
|
12
12
|
var theme = (0, styled_components_1.useTheme)();
|
|
13
|
+
var isFixedSize = iconName.includes('_20') || iconName.includes('_32') || iconName.includes('_40');
|
|
13
14
|
var DefaultIcon = line_1.default.ic_unavailable;
|
|
14
15
|
var SelectedIcon = fillType === 'line'
|
|
15
16
|
? line_1.default[iconName] || fill_1.default[iconName]
|
|
16
17
|
: fill_1.default[iconName] || line_1.default[iconName];
|
|
17
|
-
return SelectedIcon ? ((0, jsx_runtime_1.jsx)(SelectedIcon, { "x-pds-name": "Icon", "x-pds-element-type": "component", "x-pds-device-type": "hybrid", color: theme[colorKey], size: size, style: { minWidth: size, minHeight: size } })) : ((0, jsx_runtime_1.jsx)(DefaultIcon, { "x-pds-name": "Icon", "x-pds-element-type": "component", "x-pds-device-type": "hybrid", color: theme[colorKey], size: size, style: { minWidth: size, minHeight: size } }));
|
|
18
|
+
return SelectedIcon ? ((0, jsx_runtime_1.jsx)(SelectedIcon, { "x-pds-name": "Icon", "x-pds-element-type": "component", "x-pds-device-type": "hybrid", color: theme[colorKey], size: size, style: isFixedSize ? undefined : { minWidth: size, minHeight: size } })) : ((0, jsx_runtime_1.jsx)(DefaultIcon, { "x-pds-name": "Icon", "x-pds-element-type": "component", "x-pds-device-type": "hybrid", color: theme[colorKey], size: size, style: isFixedSize ? undefined : { minWidth: size, minHeight: size } }));
|
|
18
19
|
};
|
|
19
20
|
exports.default = Icon;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { PlacementTypes } from './Popup';
|
|
3
2
|
import type { PDSTextType, PDSValueOption } from '../../../common';
|
|
4
3
|
type Props = {
|
|
5
4
|
titleText?: PDSTextType;
|
|
@@ -9,9 +8,8 @@ type Props = {
|
|
|
9
8
|
hoverMode?: 'none' | 'use';
|
|
10
9
|
contextMenuOptionArray?: PDSValueOption[];
|
|
11
10
|
contextMenuState?: 'normal' | 'disabled';
|
|
12
|
-
colorTheme?: 'seller' | 'seller_transparent' | 'subscriber' | 'subscriber_transparent' | 'secondary_transparent_grey' | 'white_transparent_grey';
|
|
13
|
-
contextMenuPosition?: PlacementTypes;
|
|
11
|
+
colorTheme?: 'seller' | 'seller_transparent' | 'subscriber' | 'subscriber_transparent' | 'secondary_transparent_grey' | 'white_transparent_grey' | 'brand_primary_solid' | 'brand_primary_translucent' | 'secondary_transparent' | 'white_transparent';
|
|
14
12
|
onClickContextMenuItem?: (option: PDSValueOption) => void;
|
|
15
13
|
};
|
|
16
|
-
declare function BasicChatListItem({ titleText, contentText, leftImageMode, imageSrc, hoverMode, contextMenuOptionArray,
|
|
14
|
+
declare function BasicChatListItem({ titleText, contentText, leftImageMode, imageSrc, hoverMode, contextMenuOptionArray, onClickContextMenuItem, contextMenuState, colorTheme }: Props): JSX.Element;
|
|
17
15
|
export default BasicChatListItem;
|