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
|
@@ -712,4 +712,26 @@ export interface UITheme {
|
|
|
712
712
|
ui_create_ch_step_prev: string;
|
|
713
713
|
ui_editor_preview_editing: string;
|
|
714
714
|
ui_cpnt_icon_sys_black: string;
|
|
715
|
+
ui_cpnt_textbutton_white_variation_base_hover: string;
|
|
716
|
+
ui_cpnt_textbutton_white_variation_base_pressed: string;
|
|
717
|
+
ui_74: string;
|
|
718
|
+
ui_cpnt_help_window: string;
|
|
719
|
+
ui_cpnt_tutorialmodal_sidetab_hover: string;
|
|
720
|
+
ui_cpnt_tutorialmodal_sidetab_pressed: string;
|
|
721
|
+
ui_cpnt_sheet_base_12: string;
|
|
722
|
+
ui_cpnt_sheet_base_13: string;
|
|
723
|
+
ui_cpnt_sheet_border_05: string;
|
|
724
|
+
ui_cpnt_sheet_border_06: string;
|
|
725
|
+
ui_75: string;
|
|
726
|
+
ui_cpnt_sheet_border_07: string;
|
|
727
|
+
ui_cpnt_sheet_base_14: string;
|
|
728
|
+
ui_cpnt_sheet_base_15: string;
|
|
729
|
+
ui_cpnt_tutorialmodal_sidetab_default: string;
|
|
730
|
+
ui_cpnt_tutorialmodal_info_base: string;
|
|
731
|
+
ui_domain_record_card_status_1: string;
|
|
732
|
+
ui_domain_record_card_status_2: string;
|
|
733
|
+
ui_domain_record_card_status_3: string;
|
|
734
|
+
ui_domain_record_card_status_4: string;
|
|
735
|
+
ui_cpnt_button_fill_base_tutorialmodal: string;
|
|
736
|
+
ui_cpnt_toolbar_base: string;
|
|
715
737
|
}
|
|
@@ -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;
|
|
@@ -20,8 +20,7 @@ function BulkActionBar(_a) {
|
|
|
20
20
|
return (react_1.default.createElement(S_BulkActionBar, null,
|
|
21
21
|
react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_e", spacingType: "width" }),
|
|
22
22
|
react_1.default.createElement(TextLabel_1.TextLabel, { text: t('str_n_selected', {
|
|
23
|
-
itemSelected: itemCount
|
|
24
|
-
defaultValue: '{{itemSelected}}개 선택됨'
|
|
23
|
+
itemSelected: itemCount
|
|
25
24
|
}), styleTheme: "body2Bold", colorTheme: "sysTextWhite" }),
|
|
26
25
|
react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_e", spacingType: "width" }),
|
|
27
26
|
react_1.default.createElement(hybrid_1.Divider, { direction: "vertical", height: 16 }),
|
|
@@ -46,7 +46,7 @@ function HeaderBar(_a) {
|
|
|
46
46
|
react_1.default.createElement(TextLabel_1.TextLabel, { text: titleText, styleTheme: size === 'regular' ? 'headingBold' : 'body1Bold' })),
|
|
47
47
|
react_1.default.createElement(S_HeaderControl, null,
|
|
48
48
|
react_1.default.createElement(S_ListCount, null,
|
|
49
|
-
react_1.default.createElement(TextLabel_1.TextLabel, { text: t('str_rows_per_page'
|
|
49
|
+
react_1.default.createElement(TextLabel_1.TextLabel, { text: t('str_rows_per_page'), styleTheme: "caption1Regular" }),
|
|
50
50
|
react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_b", spacingType: "width" }),
|
|
51
51
|
react_1.default.createElement(Dropdown_1.Dropdown, { customWidth: "88px", size: "small", valueArray: dropdownTextArray, onChange: handleDropdown, defaultValue: dropdownDefaultValue !== null && dropdownDefaultValue !== void 0 ? dropdownDefaultValue : dropdownTextArray[0] })),
|
|
52
52
|
react_1.default.createElement(S_Page, null,
|
|
@@ -5,6 +5,8 @@ declare type DesktopHeaderBarProps = {
|
|
|
5
5
|
size?: 'xlarge' | 'large';
|
|
6
6
|
leftDisplayType?: 'text' | 'icon' | 'back';
|
|
7
7
|
iconName?: FillIconNameKeys | LineIconNameKeys;
|
|
8
|
+
leftBtn2Mode?: 'none' | 'mbtn' | 'tbtn';
|
|
9
|
+
leftBtn2Text?: PDSTextType;
|
|
8
10
|
rightBtnMode?: 'none' | 'close' | 'mbtn' | 'mbtn_fill' | 'help_window';
|
|
9
11
|
rightBtn2Mode?: 'none' | 'mbtn' | 'mbtn_fill' | 'help_window';
|
|
10
12
|
rightBtn3Mode?: 'none' | 'help_window';
|
|
@@ -14,9 +16,10 @@ declare type DesktopHeaderBarProps = {
|
|
|
14
16
|
mBtn2State?: 'normal' | 'disabled';
|
|
15
17
|
dividerType?: 'none' | 'solid';
|
|
16
18
|
onClickLeftBtn?: () => void;
|
|
19
|
+
onClickLeft2Btn?: () => void;
|
|
17
20
|
onClickRightBtn?: () => void;
|
|
18
21
|
onClickRightBtn2?: () => void;
|
|
19
22
|
onClickRightBtn3?: () => void;
|
|
20
23
|
};
|
|
21
|
-
declare function DesktopHeaderBar({ text, size, leftDisplayType, iconName, rightBtnMode, rightBtn2Mode, rightBtn3Mode, mBtnText, mBtn2Text, mBtnState, mBtn2State, dividerType, onClickLeftBtn, onClickRightBtn, onClickRightBtn2, onClickRightBtn3 }: DesktopHeaderBarProps): JSX.Element;
|
|
24
|
+
declare function DesktopHeaderBar({ text, size, leftDisplayType, iconName, leftBtn2Mode, leftBtn2Text, rightBtnMode, rightBtn2Mode, rightBtn3Mode, mBtnText, mBtn2Text, mBtnState, mBtn2State, dividerType, onClickLeftBtn, onClickLeft2Btn, onClickRightBtn, onClickRightBtn2, onClickRightBtn3 }: DesktopHeaderBarProps): JSX.Element;
|
|
22
25
|
export default DesktopHeaderBar;
|
|
@@ -12,9 +12,10 @@ var styled_components_1 = __importDefault(require("styled-components"));
|
|
|
12
12
|
var hybrid_1 = require("../../../hybrid");
|
|
13
13
|
var IconButton_1 = require("../IconButton");
|
|
14
14
|
var MainButton_1 = require("../MainButton");
|
|
15
|
+
var TextButton_1 = require("../TextButton");
|
|
15
16
|
var TextLabel_1 = require("../TextLabel");
|
|
16
17
|
function DesktopHeaderBar(_a) {
|
|
17
|
-
var text = _a.text, _b = _a.size, size = _b === void 0 ? 'xlarge' : _b, _c = _a.leftDisplayType, leftDisplayType = _c === void 0 ? 'text' : _c, iconName = _a.iconName, _d = _a.rightBtnMode, rightBtnMode = _d === void 0 ? 'none' : _d, _e = _a.rightBtn2Mode, rightBtn2Mode = _e === void 0 ? 'none' : _e, _f = _a.rightBtn3Mode, rightBtn3Mode = _f === void 0 ? 'none' : _f, mBtnText = _a.mBtnText, mBtn2Text = _a.mBtn2Text, _g = _a.mBtnState, mBtnState = _g === void 0 ? 'normal' : _g, _h = _a.mBtn2State, mBtn2State = _h === void 0 ? 'normal' : _h, _j = _a.dividerType, dividerType = _j === void 0 ? 'none' : _j, onClickLeftBtn = _a.onClickLeftBtn, onClickRightBtn = _a.onClickRightBtn, onClickRightBtn2 = _a.onClickRightBtn2, onClickRightBtn3 = _a.onClickRightBtn3;
|
|
18
|
+
var text = _a.text, _b = _a.size, size = _b === void 0 ? 'xlarge' : _b, _c = _a.leftDisplayType, leftDisplayType = _c === void 0 ? 'text' : _c, iconName = _a.iconName, leftBtn2Mode = _a.leftBtn2Mode, leftBtn2Text = _a.leftBtn2Text, _d = _a.rightBtnMode, rightBtnMode = _d === void 0 ? 'none' : _d, _e = _a.rightBtn2Mode, rightBtn2Mode = _e === void 0 ? 'none' : _e, _f = _a.rightBtn3Mode, rightBtn3Mode = _f === void 0 ? 'none' : _f, mBtnText = _a.mBtnText, mBtn2Text = _a.mBtn2Text, _g = _a.mBtnState, mBtnState = _g === void 0 ? 'normal' : _g, _h = _a.mBtn2State, mBtn2State = _h === void 0 ? 'normal' : _h, _j = _a.dividerType, dividerType = _j === void 0 ? 'none' : _j, onClickLeftBtn = _a.onClickLeftBtn, onClickLeft2Btn = _a.onClickLeft2Btn, onClickRightBtn = _a.onClickRightBtn, onClickRightBtn2 = _a.onClickRightBtn2, onClickRightBtn3 = _a.onClickRightBtn3;
|
|
18
19
|
var isLastButtonIcon = rightBtnMode === 'close' ||
|
|
19
20
|
rightBtnMode === 'help_window' ||
|
|
20
21
|
(rightBtnMode === 'none' && rightBtn2Mode === 'help_window') ||
|
|
@@ -24,6 +25,11 @@ function DesktopHeaderBar(_a) {
|
|
|
24
25
|
onClickLeftBtn();
|
|
25
26
|
}
|
|
26
27
|
};
|
|
28
|
+
var handleClickLeft2Btn = function () {
|
|
29
|
+
if (onClickLeft2Btn) {
|
|
30
|
+
onClickLeft2Btn();
|
|
31
|
+
}
|
|
32
|
+
};
|
|
27
33
|
var handleClickRightBtn = function () {
|
|
28
34
|
if (onClickRightBtn) {
|
|
29
35
|
onClickRightBtn();
|
|
@@ -63,6 +69,23 @@ function DesktopHeaderBar(_a) {
|
|
|
63
69
|
}
|
|
64
70
|
}
|
|
65
71
|
};
|
|
72
|
+
var leftButton2Mode = function () {
|
|
73
|
+
switch (leftBtn2Mode) {
|
|
74
|
+
case 'mbtn': {
|
|
75
|
+
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
76
|
+
react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_d", spacingType: "width" }),
|
|
77
|
+
react_1.default.createElement(MainButton_1.MainButton, { styleTheme: "secondary", size: "xsmall", text: leftBtn2Text, onClick: handleClickLeft2Btn })));
|
|
78
|
+
}
|
|
79
|
+
case 'tbtn': {
|
|
80
|
+
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
81
|
+
react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_d", spacingType: "width" }),
|
|
82
|
+
react_1.default.createElement(TextButton_1.TextButton, { size: "xsmall", text: leftBtn2Text, onClick: handleClickLeft2Btn })));
|
|
83
|
+
}
|
|
84
|
+
case 'none': {
|
|
85
|
+
return;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
};
|
|
66
89
|
var rightButton3Mode = function () {
|
|
67
90
|
switch (rightBtn3Mode) {
|
|
68
91
|
case 'help_window': {
|
|
@@ -111,7 +134,8 @@ function DesktopHeaderBar(_a) {
|
|
|
111
134
|
return (react_1.default.createElement(S_DesktopHeaderBar, { "x-pds-name": "DesktopHeaderBar", "x-pds-element-type": "component", "x-pds-device-type": "desktop", size: size, hasDivider: dividerType === 'solid', hasBackIcon: leftDisplayType === 'back' },
|
|
112
135
|
react_1.default.createElement(S_LeftDisplayBox, null,
|
|
113
136
|
leftDisplayMode(),
|
|
114
|
-
react_1.default.createElement(TextLabel_1.TextLabel, { text: text, styleTheme: "body1Bold", singleLineMode: "use", colorTheme: "sysTextPrimary" })
|
|
137
|
+
react_1.default.createElement(TextLabel_1.TextLabel, { text: text, styleTheme: "body1Bold", singleLineMode: "use", colorTheme: "sysTextPrimary" }),
|
|
138
|
+
leftButton2Mode()),
|
|
115
139
|
react_1.default.createElement(S_ButtonBox, { isLastButtonIcon: isLastButtonIcon },
|
|
116
140
|
rightButton3Mode(),
|
|
117
141
|
rightButton2Mode(),
|
|
@@ -102,10 +102,12 @@ function EditApplyTextField(_a) {
|
|
|
102
102
|
*/
|
|
103
103
|
function checkBlankMode() {
|
|
104
104
|
if (textLineType === 'single' && preventBlankMode === 'trim') {
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
105
|
+
if (currentValue != null) {
|
|
106
|
+
setValue(name, currentValue.replace(/^\s+|\s+$/gm, ''));
|
|
107
|
+
setPrevValue(currentValue.replace(/^\s+|\s+$/gm, ''));
|
|
108
|
+
if (getInputValue) {
|
|
109
|
+
getInputValue([name, currentValue.replace(/^\s+|\s+$/gm, '')]);
|
|
110
|
+
}
|
|
109
111
|
}
|
|
110
112
|
}
|
|
111
113
|
if (preventBlankMode !== 'trim') {
|
|
@@ -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,19 +83,44 @@ 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 colorThemeDefault = (0, styled_components_1.css)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n &:hover:enabled {\n background-color: ", ";\n }\n &:active:enabled {\n background-color: ", ";\n }\n"], ["\n &:hover:enabled {\n background-color: ", ";\n }\n &:active:enabled {\n background-color: ", ";\n }\n"])), function (_a) {
|
|
87
|
+
var theme = _a.theme;
|
|
88
|
+
return theme.ui_cpnt_button_line_base_hover;
|
|
89
|
+
}, function (_a) {
|
|
90
|
+
var theme = _a.theme;
|
|
91
|
+
return theme.ui_cpnt_button_line_base_pressed;
|
|
92
|
+
});
|
|
93
|
+
var colorThemeWhite = (0, styled_components_1.css)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n &:hover:enabled {\n background-color: ", ";\n }\n &:active:enabled {\n background-color: ", ";\n }\n"], ["\n &:hover:enabled {\n background-color: ", ";\n }\n &:active:enabled {\n background-color: ", ";\n }\n"])), function (_a) {
|
|
94
|
+
var theme = _a.theme;
|
|
95
|
+
return theme.ui_cpnt_button_white_base_hover;
|
|
96
|
+
}, function (_a) {
|
|
97
|
+
var theme = _a.theme;
|
|
98
|
+
return theme.ui_cpnt_button_white_base_pressed;
|
|
99
|
+
});
|
|
100
|
+
var colorThemeWhite2 = (0, styled_components_1.css)(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n &:hover:enabled {\n background-color: ", ";\n }\n &:active:enabled {\n background-color: ", ";\n }\n"], ["\n &:hover:enabled {\n background-color: ", ";\n }\n &:active:enabled {\n background-color: ", ";\n }\n"])), function (_a) {
|
|
101
|
+
var theme = _a.theme;
|
|
102
|
+
return theme.ui_cpnt_textbutton_white_variation_base_hover;
|
|
103
|
+
}, function (_a) {
|
|
104
|
+
var theme = _a.theme;
|
|
105
|
+
return theme.ui_cpnt_textbutton_white_variation_base_pressed;
|
|
106
|
+
});
|
|
107
|
+
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 cursor: ", ";\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 cursor: ", ";\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"])), function (_a) {
|
|
86
108
|
var state = _a.state;
|
|
87
109
|
return (state === 'normal' ? 'pointer' : 'default');
|
|
88
110
|
}, transitionStyle_1.ButtonTransition, function (_a) {
|
|
89
|
-
var
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
:
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
:
|
|
111
|
+
var colorTheme = _a.colorTheme;
|
|
112
|
+
switch (colorTheme) {
|
|
113
|
+
case 'none':
|
|
114
|
+
case 'red':
|
|
115
|
+
case 'grey_01':
|
|
116
|
+
return colorThemeDefault;
|
|
117
|
+
case 'white':
|
|
118
|
+
return colorThemeWhite;
|
|
119
|
+
case 'white2':
|
|
120
|
+
return colorThemeWhite2;
|
|
121
|
+
default:
|
|
122
|
+
return colorThemeDefault;
|
|
123
|
+
}
|
|
98
124
|
}, function (_a) {
|
|
99
125
|
var size = _a.size;
|
|
100
126
|
return size &&
|
|
@@ -117,4 +143,4 @@ var S_Button = styled_components_1.default.button(templateObject_5 || (templateO
|
|
|
117
143
|
return responsiveMode === 'use' && 'width: 100%';
|
|
118
144
|
});
|
|
119
145
|
exports.default = TextButton;
|
|
120
|
-
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
|
|
146
|
+
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
|
{
|
|
@@ -4,6 +4,7 @@ export declare type TextLabelProps = {
|
|
|
4
4
|
text: PDSTextType;
|
|
5
5
|
tooltipText?: PDSTextType;
|
|
6
6
|
tooltipPosition?: 'left_top' | 'left_bottom' | 'right_top' | 'right_bottom';
|
|
7
|
+
tooltipIconColorKey?: UiColors;
|
|
7
8
|
textAlign?: 'left' | 'center' | 'right';
|
|
8
9
|
styleTheme?: 'displayBold' | 'wizardPageTitleBold' | 'headingBold' | 'leadParaBold' | 'leadParaRegular' | 'subTitleBold' | 'subTitleRegular' | 'body1Bold' | 'body1Regular' | 'body2Bold' | 'body2Regular' | 'caption1Bold' | 'caption1Regular' | 'caption2Bold' | 'caption2Regular' | 'form1Regular' | 'form2Regular' | 'blog1Regular';
|
|
9
10
|
colorOverride?: UiColors;
|
|
@@ -37,5 +38,5 @@ export declare type TextStyleProps = {
|
|
|
37
38
|
wordBreak?: 'normal' | 'break_all' | 'keep_all' | 'break_word';
|
|
38
39
|
$letterSpacing?: string;
|
|
39
40
|
};
|
|
40
|
-
declare function TextLabel({ text, tooltipText, tooltipPosition, textAlign, styleTheme, colorOverride, colorTheme, singleLineMode, ellipsisMode, lineLimit, userSelectMode, customFontSize, customFontWeight, textDecorationType, requirementMode, bulletPointMode, wordBreak, letterSpacing }: TextLabelProps): JSX.Element;
|
|
41
|
+
declare function TextLabel({ text, tooltipText, tooltipPosition, tooltipIconColorKey, textAlign, styleTheme, colorOverride, colorTheme, singleLineMode, ellipsisMode, lineLimit, userSelectMode, customFontSize, customFontWeight, textDecorationType, requirementMode, bulletPointMode, wordBreak, letterSpacing }: TextLabelProps): JSX.Element;
|
|
41
42
|
export default TextLabel;
|
|
@@ -27,8 +27,8 @@ var react_1 = __importStar(require("react"));
|
|
|
27
27
|
var styled_components_1 = __importStar(require("styled-components"));
|
|
28
28
|
var hybrid_1 = require("../../../hybrid");
|
|
29
29
|
function TextLabel(_a) {
|
|
30
|
-
var text = _a.text, tooltipText = _a.tooltipText, _b = _a.tooltipPosition, tooltipPosition = _b === void 0 ? 'right_bottom' : _b, _c = _a.
|
|
31
|
-
var
|
|
30
|
+
var text = _a.text, tooltipText = _a.tooltipText, _b = _a.tooltipPosition, tooltipPosition = _b === void 0 ? 'right_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, _o = _a.wordBreak, wordBreak = _o === void 0 ? 'keep_all' : _o, letterSpacing = _a.letterSpacing;
|
|
31
|
+
var _p = (0, react_1.useState)(false), isTooltipOpen = _p[0], setIsTooltipOpen = _p[1];
|
|
32
32
|
var handleTooltipToggle = function (value) {
|
|
33
33
|
setIsTooltipOpen(value);
|
|
34
34
|
};
|
|
@@ -39,7 +39,7 @@ function TextLabel(_a) {
|
|
|
39
39
|
react_1.default.createElement(hybrid_1.Icon, { iconName: "ic_requirement", size: 16, fillType: "line", colorKey: "ui_cpnt_icon_sys_error_01" })))),
|
|
40
40
|
tooltipText && (react_1.default.createElement(S_AfterTextBox, { styleTheme: styleTheme },
|
|
41
41
|
react_1.default.createElement(S_IconWrapper, { onMouseEnter: function () { return handleTooltipToggle(true); }, onMouseLeave: function () { return handleTooltipToggle(false); } },
|
|
42
|
-
react_1.default.createElement(hybrid_1.Icon, { iconName: "ic_question", size: 16, fillType: "fill", colorKey:
|
|
42
|
+
react_1.default.createElement(hybrid_1.Icon, { iconName: "ic_question", size: 16, fillType: "fill", colorKey: tooltipIconColorKey })),
|
|
43
43
|
react_1.default.createElement(S_TooltipWrapper, { className: "TooltipWrapper", isTooltipOpen: isTooltipOpen, tooltipPosition: tooltipPosition }, "" + tooltipText)))));
|
|
44
44
|
}
|
|
45
45
|
var displayBold = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n font-size: ", ";\n line-height: ", ";\n font-weight: ", ";\n"], ["\n font-size: ", ";\n line-height: ", ";\n font-weight: ", ";\n"])), function (_a) {
|
|
@@ -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": "desktop", 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": "desktop", 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,18 +63,47 @@ 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 &:hover:not([disabled]) {\n background-color: ", ";\n }\n &:active:not([disabled]) {\n background-color: ", ";\n }\n"], ["\n &:hover:not([disabled]) {\n background-color: ", ";\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_hover;
|
|
69
|
+
}, function (_a) {
|
|
70
|
+
var theme = _a.theme;
|
|
71
|
+
return theme.ui_cpnt_button_line_base_pressed;
|
|
72
|
+
});
|
|
73
|
+
var colorThemeWhite = (0, styled_components_1.css)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n &:hover:not([disabled]) {\n background-color: ", ";\n }\n &:active:not([disabled]) {\n background-color: ", ";\n }\n"], ["\n &:hover:not([disabled]) {\n background-color: ", ";\n }\n &:active:not([disabled]) {\n background-color: ", ";\n }\n"])), function (_a) {
|
|
74
|
+
var theme = _a.theme;
|
|
75
|
+
return theme.ui_cpnt_button_white_base_hover;
|
|
76
|
+
}, function (_a) {
|
|
77
|
+
var theme = _a.theme;
|
|
78
|
+
return theme.ui_cpnt_button_white_base_pressed;
|
|
79
|
+
});
|
|
80
|
+
var colorThemeWhite2 = (0, styled_components_1.css)(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n &:hover:not([disabled]) {\n background-color: ", ";\n }\n &:active:not([disabled]) {\n background-color: ", ";\n }\n"], ["\n &:hover:not([disabled]) {\n background-color: ", ";\n }\n &:active:not([disabled]) {\n background-color: ", ";\n }\n"])), function (_a) {
|
|
81
|
+
var theme = _a.theme;
|
|
82
|
+
return theme.ui_cpnt_textbutton_white_variation_base_hover;
|
|
83
|
+
}, function (_a) {
|
|
84
|
+
var theme = _a.theme;
|
|
85
|
+
return theme.ui_cpnt_textbutton_white_variation_base_pressed;
|
|
86
|
+
});
|
|
87
|
+
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 cursor: ", ";\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 cursor: ", ";\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
88
|
var disabled = _a.disabled;
|
|
67
89
|
return (disabled ? 'default' : 'pointer');
|
|
68
90
|
}, function (_a) {
|
|
69
91
|
var theme = _a.theme;
|
|
70
92
|
return theme.spacing.spacingB;
|
|
71
93
|
}, transitionStyle_1.ButtonTransition, function (_a) {
|
|
72
|
-
var
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
94
|
+
var colorTheme = _a.colorTheme;
|
|
95
|
+
switch (colorTheme) {
|
|
96
|
+
case 'none':
|
|
97
|
+
case 'red':
|
|
98
|
+
case 'grey_01':
|
|
99
|
+
return colorThemeDefault;
|
|
100
|
+
case 'white':
|
|
101
|
+
return colorThemeWhite;
|
|
102
|
+
case 'white2':
|
|
103
|
+
return colorThemeWhite2;
|
|
104
|
+
default:
|
|
105
|
+
return colorThemeDefault;
|
|
106
|
+
}
|
|
77
107
|
}, function (_a) {
|
|
78
108
|
var theme = _a.theme, fontWeight = _a.fontWeight;
|
|
79
109
|
return fontWeight &&
|
|
@@ -96,4 +126,4 @@ var S_UploadTextButton = styled_components_1.default.label(templateObject_5 || (
|
|
|
96
126
|
return responsiveMode === 'use' && 'width: 100%';
|
|
97
127
|
});
|
|
98
128
|
exports.default = UploadTextButton;
|
|
99
|
-
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
|
|
129
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8;
|
|
@@ -14,5 +14,6 @@ import { ContainersBox as WTContainersBox } from './layout/LayoutWT/ContainersBo
|
|
|
14
14
|
export { LayoutWT, WTGlobalMenuContainer, WTContainersBox };
|
|
15
15
|
import { AdminList as D_AdminList, AdminListHeader as D_AdminListHeader, AdminListItem as D_AdminListItem, BasicChatListItem as D_BasicChatListItem, BasicFormGroup as D_BasicFormGroup, BasicList as D_BasicList, BasicListItem as D_BasicListItem, BlogTextField as D_BlogTextField, BodyTextGroup as D_BodyTextGroup, Card as D_Card, CardList as D_CardList, ChatBubbleListItem as D_ChatBubbleListItem, ChatList as D_ChatList, Checkbox as D_Checkbox, Chip as D_Chip, ContextMenu as D_ContextMenu, ContextMenuItem as D_ContextMenuItem, DesktopAlertDialog as D_DesktopAlertDialog, DesktopHeaderBar as D_DesktopHeaderBar, DesktopTabBar as D_DesktopTabBar, Dropdown as D_Dropdown, DynamicDesktopNavBar as D_DynamicDesktopNavBar, DynamicDesktopNavBarTemplates as D_DynamicDesktopNavBarTemplates, EditApplyTextField as D_EditApplyTextField, FilterBar as D_FilterBar, FloatingActionButton as D_FloatingActionButton, Hero as D_Hero, HorizontalFormGroup as D_HorizontalFormGroup, IconButton as D_IconButton, ImageSlide as D_ImageSlide, LottieReactionButton as D_LottieReactionButton, MainButton as D_MainButton, PageTitleTextGroup as D_PageTitleTextGroup, Radio as D_Radio, ReactionButton as D_ReactionButton, Select as D_Select, StatusBlock as D_StatusBlock, TextButton as D_TextButton, TextField as D_TextField, TextLabel as D_TextLabel, UploadIconButton as D_UploadIconButton, UploadMainButton as D_UploadMainButton, UploadTextButton as D_UploadTextButton, UserDesktopNavBar as D_UserDesktopNavBar, UserDesktopTabBar as D_UserDesktopTabBar, UserDesktopSideTab as D_UserDesktopSideTab } from './components';
|
|
16
16
|
export { D_AdminList, D_AdminListHeader, D_AdminListItem, D_BasicChatListItem, D_BasicFormGroup, D_BasicList, D_BasicListItem, D_BlogTextField, D_BodyTextGroup, D_Card, D_CardList, D_ChatBubbleListItem, D_ChatList, D_Checkbox, D_Chip, D_ContextMenu, D_ContextMenuItem, D_DesktopAlertDialog, D_DesktopHeaderBar, D_DesktopTabBar, D_Dropdown, D_DynamicDesktopNavBar, D_DynamicDesktopNavBarTemplates, D_EditApplyTextField, D_FilterBar, D_FloatingActionButton, D_Hero, D_HorizontalFormGroup, D_IconButton, D_ImageSlide, D_LottieReactionButton, D_MainButton, D_PageTitleTextGroup, D_Radio, D_Select, D_ReactionButton, D_StatusBlock, D_TextButton, D_TextField, D_TextLabel, D_UploadIconButton, D_UploadMainButton, D_UploadTextButton, D_UserDesktopNavBar, D_UserDesktopTabBar, D_UserDesktopSideTab };
|
|
17
|
-
import { AnnotationSheet as D_AnnotationSheet, ContentSheet as D_ContentSheet, DesktopBasicModal as D_DesktopBasicModal, DesktopHeadlessModal as D_DesktopHeadlessModal, SectionSheet as D_SectionSheet } from './panels';
|
|
18
|
-
export { D_AnnotationSheet, D_ContentSheet, D_DesktopBasicModal, D_DesktopHeadlessModal, D_SectionSheet };
|
|
17
|
+
import { AnnotationSheet as D_AnnotationSheet, ContentSheet as D_ContentSheet, DesktopBasicModal as D_DesktopBasicModal, DesktopHeadlessModal as D_DesktopHeadlessModal, DesktopTutorialModal as D_DesktopTutorialModal, DesktopTutorialModalInfoType, SectionSheet as D_SectionSheet } from './panels';
|
|
18
|
+
export { D_AnnotationSheet, D_ContentSheet, D_DesktopBasicModal, D_DesktopHeadlessModal, D_DesktopTutorialModal, D_SectionSheet };
|
|
19
|
+
export { DesktopTutorialModalInfoType };
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* eslint-disable import/first */
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
5
|
exports.D_TextLabel = exports.D_TextField = exports.D_TextButton = exports.D_StatusBlock = exports.D_ReactionButton = exports.D_Select = exports.D_Radio = exports.D_PageTitleTextGroup = exports.D_MainButton = exports.D_LottieReactionButton = exports.D_ImageSlide = exports.D_IconButton = exports.D_HorizontalFormGroup = exports.D_Hero = exports.D_FloatingActionButton = exports.D_FilterBar = exports.D_EditApplyTextField = exports.D_DynamicDesktopNavBarTemplates = exports.D_DynamicDesktopNavBar = exports.D_Dropdown = exports.D_DesktopTabBar = exports.D_DesktopHeaderBar = exports.D_DesktopAlertDialog = exports.D_ContextMenuItem = exports.D_ContextMenu = exports.D_Chip = exports.D_Checkbox = exports.D_ChatList = exports.D_ChatBubbleListItem = exports.D_CardList = exports.D_Card = exports.D_BodyTextGroup = exports.D_BlogTextField = exports.D_BasicListItem = exports.D_BasicList = exports.D_BasicFormGroup = exports.D_BasicChatListItem = exports.D_AdminListItem = exports.D_AdminListHeader = exports.D_AdminList = exports.WTContainersBox = exports.WTGlobalMenuContainer = exports.LayoutWT = exports.WSContainersBox = exports.WSGlobalMenuContainer = exports.LayoutWS = exports.WHContainersBox = exports.LayoutWH = exports.WFContainersBox = exports.LayoutWF = void 0;
|
|
6
|
-
exports.D_SectionSheet = exports.D_DesktopHeadlessModal = exports.D_DesktopBasicModal = exports.D_ContentSheet = exports.D_AnnotationSheet = exports.D_UserDesktopSideTab = exports.D_UserDesktopTabBar = exports.D_UserDesktopNavBar = exports.D_UploadTextButton = exports.D_UploadMainButton = exports.D_UploadIconButton = void 0;
|
|
6
|
+
exports.D_SectionSheet = exports.D_DesktopTutorialModal = exports.D_DesktopHeadlessModal = exports.D_DesktopBasicModal = exports.D_ContentSheet = exports.D_AnnotationSheet = exports.D_UserDesktopSideTab = exports.D_UserDesktopTabBar = exports.D_UserDesktopNavBar = exports.D_UploadTextButton = exports.D_UploadMainButton = exports.D_UploadIconButton = void 0;
|
|
7
7
|
// layoutWF
|
|
8
8
|
var LayoutWF_1 = require("./layout/LayoutWF");
|
|
9
9
|
Object.defineProperty(exports, "LayoutWF", { enumerable: true, get: function () { return LayoutWF_1.LayoutWF; } });
|
|
@@ -82,4 +82,5 @@ Object.defineProperty(exports, "D_AnnotationSheet", { enumerable: true, get: fun
|
|
|
82
82
|
Object.defineProperty(exports, "D_ContentSheet", { enumerable: true, get: function () { return panels_1.ContentSheet; } });
|
|
83
83
|
Object.defineProperty(exports, "D_DesktopBasicModal", { enumerable: true, get: function () { return panels_1.DesktopBasicModal; } });
|
|
84
84
|
Object.defineProperty(exports, "D_DesktopHeadlessModal", { enumerable: true, get: function () { return panels_1.DesktopHeadlessModal; } });
|
|
85
|
+
Object.defineProperty(exports, "D_DesktopTutorialModal", { enumerable: true, get: function () { return panels_1.DesktopTutorialModal; } });
|
|
85
86
|
Object.defineProperty(exports, "D_SectionSheet", { enumerable: true, get: function () { return panels_1.SectionSheet; } });
|
|
@@ -42,8 +42,6 @@ var ContainersBox = function (_a) {
|
|
|
42
42
|
? 'large'
|
|
43
43
|
: 'small';
|
|
44
44
|
return (react_1.default.createElement(S_Wrapper, { isWizardLayout: isWizardLayout },
|
|
45
|
-
react_1.default.createElement(S_VideoWrapper, null,
|
|
46
|
-
react_1.default.createElement(S_Video, { autoPlay: true, muted: true, playsInline: true, loop: true, src: "https://wp-s3-publ-landing.s3.ap-northeast-2.amazonaws.com/wp-content/uploads/2022/07/03200435/AdobeStock_478805549.mp4" })),
|
|
47
45
|
react_1.default.createElement(S_ContainersBox, { isWizardLayout: isWizardLayout },
|
|
48
46
|
pageMenuContent && (react_1.default.createElement(S_TopWrapper, null, isWizardLayout ? ({
|
|
49
47
|
small: (react_1.default.createElement(Containers_1.PageMenuContainer, { pageMenuType: "wizard_page_menu_864", pageMenuContent: pageMenuContent })),
|
|
@@ -121,23 +119,21 @@ var ContainersBox = function (_a) {
|
|
|
121
119
|
var wizardBackgroundStyle = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n background-image: url('https://publ-statics.s3.ap-northeast-2.amazonaws.com/pds_layout_background_gradient.jpg');\n display: flex;\n justify-content: center;\n align-items: center;\n background-repeat: no-repeat;\n background-size: cover;\n"], ["\n background-image: url('https://publ-statics.s3.ap-northeast-2.amazonaws.com/pds_layout_background_gradient.jpg');\n display: flex;\n justify-content: center;\n align-items: center;\n background-repeat: no-repeat;\n background-size: cover;\n"])));
|
|
122
120
|
var wizardContainersBoxStyle = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n justify-content: center;\n"], ["\n justify-content: center;\n"])));
|
|
123
121
|
var wizardCenterBoxStyle = (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n flex: none;\n"], ["\n flex: none;\n"])));
|
|
124
|
-
var S_Wrapper = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n height: 100%;\n
|
|
122
|
+
var S_Wrapper = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n height: 100%;\n\n ", "\n"], ["\n display: flex;\n flex-direction: column;\n height: 100%;\n\n ", "\n"])), function (_a) {
|
|
125
123
|
var isWizardLayout = _a.isWizardLayout;
|
|
126
124
|
return isWizardLayout && wizardBackgroundStyle;
|
|
127
125
|
});
|
|
128
|
-
var
|
|
129
|
-
var S_Video = styled_components_1.default.video(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n width: 100%;\n height: 100%;\n object-fit: cover;\n display: block;\n"], ["\n width: 100%;\n height: 100%;\n object-fit: cover;\n display: block;\n"])));
|
|
130
|
-
var S_ContainersBox = styled_components_1.default.div(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n height: 100%;\n position: relative;\n z-index: 1;\n\n ", "\n"], ["\n display: flex;\n flex-direction: column;\n height: 100%;\n position: relative;\n z-index: 1;\n\n ", "\n"])), function (_a) {
|
|
126
|
+
var S_ContainersBox = styled_components_1.default.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n height: 100%;\n\n ", "\n"], ["\n display: flex;\n flex-direction: column;\n height: 100%;\n\n ", "\n"])), function (_a) {
|
|
131
127
|
var isWizardLayout = _a.isWizardLayout;
|
|
132
128
|
return isWizardLayout && wizardContainersBoxStyle;
|
|
133
129
|
});
|
|
134
|
-
var S_TopWrapper = styled_components_1.default.div(
|
|
135
|
-
var S_CenterBox = styled_components_1.default.div(
|
|
130
|
+
var S_TopWrapper = styled_components_1.default.div(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n margin: 0;\n"], ["\n margin: 0;\n"])));
|
|
131
|
+
var S_CenterBox = styled_components_1.default.div(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n flex: 1;\n overflow: hidden;\n align-items: flex-start;\n display: flex;\n\n ", "\n"], ["\n flex: 1;\n overflow: hidden;\n align-items: flex-start;\n display: flex;\n\n ", "\n"])), function (_a) {
|
|
136
132
|
var isWizardLayout = _a.isWizardLayout;
|
|
137
133
|
return isWizardLayout && wizardCenterBoxStyle;
|
|
138
134
|
});
|
|
139
|
-
var S_RightBox = styled_components_1.default.div(
|
|
140
|
-
var S_ContentsWrapper = styled_components_1.default.div(
|
|
141
|
-
var S_BottomWrapper = styled_components_1.default.div(
|
|
135
|
+
var S_RightBox = styled_components_1.default.div(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n display: flex;\n flex: 1;\n flex-direction: column;\n height: 100%;\n max-width: 100%;\n"], ["\n display: flex;\n flex: 1;\n flex-direction: column;\n height: 100%;\n max-width: 100%;\n"])));
|
|
136
|
+
var S_ContentsWrapper = styled_components_1.default.div(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n flex: 1;\n overflow: hidden;\n"], ["\n flex: 1;\n overflow: hidden;\n"])));
|
|
137
|
+
var S_BottomWrapper = styled_components_1.default.div(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n margin: 0;\n"], ["\n margin: 0;\n"])));
|
|
142
138
|
exports.default = ContainersBox;
|
|
143
|
-
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10
|
|
139
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { PDSTabItemOption } from '../../../../../common/types';
|
|
3
|
+
export declare type ItemType = PDSTabItemOption;
|
|
4
|
+
declare type SideTabProps = {
|
|
5
|
+
itemArray: ItemType[];
|
|
6
|
+
};
|
|
7
|
+
declare function SideTab({ itemArray }: SideTabProps): JSX.Element;
|
|
8
|
+
export default SideTab;
|
|
@@ -0,0 +1,48 @@
|
|
|
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 __importDefault = (this && this.__importDefault) || function (mod) {
|
|
7
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
8
|
+
};
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
var react_1 = __importDefault(require("react"));
|
|
11
|
+
var styled_components_1 = __importDefault(require("styled-components"));
|
|
12
|
+
var components_1 = require("../../../../components");
|
|
13
|
+
function SideTab(_a) {
|
|
14
|
+
var itemArray = _a.itemArray;
|
|
15
|
+
var handleClickTabItem = function (item, e) {
|
|
16
|
+
if (item.onClick) {
|
|
17
|
+
item.onClick(e);
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
return (react_1.default.createElement("div", null, itemArray.map(function (item, index) {
|
|
21
|
+
return (react_1.default.createElement(S_TabWrapper, { key: index, onClick: function (e) { return handleClickTabItem(item, e); } },
|
|
22
|
+
react_1.default.createElement(components_1.TextLabel, { text: item.title, styleTheme: item.isActive ? 'subTitleBold' : 'subTitleRegular', colorTheme: item.isActive ? 'sysTextPrimary' : 'sysTextSecondary' })));
|
|
23
|
+
})));
|
|
24
|
+
}
|
|
25
|
+
var S_TabWrapper = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n box-sizing: border-box;\n background-color: ", ";\n cursor: pointer;\n padding-top: ", ";\n padding-right: ", ";\n padding-bottom: ", ";\n padding-left: ", ";\n\n &:hover {\n background-color: ", ";\n }\n\n &:active {\n background-color: ", ";\n }\n"], ["\n box-sizing: border-box;\n background-color: ", ";\n cursor: pointer;\n padding-top: ", ";\n padding-right: ", ";\n padding-bottom: ", ";\n padding-left: ", ";\n\n &:hover {\n background-color: ", ";\n }\n\n &:active {\n background-color: ", ";\n }\n"])), function (_a) {
|
|
26
|
+
var theme = _a.theme;
|
|
27
|
+
return theme.ui_cpnt_tutorialmodal_sidetab_default;
|
|
28
|
+
}, function (_a) {
|
|
29
|
+
var theme = _a.theme;
|
|
30
|
+
return theme.spacing.spacingB;
|
|
31
|
+
}, function (_a) {
|
|
32
|
+
var theme = _a.theme;
|
|
33
|
+
return theme.spacing.spacingE;
|
|
34
|
+
}, function (_a) {
|
|
35
|
+
var theme = _a.theme;
|
|
36
|
+
return theme.spacing.spacingB;
|
|
37
|
+
}, function (_a) {
|
|
38
|
+
var theme = _a.theme;
|
|
39
|
+
return theme.spacing.spacingE;
|
|
40
|
+
}, function (_a) {
|
|
41
|
+
var theme = _a.theme;
|
|
42
|
+
return theme.ui_cpnt_tutorialmodal_sidetab_hover;
|
|
43
|
+
}, function (_a) {
|
|
44
|
+
var theme = _a.theme;
|
|
45
|
+
return theme.ui_cpnt_tutorialmodal_sidetab_pressed;
|
|
46
|
+
});
|
|
47
|
+
exports.default = SideTab;
|
|
48
|
+
var templateObject_1;
|