pds-dev-kit-web-test 0.2.33 → 0.2.34
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/index.d.ts +5 -5
- package/dist/index.js +3 -2
- package/dist/src/common/assets/icons/fill/PageSetting.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/PageSetting.js +30 -0
- 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/BlockUser.d.ts +4 -0
- package/dist/src/common/assets/icons/line/BlockUser.js +30 -0
- package/dist/src/common/assets/icons/line/PageSetting.d.ts +4 -0
- package/dist/src/common/assets/icons/line/PageSetting.js +30 -0
- 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/index.d.ts +1 -1
- package/dist/src/common/styles/colorSet/UIColor.json +6 -1
- package/dist/src/common/styles/colorSet/index.d.ts +5 -0
- package/dist/src/common/styles/colorSet/ui-type.d.ts +5 -0
- package/dist/src/common/styles/theme.d.ts +1 -0
- package/dist/src/common/styles/theme.js +4 -3
- package/dist/src/common/types/styled-components.d.ts +3 -0
- package/dist/src/desktop/components/BasicListItem/BasicListItem.js +1 -1
- package/dist/src/desktop/components/TextLabel/TextLabel.js +14 -9
- package/dist/src/desktop/components/UploadIconButton/UploadIconButton.js +2 -2
- package/dist/src/desktop/index.d.ts +1 -1
- package/dist/src/desktop/index.js +2 -1
- package/dist/src/desktop/panels/DesktopBasicModalWithTab/Components/SideTab/SideTab.d.ts +8 -0
- package/dist/src/desktop/panels/DesktopBasicModalWithTab/Components/SideTab/SideTab.js +58 -0
- package/dist/src/desktop/panels/DesktopBasicModalWithTab/Components/SideTab/index.d.ts +1 -0
- package/dist/src/desktop/panels/DesktopBasicModalWithTab/Components/SideTab/index.js +8 -0
- package/dist/src/desktop/panels/DesktopBasicModalWithTab/Components/index.d.ts +2 -0
- package/dist/src/desktop/panels/DesktopBasicModalWithTab/Components/index.js +5 -0
- package/dist/src/desktop/panels/DesktopBasicModalWithTab/DesktopBasicModalWithTab.d.ts +27 -0
- package/dist/src/desktop/panels/DesktopBasicModalWithTab/DesktopBasicModalWithTab.js +146 -0
- package/dist/src/desktop/panels/DesktopBasicModalWithTab/index.d.ts +2 -0
- package/dist/src/desktop/panels/DesktopBasicModalWithTab/index.js +8 -0
- package/dist/src/desktop/panels/index.d.ts +3 -1
- package/dist/src/desktop/panels/index.js +3 -1
- package/dist/src/mobile/components/BasicListItem/BasicListItem.js +1 -1
- package/dist/src/mobile/components/TextLabel/TextLabel.js +11 -6
- package/dist/src/sub/DynamicLayout/mock_customSection.js +3 -0
- package/dist/src/sub/DynamicLayout/pagesPreviewMock.d.ts +566 -3
- package/dist/src/sub/DynamicLayout/pagesPreviewMock.js +501 -6
- package/dist/src/sub/DynamicLayout/sections/CustomSection/CustomSection.js +13 -6
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Button/Button.js +23 -5
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Divider/Divider.js +4 -2
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Image/Image.js +5 -3
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/RichText/RichText.js +5 -3
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Text/Text.js +5 -3
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Twitter/Twitter.js +4 -2
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Youtube/Youtube.js +4 -2
- package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/textUtil.js +12 -3
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropBgImage.js +1 -1
- package/dist/src/sub/DynamicLayout/types.d.ts +3 -0
- package/package.json +2 -1
- package/release-note.md +5 -6
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { PDSTextType } from '../../../common';
|
|
3
|
+
export type DesktopBasicModalWithTabInfoType = {
|
|
4
|
+
sideTabTitleText: PDSTextType;
|
|
5
|
+
bodyTitleText?: PDSTextType;
|
|
6
|
+
body: React.ReactNode;
|
|
7
|
+
};
|
|
8
|
+
type DesktopBasicModalWithTabProps = {
|
|
9
|
+
size?: 'large' | 'medium';
|
|
10
|
+
modalTitleText: PDSTextType;
|
|
11
|
+
infoArray: DesktopBasicModalWithTabInfoType[];
|
|
12
|
+
btnMode?: 'btn_amount1' | 'btn_amount2' | 'btn_amount3';
|
|
13
|
+
btn1Text: PDSTextType;
|
|
14
|
+
btn2Text?: PDSTextType;
|
|
15
|
+
btn3Text?: PDSTextType;
|
|
16
|
+
btn1State?: 'normal' | 'disabled';
|
|
17
|
+
btn2State?: 'normal' | 'disabled';
|
|
18
|
+
btn3State?: 'normal' | 'disabled';
|
|
19
|
+
btn1Type?: 'button' | 'submit';
|
|
20
|
+
btn2Type?: 'button' | 'submit';
|
|
21
|
+
btn3Type?: 'button' | 'submit';
|
|
22
|
+
onClickBtn1?: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
23
|
+
onClickBtn2?: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
24
|
+
onClickBtn3?: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
25
|
+
};
|
|
26
|
+
declare function DesktopBasicModalWithTab({ size, modalTitleText, infoArray, btnMode, btn1Text, btn2Text, btn3Text, btn1State, btn2State, btn3State, btn1Type, btn2Type, btn3Type, onClickBtn1, onClickBtn2, onClickBtn3 }: DesktopBasicModalWithTabProps): import("react").ReactPortal;
|
|
27
|
+
export default DesktopBasicModalWithTab;
|
|
@@ -0,0 +1,146 @@
|
|
|
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 react_dom_1 = __importDefault(require("react-dom"));
|
|
24
|
+
var styled_components_1 = __importDefault(require("styled-components"));
|
|
25
|
+
var animationStyle_1 = require("../../../common/styles/movement/animationStyle");
|
|
26
|
+
var scrollbarStyle_1 = require("../../../common/styles/scroll/scrollbarStyle");
|
|
27
|
+
var hybrid_1 = require("../../../hybrid");
|
|
28
|
+
var components_1 = require("../../components");
|
|
29
|
+
var Components_1 = require("./Components");
|
|
30
|
+
function DesktopBasicModalWithTab(_a) {
|
|
31
|
+
var _b = _a.size, size = _b === void 0 ? 'large' : _b, modalTitleText = _a.modalTitleText, infoArray = _a.infoArray, _c = _a.btnMode, btnMode = _c === void 0 ? 'btn_amount2' : _c, btn1Text = _a.btn1Text, btn2Text = _a.btn2Text, btn3Text = _a.btn3Text, _d = _a.btn1State, btn1State = _d === void 0 ? 'normal' : _d, _e = _a.btn2State, btn2State = _e === void 0 ? 'normal' : _e, _f = _a.btn3State, btn3State = _f === void 0 ? 'normal' : _f, _g = _a.btn1Type, btn1Type = _g === void 0 ? 'button' : _g, _h = _a.btn2Type, btn2Type = _h === void 0 ? 'button' : _h, _j = _a.btn3Type, btn3Type = _j === void 0 ? 'button' : _j, onClickBtn1 = _a.onClickBtn1, onClickBtn2 = _a.onClickBtn2, onClickBtn3 = _a.onClickBtn3;
|
|
32
|
+
var container = (0, react_1.useState)(function () {
|
|
33
|
+
var modalRoot = document.createElement('div');
|
|
34
|
+
modalRoot.setAttribute('id', 'DesktopBasicModalWithTab');
|
|
35
|
+
return modalRoot;
|
|
36
|
+
})[0];
|
|
37
|
+
(0, react_1.useLayoutEffect)(function () {
|
|
38
|
+
var root = document.getElementById('root');
|
|
39
|
+
if (!root) {
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
root.appendChild(container);
|
|
43
|
+
return function () {
|
|
44
|
+
root.removeChild(container);
|
|
45
|
+
};
|
|
46
|
+
}, []);
|
|
47
|
+
var _k = (0, react_1.useState)("".concat(infoArray[0].sideTabTitleText, "0")), selectedItem = _k[0], setSelectedItem = _k[1];
|
|
48
|
+
var sideTabTitleArray = infoArray.map(function (data, index) {
|
|
49
|
+
return {
|
|
50
|
+
title: data.sideTabTitleText,
|
|
51
|
+
isActive: selectedItem === "".concat(data.sideTabTitleText).concat(index),
|
|
52
|
+
onClick: function () { return setSelectedItem("".concat(data.sideTabTitleText).concat(index)); }
|
|
53
|
+
};
|
|
54
|
+
});
|
|
55
|
+
var btn1Mode = ['btn_amount1', 'btn_amount2', 'btn_amount3'];
|
|
56
|
+
var btn2Mode = ['btn_amount2', 'btn_amount3'];
|
|
57
|
+
var btn3Mode = ['btn_amount3'];
|
|
58
|
+
return react_dom_1.default.createPortal((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(S_ModalOverlay, {}), (0, jsx_runtime_1.jsxs)(S_ModalWrapper, __assign({ "x-pds-name": "DesktopBasicModalWithTab", "x-pds-element-type": "panel", "x-pds-device-type": "desktop", size: size }, { children: [(0, jsx_runtime_1.jsxs)(S_UpsidePanel, { children: [(0, jsx_runtime_1.jsxs)(S_LeftPanel, { children: [(0, jsx_runtime_1.jsx)(S_Header, { children: (0, jsx_runtime_1.jsx)(components_1.TextLabel, { text: modalTitleText, lineLimit: 2, ellipsisMode: "use", styleTheme: "headingBold" }) }), (0, jsx_runtime_1.jsxs)(S_SideTabWrapper, { children: [(0, jsx_runtime_1.jsx)(Components_1.SideTab, { itemArray: sideTabTitleArray }), (0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_i" })] })] }), infoArray
|
|
59
|
+
.filter(function (data, index) { return selectedItem === "".concat(data.sideTabTitleText).concat(index); })
|
|
60
|
+
.map(function (data, index) { return ((0, jsx_runtime_1.jsx)(S_RightContainer, { children: (0, jsx_runtime_1.jsxs)(S_RightArea, { children: [(0, jsx_runtime_1.jsx)(components_1.TextLabel, { text: data.bodyTitleText ? data.bodyTitleText : data.sideTabTitleText, styleTheme: "headingBold" }), (0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_e" }), (0, jsx_runtime_1.jsx)(S_Body, { children: data.body && data.body })] }) }, "".concat(data.sideTabTitleText).concat(index))); })] }), (0, jsx_runtime_1.jsxs)(S_Footer, { children: [(0, jsx_runtime_1.jsx)(S_Left, { children: btn3Mode.includes(btnMode) && btn3Text && ((0, jsx_runtime_1.jsx)(components_1.MainButton, { styleTheme: "secondary", text: btn3Text, state: btn3State, type: btn3Type, size: "medium", onClick: onClickBtn3 })) }), (0, jsx_runtime_1.jsxs)(S_Right, { children: [(0, jsx_runtime_1.jsx)(S_Btn2Wrapper, { children: btn2Mode.includes(btnMode) && btn2Text && ((0, jsx_runtime_1.jsx)(components_1.MainButton, { styleTheme: "secondary", text: btn2Text, state: btn2State, type: btn2Type, size: "medium", onClick: onClickBtn2 })) }), btn1Mode.includes(btnMode) && btn1Text && ((0, jsx_runtime_1.jsx)(components_1.MainButton, { text: btn1Text, state: btn1State, type: btn1Type, size: "medium", onClick: onClickBtn1 }))] })] })] }))] }), container);
|
|
61
|
+
}
|
|
62
|
+
var S_ModalOverlay = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n background-color: ", ";\n height: 100vh;\n left: 0;\n position: fixed;\n top: 0;\n width: 100vw;\n\n ", "\n"], ["\n background-color: ", ";\n height: 100vh;\n left: 0;\n position: fixed;\n top: 0;\n width: 100vw;\n\n ", "\n"])), function (_a) {
|
|
63
|
+
var theme = _a.theme;
|
|
64
|
+
return theme.ui_cpnt_modal_dimmed;
|
|
65
|
+
}, animationStyle_1.modalOverlayOnAni);
|
|
66
|
+
var S_ModalWrapper = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n background-color: ", ";\n border: 1px solid ", ";\n border-radius: 24px;\n box-shadow: ", ";\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n height: 80vh;\n left: 50%;\n max-height: 720px;\n min-height: 560px;\n overflow: hidden;\n pointer-events: auto;\n position: fixed;\n top: 50%;\n transform: translate(-50%, -50%);\n width: ", ";\n\n ", "\n"], ["\n background-color: ", ";\n border: 1px solid ", ";\n border-radius: 24px;\n box-shadow: ", ";\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n height: 80vh;\n left: 50%;\n max-height: 720px;\n min-height: 560px;\n overflow: hidden;\n pointer-events: auto;\n position: fixed;\n top: 50%;\n transform: translate(-50%, -50%);\n width: ", ";\n\n ", "\n"])), function (_a) {
|
|
67
|
+
var theme = _a.theme;
|
|
68
|
+
return theme.ui_cpnt_modal_base;
|
|
69
|
+
}, function (_a) {
|
|
70
|
+
var theme = _a.theme;
|
|
71
|
+
return theme.ui_cpnt_modal_border;
|
|
72
|
+
}, function (_a) {
|
|
73
|
+
var theme = _a.theme;
|
|
74
|
+
return theme.boxShadow.elevation5;
|
|
75
|
+
}, function (_a) {
|
|
76
|
+
var size = _a.size;
|
|
77
|
+
return size &&
|
|
78
|
+
{
|
|
79
|
+
large: '960px',
|
|
80
|
+
medium: '688px'
|
|
81
|
+
}[size];
|
|
82
|
+
}, animationStyle_1.modalOnAni);
|
|
83
|
+
var S_UpsidePanel = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n display: flex;\n flex: 1;\n height: 100%;\n overflow: hidden;\n"], ["\n display: flex;\n flex: 1;\n height: 100%;\n overflow: hidden;\n"])));
|
|
84
|
+
var S_LeftPanel = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n min-width: 240px;\n width: 240px;\n"], ["\n display: flex;\n flex-direction: column;\n min-width: 240px;\n width: 240px;\n"])));
|
|
85
|
+
var S_Header = styled_components_1.default.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n background-color: ", ";\n box-sizing: border-box;\n padding-bottom: ", ";\n padding-left: ", ";\n padding-right: ", ";\n padding-top: ", ";\n"], ["\n background-color: ", ";\n box-sizing: border-box;\n padding-bottom: ", ";\n padding-left: ", ";\n padding-right: ", ";\n padding-top: ", ";\n"])), function (_a) {
|
|
86
|
+
var theme = _a.theme;
|
|
87
|
+
return theme.ui_cpnt_modalwithtab_leftside_base;
|
|
88
|
+
}, function (_a) {
|
|
89
|
+
var theme = _a.theme;
|
|
90
|
+
return theme.spacing.spacingF;
|
|
91
|
+
}, function (_a) {
|
|
92
|
+
var theme = _a.theme;
|
|
93
|
+
return theme.spacing.spacingE;
|
|
94
|
+
}, function (_a) {
|
|
95
|
+
var theme = _a.theme;
|
|
96
|
+
return theme.spacing.spacingE;
|
|
97
|
+
}, function (_a) {
|
|
98
|
+
var theme = _a.theme;
|
|
99
|
+
return theme.spacing.spacingE;
|
|
100
|
+
});
|
|
101
|
+
var S_SideTabWrapper = styled_components_1.default.div(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n background-color: ", ";\n flex: 1;\n overflow-y: auto;\n"], ["\n background-color: ", ";\n flex: 1;\n overflow-y: auto;\n"])), function (_a) {
|
|
102
|
+
var theme = _a.theme;
|
|
103
|
+
return theme.ui_cpnt_modalwithtab_leftside_base;
|
|
104
|
+
});
|
|
105
|
+
var S_RightContainer = styled_components_1.default.div(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n display: flex;\n flex: 1;\n flex-direction: column;\n height: 100%;\n overflow-x: hidden;\n overflow-y: overlay;\n\n ", "\n"], ["\n display: flex;\n flex: 1;\n flex-direction: column;\n height: 100%;\n overflow-x: hidden;\n overflow-y: overlay;\n\n ", "\n"])), scrollbarStyle_1.scrollbarStyle);
|
|
106
|
+
var S_RightArea = styled_components_1.default.div(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n box-sizing: border-box;\n padding-bottom: ", ";\n padding-left: ", ";\n padding-right: ", ";\n padding-top: ", ";\n"], ["\n box-sizing: border-box;\n padding-bottom: ", ";\n padding-left: ", ";\n padding-right: ", ";\n padding-top: ", ";\n"])), function (_a) {
|
|
107
|
+
var theme = _a.theme;
|
|
108
|
+
return theme.spacing.spacingI;
|
|
109
|
+
}, function (_a) {
|
|
110
|
+
var theme = _a.theme;
|
|
111
|
+
return theme.spacing.spacingF;
|
|
112
|
+
}, function (_a) {
|
|
113
|
+
var theme = _a.theme;
|
|
114
|
+
return theme.spacing.spacingF;
|
|
115
|
+
}, function (_a) {
|
|
116
|
+
var theme = _a.theme;
|
|
117
|
+
return theme.spacing.spacingE;
|
|
118
|
+
});
|
|
119
|
+
var S_Body = styled_components_1.default.div(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n overflow-x: hidden;\n"], ["\n overflow-x: hidden;\n"])));
|
|
120
|
+
var S_Footer = styled_components_1.default.div(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n border-top: 1px solid ", ";\n box-sizing: border-box;\n display: flex;\n justify-content: space-between;\n padding-bottom: ", ";\n padding-left: ", ";\n padding-right: ", ";\n padding-top: ", ";\n"], ["\n border-top: 1px solid ", ";\n box-sizing: border-box;\n display: flex;\n justify-content: space-between;\n padding-bottom: ", ";\n padding-left: ", ";\n padding-right: ", ";\n padding-top: ", ";\n"])), function (_a) {
|
|
121
|
+
var theme = _a.theme;
|
|
122
|
+
return theme.ui_cpnt_modal_border;
|
|
123
|
+
}, function (_a) {
|
|
124
|
+
var theme = _a.theme;
|
|
125
|
+
return theme.spacing.spacingD;
|
|
126
|
+
}, function (_a) {
|
|
127
|
+
var theme = _a.theme;
|
|
128
|
+
return theme.spacing.spacingE;
|
|
129
|
+
}, function (_a) {
|
|
130
|
+
var theme = _a.theme;
|
|
131
|
+
return theme.spacing.spacingE;
|
|
132
|
+
}, function (_a) {
|
|
133
|
+
var theme = _a.theme;
|
|
134
|
+
return theme.spacing.spacingD;
|
|
135
|
+
});
|
|
136
|
+
var S_Left = styled_components_1.default.div(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n margin-right: ", ";\n"], ["\n margin-right: ", ";\n"])), function (_a) {
|
|
137
|
+
var theme = _a.theme;
|
|
138
|
+
return theme.spacing.spacingB;
|
|
139
|
+
});
|
|
140
|
+
var S_Btn2Wrapper = styled_components_1.default.div(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n margin-right: ", ";\n"], ["\n margin-right: ", ";\n"])), function (_a) {
|
|
141
|
+
var theme = _a.theme;
|
|
142
|
+
return theme.spacing.spacingB;
|
|
143
|
+
});
|
|
144
|
+
var S_Right = styled_components_1.default.div(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n display: flex;\n"], ["\n display: flex;\n"])));
|
|
145
|
+
exports.default = DesktopBasicModalWithTab;
|
|
146
|
+
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;
|
|
@@ -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.DesktopBasicModalWithTab = void 0;
|
|
7
|
+
var DesktopBasicModalWithTab_1 = require("./DesktopBasicModalWithTab");
|
|
8
|
+
Object.defineProperty(exports, "DesktopBasicModalWithTab", { enumerable: true, get: function () { return __importDefault(DesktopBasicModalWithTab_1).default; } });
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { AnnotationSheet } from './AnnotationSheet';
|
|
2
2
|
import { ContentSheet } from './ContentSheet';
|
|
3
3
|
import { DesktopBasicModal } from './DesktopBasicModal';
|
|
4
|
+
import { DesktopBasicModalWithTab, DesktopBasicModalWithTabInfoType } from './DesktopBasicModalWithTab';
|
|
4
5
|
import { DesktopHeadlessModal } from './DesktopHeadlessModal';
|
|
5
6
|
import { DesktopTutorialModal, DesktopTutorialModalInfoType } from './DesktopTutorialModal';
|
|
6
7
|
import { SectionSheet } from './SectionSheet';
|
|
7
|
-
export { AnnotationSheet, ContentSheet, DesktopBasicModal, DesktopHeadlessModal, DesktopTutorialModal, SectionSheet };
|
|
8
|
+
export { AnnotationSheet, ContentSheet, DesktopBasicModal, DesktopBasicModalWithTab, DesktopHeadlessModal, DesktopTutorialModal, SectionSheet };
|
|
9
|
+
export { DesktopBasicModalWithTabInfoType };
|
|
8
10
|
export { DesktopTutorialModalInfoType };
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SectionSheet = exports.DesktopTutorialModal = exports.DesktopHeadlessModal = exports.DesktopBasicModal = exports.ContentSheet = exports.AnnotationSheet = void 0;
|
|
3
|
+
exports.SectionSheet = exports.DesktopTutorialModal = exports.DesktopHeadlessModal = exports.DesktopBasicModalWithTab = exports.DesktopBasicModal = exports.ContentSheet = exports.AnnotationSheet = void 0;
|
|
4
4
|
var AnnotationSheet_1 = require("./AnnotationSheet");
|
|
5
5
|
Object.defineProperty(exports, "AnnotationSheet", { enumerable: true, get: function () { return AnnotationSheet_1.AnnotationSheet; } });
|
|
6
6
|
var ContentSheet_1 = require("./ContentSheet");
|
|
7
7
|
Object.defineProperty(exports, "ContentSheet", { enumerable: true, get: function () { return ContentSheet_1.ContentSheet; } });
|
|
8
8
|
var DesktopBasicModal_1 = require("./DesktopBasicModal");
|
|
9
9
|
Object.defineProperty(exports, "DesktopBasicModal", { enumerable: true, get: function () { return DesktopBasicModal_1.DesktopBasicModal; } });
|
|
10
|
+
var DesktopBasicModalWithTab_1 = require("./DesktopBasicModalWithTab");
|
|
11
|
+
Object.defineProperty(exports, "DesktopBasicModalWithTab", { enumerable: true, get: function () { return DesktopBasicModalWithTab_1.DesktopBasicModalWithTab; } });
|
|
10
12
|
var DesktopHeadlessModal_1 = require("./DesktopHeadlessModal");
|
|
11
13
|
Object.defineProperty(exports, "DesktopHeadlessModal", { enumerable: true, get: function () { return DesktopHeadlessModal_1.DesktopHeadlessModal; } });
|
|
12
14
|
var DesktopTutorialModal_1 = require("./DesktopTutorialModal");
|
|
@@ -64,7 +64,7 @@ function BasicListItem(_a) {
|
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
};
|
|
67
|
-
return ((0, jsx_runtime_1.jsx)(S_BasicListItem, __assign({ "x-pds-name": "BasicListItem", "x-pds-element-type": "component", "x-pds-device-type": "mobile", isSelected: isSelected, onClick: handleClick, spacingMode: spacingMode }, { children: (0, jsx_runtime_1.jsxs)(S_BasicListItemBox, __assign({ imageIconMode: imageIconMode, captionText: captionText, spacingMode: spacingMode, dividerType: dividerType }, { children: [(0, jsx_runtime_1.jsxs)(LeftBox_1.LeftBox, __assign({ hasRightBox: displayType !== 'none' }, { children: [selectionMode === 'check' && checkboxId && (0, jsx_runtime_1.jsx)(LeftBox_1.LeftBox.Checkbox, { id: checkboxId }), selectionMode === 'radio' && radioValue && radioId && ((0, jsx_runtime_1.jsx)(LeftBox_1.LeftBox.Radio, { id: radioId, value: radioValue, onChange: onClickRadio })), badgeMode === 'left' && (0, jsx_runtime_1.jsx)(LeftBox_1.LeftBox.Badge, { status: badgeStatus }), imageIconMode === 'image' && (0, jsx_runtime_1.jsx)(LeftBox_1.LeftBox.Image, { src: imageSrc, shape: imageShapeType }), imageIconMode === 'icon' && ((0, jsx_runtime_1.jsx)(LeftBox_1.LeftBox.Icon, { name: iconName, fill: iconFillType === 'fill' })), (0, jsx_runtime_1.jsxs)(Contents_1.default, { children: [(0, jsx_runtime_1.jsx)(Contents_1.default.Title, { text: titleText, colorTheme: titleTextColorTheme === 'none' ? 'sysTextPrimary' : 'sysTextError', font: titleFontWeight === 'bold' ? 'body2Bold' : 'body2Regular' }), (0, jsx_runtime_1.jsx)(Contents_1.default.Caption, { text: captionText })] })] })), (0, jsx_runtime_1.jsxs)(RightBox_1.RightBox, __assign({ hasFixedHeight: displayType === 'text' }, { children: [(displayType === 'text' || displayType === 'ibtn_text') && ((0, jsx_runtime_1.jsx)(RightBox_1.RightBox.Description, { text: descText, icon: displayType === 'ibtn_text' ? ((0, jsx_runtime_1.jsx)(RightBox_1.RightBox.IconButton, { iconName: iBtn1IconName, fill: iBtn1IconFillType === 'fill', onClick: handleIBtn1Click })) : undefined })), displayType === 'ibtn_amount1' && ((0, jsx_runtime_1.jsx)(RightBox_1.RightBox.IconButton, { iconName: iBtn1IconName, fill: iBtn1IconFillType === 'fill', onClick: handleIBtn1Click })), displayType === 'ibtn_amount2' && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(RightBox_1.RightBox.IconButton, { iconName: iBtn2IconName, fill: iBtn2IconFillType === 'fill', onClick: onClickIBtn2 }), (0, jsx_runtime_1.jsx)(RightBox_1.RightBox.IconButton, { iconName: iBtn1IconName, fill: iBtn1IconFillType === 'fill', onClick: handleIBtn1Click })] })), displayType === 'mbtn' && ((0, jsx_runtime_1.jsx)(RightBox_1.RightBox.MainButton, { text: mBtnText, fill: mBtnFillType === 'fill', onClick: onClickMBtn })), displayType === 'switch' && switchName && ((0, jsx_runtime_1.jsx)(RightBox_1.RightBox.Switch, { name: switchName, state: switchState, status: switchStatus, onClick: onClickSwitch }))] }))] })) })));
|
|
67
|
+
return ((0, jsx_runtime_1.jsx)(S_BasicListItem, __assign({ "x-pds-name": "BasicListItem", "x-pds-element-type": "component", "x-pds-device-type": "mobile", isSelected: isSelected, onClick: handleClick, spacingMode: spacingMode }, { children: (0, jsx_runtime_1.jsxs)(S_BasicListItemBox, __assign({ imageIconMode: imageIconMode, captionText: captionText, spacingMode: spacingMode, dividerType: dividerType }, { children: [(0, jsx_runtime_1.jsxs)(LeftBox_1.LeftBox, __assign({ hasRightBox: displayType !== 'none' }, { children: [selectionMode === 'check' && checkboxId && (0, jsx_runtime_1.jsx)(LeftBox_1.LeftBox.Checkbox, { id: checkboxId }), selectionMode === 'radio' && radioValue && radioId && ((0, jsx_runtime_1.jsx)(LeftBox_1.LeftBox.Radio, { id: radioId, value: radioValue, onChange: onClickRadio })), badgeMode === 'left' && (0, jsx_runtime_1.jsx)(LeftBox_1.LeftBox.Badge, { status: badgeStatus }), imageIconMode === 'image' && (0, jsx_runtime_1.jsx)(LeftBox_1.LeftBox.Image, { src: imageSrc, shape: imageShapeType }), imageIconMode === 'icon' && ((0, jsx_runtime_1.jsx)(LeftBox_1.LeftBox.Icon, { name: iconName, fill: iconFillType === 'fill' })), (0, jsx_runtime_1.jsxs)(Contents_1.default, { children: [(0, jsx_runtime_1.jsx)(Contents_1.default.Title, { text: titleText, colorTheme: titleTextColorTheme === 'none' ? 'sysTextPrimary' : 'sysTextError', font: titleFontWeight === 'bold' ? 'body2Bold' : 'body2Regular' }), captionText && (0, jsx_runtime_1.jsx)(Contents_1.default.Caption, { text: captionText })] })] })), (0, jsx_runtime_1.jsxs)(RightBox_1.RightBox, __assign({ hasFixedHeight: displayType === 'text' }, { children: [(displayType === 'text' || displayType === 'ibtn_text') && ((0, jsx_runtime_1.jsx)(RightBox_1.RightBox.Description, { text: descText, icon: displayType === 'ibtn_text' ? ((0, jsx_runtime_1.jsx)(RightBox_1.RightBox.IconButton, { iconName: iBtn1IconName, fill: iBtn1IconFillType === 'fill', onClick: handleIBtn1Click })) : undefined })), displayType === 'ibtn_amount1' && ((0, jsx_runtime_1.jsx)(RightBox_1.RightBox.IconButton, { iconName: iBtn1IconName, fill: iBtn1IconFillType === 'fill', onClick: handleIBtn1Click })), displayType === 'ibtn_amount2' && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(RightBox_1.RightBox.IconButton, { iconName: iBtn2IconName, fill: iBtn2IconFillType === 'fill', onClick: onClickIBtn2 }), (0, jsx_runtime_1.jsx)(RightBox_1.RightBox.IconButton, { iconName: iBtn1IconName, fill: iBtn1IconFillType === 'fill', onClick: handleIBtn1Click })] })), displayType === 'mbtn' && ((0, jsx_runtime_1.jsx)(RightBox_1.RightBox.MainButton, { text: mBtnText, fill: mBtnFillType === 'fill', onClick: onClickMBtn })), displayType === 'switch' && switchName && ((0, jsx_runtime_1.jsx)(RightBox_1.RightBox.Switch, { name: switchName, state: switchState, status: switchStatus, onClick: onClickSwitch }))] }))] })) })));
|
|
68
68
|
}
|
|
69
69
|
var S_BasicListItem = styled_components_1.default.li(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n align-items: center;\n background-color: ", ";\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n padding: ", ";\n"], ["\n align-items: center;\n background-color: ", ";\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n padding: ", ";\n"])), function (_a) {
|
|
70
70
|
var theme = _a.theme, isSelected = _a.isSelected;
|
|
@@ -42,7 +42,7 @@ var jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
42
42
|
var styled_components_1 = __importStar(require("styled-components"));
|
|
43
43
|
var hybrid_1 = require("../../../hybrid");
|
|
44
44
|
function TextLabel(_a) {
|
|
45
|
-
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.singleLineMode, singleLineMode = _e === void 0 ? 'none' : _e, _f = _a.ellipsisMode, ellipsisMode = _f === void 0 ? 'none' : _f, lineLimit = _a.lineLimit, _g = _a.userSelectMode, userSelectMode = _g === void 0 ? 'none' : _g, customFontSize = _a.customFontSize, customFontWeight = _a.customFontWeight, _h = _a.textDecorationType, textDecorationType = _h === void 0 ? 'none' : _h, _j = _a.requirementMode, requirementMode = _j === void 0 ? 'none' : _j, _k = _a.bulletPointMode, bulletPointMode = _k === void 0 ? 'none' : _k,
|
|
45
|
+
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.singleLineMode, singleLineMode = _e === void 0 ? 'none' : _e, _f = _a.ellipsisMode, ellipsisMode = _f === void 0 ? 'none' : _f, lineLimit = _a.lineLimit, _g = _a.userSelectMode, userSelectMode = _g === void 0 ? 'none' : _g, customFontSize = _a.customFontSize, customFontWeight = _a.customFontWeight, _h = _a.textDecorationType, textDecorationType = _h === void 0 ? 'none' : _h, _j = _a.requirementMode, requirementMode = _j === void 0 ? 'none' : _j, _k = _a.bulletPointMode, bulletPointMode = _k === void 0 ? 'none' : _k, wordBreak = _a.wordBreak, letterSpacing = _a.letterSpacing;
|
|
46
46
|
return ((0, jsx_runtime_1.jsxs)(S_TextLabel, __assign({ "x-pds-name": "TextLabel", "x-pds-element-type": "component", "x-pds-device-type": "mobile", 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" }) }) })))] })));
|
|
47
47
|
}
|
|
48
48
|
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) {
|
|
@@ -310,17 +310,22 @@ var ellipsisStyle = (0, styled_components_1.css)(templateObject_35 || (templateO
|
|
|
310
310
|
});
|
|
311
311
|
var userSelectModeStyle = (0, styled_components_1.css)(templateObject_36 || (templateObject_36 = __makeTemplateObject(["\n -khtml-user-select: none;\n -moz-user-select: -moz-none;\n -ms-user-select: none;\n -webkit-user-select: none;\n user-select: none;\n"], ["\n -khtml-user-select: none;\n -moz-user-select: -moz-none;\n -ms-user-select: none;\n -webkit-user-select: none;\n user-select: none;\n"])));
|
|
312
312
|
var bulletPointModeStyle = (0, styled_components_1.css)(templateObject_37 || (templateObject_37 = __makeTemplateObject(["\n padding-left: 16px;\n ::before {\n content: '\u2022';\n left: 0;\n position: absolute;\n width: 16px;\n }\n"], ["\n padding-left: 16px;\n ::before {\n content: '\u2022';\n left: 0;\n position: absolute;\n width: 16px;\n }\n"])));
|
|
313
|
-
var S_TextLabel = styled_components_1.default.div(templateObject_38 || (templateObject_38 = __makeTemplateObject(["\n box-sizing: border-box;\n overflow-wrap: break-word;\n text-align: ", ";\n white-space: pre-wrap;\n
|
|
313
|
+
var S_TextLabel = styled_components_1.default.div(templateObject_38 || (templateObject_38 = __makeTemplateObject(["\n box-sizing: border-box;\n overflow-wrap: break-word;\n text-align: ", ";\n white-space: pre-wrap;\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n"], ["\n box-sizing: border-box;\n overflow-wrap: break-word;\n text-align: ", ";\n white-space: pre-wrap;\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n"])), function (_a) {
|
|
314
314
|
var textAlign = _a.textAlign;
|
|
315
315
|
return textAlign;
|
|
316
|
+
}, function (_a) {
|
|
317
|
+
var theme = _a.theme;
|
|
318
|
+
return ['ko', 'ko-KR', 'ko-kr'].includes(theme.language)
|
|
319
|
+
? 'word-break: keep-all'
|
|
320
|
+
: 'word-break: normal';
|
|
316
321
|
}, function (_a) {
|
|
317
322
|
var wordBreak = _a.wordBreak;
|
|
318
323
|
return wordBreak &&
|
|
319
324
|
{
|
|
320
|
-
normal: 'normal',
|
|
321
|
-
break_all: 'break-all',
|
|
322
|
-
keep_all: 'keep-all',
|
|
323
|
-
break_word: 'break-word'
|
|
325
|
+
normal: 'word-break: normal',
|
|
326
|
+
break_all: 'word-break: break-all',
|
|
327
|
+
keep_all: 'word-break: keep-all',
|
|
328
|
+
break_word: 'word-break: break-word'
|
|
324
329
|
}[wordBreak];
|
|
325
330
|
}, function (_a) {
|
|
326
331
|
var $letterSpacing = _a.$letterSpacing;
|
|
@@ -75,6 +75,9 @@ exports.customSectionMock1 = {
|
|
|
75
75
|
template: undefined,
|
|
76
76
|
updatedAt: '2023-01-06T09:05:45',
|
|
77
77
|
jsonProperties: {
|
|
78
|
+
CB_CONTENT_PROP_SECTION: {
|
|
79
|
+
CB_CONTENT_PROP_SECTION_SPEC_VARIABLEROOTFONTSIZE: true
|
|
80
|
+
},
|
|
78
81
|
CB_CONTENT_PROP_VISIBILITY: {
|
|
79
82
|
CB_CONTENT_PROP_VISIBILITY_SPEC_DESKTOP: true,
|
|
80
83
|
CB_CONTENT_PROP_VISIBILITY_SPEC_MOBILEWEB: true
|