pds-dev-kit-web-test 0.1.1 → 0.1.2
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 +3 -2
- package/dist/index.js +3 -2
- package/dist/src/common/assets/icons/fill/BellNotification.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/BellNotification.js +36 -0
- package/dist/src/common/assets/icons/fill/ChatNotification.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/ChatNotification.js +36 -0
- package/dist/src/common/assets/icons/fill/HelpWindow.js +1 -1
- package/dist/src/common/assets/icons/fill/Question.js +1 -1
- package/dist/src/common/assets/icons/fill/index.d.ts +2 -0
- package/dist/src/common/assets/icons/fill/index.js +4 -0
- package/dist/src/common/assets/icons/line/BellNotification.js +2 -2
- package/dist/src/common/assets/icons/line/BookingExtension.d.ts +4 -0
- package/dist/src/common/assets/icons/line/BookingExtension.js +36 -0
- package/dist/src/common/assets/icons/line/ChatNotification.d.ts +4 -0
- package/dist/src/common/assets/icons/line/ChatNotification.js +36 -0
- package/dist/src/common/assets/icons/line/Question.js +1 -1
- package/dist/src/common/assets/icons/line/index.d.ts +2 -0
- package/dist/src/common/assets/icons/line/index.js +4 -0
- package/dist/src/common/services/i18n/i18n.js +10 -4
- package/dist/src/common/services/i18n/resources/en.json +0 -6835
- package/dist/src/common/services/i18n/resources/es.json +0 -6835
- package/dist/src/common/services/i18n/resources/fil.json +9 -0
- package/dist/src/common/services/i18n/resources/index.d.ts +11 -41012
- package/dist/src/common/services/i18n/resources/index.js +8 -5
- package/dist/src/common/services/i18n/resources/ja.json +9 -0
- package/dist/src/common/services/i18n/resources/ko.json +0 -6835
- package/dist/src/common/services/i18n/resources/zh-cn.json +9 -0
- package/dist/src/common/services/i18n/resources/zh-tw.json +0 -6835
- package/dist/src/common/styles/colorSet/PaletteColor_Dark.json +8 -1
- package/dist/src/common/styles/colorSet/PaletteColor_light.json +8 -1
- package/dist/src/common/styles/colorSet/SemanticColor.json +3 -1
- package/dist/src/common/styles/colorSet/UIColor.json +24 -2
- package/dist/src/common/styles/colorSet/index.d.ts +305 -267
- package/dist/src/common/styles/colorSet/index.js +3 -3
- package/dist/src/common/styles/colorSet/ui-type.d.ts +22 -0
- package/dist/src/desktop/common/components/TextFieldBase/TextFieldBase.js +6 -2
- package/dist/src/desktop/components/AdminList/BulkActionBar.js +1 -2
- package/dist/src/desktop/components/AdminListHeader/HeaderBar.js +1 -1
- package/dist/src/desktop/components/DesktopHeaderBar/DesktopHeaderBar.d.ts +4 -1
- package/dist/src/desktop/components/DesktopHeaderBar/DesktopHeaderBar.js +26 -2
- package/dist/src/desktop/components/EditApplyTextField/EditApplyTextField.js +6 -4
- package/dist/src/desktop/components/TextButton/TextButton.d.ts +1 -1
- package/dist/src/desktop/components/TextButton/TextButton.js +38 -12
- package/dist/src/desktop/components/TextField/TextField.d.ts +2 -1
- package/dist/src/desktop/components/TextField/TextField.js +9 -4
- package/dist/src/desktop/components/TextLabel/TextLabel.d.ts +2 -1
- package/dist/src/desktop/components/TextLabel/TextLabel.js +3 -3
- package/dist/src/desktop/components/UploadTextButton/UploadTextButton.d.ts +1 -1
- package/dist/src/desktop/components/UploadTextButton/UploadTextButton.js +39 -9
- package/dist/src/desktop/index.d.ts +3 -2
- package/dist/src/desktop/index.js +2 -1
- package/dist/src/desktop/layout/LayoutWF/ContainersBox/ContainersBox.js +8 -12
- package/dist/src/desktop/panels/DesktopTutorialModal/Components/SideTab/SideTab.d.ts +8 -0
- package/dist/src/desktop/panels/DesktopTutorialModal/Components/SideTab/SideTab.js +48 -0
- package/dist/src/desktop/panels/DesktopTutorialModal/Components/SideTab/index.d.ts +1 -0
- package/dist/src/desktop/panels/DesktopTutorialModal/Components/SideTab/index.js +8 -0
- package/dist/src/desktop/panels/DesktopTutorialModal/Components/index.d.ts +2 -0
- package/dist/src/desktop/panels/DesktopTutorialModal/Components/index.js +5 -0
- package/dist/src/desktop/panels/DesktopTutorialModal/DesktopTutorialModal.d.ts +18 -0
- package/dist/src/desktop/panels/DesktopTutorialModal/DesktopTutorialModal.js +153 -0
- package/dist/src/desktop/panels/DesktopTutorialModal/index.d.ts +3 -0
- package/dist/src/desktop/panels/DesktopTutorialModal/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/common/components/TextFieldBase/TextFieldBase.js +6 -2
- package/dist/src/mobile/components/TextButton/TextButton.d.ts +1 -1
- package/dist/src/mobile/components/TextButton/TextButton.js +29 -7
- package/dist/src/mobile/components/TextField/TextField.d.ts +2 -1
- package/dist/src/mobile/components/TextField/TextField.js +9 -4
- package/dist/src/mobile/components/UploadTextButton/UploadTextButton.d.ts +1 -1
- package/dist/src/mobile/components/UploadTextButton/UploadTextButton.js +30 -6
- package/dist/src/sub/DynamicLayout/components/Section/Section.js +1 -1
- package/dist/src/sub/DynamicLayout/components/YouTubeIframe/YouTubeIframe.js +30 -13
- package/dist/src/sub/DynamicLayout/mock_samplePage.js +7 -0
- package/dist/src/sub/DynamicLayout/sections/ContentsCarouselSection/ContentsCarouselSection.js +1 -1
- package/dist/src/sub/DynamicLayout/sections/ContentsSection/ContentsSection.js +1 -1
- package/dist/src/sub/DynamicLayout/sections/FooterSection/FooterSection.js +1 -1
- package/dist/src/sub/DynamicLayout/sections/InfoBoxSection/InfoBoxSection.js +1 -1
- package/dist/src/sub/DynamicLayout/sections/IntroSection/IntroSection.js +1 -1
- package/dist/src/sub/DynamicLayout/types.d.ts +1 -0
- package/dist/storybook-static/{0.69b174ef.iframe.bundle.d.ts → 0.9bb7767d.iframe.bundle.d.ts} +0 -0
- package/dist/storybook-static/{0.69b174ef.iframe.bundle.js → 0.9bb7767d.iframe.bundle.js} +7 -7
- package/dist/storybook-static/{4.32dc09b1.iframe.bundle.d.ts → 4.ed983a0a.iframe.bundle.d.ts} +0 -0
- package/dist/storybook-static/{4.32dc09b1.iframe.bundle.js → 4.ed983a0a.iframe.bundle.js} +69 -69
- package/dist/storybook-static/{5.c1637fa3.iframe.bundle.d.ts → 5.949eb428.iframe.bundle.d.ts} +0 -0
- package/dist/storybook-static/{5.c1637fa3.iframe.bundle.js → 5.949eb428.iframe.bundle.js} +13 -13
- package/dist/storybook-static/{6.9d79e5b5.iframe.bundle.d.ts → 6.e34350b7.iframe.bundle.d.ts} +0 -0
- package/dist/storybook-static/{6.9d79e5b5.iframe.bundle.js → 6.e34350b7.iframe.bundle.js} +6 -6
- package/dist/storybook-static/{7.b309bb58.iframe.bundle.d.ts → 7.f7cfb88e.iframe.bundle.d.ts} +0 -0
- package/dist/storybook-static/{7.b309bb58.iframe.bundle.js → 7.f7cfb88e.iframe.bundle.js} +1 -1
- package/dist/storybook-static/{main.9a5b3a3c.iframe.bundle.d.ts → main.f16a77cc.iframe.bundle.d.ts} +52 -46
- package/dist/storybook-static/{main.9a5b3a3c.iframe.bundle.js → main.f16a77cc.iframe.bundle.js} +991 -839
- package/dist/storybook-static/{runtime~main.b6fc2c86.iframe.bundle.d.ts → runtime~main.b5a58837.iframe.bundle.d.ts} +0 -0
- package/dist/storybook-static/{runtime~main.b6fc2c86.iframe.bundle.js → runtime~main.b5a58837.iframe.bundle.js} +1 -1
- package/dist/storybook-static/{vendors~main.0fbc3a5b.iframe.bundle.d.ts → vendors~main.ed405a26.iframe.bundle.d.ts} +0 -0
- package/dist/storybook-static/{vendors~main.0fbc3a5b.iframe.bundle.js → vendors~main.ed405a26.iframe.bundle.js} +419 -419
- package/package.json +1 -2
- package/release-note.md +7 -5
- package/dist/src/common/services/i18n/resources/jp.json +0 -6844
- package/dist/src/common/services/i18n/resources/zh-zh.json +0 -6844
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as SideTab } from './SideTab';
|
|
@@ -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.SideTab = void 0;
|
|
7
|
+
var SideTab_1 = require("./SideTab");
|
|
8
|
+
Object.defineProperty(exports, "SideTab", { enumerable: true, get: function () { return __importDefault(SideTab_1).default; } });
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PDSTextType } from '../../../common';
|
|
3
|
+
export declare type DesktopTutorialModalInfoType = {
|
|
4
|
+
sideTabTitleText: PDSTextType;
|
|
5
|
+
infoTitleText?: PDSTextType;
|
|
6
|
+
infoDescText?: PDSTextType;
|
|
7
|
+
imageSrc?: string;
|
|
8
|
+
btnMode?: 'none' | 'btn_amount1';
|
|
9
|
+
btn1Text?: PDSTextType;
|
|
10
|
+
onClickBtn1?: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
11
|
+
};
|
|
12
|
+
declare type DesktopTutorialModalProps = {
|
|
13
|
+
modalTitleText: PDSTextType;
|
|
14
|
+
infoArray: DesktopTutorialModalInfoType[];
|
|
15
|
+
onClose: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
16
|
+
};
|
|
17
|
+
declare function DesktopTutorialModal({ modalTitleText, infoArray, onClose }: DesktopTutorialModalProps): React.ReactPortal;
|
|
18
|
+
export default DesktopTutorialModal;
|
|
@@ -0,0 +1,153 @@
|
|
|
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 __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
7
|
+
if (k2 === undefined) k2 = k;
|
|
8
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
var react_1 = __importStar(require("react"));
|
|
30
|
+
var react_dom_1 = __importDefault(require("react-dom"));
|
|
31
|
+
var styled_components_1 = __importDefault(require("styled-components"));
|
|
32
|
+
var animationStyle_1 = require("../../../common/styles/movement/animationStyle");
|
|
33
|
+
var scrollbarStyle_1 = require("../../../common/styles/scroll/scrollbarStyle");
|
|
34
|
+
var hybrid_1 = require("../../../hybrid");
|
|
35
|
+
var components_1 = require("../../components");
|
|
36
|
+
var Components_1 = require("./Components");
|
|
37
|
+
function DesktopTutorialModal(_a) {
|
|
38
|
+
var modalTitleText = _a.modalTitleText, infoArray = _a.infoArray, onClose = _a.onClose;
|
|
39
|
+
var container = (0, react_1.useState)(function () {
|
|
40
|
+
var modalRoot = document.createElement('div');
|
|
41
|
+
modalRoot.setAttribute('id', 'DesktopTutorialModal');
|
|
42
|
+
return modalRoot;
|
|
43
|
+
})[0];
|
|
44
|
+
(0, react_1.useLayoutEffect)(function () {
|
|
45
|
+
var root = document.getElementById('root');
|
|
46
|
+
if (!root) {
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
root.appendChild(container);
|
|
50
|
+
return function () {
|
|
51
|
+
root.removeChild(container);
|
|
52
|
+
};
|
|
53
|
+
}, []);
|
|
54
|
+
var handleClickCloseBtn = function (e) {
|
|
55
|
+
if (onClose) {
|
|
56
|
+
onClose(e);
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
var _b = (0, react_1.useState)(infoArray[0].sideTabTitleText + "0"), selectedItem = _b[0], setSelectedItem = _b[1];
|
|
60
|
+
var sideTabTitleArray = infoArray.map(function (data, index) {
|
|
61
|
+
return {
|
|
62
|
+
title: data.sideTabTitleText,
|
|
63
|
+
isActive: selectedItem === "" + data.sideTabTitleText + index,
|
|
64
|
+
onClick: function () { return setSelectedItem("" + data.sideTabTitleText + index); }
|
|
65
|
+
};
|
|
66
|
+
});
|
|
67
|
+
return react_dom_1.default.createPortal(react_1.default.createElement(react_1.default.Fragment, null,
|
|
68
|
+
react_1.default.createElement(S_ModalOverlay, null),
|
|
69
|
+
react_1.default.createElement(S_ModalWrapper, { "x-pds-name": "DesktopTutorialModal", "x-pds-element-type": "panel", "x-pds-device-type": "desktop" },
|
|
70
|
+
react_1.default.createElement(S_LeftPanel, null,
|
|
71
|
+
react_1.default.createElement(S_Header, null,
|
|
72
|
+
react_1.default.createElement(components_1.TextLabel, { text: modalTitleText, lineLimit: 2, ellipsisMode: "use", styleTheme: "headingBold" })),
|
|
73
|
+
react_1.default.createElement(S_SideTabWrapper, null,
|
|
74
|
+
react_1.default.createElement(Components_1.SideTab, { itemArray: sideTabTitleArray }),
|
|
75
|
+
react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_i" }))),
|
|
76
|
+
react_1.default.createElement(S_RightPanel, null, infoArray
|
|
77
|
+
.filter(function (data, index) { return selectedItem === "" + data.sideTabTitleText + index; })
|
|
78
|
+
.map(function (data) { return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
79
|
+
react_1.default.createElement(hybrid_1.ImageView, { src: data.imageSrc, shapeType: "rectangle", width: "responsive", ratio: "16_9", scaleType: "cover", backgroundFillMode: "use" }),
|
|
80
|
+
react_1.default.createElement(S_InfoBox, null,
|
|
81
|
+
react_1.default.createElement(components_1.TextLabel, { text: data.infoTitleText ? data.infoTitleText : data.sideTabTitleText, styleTheme: "subTitleBold" }),
|
|
82
|
+
react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_d" }),
|
|
83
|
+
react_1.default.createElement(components_1.TextLabel, { text: data.infoDescText, styleTheme: "body2Regular", colorTheme: "sysTextSecondary" })),
|
|
84
|
+
data.btnMode === 'btn_amount1' && (react_1.default.createElement(S_Footer, null,
|
|
85
|
+
react_1.default.createElement(components_1.MainButton, { text: data.btn1Text, type: "button", size: "medium", onClick: data.onClickBtn1 }))))); })),
|
|
86
|
+
react_1.default.createElement(S_IconButtonWrapper, null,
|
|
87
|
+
react_1.default.createElement(components_1.IconButton, { shapeType: "circular", baseSize: "medium", baseColorKey: "ui_cpnt_button_fill_base_tutorialmodal", iconName: "ic_xmark", iconColorKey: "ui_cpnt_button_icon_white", onClick: handleClickCloseBtn })))), container);
|
|
88
|
+
}
|
|
89
|
+
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) {
|
|
90
|
+
var theme = _a.theme;
|
|
91
|
+
return theme.ui_cpnt_modal_dimmed;
|
|
92
|
+
}, animationStyle_1.modalOverlayOnAni);
|
|
93
|
+
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 left: 50%;\n min-height: 560px;\n height: 80vh;\n max-height: 720px;\n min-width: 960px;\n pointer-events: auto;\n position: fixed;\n top: 50%;\n transform: translate(-50%, -50%);\n width: 50vw;\n overflow: hidden;\n display: flex;\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 left: 50%;\n min-height: 560px;\n height: 80vh;\n max-height: 720px;\n min-width: 960px;\n pointer-events: auto;\n position: fixed;\n top: 50%;\n transform: translate(-50%, -50%);\n width: 50vw;\n overflow: hidden;\n display: flex;\n\n ", "\n"])), function (_a) {
|
|
94
|
+
var theme = _a.theme;
|
|
95
|
+
return theme.ui_cpnt_modal_base;
|
|
96
|
+
}, function (_a) {
|
|
97
|
+
var theme = _a.theme;
|
|
98
|
+
return theme.ui_cpnt_modal_border;
|
|
99
|
+
}, function (_a) {
|
|
100
|
+
var theme = _a.theme;
|
|
101
|
+
return theme.boxShadow.elevation5;
|
|
102
|
+
}, animationStyle_1.modalOnAni);
|
|
103
|
+
var S_LeftPanel = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n width: 360px;\n display: flex;\n flex-direction: column;\n"], ["\n width: 360px;\n display: flex;\n flex-direction: column;\n"])));
|
|
104
|
+
var S_Header = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n box-sizing: border-box;\n padding-top: ", ";\n padding-right: ", ";\n padding-bottom: ", ";\n padding-left: ", ";\n"], ["\n box-sizing: border-box;\n padding-top: ", ";\n padding-right: ", ";\n padding-bottom: ", ";\n padding-left: ", ";\n"])), function (_a) {
|
|
105
|
+
var theme = _a.theme;
|
|
106
|
+
return theme.spacing.spacingE;
|
|
107
|
+
}, function (_a) {
|
|
108
|
+
var theme = _a.theme;
|
|
109
|
+
return theme.spacing.spacingE;
|
|
110
|
+
}, function (_a) {
|
|
111
|
+
var theme = _a.theme;
|
|
112
|
+
return theme.spacing.spacingF;
|
|
113
|
+
}, function (_a) {
|
|
114
|
+
var theme = _a.theme;
|
|
115
|
+
return theme.spacing.spacingE;
|
|
116
|
+
});
|
|
117
|
+
var S_SideTabWrapper = styled_components_1.default.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n overflow-y: auto;\n flex: 1;\n"], ["\n overflow-y: auto;\n flex: 1;\n"])));
|
|
118
|
+
var S_RightPanel = styled_components_1.default.div(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n flex: 1;\n display: flex;\n flex-direction: column;\n width: calc(100% - 360px);\n background-color: ", ";\n"], ["\n flex: 1;\n display: flex;\n flex-direction: column;\n width: calc(100% - 360px);\n background-color: ", ";\n"])), function (_a) {
|
|
119
|
+
var theme = _a.theme;
|
|
120
|
+
return theme.ui_cpnt_tutorialmodal_info_base;
|
|
121
|
+
});
|
|
122
|
+
var S_InfoBox = styled_components_1.default.div(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n box-sizing: border-box;\n overflow-y: overlay;\n flex: 1;\n padding-top: ", ";\n padding-right: ", ";\n padding-bottom: ", ";\n padding-left: ", ";\n\n ", "\n"], ["\n box-sizing: border-box;\n overflow-y: overlay;\n flex: 1;\n padding-top: ", ";\n padding-right: ", ";\n padding-bottom: ", ";\n padding-left: ", ";\n\n ", "\n"])), function (_a) {
|
|
123
|
+
var theme = _a.theme;
|
|
124
|
+
return theme.spacing.spacingF;
|
|
125
|
+
}, function (_a) {
|
|
126
|
+
var theme = _a.theme;
|
|
127
|
+
return theme.spacing.spacingF;
|
|
128
|
+
}, function (_a) {
|
|
129
|
+
var theme = _a.theme;
|
|
130
|
+
return theme.spacing.spacingE;
|
|
131
|
+
}, function (_a) {
|
|
132
|
+
var theme = _a.theme;
|
|
133
|
+
return theme.spacing.spacingF;
|
|
134
|
+
}, scrollbarStyle_1.scrollbarStyle);
|
|
135
|
+
var S_Footer = styled_components_1.default.div(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n display: flex;\n align-items: flex-end;\n min-height: 88px;\n height: 88px;\n box-sizing: border-box;\n padding-right: ", ";\n padding-bottom: ", ";\n padding-left: ", ";\n"], ["\n display: flex;\n align-items: flex-end;\n min-height: 88px;\n height: 88px;\n box-sizing: border-box;\n padding-right: ", ";\n padding-bottom: ", ";\n padding-left: ", ";\n"])), function (_a) {
|
|
136
|
+
var theme = _a.theme;
|
|
137
|
+
return theme.spacing.spacingF;
|
|
138
|
+
}, function (_a) {
|
|
139
|
+
var theme = _a.theme;
|
|
140
|
+
return theme.spacing.spacingF;
|
|
141
|
+
}, function (_a) {
|
|
142
|
+
var theme = _a.theme;
|
|
143
|
+
return theme.spacing.spacingF;
|
|
144
|
+
});
|
|
145
|
+
var S_IconButtonWrapper = styled_components_1.default.div(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n position: fixed;\n top: ", ";\n right: ", ";\n"], ["\n position: fixed;\n top: ", ";\n right: ", ";\n"])), function (_a) {
|
|
146
|
+
var theme = _a.theme;
|
|
147
|
+
return theme.spacing.spacingB;
|
|
148
|
+
}, function (_a) {
|
|
149
|
+
var theme = _a.theme;
|
|
150
|
+
return theme.spacing.spacingB;
|
|
151
|
+
});
|
|
152
|
+
exports.default = DesktopTutorialModal;
|
|
153
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9;
|
|
@@ -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.DesktopTutorialModal = void 0;
|
|
7
|
+
var DesktopTutorialModal_1 = require("./DesktopTutorialModal");
|
|
8
|
+
Object.defineProperty(exports, "DesktopTutorialModal", { enumerable: true, get: function () { return __importDefault(DesktopTutorialModal_1).default; } });
|
|
@@ -2,5 +2,7 @@ import { AnnotationSheet } from './AnnotationSheet';
|
|
|
2
2
|
import { ContentSheet } from './ContentSheet';
|
|
3
3
|
import { DesktopBasicModal } from './DesktopBasicModal';
|
|
4
4
|
import { DesktopHeadlessModal } from './DesktopHeadlessModal';
|
|
5
|
+
import { DesktopTutorialModal, DesktopTutorialModalInfoType } from './DesktopTutorialModal';
|
|
5
6
|
import { SectionSheet } from './SectionSheet';
|
|
6
|
-
export { AnnotationSheet, ContentSheet, DesktopBasicModal, DesktopHeadlessModal, SectionSheet };
|
|
7
|
+
export { AnnotationSheet, ContentSheet, DesktopBasicModal, DesktopHeadlessModal, DesktopTutorialModal, SectionSheet };
|
|
8
|
+
export { DesktopTutorialModalInfoType };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SectionSheet = exports.DesktopHeadlessModal = exports.DesktopBasicModal = exports.ContentSheet = exports.AnnotationSheet = void 0;
|
|
3
|
+
exports.SectionSheet = exports.DesktopTutorialModal = exports.DesktopHeadlessModal = 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");
|
|
@@ -9,5 +9,7 @@ var DesktopBasicModal_1 = require("./DesktopBasicModal");
|
|
|
9
9
|
Object.defineProperty(exports, "DesktopBasicModal", { enumerable: true, get: function () { return DesktopBasicModal_1.DesktopBasicModal; } });
|
|
10
10
|
var DesktopHeadlessModal_1 = require("./DesktopHeadlessModal");
|
|
11
11
|
Object.defineProperty(exports, "DesktopHeadlessModal", { enumerable: true, get: function () { return DesktopHeadlessModal_1.DesktopHeadlessModal; } });
|
|
12
|
+
var DesktopTutorialModal_1 = require("./DesktopTutorialModal");
|
|
13
|
+
Object.defineProperty(exports, "DesktopTutorialModal", { enumerable: true, get: function () { return DesktopTutorialModal_1.DesktopTutorialModal; } });
|
|
12
14
|
var SectionSheet_1 = require("./SectionSheet");
|
|
13
15
|
Object.defineProperty(exports, "SectionSheet", { enumerable: true, get: function () { return SectionSheet_1.SectionSheet; } });
|
|
@@ -88,7 +88,9 @@ function TextFieldBase(_a) {
|
|
|
88
88
|
// NOTE: preventBlankMode === 'all'일 경우에는 무조건 onChange 시점에 적용
|
|
89
89
|
if (textLineType === 'single' && preventBlankMode === 'all') {
|
|
90
90
|
var value = e.target.value;
|
|
91
|
-
|
|
91
|
+
if (value != null) {
|
|
92
|
+
e.target.value = value.replace(/ /g, '');
|
|
93
|
+
}
|
|
92
94
|
}
|
|
93
95
|
if (onChange) {
|
|
94
96
|
onChange(e);
|
|
@@ -98,7 +100,9 @@ function TextFieldBase(_a) {
|
|
|
98
100
|
// NOTE: preventBlankMode는 input에만 적용 가능
|
|
99
101
|
// NOTE: preventBlankMode === 'trim'일 경우에는 무조건 onBlur 시점에 적용
|
|
100
102
|
if (textLineType === 'single' && preventBlankMode === 'trim') {
|
|
101
|
-
|
|
103
|
+
if (e.target.value != null) {
|
|
104
|
+
setValue(name, e.target.value.replace(/^\s+|\s+$/gm, ''));
|
|
105
|
+
}
|
|
102
106
|
}
|
|
103
107
|
if (onBlur && onTarget) {
|
|
104
108
|
var relatedTarget = e.relatedTarget;
|
|
@@ -7,7 +7,7 @@ export declare type TextButtonProps = {
|
|
|
7
7
|
fontWeight?: 'bold' | 'regular';
|
|
8
8
|
type?: 'submit' | 'reset' | 'button';
|
|
9
9
|
state?: 'normal' | 'disabled';
|
|
10
|
-
colorTheme?: 'none' | 'red' | 'grey_01' | 'white';
|
|
10
|
+
colorTheme?: 'none' | 'red' | 'grey_01' | 'white' | 'white2';
|
|
11
11
|
onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
12
12
|
};
|
|
13
13
|
declare function TextButton({ text, size, responsiveMode, fontWeight, type, state, colorTheme, onClick, ...rest }: TextButtonProps): JSX.Element;
|
|
@@ -63,7 +63,8 @@ var textColor = {
|
|
|
63
63
|
none: 'usrTextBrandPrimary',
|
|
64
64
|
red: 'sysTextError',
|
|
65
65
|
grey_01: 'sysTextPrimary',
|
|
66
|
-
white: 'sysTextWhite'
|
|
66
|
+
white: 'sysTextWhite',
|
|
67
|
+
white2: 'sysTextWhite'
|
|
67
68
|
};
|
|
68
69
|
function TextButton(_a) {
|
|
69
70
|
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.colorTheme, colorTheme = _f === void 0 ? 'none' : _f, onClick = _a.onClick, rest = __rest(_a, ["text", "size", "responsiveMode", "fontWeight", "type", "state", "colorTheme", "onClick"]);
|
|
@@ -82,11 +83,32 @@ var large = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 =
|
|
|
82
83
|
var medium = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n border-radius: 14px;\n height: 40px;\n\n & > div {\n height: 40px;\n line-height: 40px;\n }\n"], ["\n border-radius: 14px;\n height: 40px;\n\n & > div {\n height: 40px;\n line-height: 40px;\n }\n"])));
|
|
83
84
|
var small = (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n border-radius: 10px;\n height: 32px;\n\n & > div {\n height: 32px;\n line-height: 32px;\n }\n"], ["\n border-radius: 10px;\n height: 32px;\n\n & > div {\n height: 32px;\n line-height: 32px;\n }\n"])));
|
|
84
85
|
var xsmall = (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n border-radius: 8px;\n height: 24px;\n\n & > div {\n height: 24px;\n line-height: 24px;\n }\n"], ["\n border-radius: 8px;\n height: 24px;\n\n & > div {\n height: 24px;\n line-height: 24px;\n }\n"])));
|
|
85
|
-
var
|
|
86
|
-
var theme = _a.theme
|
|
87
|
-
return
|
|
88
|
-
|
|
89
|
-
|
|
86
|
+
var colorThemeDefault = (0, styled_components_1.css)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n &:active:enabled {\n background-color: ", ";\n }\n"], ["\n &:active:enabled {\n background-color: ", ";\n }\n"])), function (_a) {
|
|
87
|
+
var theme = _a.theme;
|
|
88
|
+
return theme.ui_cpnt_button_line_base_pressed;
|
|
89
|
+
});
|
|
90
|
+
var colorThemeWhite = (0, styled_components_1.css)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n &:active:enabled {\n background-color: ", ";\n }\n"], ["\n &:active:enabled {\n background-color: ", ";\n }\n"])), function (_a) {
|
|
91
|
+
var theme = _a.theme;
|
|
92
|
+
return theme.ui_cpnt_button_white_base_pressed;
|
|
93
|
+
});
|
|
94
|
+
var colorThemeWhite2 = (0, styled_components_1.css)(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n &:active:enabled {\n background-color: ", ";\n }\n"], ["\n &:active:enabled {\n background-color: ", ";\n }\n"])), function (_a) {
|
|
95
|
+
var theme = _a.theme;
|
|
96
|
+
return theme.ui_cpnt_textbutton_white_variation_base_pressed;
|
|
97
|
+
});
|
|
98
|
+
var S_Button = styled_components_1.default.button(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n align-items: center;\n background-color: transparent;\n border: none;\n box-sizing: border-box;\n display: flex;\n justify-content: center;\n padding-left: 8px;\n padding-right: 8px;\n\n ", "\n\n ", ";\n\n ", ";\n\n & > div {\n ", ";\n }\n ", ";\n"], ["\n align-items: center;\n background-color: transparent;\n border: none;\n box-sizing: border-box;\n display: flex;\n justify-content: center;\n padding-left: 8px;\n padding-right: 8px;\n\n ", "\n\n ", ";\n\n ", ";\n\n & > div {\n ", ";\n }\n ", ";\n"])), transitionStyle_1.ButtonTransition, function (_a) {
|
|
99
|
+
var colorTheme = _a.colorTheme;
|
|
100
|
+
switch (colorTheme) {
|
|
101
|
+
case 'none':
|
|
102
|
+
case 'red':
|
|
103
|
+
case 'grey_01':
|
|
104
|
+
return colorThemeDefault;
|
|
105
|
+
case 'white':
|
|
106
|
+
return colorThemeWhite;
|
|
107
|
+
case 'white2':
|
|
108
|
+
return colorThemeWhite2;
|
|
109
|
+
default:
|
|
110
|
+
return colorThemeDefault;
|
|
111
|
+
}
|
|
90
112
|
}, function (_a) {
|
|
91
113
|
var size = _a.size;
|
|
92
114
|
return size &&
|
|
@@ -109,4 +131,4 @@ var S_Button = styled_components_1.default.button(templateObject_5 || (templateO
|
|
|
109
131
|
return responsiveMode === 'use' && 'width: 100%';
|
|
110
132
|
});
|
|
111
133
|
exports.default = TextButton;
|
|
112
|
-
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
|
|
134
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8;
|
|
@@ -35,7 +35,8 @@ export declare type TextFieldProps = {
|
|
|
35
35
|
onClickIBtn2?: () => void;
|
|
36
36
|
onFocus?: (e: React.FocusEvent<HTMLInputElement> | React.FocusEvent<HTMLTextAreaElement>) => void;
|
|
37
37
|
onKeyUp?: (e: React.KeyboardEvent<HTMLInputElement> | React.KeyboardEvent<HTMLTextAreaElement>) => void;
|
|
38
|
+
onKeyDown?: (e: React.KeyboardEvent<HTMLInputElement> | React.KeyboardEvent<HTMLTextAreaElement>) => void;
|
|
38
39
|
onTarget?: () => void;
|
|
39
40
|
};
|
|
40
|
-
declare function TextField({ name, hintText, defaultText, validation, validationPoint, preventBlankMode, enterSubmitMode, size, responsiveMode, textLineType, multiRows, autoMinRows, autoMaxRows, inputType, state, iBtn1IconName, iBtn1IconFillType, iBtn2IconName, iBtn2IconFillType, colorTheme, max, maxLength, min, customWidth, autoComplete, onBlur, onChange, onClickIBtn1, onClickIBtn2, onFocus, onKeyUp, onTarget }: TextFieldProps): JSX.Element;
|
|
41
|
+
declare function TextField({ name, hintText, defaultText, validation, validationPoint, preventBlankMode, enterSubmitMode, size, responsiveMode, textLineType, multiRows, autoMinRows, autoMaxRows, inputType, state, iBtn1IconName, iBtn1IconFillType, iBtn2IconName, iBtn2IconFillType, colorTheme, max, maxLength, min, customWidth, autoComplete, onBlur, onChange, onClickIBtn1, onClickIBtn2, onFocus, onKeyUp, onKeyDown, onTarget }: TextFieldProps): JSX.Element;
|
|
41
42
|
export default TextField;
|
|
@@ -32,7 +32,7 @@ var components_1 = require("../../common/components");
|
|
|
32
32
|
var IconButton_1 = require("../IconButton");
|
|
33
33
|
function TextField(_a) {
|
|
34
34
|
var _b;
|
|
35
|
-
var name = _a.name, hintText = _a.hintText, defaultText = _a.defaultText, validation = _a.validation, _c = _a.validationPoint, validationPoint = _c === void 0 ? 'onBlur' : _c, _d = _a.preventBlankMode, preventBlankMode = _d === void 0 ? 'none' : _d, _e = _a.enterSubmitMode, enterSubmitMode = _e === void 0 ? 'none' : _e, _f = _a.size, size = _f === void 0 ? 'large' : _f, _g = _a.responsiveMode, responsiveMode = _g === void 0 ? 'none' : _g, _h = _a.textLineType, textLineType = _h === void 0 ? 'single' : _h, _j = _a.multiRows, multiRows = _j === void 0 ? 8 : _j, _k = _a.autoMinRows, autoMinRows = _k === void 0 ? 8 : _k, autoMaxRows = _a.autoMaxRows, _l = _a.inputType, inputType = _l === void 0 ? 'text' : _l, _m = _a.state, state = _m === void 0 ? 'normal' : _m, iBtn1IconName = _a.iBtn1IconName, _o = _a.iBtn1IconFillType, iBtn1IconFillType = _o === void 0 ? 'line' : _o, iBtn2IconName = _a.iBtn2IconName, _p = _a.iBtn2IconFillType, iBtn2IconFillType = _p === void 0 ? 'line' : _p, _q = _a.colorTheme, colorTheme = _q === void 0 ? 'none' : _q, max = _a.max, maxLength = _a.maxLength, min = _a.min, customWidth = _a.customWidth, _r = _a.autoComplete, autoComplete = _r === void 0 ? 'on' : _r, onBlur = _a.onBlur, onChange = _a.onChange, onClickIBtn1 = _a.onClickIBtn1, onClickIBtn2 = _a.onClickIBtn2, onFocus = _a.onFocus, onKeyUp = _a.onKeyUp, onTarget = _a.onTarget;
|
|
35
|
+
var name = _a.name, hintText = _a.hintText, defaultText = _a.defaultText, validation = _a.validation, _c = _a.validationPoint, validationPoint = _c === void 0 ? 'onBlur' : _c, _d = _a.preventBlankMode, preventBlankMode = _d === void 0 ? 'none' : _d, _e = _a.enterSubmitMode, enterSubmitMode = _e === void 0 ? 'none' : _e, _f = _a.size, size = _f === void 0 ? 'large' : _f, _g = _a.responsiveMode, responsiveMode = _g === void 0 ? 'none' : _g, _h = _a.textLineType, textLineType = _h === void 0 ? 'single' : _h, _j = _a.multiRows, multiRows = _j === void 0 ? 8 : _j, _k = _a.autoMinRows, autoMinRows = _k === void 0 ? 8 : _k, autoMaxRows = _a.autoMaxRows, _l = _a.inputType, inputType = _l === void 0 ? 'text' : _l, _m = _a.state, state = _m === void 0 ? 'normal' : _m, iBtn1IconName = _a.iBtn1IconName, _o = _a.iBtn1IconFillType, iBtn1IconFillType = _o === void 0 ? 'line' : _o, iBtn2IconName = _a.iBtn2IconName, _p = _a.iBtn2IconFillType, iBtn2IconFillType = _p === void 0 ? 'line' : _p, _q = _a.colorTheme, colorTheme = _q === void 0 ? 'none' : _q, max = _a.max, maxLength = _a.maxLength, min = _a.min, customWidth = _a.customWidth, _r = _a.autoComplete, autoComplete = _r === void 0 ? 'on' : _r, onBlur = _a.onBlur, onChange = _a.onChange, onClickIBtn1 = _a.onClickIBtn1, onClickIBtn2 = _a.onClickIBtn2, onFocus = _a.onFocus, onKeyUp = _a.onKeyUp, onKeyDown = _a.onKeyDown, onTarget = _a.onTarget;
|
|
36
36
|
var basicThemeIconColors = {
|
|
37
37
|
normal: 'ui_cpnt_button_icon_default',
|
|
38
38
|
read_only: 'ui_cpnt_button_icon_default',
|
|
@@ -80,6 +80,11 @@ function TextField(_a) {
|
|
|
80
80
|
onKeyUp(e);
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
|
+
function handleKeyDown(e) {
|
|
84
|
+
if (onKeyDown) {
|
|
85
|
+
onKeyDown(e);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
83
88
|
function handleChange(e) {
|
|
84
89
|
if (validationPoint === 'onChange') {
|
|
85
90
|
validateOnChange(e);
|
|
@@ -100,10 +105,10 @@ function TextField(_a) {
|
|
|
100
105
|
}
|
|
101
106
|
var S_TextField = function () {
|
|
102
107
|
if (textLineType === 'multi') {
|
|
103
|
-
return (react_1.default.createElement(components_1.TextFieldBase, { name: name, hintText: hintText, defaultText: defaultText, validation: validation, textLineType: "multi", multiRows: multiRows, state: state, colorTheme: colorTheme, maxLength: maxLength, textSize: "form2", textWeight: "normal", autoComplete: autoComplete, onFocus: handleFocus, onTarget: handleTarget, onChange: handleChange, onBlur: handleBlur, onKeyUp: handleKeyUp }));
|
|
108
|
+
return (react_1.default.createElement(components_1.TextFieldBase, { name: name, hintText: hintText, defaultText: defaultText, validation: validation, textLineType: "multi", multiRows: multiRows, state: state, colorTheme: colorTheme, maxLength: maxLength, textSize: "form2", textWeight: "normal", autoComplete: autoComplete, onFocus: handleFocus, onTarget: handleTarget, onChange: handleChange, onBlur: handleBlur, onKeyUp: handleKeyUp, onKeyDown: handleKeyDown }));
|
|
104
109
|
}
|
|
105
110
|
if (textLineType === 'auto') {
|
|
106
|
-
return (react_1.default.createElement(components_1.TextFieldBase, { name: name, hintText: hintText, defaultText: defaultText, validation: validation, textLineType: "auto", autoMinRows: autoMinRows, autoMaxRows: autoMaxRows, state: state, colorTheme: colorTheme, maxLength: maxLength, textSize: "form2", textWeight: "normal", autoComplete: autoComplete, onFocus: handleFocus, onTarget: handleTarget, onChange: handleChange, onBlur: handleBlur, onKeyUp: handleKeyUp }));
|
|
111
|
+
return (react_1.default.createElement(components_1.TextFieldBase, { name: name, hintText: hintText, defaultText: defaultText, validation: validation, textLineType: "auto", autoMinRows: autoMinRows, autoMaxRows: autoMaxRows, state: state, colorTheme: colorTheme, maxLength: maxLength, textSize: "form2", textWeight: "normal", autoComplete: autoComplete, onFocus: handleFocus, onTarget: handleTarget, onChange: handleChange, onBlur: handleBlur, onKeyUp: handleKeyUp, onKeyDown: handleKeyDown }));
|
|
107
112
|
}
|
|
108
113
|
if (textLineType === 'single') {
|
|
109
114
|
var deleteIconColor = 'ui_cpnt_button_icon_disabled';
|
|
@@ -118,7 +123,7 @@ function TextField(_a) {
|
|
|
118
123
|
}
|
|
119
124
|
}
|
|
120
125
|
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
121
|
-
react_1.default.createElement(components_1.TextFieldBase, { name: name, hintText: hintText, defaultText: defaultText, validation: validation, preventBlankMode: preventBlankMode, enterSubmitMode: enterSubmitMode, textLineType: "single", inputType: inputType, state: state, colorTheme: colorTheme, min: min, max: max, maxLength: maxLength, textSize: "form2", textWeight: "normal", deleteIconMode: "use", deleteIconSize: size === 'large' || size === 'rlarge' ? 20 : 16, deleteIconColor: deleteIconColor, isFocused: isFocused, autoComplete: autoComplete, onFocus: handleFocus, onTarget: handleTarget, onChange: handleChange, onBlur: handleBlur, onKeyUp: handleKeyUp }),
|
|
126
|
+
react_1.default.createElement(components_1.TextFieldBase, { name: name, hintText: hintText, defaultText: defaultText, validation: validation, preventBlankMode: preventBlankMode, enterSubmitMode: enterSubmitMode, textLineType: "single", inputType: inputType, state: state, colorTheme: colorTheme, min: min, max: max, maxLength: maxLength, textSize: "form2", textWeight: "normal", deleteIconMode: "use", deleteIconSize: size === 'large' || size === 'rlarge' ? 20 : 16, deleteIconColor: deleteIconColor, isFocused: isFocused, autoComplete: autoComplete, onFocus: handleFocus, onTarget: handleTarget, onChange: handleChange, onBlur: handleBlur, onKeyUp: handleKeyUp, onKeyDown: handleKeyDown }),
|
|
122
127
|
react_1.default.createElement(S_IconBox, null,
|
|
123
128
|
iBtn2IconName && (react_1.default.createElement(IconButton_1.IconButton, { iconName: iBtn2IconName, baseSize: "small", shapeType: "rectangle", baseColorKey: "ui_cpnt_button_fill_base_transparent", iconSize: size === 'large' || size === 'rlarge' ? 20 : 16, iconColorKey: colorTheme &&
|
|
124
129
|
{
|
|
@@ -6,7 +6,7 @@ declare type UploadTextButtonProps = {
|
|
|
6
6
|
responsiveMode?: 'none' | 'use';
|
|
7
7
|
fontWeight?: 'bold' | 'regular';
|
|
8
8
|
state?: 'normal' | 'disabled';
|
|
9
|
-
colorTheme?: 'none' | 'red' | 'grey_01' | 'white';
|
|
9
|
+
colorTheme?: 'none' | 'red' | 'grey_01' | 'white' | 'white2';
|
|
10
10
|
accept?: string;
|
|
11
11
|
multipleMode?: 'none' | 'use';
|
|
12
12
|
onClick?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
@@ -41,7 +41,8 @@ var textColor = {
|
|
|
41
41
|
none: 'usrTextBrandPrimary',
|
|
42
42
|
red: 'sysTextError',
|
|
43
43
|
grey_01: 'sysTextPrimary',
|
|
44
|
-
white: 'sysTextWhite'
|
|
44
|
+
white: 'sysTextWhite',
|
|
45
|
+
white2: 'sysTextWhite'
|
|
45
46
|
};
|
|
46
47
|
function UploadTextButton(_a) {
|
|
47
48
|
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.state, state = _d === void 0 ? 'normal' : _d, _e = _a.colorTheme, colorTheme = _e === void 0 ? 'none' : _e, _f = _a.accept, accept = _f === void 0 ? '*' : _f, _g = _a.multipleMode, multipleMode = _g === void 0 ? 'none' : _g, onClick = _a.onClick;
|
|
@@ -51,7 +52,7 @@ function UploadTextButton(_a) {
|
|
|
51
52
|
}
|
|
52
53
|
e.target.value = '';
|
|
53
54
|
};
|
|
54
|
-
return (react_1.default.createElement(S_UploadTextButton, { "x-pds-name": "UploadTextButton", "x-pds-element-type": "component", "x-pds-device-type": "mobile", size: size, responsiveMode: responsiveMode, fontWeight: fontWeight, disabled: state === 'disabled' },
|
|
55
|
+
return (react_1.default.createElement(S_UploadTextButton, { "x-pds-name": "UploadTextButton", "x-pds-element-type": "component", "x-pds-device-type": "mobile", size: size, responsiveMode: responsiveMode, fontWeight: fontWeight, disabled: state === 'disabled', colorTheme: colorTheme },
|
|
55
56
|
react_1.default.createElement("input", { type: "file", hidden: true, disabled: state === 'disabled', accept: accept, multiple: multipleMode === 'use', onChange: handleClick }),
|
|
56
57
|
react_1.default.createElement(TextLabel_1.TextLabel, { text: text, styleTheme: textStyle[size], colorTheme: state === 'disabled' ? 'sysTextTertiary' : textColor[colorTheme], singleLineMode: "use", ellipsisMode: "use", lineLimit: 1, wordBreak: "break_all" })));
|
|
57
58
|
}
|
|
@@ -62,12 +63,35 @@ var large = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 =
|
|
|
62
63
|
var medium = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n border-radius: 14px;\n height: 40px;\n\n & > div {\n height: 40px;\n line-height: 40px;\n }\n"], ["\n border-radius: 14px;\n height: 40px;\n\n & > div {\n height: 40px;\n line-height: 40px;\n }\n"])));
|
|
63
64
|
var small = (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n border-radius: 10px;\n height: 32px;\n\n & > div {\n height: 32px;\n line-height: 32px;\n }\n"], ["\n border-radius: 10px;\n height: 32px;\n\n & > div {\n height: 32px;\n line-height: 32px;\n }\n"])));
|
|
64
65
|
var xsmall = (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n border-radius: 8px;\n height: 24px;\n\n & > div {\n height: 24px;\n line-height: 24px;\n }\n"], ["\n border-radius: 8px;\n height: 24px;\n\n & > div {\n height: 24px;\n line-height: 24px;\n }\n"])));
|
|
65
|
-
var
|
|
66
|
+
var colorThemeDefault = (0, styled_components_1.css)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n &:active:not([disabled]) {\n background-color: ", ";\n }\n"], ["\n &:active:not([disabled]) {\n background-color: ", ";\n }\n"])), function (_a) {
|
|
67
|
+
var theme = _a.theme;
|
|
68
|
+
return theme.ui_cpnt_button_line_base_pressed;
|
|
69
|
+
});
|
|
70
|
+
var colorThemeWhite = (0, styled_components_1.css)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n &:active:not([disabled]) {\n background-color: ", ";\n }\n"], ["\n &:active:not([disabled]) {\n background-color: ", ";\n }\n"])), function (_a) {
|
|
71
|
+
var theme = _a.theme;
|
|
72
|
+
return theme.ui_cpnt_button_white_base_pressed;
|
|
73
|
+
});
|
|
74
|
+
var colorThemeWhite2 = (0, styled_components_1.css)(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n &:active:not([disabled]) {\n background-color: ", ";\n }\n"], ["\n &:active:not([disabled]) {\n background-color: ", ";\n }\n"])), function (_a) {
|
|
75
|
+
var theme = _a.theme;
|
|
76
|
+
return theme.ui_cpnt_textbutton_white_variation_base_pressed;
|
|
77
|
+
});
|
|
78
|
+
var S_UploadTextButton = styled_components_1.default.label(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n align-items: center;\n background-color: transparent;\n border: none;\n box-sizing: border-box;\n display: inline-flex;\n justify-content: center;\n padding: 0 ", ";\n\n ", "\n\n ", ";\n\n & > div {\n font-weight: ", ";\n }\n\n ", ";\n ", ";\n"], ["\n align-items: center;\n background-color: transparent;\n border: none;\n box-sizing: border-box;\n display: inline-flex;\n justify-content: center;\n padding: 0 ", ";\n\n ", "\n\n ", ";\n\n & > div {\n font-weight: ", ";\n }\n\n ", ";\n ", ";\n"])), function (_a) {
|
|
66
79
|
var theme = _a.theme;
|
|
67
80
|
return theme.spacing.spacingB;
|
|
68
81
|
}, transitionStyle_1.ButtonTransition, function (_a) {
|
|
69
|
-
var
|
|
70
|
-
|
|
82
|
+
var colorTheme = _a.colorTheme;
|
|
83
|
+
switch (colorTheme) {
|
|
84
|
+
case 'none':
|
|
85
|
+
case 'red':
|
|
86
|
+
case 'grey_01':
|
|
87
|
+
return colorThemeDefault;
|
|
88
|
+
case 'white':
|
|
89
|
+
return colorThemeWhite;
|
|
90
|
+
case 'white2':
|
|
91
|
+
return colorThemeWhite2;
|
|
92
|
+
default:
|
|
93
|
+
return colorThemeDefault;
|
|
94
|
+
}
|
|
71
95
|
}, function (_a) {
|
|
72
96
|
var theme = _a.theme, fontWeight = _a.fontWeight;
|
|
73
97
|
return fontWeight &&
|
|
@@ -90,4 +114,4 @@ var S_UploadTextButton = styled_components_1.default.label(templateObject_5 || (
|
|
|
90
114
|
return responsiveMode === 'use' && 'width: 100%';
|
|
91
115
|
});
|
|
92
116
|
exports.default = UploadTextButton;
|
|
93
|
-
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
|
|
117
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8;
|
|
@@ -86,7 +86,7 @@ function Background() {
|
|
|
86
86
|
if (backgroundMediaType !== 'YOUTUBE')
|
|
87
87
|
return;
|
|
88
88
|
setYoutubeSize(getResponsiveYoutubeSize());
|
|
89
|
-
}, [getResponsiveYoutubeSize]);
|
|
89
|
+
}, [getResponsiveYoutubeSize, backgroundMediaSrc]);
|
|
90
90
|
(0, react_1.useEffect)(function () {
|
|
91
91
|
if (backgroundMediaType !== 'YOUTUBE')
|
|
92
92
|
return;
|
|
@@ -85,6 +85,13 @@ function YouTubeIframe(_a) {
|
|
|
85
85
|
});
|
|
86
86
|
(_a = event.target) === null || _a === void 0 ? void 0 : _a.destroy();
|
|
87
87
|
}, []);
|
|
88
|
+
var handleCrossOriginError = (0, react_1.useCallback)(function () {
|
|
89
|
+
if (!playerRef.current)
|
|
90
|
+
return;
|
|
91
|
+
playerRef.current.destroy();
|
|
92
|
+
setError(null);
|
|
93
|
+
onYouTubeIframeAPIReady();
|
|
94
|
+
}, [playerRef.current, setError]);
|
|
88
95
|
var onYouTubeIframeAPIReady = (0, react_1.useCallback)(function () {
|
|
89
96
|
if (!videoId || !PLAYER_ID) {
|
|
90
97
|
return;
|
|
@@ -147,22 +154,32 @@ function YouTubeIframe(_a) {
|
|
|
147
154
|
if (!playerRef.current)
|
|
148
155
|
return;
|
|
149
156
|
if (!videoId) {
|
|
150
|
-
|
|
157
|
+
try {
|
|
158
|
+
(_a = playerRef.current) === null || _a === void 0 ? void 0 : _a.stopVideo();
|
|
159
|
+
}
|
|
160
|
+
catch (_b) {
|
|
161
|
+
handleCrossOriginError();
|
|
162
|
+
}
|
|
151
163
|
return;
|
|
152
164
|
}
|
|
153
165
|
if (videoId !== prevVideoId) {
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
+
try {
|
|
167
|
+
playerRef.current.loadVideoById({
|
|
168
|
+
videoId: videoId,
|
|
169
|
+
playerVars: {
|
|
170
|
+
playsinline: 1,
|
|
171
|
+
autoplay: 1,
|
|
172
|
+
controls: 0,
|
|
173
|
+
iv_load_policy: 3,
|
|
174
|
+
listType: 'playlist',
|
|
175
|
+
playlist: videoId,
|
|
176
|
+
loop: 1
|
|
177
|
+
}
|
|
178
|
+
});
|
|
179
|
+
}
|
|
180
|
+
catch (_c) {
|
|
181
|
+
handleCrossOriginError();
|
|
182
|
+
}
|
|
166
183
|
}
|
|
167
184
|
}, [playerRef, videoId, prevVideoId, onYouTubeIframeAPIReady]);
|
|
168
185
|
/**
|
|
@@ -5,6 +5,7 @@ exports.samplePageIntroSection = {
|
|
|
5
5
|
display: true,
|
|
6
6
|
dynamicLayoutSectionItems: [],
|
|
7
7
|
id: 8,
|
|
8
|
+
dlSelectorId: 'DLSELJLBFY5J70JOX9Z0N-VODBE',
|
|
8
9
|
insertedAt: '2023-01-06T09:05:45',
|
|
9
10
|
manifest: {
|
|
10
11
|
availableProperties: [
|
|
@@ -276,6 +277,7 @@ exports.samplePageContentsCarouselSection = {
|
|
|
276
277
|
}
|
|
277
278
|
],
|
|
278
279
|
id: 9,
|
|
280
|
+
dlSelectorId: 'DLSELJLBFY5J70JOX9Z0N-VODBF',
|
|
279
281
|
insertedAt: '2023-01-06T09:05:45',
|
|
280
282
|
manifest: {
|
|
281
283
|
availableProperties: [
|
|
@@ -369,6 +371,7 @@ exports.samplePageIntroSection2 = {
|
|
|
369
371
|
display: true,
|
|
370
372
|
dynamicLayoutSectionItems: [],
|
|
371
373
|
id: 10,
|
|
374
|
+
dlSelectorId: 'DLSELJLBFY5J70JOX9Z0N-VODBG',
|
|
372
375
|
insertedAt: '2023-01-06T09:05:45',
|
|
373
376
|
manifest: {
|
|
374
377
|
availableProperties: [
|
|
@@ -465,6 +468,7 @@ exports.samplePageContentsSection = {
|
|
|
465
468
|
display: true,
|
|
466
469
|
dynamicLayoutSectionItems: [],
|
|
467
470
|
id: 11,
|
|
471
|
+
dlSelectorId: 'DLSELJLBFY5J70JOX9Z0N-VODBH',
|
|
468
472
|
insertedAt: '2023-01-06T09:05:45',
|
|
469
473
|
manifest: {
|
|
470
474
|
availableProperties: [
|
|
@@ -640,6 +644,7 @@ exports.samplePageInfoBoxSection = {
|
|
|
640
644
|
}
|
|
641
645
|
],
|
|
642
646
|
id: 12,
|
|
647
|
+
dlSelectorId: 'DLSELJLBFY5J70JOX9Z0N-VODBI',
|
|
643
648
|
insertedAt: '2023-01-06T09:05:45',
|
|
644
649
|
manifest: {
|
|
645
650
|
availableProperties: [
|
|
@@ -726,6 +731,7 @@ exports.samplePageIntroSection3 = {
|
|
|
726
731
|
display: true,
|
|
727
732
|
dynamicLayoutSectionItems: [],
|
|
728
733
|
id: 13,
|
|
734
|
+
dlSelectorId: 'DLSELJLBFY5J70JOX9Z0N-VODBJ',
|
|
729
735
|
insertedAt: '2023-01-06T09:05:45',
|
|
730
736
|
manifest: {
|
|
731
737
|
availableProperties: [
|
|
@@ -845,6 +851,7 @@ exports.samplePageFooterSection = {
|
|
|
845
851
|
}
|
|
846
852
|
],
|
|
847
853
|
id: 14,
|
|
854
|
+
dlSelectorId: 'DLSELJLBFY5J70JOX9Z0N-VODBK',
|
|
848
855
|
insertedAt: '2023-01-06T09:05:45',
|
|
849
856
|
manifest: {
|
|
850
857
|
availableProperties: ['title', 'description'],
|
package/dist/src/sub/DynamicLayout/sections/ContentsCarouselSection/ContentsCarouselSection.js
CHANGED
|
@@ -35,7 +35,7 @@ var components_1 = require("../../components");
|
|
|
35
35
|
var templates_1 = require("./templates");
|
|
36
36
|
function ContentsCarouselSection(_a) {
|
|
37
37
|
var props = __rest(_a, []);
|
|
38
|
-
return (react_1.default.createElement(S_SectionWrapper, { "x-dlayout-section-type": "ContentsCarousel" },
|
|
38
|
+
return (react_1.default.createElement(S_SectionWrapper, { "x-dlayout-section-type": "ContentsCarousel", "x-dlayout-section-id": props.dlSelectorId },
|
|
39
39
|
react_1.default.createElement(components_1.Section, __assign({}, props),
|
|
40
40
|
react_1.default.createElement(TemplateMatcher, { styleTemplate: props.template }))));
|
|
41
41
|
}
|
|
@@ -35,7 +35,7 @@ var components_1 = require("../../components");
|
|
|
35
35
|
var templates_1 = require("./templates");
|
|
36
36
|
function ContentsSection(_a) {
|
|
37
37
|
var props = __rest(_a, []);
|
|
38
|
-
return (react_1.default.createElement(S_SectionWrapper, { "x-dlayout-section-type": "Contents" },
|
|
38
|
+
return (react_1.default.createElement(S_SectionWrapper, { "x-dlayout-section-type": "Contents", "x-dlayout-section-id": props.dlSelectorId },
|
|
39
39
|
react_1.default.createElement(components_1.Section, __assign({}, props),
|
|
40
40
|
react_1.default.createElement(TemplateMather, { styleTemplate: props.template }))));
|
|
41
41
|
}
|