pds-dev-kit-web 1.4.62 → 1.4.64
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/common/styles/colorSet/PaletteColor_Dark.json +5 -1
- package/dist/src/common/styles/colorSet/PaletteColor_light.json +5 -1
- package/dist/src/common/styles/colorSet/UIColor.json +17 -1
- package/dist/src/common/styles/colorSet/index.d.ts +211 -187
- package/dist/src/common/styles/colorSet/index.js +3 -3
- package/dist/src/common/styles/colorSet/ui-type.d.ts +16 -0
- package/dist/src/desktop/common/components/TextFieldBase/TextFieldBase.d.ts +1 -1
- package/dist/src/desktop/common/components/TextFieldBase/TextFieldBase.js +8 -4
- package/dist/src/desktop/components/BasicChatListItem/BasicChatListItem.d.ts +1 -1
- package/dist/src/desktop/components/BasicChatListItem/BasicChatListItem.js +6 -2
- package/dist/src/desktop/components/ChatList/Body.d.ts +1 -1
- package/dist/src/desktop/components/ChatList/Body.js +2 -1
- package/dist/src/desktop/components/ChatList/ChatList.d.ts +2 -1
- package/dist/src/desktop/components/ChatList/ChatList.js +8 -8
- package/dist/src/desktop/components/ChatList/ChatTextField.d.ts +2 -2
- package/dist/src/desktop/components/ChatList/ChatTextField.js +2 -2
- package/dist/src/desktop/components/ChatList/Footer.d.ts +2 -2
- package/dist/src/desktop/components/ChatList/Footer.js +2 -2
- package/dist/src/desktop/components/ChatList/Header.d.ts +2 -2
- package/dist/src/desktop/components/ChatList/Header.js +5 -5
- package/dist/src/desktop/components/Dropdown/Dropdown.js +1 -1
- package/dist/src/desktop/components/TextField/TextField.d.ts +1 -1
- package/dist/src/desktop/components/TextField/TextField.js +80 -30
- package/dist/src/mobile/common/components/TextFieldBase/TextFieldBase.d.ts +1 -1
- package/dist/src/mobile/common/components/TextFieldBase/TextFieldBase.js +8 -4
- package/dist/src/mobile/components/BasicChatListItem/BasicChatListItem.d.ts +1 -1
- package/dist/src/mobile/components/BasicChatListItem/BasicChatListItem.js +6 -2
- package/dist/src/mobile/components/ChatList/Body.d.ts +1 -1
- package/dist/src/mobile/components/ChatList/Body.js +2 -1
- package/dist/src/mobile/components/ChatList/ChatList.d.ts +2 -1
- package/dist/src/mobile/components/ChatList/ChatList.js +8 -8
- package/dist/src/mobile/components/ChatList/ChatTextField.d.ts +2 -2
- package/dist/src/mobile/components/ChatList/ChatTextField.js +2 -2
- package/dist/src/mobile/components/ChatList/Footer.d.ts +2 -2
- package/dist/src/mobile/components/ChatList/Footer.js +2 -2
- package/dist/src/mobile/components/ChatList/Header.d.ts +2 -2
- package/dist/src/mobile/components/ChatList/Header.js +5 -5
- package/dist/src/mobile/components/Dropdown/Dropdown.js +1 -1
- package/dist/src/mobile/components/TextField/TextField.d.ts +1 -1
- package/dist/src/mobile/components/TextField/TextField.js +80 -30
- package/package.json +1 -1
- package/release-note.md +3 -11
|
@@ -47,10 +47,10 @@ var Header_1 = __importDefault(require("./Header"));
|
|
|
47
47
|
var baseBackgroundColors = {
|
|
48
48
|
solid: 'ui_cpnt_list_base_area_solid',
|
|
49
49
|
translucent: 'ui_cpnt_list_base_area_translucent',
|
|
50
|
-
transparent: '
|
|
50
|
+
transparent: 'ui_cpnt_list_base_area_transparent'
|
|
51
51
|
};
|
|
52
52
|
var ChatList = react_1.default.forwardRef(function (_a, ref) {
|
|
53
|
-
var _b = _a.
|
|
53
|
+
var _b = _a.colorTheme, colorTheme = _b === void 0 ? 'solid' : _b, _c = _a.headerMode, headerMode = _c === void 0 ? 'use' : _c, titleText = _a.titleText, descText = _a.descText, captionText = _a.captionText, _d = _a.titleStyleTheme, titleStyleTheme = _d === void 0 ? 'subTitleBold' : _d, _e = _a.headerDisplayType, headerDisplayType = _e === void 0 ? 'none' : _e, _f = _a.headerIBtn1IconName, headerIBtn1IconName = _f === void 0 ? 'ic_xmark' : _f, _g = _a.headerIBtn1IconFillType, headerIBtn1IconFillType = _g === void 0 ? 'line' : _g, children = _a.children, bodyChildren = _a.bodyChildren, _h = _a.textFieldState, textFieldState = _h === void 0 ? 'normal' : _h, textFieldHintText = _a.textFieldHintText, textFieldDefaultText = _a.textFieldDefaultText, textFieldMaxLength = _a.textFieldMaxLength, _j = _a.scrollVisibleType, scrollVisibleType = _j === void 0 ? 'moving' : _j, footerChildren = _a.footerChildren, _k = _a.submitIBtnState, submitIBtnState = _k === void 0 ? 'normal' : _k, bodyMBtnText = _a.bodyMBtnText, _l = _a.bodySpacingMode, bodySpacingMode = _l === void 0 ? 'none' : _l, onSubmit = _a.onSubmit, onClickHeaderIBtn1 = _a.onClickHeaderIBtn1, submitIBtnIconName = _a.submitIBtnIconName, submitIBtnIconFillType = _a.submitIBtnIconFillType, _m = _a.footerIBtn1State, footerIBtn1State = _m === void 0 ? 'normal' : _m, footerIBtn1IconName = _a.footerIBtn1IconName, footerIBtn1IconFillType = _a.footerIBtn1IconFillType, _o = _a.footerIBtn1Type, footerIBtn1Type = _o === void 0 ? 'button' : _o, onClickFooterIBtn1 = _a.onClickFooterIBtn1, _p = _a.footerIBtn2State, footerIBtn2State = _p === void 0 ? 'normal' : _p, footerIBtn2IconName = _a.footerIBtn2IconName, footerIBtn2IconFillType = _a.footerIBtn2IconFillType, _q = _a.footerIBtn2Type, footerIBtn2Type = _q === void 0 ? 'button' : _q, onClickFooterIBtn2 = _a.onClickFooterIBtn2, _r = _a.footerIBtn3State, footerIBtn3State = _r === void 0 ? 'normal' : _r, footerIBtn3IconName = _a.footerIBtn3IconName, footerIBtn3IconFillType = _a.footerIBtn3IconFillType, _s = _a.footerIBtn3Type, footerIBtn3Type = _s === void 0 ? 'button' : _s, footerIBtn3Accept = _a.footerIBtn3Accept, onClickFooterIBtn3 = _a.onClickFooterIBtn3;
|
|
54
54
|
var methods = (0, react_hook_form_1.useForm)({
|
|
55
55
|
mode: 'onChange',
|
|
56
56
|
defaultValues: {
|
|
@@ -85,16 +85,16 @@ var ChatList = react_1.default.forwardRef(function (_a, ref) {
|
|
|
85
85
|
var callBackAfterScrollToBottom = function () {
|
|
86
86
|
reset();
|
|
87
87
|
};
|
|
88
|
-
return (react_1.default.createElement(S_ChatList, { backgroundColor: baseBackgroundColors[
|
|
88
|
+
return (react_1.default.createElement(S_ChatList, { backgroundColor: baseBackgroundColors[colorTheme], id: "chatList" },
|
|
89
89
|
headerMode === 'use' && (react_1.default.createElement(react_1.default.Fragment, null,
|
|
90
|
-
react_1.default.createElement(Header_1.default, {
|
|
91
|
-
react_1.default.createElement(hybrid_1.Divider,
|
|
92
|
-
react_1.default.createElement(Body_1.default, { scrollVisibleType: scrollVisibleType, isSubmitted: isSubmitSuccessful, bodyMBtnText: bodyMBtnText, bodySpacingMode: bodySpacingMode, callBackAfterScrollToBottom: callBackAfterScrollToBottom, ref: ref }, children),
|
|
93
|
-
react_1.default.createElement(hybrid_1.Divider,
|
|
90
|
+
react_1.default.createElement(Header_1.default, { colorTheme: colorTheme, titleText: titleText, descText: descText, captionText: captionText, titleStyleTheme: titleStyleTheme, headerDisplayType: headerDisplayType, headerIBtn1IconName: headerIBtn1IconName, headerIBtn1IconFillType: headerIBtn1IconFillType, onClickHeaderIBtn1: onClickHeaderIBtn1 }),
|
|
91
|
+
react_1.default.createElement(hybrid_1.Divider, { colorTheme: colorTheme === 'transparent' ? 'divider1' : 'none' }))),
|
|
92
|
+
react_1.default.createElement(Body_1.default, { scrollVisibleType: scrollVisibleType, isSubmitted: isSubmitSuccessful, bodyMBtnText: bodyMBtnText, bodySpacingMode: bodySpacingMode, callBackAfterScrollToBottom: callBackAfterScrollToBottom, bodyChildren: bodyChildren, ref: ref }, children),
|
|
93
|
+
react_1.default.createElement(hybrid_1.Divider, { colorTheme: colorTheme === 'transparent' ? 'divider1' : 'none' }),
|
|
94
94
|
react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_d" }),
|
|
95
95
|
react_1.default.createElement(react_hook_form_1.FormProvider, __assign({}, methods),
|
|
96
96
|
react_1.default.createElement("form", { onSubmit: handleSubmit(handleSubmitChat) },
|
|
97
|
-
react_1.default.createElement(Footer_1.default, { textFieldDefaultText: textFieldDefaultText, textFieldHintText: textFieldHintText, textFieldState: textFieldState, textFieldMaxLength: textFieldMaxLength, footerChildren: footerChildren, isSubmitBtnActive: isSubmitButtonActive, submitIBtnIconName: submitIBtnIconName, submitIBtnIconFillType: submitIBtnIconFillType, footerIBtn1State: footerIBtn1State, footerIBtn1IconName: footerIBtn1IconName, footerIBtn1IconFillType: footerIBtn1IconFillType, footerIBtn1Type: footerIBtn1Type, onClickFooterIBtn1: onClickFooterIBtn1, footerIBtn2State: footerIBtn2State, footerIBtn2IconName: footerIBtn2IconName, footerIBtn2IconFillType: footerIBtn2IconFillType, footerIBtn2Type: footerIBtn2Type, onClickFooterIBtn2: onClickFooterIBtn2, footerIBtn3State: footerIBtn3State, footerIBtn3IconName: footerIBtn3IconName, footerIBtn3IconFillType: footerIBtn3IconFillType, footerIBtn3Type: footerIBtn3Type, footerIBtn3Accept: footerIBtn3Accept, onClickFooterIBtn3: onClickFooterIBtn3 }))),
|
|
97
|
+
react_1.default.createElement(Footer_1.default, { colorTheme: colorTheme, textFieldDefaultText: textFieldDefaultText, textFieldHintText: textFieldHintText, textFieldState: textFieldState, textFieldMaxLength: textFieldMaxLength, footerChildren: footerChildren, isSubmitBtnActive: isSubmitButtonActive, submitIBtnIconName: submitIBtnIconName, submitIBtnIconFillType: submitIBtnIconFillType, footerIBtn1State: footerIBtn1State, footerIBtn1IconName: footerIBtn1IconName, footerIBtn1IconFillType: footerIBtn1IconFillType, footerIBtn1Type: footerIBtn1Type, onClickFooterIBtn1: onClickFooterIBtn1, footerIBtn2State: footerIBtn2State, footerIBtn2IconName: footerIBtn2IconName, footerIBtn2IconFillType: footerIBtn2IconFillType, footerIBtn2Type: footerIBtn2Type, onClickFooterIBtn2: onClickFooterIBtn2, footerIBtn3State: footerIBtn3State, footerIBtn3IconName: footerIBtn3IconName, footerIBtn3IconFillType: footerIBtn3IconFillType, footerIBtn3Type: footerIBtn3Type, footerIBtn3Accept: footerIBtn3Accept, onClickFooterIBtn3: onClickFooterIBtn3 }))),
|
|
98
98
|
react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_d" })));
|
|
99
99
|
});
|
|
100
100
|
var S_ChatList = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n background-color: ", ";\n display: flex;\n flex-direction: column;\n height: 100%;\n"], ["\n background-color: ", ";\n display: flex;\n flex-direction: column;\n height: 100%;\n"])), function (_a) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FillIconNameKeys, LineIconNameKeys } from '../../../common';
|
|
3
3
|
import type { Props as ChatListProps } from './ChatList';
|
|
4
|
-
declare type Props = Pick<ChatListProps, 'textFieldDefaultText' | 'textFieldHintText' | 'textFieldState' | 'textFieldMaxLength' | 'footerIBtn3Accept'> & {
|
|
4
|
+
declare type Props = Pick<ChatListProps, 'textFieldDefaultText' | 'textFieldHintText' | 'textFieldState' | 'textFieldMaxLength' | 'footerIBtn3Accept' | 'colorTheme'> & {
|
|
5
5
|
isSubmitBtnActive?: boolean;
|
|
6
6
|
submitIBtnIconName?: FillIconNameKeys | LineIconNameKeys;
|
|
7
7
|
submitIBtnIconFillType?: 'fill' | 'line';
|
|
@@ -21,5 +21,5 @@ declare type Props = Pick<ChatListProps, 'textFieldDefaultText' | 'textFieldHint
|
|
|
21
21
|
footerIBtn3Type?: 'button' | 'upload';
|
|
22
22
|
onClickFooterIBtn3?: (e: React.ChangeEvent<HTMLInputElement> | React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
23
23
|
};
|
|
24
|
-
declare function ChatTextField({ textFieldDefaultText, textFieldHintText, textFieldState, textFieldMaxLength, isSubmitBtnActive, submitIBtnIconName, submitIBtnIconFillType, footerIBtn1State, footerIBtn1IconName, footerIBtn1IconFillType, footerIBtn1Type, onClickFooterIBtn1, footerIBtn2State, footerIBtn2IconName, footerIBtn2IconFillType, footerIBtn2Type, onClickFooterIBtn2, footerIBtn3State, footerIBtn3IconName, footerIBtn3IconFillType, footerIBtn3Type, footerIBtn3Accept, onClickFooterIBtn3 }: Props): JSX.Element;
|
|
24
|
+
declare function ChatTextField({ colorTheme, textFieldDefaultText, textFieldHintText, textFieldState, textFieldMaxLength, isSubmitBtnActive, submitIBtnIconName, submitIBtnIconFillType, footerIBtn1State, footerIBtn1IconName, footerIBtn1IconFillType, footerIBtn1Type, onClickFooterIBtn1, footerIBtn2State, footerIBtn2IconName, footerIBtn2IconFillType, footerIBtn2Type, onClickFooterIBtn2, footerIBtn3State, footerIBtn3IconName, footerIBtn3IconFillType, footerIBtn3Type, footerIBtn3Accept, onClickFooterIBtn3 }: Props): JSX.Element;
|
|
25
25
|
export default ChatTextField;
|
|
@@ -13,7 +13,7 @@ var IconButton_1 = require("../IconButton");
|
|
|
13
13
|
var TextField_1 = require("../TextField");
|
|
14
14
|
var UploadIconButton_1 = require("../UploadIconButton");
|
|
15
15
|
function ChatTextField(_a) {
|
|
16
|
-
var textFieldDefaultText = _a.textFieldDefaultText, textFieldHintText = _a.textFieldHintText, textFieldState = _a.textFieldState, textFieldMaxLength = _a.textFieldMaxLength, isSubmitBtnActive = _a.isSubmitBtnActive, _b = _a.submitIBtnIconName, submitIBtnIconName = _b === void 0 ? 'ic_paper_plane' : _b, _c = _a.submitIBtnIconFillType, submitIBtnIconFillType = _c === void 0 ? 'fill' : _c, footerIBtn1State = _a.footerIBtn1State, footerIBtn1IconName = _a.footerIBtn1IconName, footerIBtn1IconFillType = _a.footerIBtn1IconFillType, footerIBtn1Type = _a.footerIBtn1Type, onClickFooterIBtn1 = _a.onClickFooterIBtn1, footerIBtn2State = _a.footerIBtn2State, footerIBtn2IconName = _a.footerIBtn2IconName, footerIBtn2IconFillType = _a.footerIBtn2IconFillType, footerIBtn2Type = _a.footerIBtn2Type, onClickFooterIBtn2 = _a.onClickFooterIBtn2, footerIBtn3State = _a.footerIBtn3State, footerIBtn3IconName = _a.footerIBtn3IconName, footerIBtn3IconFillType = _a.footerIBtn3IconFillType, footerIBtn3Type = _a.footerIBtn3Type, footerIBtn3Accept = _a.footerIBtn3Accept, onClickFooterIBtn3 = _a.onClickFooterIBtn3;
|
|
16
|
+
var colorTheme = _a.colorTheme, textFieldDefaultText = _a.textFieldDefaultText, textFieldHintText = _a.textFieldHintText, textFieldState = _a.textFieldState, textFieldMaxLength = _a.textFieldMaxLength, isSubmitBtnActive = _a.isSubmitBtnActive, _b = _a.submitIBtnIconName, submitIBtnIconName = _b === void 0 ? 'ic_paper_plane' : _b, _c = _a.submitIBtnIconFillType, submitIBtnIconFillType = _c === void 0 ? 'fill' : _c, footerIBtn1State = _a.footerIBtn1State, footerIBtn1IconName = _a.footerIBtn1IconName, footerIBtn1IconFillType = _a.footerIBtn1IconFillType, footerIBtn1Type = _a.footerIBtn1Type, onClickFooterIBtn1 = _a.onClickFooterIBtn1, footerIBtn2State = _a.footerIBtn2State, footerIBtn2IconName = _a.footerIBtn2IconName, footerIBtn2IconFillType = _a.footerIBtn2IconFillType, footerIBtn2Type = _a.footerIBtn2Type, onClickFooterIBtn2 = _a.onClickFooterIBtn2, footerIBtn3State = _a.footerIBtn3State, footerIBtn3IconName = _a.footerIBtn3IconName, footerIBtn3IconFillType = _a.footerIBtn3IconFillType, footerIBtn3Type = _a.footerIBtn3Type, footerIBtn3Accept = _a.footerIBtn3Accept, onClickFooterIBtn3 = _a.onClickFooterIBtn3;
|
|
17
17
|
var chatValidation = {
|
|
18
18
|
validate: function (value) {
|
|
19
19
|
if (!value)
|
|
@@ -34,7 +34,7 @@ function ChatTextField(_a) {
|
|
|
34
34
|
? 'ui_cpnt_button_icon_primary'
|
|
35
35
|
: 'ui_cpnt_button_icon_disabled', iconFillType: footerIBtn2IconFillType, iconSize: 24, state: footerIBtn2State, onClick: onClickFooterIBtn2 })))),
|
|
36
36
|
react_1.default.createElement(S_TextFieldWrapper, null,
|
|
37
|
-
react_1.default.createElement(TextField_1.TextField, { name: "chat", responsiveMode: "use", textLineType: "single", inputType: "text", hintText: textFieldHintText, defaultText: textFieldDefaultText, validation: chatValidation, maxLength: textFieldMaxLength, enterSubmitMode: "use", validationPoint: "onChange", state: textFieldState, autoComplete: "off" })),
|
|
37
|
+
react_1.default.createElement(TextField_1.TextField, { name: "chat", responsiveMode: "use", textLineType: "single", inputType: "text", hintText: textFieldHintText, defaultText: textFieldDefaultText, validation: chatValidation, maxLength: textFieldMaxLength, colorTheme: colorTheme === 'transparent' ? 'transparent' : 'none', enterSubmitMode: "use", validationPoint: "onChange", state: textFieldState, autoComplete: "off" })),
|
|
38
38
|
footerIBtn1IconName && (react_1.default.createElement(react_1.default.Fragment, null, footerIBtn1Type === 'button' ? (react_1.default.createElement(IconButton_1.IconButton, { iconName: footerIBtn1IconName, baseSize: "large", baseColorKey: "ui_cpnt_button_fill_base_transparent", iconColorKey: footerIBtn1State === 'normal'
|
|
39
39
|
? 'ui_cpnt_button_icon_primary'
|
|
40
40
|
: 'ui_cpnt_button_icon_disabled', iconFillType: footerIBtn1IconFillType, iconSize: 24, state: footerIBtn1State, onClick: onClickFooterIBtn1 })) : (react_1.default.createElement(UploadIconButton_1.UploadIconButton, { iconName: footerIBtn1IconName, baseSize: "large", baseColorKey: "ui_cpnt_button_fill_base_transparent", iconColorKey: footerIBtn1State === 'normal'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FillIconNameKeys, LineIconNameKeys } from '../../../common';
|
|
3
3
|
import type { Props as ChatListProps } from './ChatList';
|
|
4
|
-
declare type Props = Pick<ChatListProps, 'footerChildren' | 'textFieldDefaultText' | 'textFieldHintText' | 'textFieldState' | 'textFieldMaxLength' | 'footerIBtn3Accept'> & {
|
|
4
|
+
declare type Props = Pick<ChatListProps, 'footerChildren' | 'textFieldDefaultText' | 'textFieldHintText' | 'textFieldState' | 'textFieldMaxLength' | 'footerIBtn3Accept' | 'colorTheme'> & {
|
|
5
5
|
isSubmitBtnActive: boolean;
|
|
6
6
|
submitIBtnIconName?: FillIconNameKeys | LineIconNameKeys;
|
|
7
7
|
submitIBtnIconFillType?: 'fill' | 'line';
|
|
@@ -21,5 +21,5 @@ declare type Props = Pick<ChatListProps, 'footerChildren' | 'textFieldDefaultTex
|
|
|
21
21
|
footerIBtn3Type?: 'button' | 'upload';
|
|
22
22
|
onClickFooterIBtn3?: (e: React.ChangeEvent<HTMLInputElement> | React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
23
23
|
};
|
|
24
|
-
declare function Footer({ footerChildren, textFieldDefaultText, textFieldHintText, textFieldState, textFieldMaxLength, submitIBtnIconName, submitIBtnIconFillType, isSubmitBtnActive, footerIBtn1State, footerIBtn1IconName, footerIBtn1IconFillType, footerIBtn1Type, onClickFooterIBtn1, footerIBtn2State, footerIBtn2IconName, footerIBtn2IconFillType, footerIBtn2Type, onClickFooterIBtn2, footerIBtn3State, footerIBtn3IconName, footerIBtn3IconFillType, footerIBtn3Type, footerIBtn3Accept, onClickFooterIBtn3 }: Props): JSX.Element;
|
|
24
|
+
declare function Footer({ colorTheme, footerChildren, textFieldDefaultText, textFieldHintText, textFieldState, textFieldMaxLength, submitIBtnIconName, submitIBtnIconFillType, isSubmitBtnActive, footerIBtn1State, footerIBtn1IconName, footerIBtn1IconFillType, footerIBtn1Type, onClickFooterIBtn1, footerIBtn2State, footerIBtn2IconName, footerIBtn2IconFillType, footerIBtn2Type, onClickFooterIBtn2, footerIBtn3State, footerIBtn3IconName, footerIBtn3IconFillType, footerIBtn3Type, footerIBtn3Accept, onClickFooterIBtn3 }: Props): JSX.Element;
|
|
25
25
|
export default Footer;
|
|
@@ -11,9 +11,9 @@ var react_1 = __importDefault(require("react"));
|
|
|
11
11
|
var styled_components_1 = __importDefault(require("styled-components"));
|
|
12
12
|
var ChatTextField_1 = __importDefault(require("./ChatTextField"));
|
|
13
13
|
function Footer(_a) {
|
|
14
|
-
var footerChildren = _a.footerChildren, textFieldDefaultText = _a.textFieldDefaultText, textFieldHintText = _a.textFieldHintText, textFieldState = _a.textFieldState, textFieldMaxLength = _a.textFieldMaxLength, submitIBtnIconName = _a.submitIBtnIconName, submitIBtnIconFillType = _a.submitIBtnIconFillType, isSubmitBtnActive = _a.isSubmitBtnActive, footerIBtn1State = _a.footerIBtn1State, footerIBtn1IconName = _a.footerIBtn1IconName, footerIBtn1IconFillType = _a.footerIBtn1IconFillType, footerIBtn1Type = _a.footerIBtn1Type, onClickFooterIBtn1 = _a.onClickFooterIBtn1, footerIBtn2State = _a.footerIBtn2State, footerIBtn2IconName = _a.footerIBtn2IconName, footerIBtn2IconFillType = _a.footerIBtn2IconFillType, footerIBtn2Type = _a.footerIBtn2Type, onClickFooterIBtn2 = _a.onClickFooterIBtn2, footerIBtn3State = _a.footerIBtn3State, footerIBtn3IconName = _a.footerIBtn3IconName, footerIBtn3IconFillType = _a.footerIBtn3IconFillType, footerIBtn3Type = _a.footerIBtn3Type, footerIBtn3Accept = _a.footerIBtn3Accept, onClickFooterIBtn3 = _a.onClickFooterIBtn3;
|
|
14
|
+
var colorTheme = _a.colorTheme, footerChildren = _a.footerChildren, textFieldDefaultText = _a.textFieldDefaultText, textFieldHintText = _a.textFieldHintText, textFieldState = _a.textFieldState, textFieldMaxLength = _a.textFieldMaxLength, submitIBtnIconName = _a.submitIBtnIconName, submitIBtnIconFillType = _a.submitIBtnIconFillType, isSubmitBtnActive = _a.isSubmitBtnActive, footerIBtn1State = _a.footerIBtn1State, footerIBtn1IconName = _a.footerIBtn1IconName, footerIBtn1IconFillType = _a.footerIBtn1IconFillType, footerIBtn1Type = _a.footerIBtn1Type, onClickFooterIBtn1 = _a.onClickFooterIBtn1, footerIBtn2State = _a.footerIBtn2State, footerIBtn2IconName = _a.footerIBtn2IconName, footerIBtn2IconFillType = _a.footerIBtn2IconFillType, footerIBtn2Type = _a.footerIBtn2Type, onClickFooterIBtn2 = _a.onClickFooterIBtn2, footerIBtn3State = _a.footerIBtn3State, footerIBtn3IconName = _a.footerIBtn3IconName, footerIBtn3IconFillType = _a.footerIBtn3IconFillType, footerIBtn3Type = _a.footerIBtn3Type, footerIBtn3Accept = _a.footerIBtn3Accept, onClickFooterIBtn3 = _a.onClickFooterIBtn3;
|
|
15
15
|
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
16
|
-
react_1.default.createElement(ChatTextField_1.default, { textFieldDefaultText: textFieldDefaultText, textFieldHintText: textFieldHintText, textFieldState: textFieldState, textFieldMaxLength: textFieldMaxLength, isSubmitBtnActive: isSubmitBtnActive, submitIBtnIconName: submitIBtnIconName, submitIBtnIconFillType: submitIBtnIconFillType, footerIBtn1State: footerIBtn1State, footerIBtn1IconName: footerIBtn1IconName, footerIBtn1IconFillType: footerIBtn1IconFillType, footerIBtn1Type: footerIBtn1Type, onClickFooterIBtn1: onClickFooterIBtn1, footerIBtn2State: footerIBtn2State, footerIBtn2IconName: footerIBtn2IconName, footerIBtn2IconFillType: footerIBtn2IconFillType, footerIBtn2Type: footerIBtn2Type, onClickFooterIBtn2: onClickFooterIBtn2, footerIBtn3State: footerIBtn3State, footerIBtn3IconName: footerIBtn3IconName, footerIBtn3IconFillType: footerIBtn3IconFillType, footerIBtn3Type: footerIBtn3Type, footerIBtn3Accept: footerIBtn3Accept, onClickFooterIBtn3: onClickFooterIBtn3 }),
|
|
16
|
+
react_1.default.createElement(ChatTextField_1.default, { colorTheme: colorTheme, textFieldDefaultText: textFieldDefaultText, textFieldHintText: textFieldHintText, textFieldState: textFieldState, textFieldMaxLength: textFieldMaxLength, isSubmitBtnActive: isSubmitBtnActive, submitIBtnIconName: submitIBtnIconName, submitIBtnIconFillType: submitIBtnIconFillType, footerIBtn1State: footerIBtn1State, footerIBtn1IconName: footerIBtn1IconName, footerIBtn1IconFillType: footerIBtn1IconFillType, footerIBtn1Type: footerIBtn1Type, onClickFooterIBtn1: onClickFooterIBtn1, footerIBtn2State: footerIBtn2State, footerIBtn2IconName: footerIBtn2IconName, footerIBtn2IconFillType: footerIBtn2IconFillType, footerIBtn2Type: footerIBtn2Type, onClickFooterIBtn2: onClickFooterIBtn2, footerIBtn3State: footerIBtn3State, footerIBtn3IconName: footerIBtn3IconName, footerIBtn3IconFillType: footerIBtn3IconFillType, footerIBtn3Type: footerIBtn3Type, footerIBtn3Accept: footerIBtn3Accept, onClickFooterIBtn3: onClickFooterIBtn3 }),
|
|
17
17
|
react_1.default.createElement(S_FooterChildrenWrapper, null, footerChildren)));
|
|
18
18
|
}
|
|
19
19
|
var S_FooterChildrenWrapper = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n padding-left: ", ";\n padding-right: ", ";\n"], ["\n padding-left: ", ";\n padding-right: ", ";\n"])), function (_a) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { Props as ChatListProps } from './ChatList';
|
|
3
|
-
declare type Props = Required<Pick<ChatListProps, '
|
|
4
|
-
declare function Header({
|
|
3
|
+
declare type Props = Required<Pick<ChatListProps, 'colorTheme'>> & Pick<ChatListProps, 'titleText' | 'descText' | 'captionText' | 'titleStyleTheme' | 'headerDisplayType' | 'headerIBtn1IconName' | 'headerIBtn1IconFillType' | 'onClickHeaderIBtn1'>;
|
|
4
|
+
declare function Header({ colorTheme, titleText, descText, captionText, titleStyleTheme, headerDisplayType, headerIBtn1IconName, headerIBtn1IconFillType, onClickHeaderIBtn1 }: Props): JSX.Element;
|
|
5
5
|
export default Header;
|
|
@@ -23,17 +23,17 @@ var iconColors = {
|
|
|
23
23
|
transparent: 'ui_cpnt_button_icon_white'
|
|
24
24
|
};
|
|
25
25
|
function Header(_a) {
|
|
26
|
-
var
|
|
26
|
+
var colorTheme = _a.colorTheme, titleText = _a.titleText, descText = _a.descText, captionText = _a.captionText, titleStyleTheme = _a.titleStyleTheme, headerDisplayType = _a.headerDisplayType, headerIBtn1IconName = _a.headerIBtn1IconName, headerIBtn1IconFillType = _a.headerIBtn1IconFillType, onClickHeaderIBtn1 = _a.onClickHeaderIBtn1;
|
|
27
27
|
return (react_1.default.createElement(S_HeaderContentWrapper, null,
|
|
28
28
|
react_1.default.createElement(S_HeaderLeftBox, null,
|
|
29
|
-
titleText && (react_1.default.createElement(TextLabel_1.TextLabel, { text: titleText, styleTheme: titleStyleTheme, colorTheme: titleTextColors[
|
|
29
|
+
titleText && (react_1.default.createElement(TextLabel_1.TextLabel, { text: titleText, styleTheme: titleStyleTheme, colorTheme: titleTextColors[colorTheme], wordBreak: "break_all" })),
|
|
30
30
|
descText && (react_1.default.createElement(react_1.default.Fragment, null,
|
|
31
31
|
react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_c" }),
|
|
32
|
-
react_1.default.createElement(TextLabel_1.TextLabel, { text: descText, styleTheme: "body2Regular", colorTheme:
|
|
32
|
+
react_1.default.createElement(TextLabel_1.TextLabel, { text: descText, styleTheme: "body2Regular", colorTheme: colorTheme === 'solid' ? 'sysTextSecondary' : 'sysTextWhite', colorOverride: colorTheme === 'translucent' ? 'ui_cpnt_list_text_caption_02' : undefined, wordBreak: "break_all" }))),
|
|
33
33
|
captionText && (react_1.default.createElement(react_1.default.Fragment, null,
|
|
34
34
|
react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_a" }),
|
|
35
|
-
react_1.default.createElement(TextLabel_1.TextLabel, { text: captionText, styleTheme: "caption1Regular", colorTheme:
|
|
36
|
-
headerDisplayType === 'ibtn1' && headerIBtn1IconName && (react_1.default.createElement(IconButton_1.IconButton, { iconName: headerIBtn1IconName, baseSize: "large", baseColorKey: "ui_cpnt_button_fill_base_transparent", iconColorKey: iconColors[
|
|
35
|
+
react_1.default.createElement(TextLabel_1.TextLabel, { text: captionText, styleTheme: "caption1Regular", colorTheme: colorTheme === 'solid' ? 'sysTextTertiary' : 'sysTextWhite', colorOverride: colorTheme === 'translucent' ? 'ui_cpnt_list_text_caption_03' : undefined, wordBreak: "break_all" })))),
|
|
36
|
+
headerDisplayType === 'ibtn1' && headerIBtn1IconName && (react_1.default.createElement(IconButton_1.IconButton, { iconName: headerIBtn1IconName, baseSize: "large", baseColorKey: "ui_cpnt_button_fill_base_transparent", iconColorKey: iconColors[colorTheme], iconSize: 24, iconFillType: headerIBtn1IconFillType, onClick: onClickHeaderIBtn1 }))));
|
|
37
37
|
}
|
|
38
38
|
var S_HeaderContentWrapper = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n padding-bottom: ", ";\n padding-left: ", ";\n padding-right: ", ";\n padding-top: ", ";\n"], ["\n align-items: center;\n display: flex;\n padding-bottom: ", ";\n padding-left: ", ";\n padding-right: ", ";\n padding-top: ", ";\n"])), function (_a) {
|
|
39
39
|
var theme = _a.theme;
|
|
@@ -166,7 +166,7 @@ function Dropdown(_a) {
|
|
|
166
166
|
return (react_1.default.createElement(S_Dropdown, { className: "container", size: size, tabIndex: 0, onBlur: handleBlur, responsiveMode: responsiveMode, customWidth: customWidth },
|
|
167
167
|
react_1.default.createElement(S_Select, { size: size, onClick: handleClick, isFocused: isFocused, state: state, colorTheme: colorTheme, responsiveMode: responsiveMode, customWidth: customWidth },
|
|
168
168
|
react_1.default.createElement(S_TextLabel, { size: size, responsiveMode: responsiveMode },
|
|
169
|
-
react_1.default.createElement(TextLabel_1.TextLabel, { text: (selectedValue === null || selectedValue === void 0 ? void 0 : selectedValue.text) || hintText, styleTheme: "form2Regular", singleLineMode: "use", colorTheme: getTextColorTheme(), colorOverride: getTextColorOverride(), ellipsisMode: "use", lineLimit: 1, wordBreak: "break_all" })),
|
|
169
|
+
react_1.default.createElement(TextLabel_1.TextLabel, { text: (selectedValue === null || selectedValue === void 0 ? void 0 : selectedValue.text) || (value === null || value === void 0 ? void 0 : value.text) || (defaultValue === null || defaultValue === void 0 ? void 0 : defaultValue.text) || hintText, styleTheme: "form2Regular", singleLineMode: "use", colorTheme: getTextColorTheme(), colorOverride: getTextColorOverride(), ellipsisMode: "use", lineLimit: 1, wordBreak: "break_all" })),
|
|
170
170
|
react_1.default.createElement(hybrid_1.Icon, { size: 16, fillType: "line", iconName: isFocused ? 'ic_arrow_up' : 'ic_arrow_down', colorKey: getIconColorKey() }),
|
|
171
171
|
react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_d", spacingType: "width" })),
|
|
172
172
|
isFocused && (react_1.default.createElement(S_ContextMenuWrapper, null,
|
|
@@ -23,7 +23,7 @@ export declare type TextFieldProps = {
|
|
|
23
23
|
iBtn2IconName?: FillIconNameKeys | LineIconNameKeys;
|
|
24
24
|
iBtn1IconFillType?: 'line' | 'fill';
|
|
25
25
|
iBtn2IconFillType?: 'line' | 'fill';
|
|
26
|
-
colorTheme?: 'none' | 'dark';
|
|
26
|
+
colorTheme?: 'none' | 'dark' | 'transparent';
|
|
27
27
|
max?: number;
|
|
28
28
|
maxLength?: number;
|
|
29
29
|
min?: number;
|
|
@@ -32,16 +32,21 @@ var IconButton_1 = require("../IconButton");
|
|
|
32
32
|
function TextField(_a) {
|
|
33
33
|
var _b;
|
|
34
34
|
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
|
|
35
|
+
var basicThemeIconColors = {
|
|
36
36
|
normal: 'ui_cpnt_button_icon_default',
|
|
37
37
|
read_only: 'ui_cpnt_button_icon_default',
|
|
38
38
|
disabled: 'ui_cpnt_button_icon_disabled'
|
|
39
39
|
};
|
|
40
|
-
var
|
|
40
|
+
var darkThemeIconColors = {
|
|
41
41
|
normal: 'ui_cpnt_textfield_icon_darktheme_default',
|
|
42
42
|
read_only: 'ui_cpnt_textfield_icon_darktheme_default',
|
|
43
43
|
disabled: 'ui_cpnt_textfield_icon_darktheme_disabled'
|
|
44
44
|
};
|
|
45
|
+
var transparentThemeIconColors = {
|
|
46
|
+
normal: 'ui_cpnt_textfield_icon_colortheme_transparent_default',
|
|
47
|
+
read_only: 'ui_cpnt_textfield_icon_colortheme_transparent_readonly',
|
|
48
|
+
disabled: 'ui_cpnt_textfield_icon_colortheme_transparent_disabled'
|
|
49
|
+
};
|
|
45
50
|
var _s = (0, react_1.useState)(false), isFocused = _s[0], setIsFocused = _s[1];
|
|
46
51
|
var _t = (0, react_hook_form_1.useFormContext)(), register = _t.register, trigger = _t.trigger, errors = _t.formState.errors;
|
|
47
52
|
var _u = register(name, validation), validateOnChange = _u.onChange, validateOnBlur = _u.onBlur;
|
|
@@ -100,18 +105,31 @@ function TextField(_a) {
|
|
|
100
105
|
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 }));
|
|
101
106
|
}
|
|
102
107
|
if (textLineType === 'single') {
|
|
108
|
+
var deleteIconColor = 'ui_cpnt_button_icon_disabled';
|
|
109
|
+
switch (colorTheme) {
|
|
110
|
+
case 'dark': {
|
|
111
|
+
deleteIconColor = 'ui_cpnt_textfield_icon_darktheme_disabled';
|
|
112
|
+
break;
|
|
113
|
+
}
|
|
114
|
+
case 'transparent': {
|
|
115
|
+
deleteIconColor = 'ui_cpnt_textfield_icon_colortheme_transparent_disabled';
|
|
116
|
+
break;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
103
119
|
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
104
|
-
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, isFocused: isFocused, autoComplete: autoComplete, onFocus: handleFocus, onTarget: handleTarget, onChange: handleChange, onBlur: handleBlur, onKeyUp: handleKeyUp }),
|
|
120
|
+
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 }),
|
|
105
121
|
react_1.default.createElement(S_IconBox, null,
|
|
106
122
|
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 &&
|
|
107
123
|
{
|
|
108
|
-
none:
|
|
109
|
-
dark:
|
|
124
|
+
none: basicThemeIconColors[state],
|
|
125
|
+
dark: darkThemeIconColors[state],
|
|
126
|
+
transparent: transparentThemeIconColors[state]
|
|
110
127
|
}[colorTheme], iconFillType: iBtn2IconFillType === 'fill' ? 'fill' : 'line', state: state === 'disabled' ? 'disabled' : 'normal', onClick: handleClickIBtn2 })),
|
|
111
128
|
iBtn1IconName && (react_1.default.createElement(IconButton_1.IconButton, { iconName: iBtn1IconName, baseSize: "small", shapeType: "rectangle", baseColorKey: "ui_cpnt_button_fill_base_transparent", iconSize: size === 'large' || size === 'rlarge' ? 20 : 16, iconColorKey: colorTheme &&
|
|
112
129
|
{
|
|
113
|
-
none:
|
|
114
|
-
dark:
|
|
130
|
+
none: basicThemeIconColors[state],
|
|
131
|
+
dark: darkThemeIconColors[state],
|
|
132
|
+
transparent: transparentThemeIconColors[state]
|
|
115
133
|
}[colorTheme], iconFillType: iBtn1IconFillType === 'fill' ? 'fill' : 'line', state: state === 'disabled' ? 'disabled' : 'normal', onClick: handleClickIBtn1 })))));
|
|
116
134
|
}
|
|
117
135
|
};
|
|
@@ -227,7 +245,32 @@ var dark_disabled = (0, styled_components_1.css)(templateObject_12 || (templateO
|
|
|
227
245
|
var theme = _a.theme;
|
|
228
246
|
return theme.ui_cpnt_textfield_border_darktheme_normal;
|
|
229
247
|
});
|
|
230
|
-
var
|
|
248
|
+
var transparent_normal = (0, styled_components_1.css)(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n background-color: ", ";\n border: solid 2px\n ", ";\n"], ["\n background-color: ", ";\n border: solid 2px\n ", ";\n"])), function (_a) {
|
|
249
|
+
var theme = _a.theme;
|
|
250
|
+
return theme.ui_cpnt_textfield_base_colortheme_transparent_normal;
|
|
251
|
+
}, function (_a) {
|
|
252
|
+
var theme = _a.theme, isError = _a.isError, isFocused = _a.isFocused;
|
|
253
|
+
if (isError)
|
|
254
|
+
return theme.ui_cpnt_textfield_border_colortheme_transparent_error;
|
|
255
|
+
if (isFocused)
|
|
256
|
+
return theme.ui_cpnt_textfield_border_colortheme_transparent_focus;
|
|
257
|
+
return theme.ui_cpnt_textfield_border_colortheme_transparent_normal;
|
|
258
|
+
});
|
|
259
|
+
var transparent_read_only = (0, styled_components_1.css)(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n background-color: ", ";\n border: solid 2px ", ";\n"], ["\n background-color: ", ";\n border: solid 2px ", ";\n"])), function (_a) {
|
|
260
|
+
var theme = _a.theme;
|
|
261
|
+
return theme.ui_cpnt_textfield_base_colortheme_transparent_readonly;
|
|
262
|
+
}, function (_a) {
|
|
263
|
+
var theme = _a.theme;
|
|
264
|
+
return theme.ui_cpnt_textfield_border_colortheme_transparent_readonly;
|
|
265
|
+
});
|
|
266
|
+
var transparent_disabled = (0, styled_components_1.css)(templateObject_15 || (templateObject_15 = __makeTemplateObject(["\n background-color: ", ";\n border: solid 2px ", ";\n"], ["\n background-color: ", ";\n border: solid 2px ", ";\n"])), function (_a) {
|
|
267
|
+
var theme = _a.theme;
|
|
268
|
+
return theme.ui_cpnt_textfield_base_colortheme_transparent_disabled;
|
|
269
|
+
}, function (_a) {
|
|
270
|
+
var theme = _a.theme;
|
|
271
|
+
return theme.ui_cpnt_textfield_border_colortheme_transparent_disabled;
|
|
272
|
+
});
|
|
273
|
+
var S_TextFieldWrapper = styled_components_1.default.div(templateObject_16 || (templateObject_16 = __makeTemplateObject(["\n align-items: center;\n border-radius: 14px;\n box-sizing: border-box;\n cursor: ", ";\n display: flex;\n ", ";\n ", ";\n ", ";\n ", "\n"], ["\n align-items: center;\n border-radius: 14px;\n box-sizing: border-box;\n cursor: ", ";\n display: flex;\n ", ";\n ", ";\n ", ";\n ", "\n"])), function (_a) {
|
|
231
274
|
var state = _a.state;
|
|
232
275
|
return (state === 'disabled' ? 'not-allowed' : 'text');
|
|
233
276
|
}, function (_a) {
|
|
@@ -241,22 +284,23 @@ var S_TextFieldWrapper = styled_components_1.default.div(templateObject_13 || (t
|
|
|
241
284
|
}[size];
|
|
242
285
|
}, function (_a) {
|
|
243
286
|
var state = _a.state, colorTheme = _a.colorTheme;
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
}
|
|
287
|
+
if (state) {
|
|
288
|
+
switch (colorTheme) {
|
|
289
|
+
case 'none': {
|
|
290
|
+
return { normal: normal, read_only: read_only, disabled: disabled }[state];
|
|
291
|
+
}
|
|
292
|
+
case 'dark': {
|
|
293
|
+
return { normal: dark_normal, read_only: dark_read_only, disabled: dark_disabled }[state];
|
|
294
|
+
}
|
|
295
|
+
case 'transparent': {
|
|
296
|
+
return {
|
|
297
|
+
normal: transparent_normal,
|
|
298
|
+
read_only: transparent_read_only,
|
|
299
|
+
disabled: transparent_disabled
|
|
300
|
+
}[state];
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
}
|
|
260
304
|
}, function (_a) {
|
|
261
305
|
var responsiveMode = _a.responsiveMode;
|
|
262
306
|
return responsiveMode === 'use' && 'width: 100%';
|
|
@@ -264,12 +308,18 @@ var S_TextFieldWrapper = styled_components_1.default.div(templateObject_13 || (t
|
|
|
264
308
|
var customWidth = _a.customWidth;
|
|
265
309
|
return customWidth && "width: " + customWidth + ";";
|
|
266
310
|
});
|
|
267
|
-
var S_IconBox = styled_components_1.default.div(
|
|
268
|
-
var S_Error = styled_components_1.default.div(
|
|
311
|
+
var S_IconBox = styled_components_1.default.div(templateObject_17 || (templateObject_17 = __makeTemplateObject(["\n display: flex;\n"], ["\n display: flex;\n"])));
|
|
312
|
+
var S_Error = styled_components_1.default.div(templateObject_18 || (templateObject_18 = __makeTemplateObject(["\n color: ", ";\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n margin-top: ", ";\n text-align: left;\n white-space: pre-wrap;\n"], ["\n color: ", ";\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n margin-top: ", ";\n text-align: left;\n white-space: pre-wrap;\n"])), function (_a) {
|
|
269
313
|
var theme = _a.theme, colorTheme = _a.colorTheme;
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
314
|
+
switch (colorTheme) {
|
|
315
|
+
case 'none': {
|
|
316
|
+
return theme.ui_cpnt_textfield_text_error;
|
|
317
|
+
}
|
|
318
|
+
case 'dark':
|
|
319
|
+
case 'transparent': {
|
|
320
|
+
return theme.ui_cpnt_textfield_text_colortheme_transparent_error;
|
|
321
|
+
}
|
|
322
|
+
}
|
|
273
323
|
}, function (_a) {
|
|
274
324
|
var theme = _a.theme;
|
|
275
325
|
return theme.desktopFontSize.caption2;
|
|
@@ -284,4 +334,4 @@ var S_Error = styled_components_1.default.div(templateObject_15 || (templateObje
|
|
|
284
334
|
return theme.spacing.spacingA;
|
|
285
335
|
});
|
|
286
336
|
exports.default = TextField;
|
|
287
|
-
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15;
|
|
337
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15, templateObject_16, templateObject_17, templateObject_18;
|
|
@@ -16,7 +16,7 @@ export declare type TextFieldBaseProps = {
|
|
|
16
16
|
autoMaxRows?: number;
|
|
17
17
|
inputType?: string;
|
|
18
18
|
state?: 'normal' | 'read_only' | 'disabled';
|
|
19
|
-
colorTheme?: 'none' | 'dark';
|
|
19
|
+
colorTheme?: 'none' | 'dark' | 'transparent';
|
|
20
20
|
min?: number;
|
|
21
21
|
max?: number;
|
|
22
22
|
maxLength?: number;
|
|
@@ -194,7 +194,8 @@ var read_only = (0, styled_components_1.css)(templateObject_2 || (templateObject
|
|
|
194
194
|
return colorTheme &&
|
|
195
195
|
{
|
|
196
196
|
none: theme.ui_cpnt_textfield_text_disabled,
|
|
197
|
-
dark: theme.ui_cpnt_textfield_text_darktheme_disabled
|
|
197
|
+
dark: theme.ui_cpnt_textfield_text_darktheme_disabled,
|
|
198
|
+
transparent: theme.ui_cpnt_textfield_text_colortheme_transparent_readonly
|
|
198
199
|
}[colorTheme];
|
|
199
200
|
});
|
|
200
201
|
var disabled = (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n color: ", ";\n pointer-events: none;\n"], ["\n color: ", ";\n pointer-events: none;\n"])), function (_a) {
|
|
@@ -202,7 +203,8 @@ var disabled = (0, styled_components_1.css)(templateObject_3 || (templateObject_
|
|
|
202
203
|
return colorTheme &&
|
|
203
204
|
{
|
|
204
205
|
none: theme.ui_cpnt_textfield_text_disabled,
|
|
205
|
-
dark: theme.ui_cpnt_textfield_text_darktheme_disabled
|
|
206
|
+
dark: theme.ui_cpnt_textfield_text_darktheme_disabled,
|
|
207
|
+
transparent: theme.ui_cpnt_textfield_text_colortheme_transparent_disabled
|
|
206
208
|
}[colorTheme];
|
|
207
209
|
});
|
|
208
210
|
var basicStyle = (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n display: inline-flex;\n justify-content: center;\n background-color: transparent;\n border: none;\n box-sizing: border-box;\n color: ", ";\n font-size: ", ";\n font-weight: ", ";\n height: 100%;\n line-height: ", ";\n outline: 0;\n overflow: hidden;\n padding: 0;\n width: 100%;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n &::placeholder {\n color: ", ";\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n }\n\n ", ";\n ", "\n"], ["\n display: inline-flex;\n justify-content: center;\n background-color: transparent;\n border: none;\n box-sizing: border-box;\n color: ", ";\n font-size: ", ";\n font-weight: ", ";\n height: 100%;\n line-height: ", ";\n outline: 0;\n overflow: hidden;\n padding: 0;\n width: 100%;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n &::placeholder {\n color: ", ";\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n }\n\n ", ";\n ", "\n"])), function (_a) {
|
|
@@ -210,7 +212,8 @@ var basicStyle = (0, styled_components_1.css)(templateObject_4 || (templateObjec
|
|
|
210
212
|
return colorTheme &&
|
|
211
213
|
{
|
|
212
214
|
none: theme.ui_cpnt_textfield_text_typed,
|
|
213
|
-
dark: theme.ui_cpnt_textfield_text_darktheme_enabled
|
|
215
|
+
dark: theme.ui_cpnt_textfield_text_darktheme_enabled,
|
|
216
|
+
transparent: theme.ui_cpnt_textfield_text_colortheme_transparent_enabled
|
|
214
217
|
}[colorTheme];
|
|
215
218
|
}, function (_a) {
|
|
216
219
|
var textSize = _a.textSize;
|
|
@@ -226,7 +229,8 @@ var basicStyle = (0, styled_components_1.css)(templateObject_4 || (templateObjec
|
|
|
226
229
|
return colorTheme &&
|
|
227
230
|
{
|
|
228
231
|
none: theme.ui_cpnt_textfield_text_hint,
|
|
229
|
-
dark: theme.ui_cpnt_textfield_text_darktheme_hint
|
|
232
|
+
dark: theme.ui_cpnt_textfield_text_darktheme_hint,
|
|
233
|
+
transparent: theme.ui_cpnt_textfield_text_colortheme_transparent_hint
|
|
230
234
|
}[colorTheme];
|
|
231
235
|
}, function (_a) {
|
|
232
236
|
var textSize = _a.textSize;
|
|
@@ -8,7 +8,7 @@ declare type Props = {
|
|
|
8
8
|
hoverMode?: 'none' | 'use';
|
|
9
9
|
contextMenuOptionArray?: PDSValueOption[];
|
|
10
10
|
contextMenuState?: 'normal' | 'disabled';
|
|
11
|
-
colorTheme?: 'seller' | 'subscriber';
|
|
11
|
+
colorTheme?: 'seller' | 'subscriber' | 'seller_transparent' | 'subscriber_transparent';
|
|
12
12
|
onClickContextMenuItem?: (option: PDSValueOption) => void;
|
|
13
13
|
};
|
|
14
14
|
declare function BasicChatListItem({ titleText, contentText, leftImageMode, imageSrc, hoverMode, contextMenuOptionArray, onClickContextMenuItem, contextMenuState, colorTheme }: Props): JSX.Element;
|
|
@@ -36,11 +36,15 @@ var TextLabel_1 = require("../TextLabel");
|
|
|
36
36
|
var Popup_1 = require("./Popup");
|
|
37
37
|
var titleTextColors = {
|
|
38
38
|
seller: 'usrTextBrandPrimary',
|
|
39
|
-
subscriber: 'sysTextSecondary'
|
|
39
|
+
subscriber: 'sysTextSecondary',
|
|
40
|
+
seller_transparent: 'usrTextBrandPrimary',
|
|
41
|
+
subscriber_transparent: 'sysTextWhite'
|
|
40
42
|
};
|
|
41
43
|
var backgroundColorTheme = {
|
|
42
44
|
seller: 'ui_cpnt_list_base_area_seller',
|
|
43
|
-
subscriber: 'ui_cpnt_list_base_area'
|
|
45
|
+
subscriber: 'ui_cpnt_list_base_area',
|
|
46
|
+
seller_transparent: 'ui_cpnt_list_base_area_transparent_seller',
|
|
47
|
+
subscriber_transparent: 'ui_cpnt_list_base_area_transparent'
|
|
44
48
|
};
|
|
45
49
|
function BasicChatListItem(_a) {
|
|
46
50
|
var titleText = _a.titleText, contentText = _a.contentText, _b = _a.leftImageMode, leftImageMode = _b === void 0 ? 'none' : _b, imageSrc = _a.imageSrc, _c = _a.hoverMode, hoverMode = _c === void 0 ? 'use' : _c, contextMenuOptionArray = _a.contextMenuOptionArray, onClickContextMenuItem = _a.onClickContextMenuItem, _d = _a.contextMenuState, contextMenuState = _d === void 0 ? 'normal' : _d, _e = _a.colorTheme, colorTheme = _e === void 0 ? 'subscriber' : _e;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { Props as ChatListProps } from './ChatList';
|
|
3
|
-
declare const Body: React.ForwardRefExoticComponent<Pick<ChatListProps, "children" | "scrollVisibleType" | "bodyMBtnText" | "bodySpacingMode"> & {
|
|
3
|
+
declare const Body: React.ForwardRefExoticComponent<Pick<ChatListProps, "children" | "scrollVisibleType" | "bodyMBtnText" | "bodySpacingMode" | "bodyChildren"> & {
|
|
4
4
|
isSubmitted: boolean;
|
|
5
5
|
callBackAfterScrollToBottom: () => void;
|
|
6
6
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -31,7 +31,7 @@ var styled_components_1 = __importStar(require("styled-components"));
|
|
|
31
31
|
var MainButton_1 = require("../MainButton");
|
|
32
32
|
var useAutoScrollToBottom_1 = __importDefault(require("./useAutoScrollToBottom"));
|
|
33
33
|
var Body = react_1.default.forwardRef(function (_a, ref) {
|
|
34
|
-
var scrollVisibleType = _a.scrollVisibleType, children = _a.children, isSubmitted = _a.isSubmitted, bodyMBtnText = _a.bodyMBtnText, bodySpacingMode = _a.bodySpacingMode, callBackAfterScrollToBottom = _a.callBackAfterScrollToBottom;
|
|
34
|
+
var bodyChildren = _a.bodyChildren, scrollVisibleType = _a.scrollVisibleType, children = _a.children, isSubmitted = _a.isSubmitted, bodyMBtnText = _a.bodyMBtnText, bodySpacingMode = _a.bodySpacingMode, callBackAfterScrollToBottom = _a.callBackAfterScrollToBottom;
|
|
35
35
|
var _b = (0, react_1.useState)(false), isButtonShow = _b[0], setIsButtonShow = _b[1];
|
|
36
36
|
var _c = (0, useAutoScrollToBottom_1.default)(), triggerScrollToBottom = _c.triggerScrollToBottom, EndOfList = _c.EndOfList;
|
|
37
37
|
/**
|
|
@@ -74,6 +74,7 @@ var Body = react_1.default.forwardRef(function (_a, ref) {
|
|
|
74
74
|
react_1.default.createElement(S_ChatMessageBox, { onScroll: handleScroll, ref: ref, scrollVisibleType: scrollVisibleType },
|
|
75
75
|
children,
|
|
76
76
|
react_1.default.createElement(EndOfList, null)),
|
|
77
|
+
bodyChildren,
|
|
77
78
|
isButtonShow && (react_1.default.createElement(S_BottomButtonWrapper, null,
|
|
78
79
|
react_1.default.createElement(MainButton_1.MainButton, { text: bodyMBtnText, size: "small", onClick: handleClickMBtn })))));
|
|
79
80
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FillIconNameKeys, LineIconNameKeys, PDSTextType } from '../../../common';
|
|
3
3
|
export declare type Props = {
|
|
4
|
-
|
|
4
|
+
colorTheme?: 'solid' | 'translucent' | 'transparent';
|
|
5
5
|
headerMode?: 'none' | 'use';
|
|
6
6
|
titleText?: PDSTextType;
|
|
7
7
|
descText?: PDSTextType;
|
|
@@ -11,6 +11,7 @@ export declare type Props = {
|
|
|
11
11
|
headerIBtn1IconName?: FillIconNameKeys | LineIconNameKeys;
|
|
12
12
|
headerIBtn1IconFillType?: 'line' | 'fill';
|
|
13
13
|
children?: React.ReactNode;
|
|
14
|
+
bodyChildren?: React.ReactNode;
|
|
14
15
|
textFieldState?: 'normal' | 'read_only' | 'disabled';
|
|
15
16
|
textFieldHintText?: PDSTextType;
|
|
16
17
|
textFieldDefaultText?: PDSTextType;
|
|
@@ -47,10 +47,10 @@ var Header_1 = __importDefault(require("./Header"));
|
|
|
47
47
|
var baseBackgroundColors = {
|
|
48
48
|
solid: 'ui_cpnt_list_base_area_solid',
|
|
49
49
|
translucent: 'ui_cpnt_list_base_area_translucent',
|
|
50
|
-
transparent: '
|
|
50
|
+
transparent: 'ui_cpnt_list_base_area_transparent'
|
|
51
51
|
};
|
|
52
52
|
var ChatList = react_1.default.forwardRef(function (_a, ref) {
|
|
53
|
-
var _b = _a.
|
|
53
|
+
var _b = _a.colorTheme, colorTheme = _b === void 0 ? 'solid' : _b, _c = _a.headerMode, headerMode = _c === void 0 ? 'use' : _c, titleText = _a.titleText, descText = _a.descText, captionText = _a.captionText, _d = _a.titleStyleTheme, titleStyleTheme = _d === void 0 ? 'subTitleBold' : _d, _e = _a.headerDisplayType, headerDisplayType = _e === void 0 ? 'none' : _e, _f = _a.headerIBtn1IconName, headerIBtn1IconName = _f === void 0 ? 'ic_xmark' : _f, _g = _a.headerIBtn1IconFillType, headerIBtn1IconFillType = _g === void 0 ? 'line' : _g, children = _a.children, bodyChildren = _a.bodyChildren, _h = _a.textFieldState, textFieldState = _h === void 0 ? 'normal' : _h, textFieldHintText = _a.textFieldHintText, textFieldDefaultText = _a.textFieldDefaultText, textFieldMaxLength = _a.textFieldMaxLength, _j = _a.scrollVisibleType, scrollVisibleType = _j === void 0 ? 'moving' : _j, footerChildren = _a.footerChildren, _k = _a.submitIBtnState, submitIBtnState = _k === void 0 ? 'normal' : _k, bodyMBtnText = _a.bodyMBtnText, _l = _a.bodySpacingMode, bodySpacingMode = _l === void 0 ? 'none' : _l, onSubmit = _a.onSubmit, onClickHeaderIBtn1 = _a.onClickHeaderIBtn1, submitIBtnIconName = _a.submitIBtnIconName, submitIBtnIconFillType = _a.submitIBtnIconFillType, _m = _a.footerIBtn1State, footerIBtn1State = _m === void 0 ? 'normal' : _m, footerIBtn1IconName = _a.footerIBtn1IconName, footerIBtn1IconFillType = _a.footerIBtn1IconFillType, _o = _a.footerIBtn1Type, footerIBtn1Type = _o === void 0 ? 'button' : _o, onClickFooterIBtn1 = _a.onClickFooterIBtn1, _p = _a.footerIBtn2State, footerIBtn2State = _p === void 0 ? 'normal' : _p, footerIBtn2IconName = _a.footerIBtn2IconName, footerIBtn2IconFillType = _a.footerIBtn2IconFillType, _q = _a.footerIBtn2Type, footerIBtn2Type = _q === void 0 ? 'button' : _q, onClickFooterIBtn2 = _a.onClickFooterIBtn2, _r = _a.footerIBtn3State, footerIBtn3State = _r === void 0 ? 'normal' : _r, footerIBtn3IconName = _a.footerIBtn3IconName, footerIBtn3IconFillType = _a.footerIBtn3IconFillType, _s = _a.footerIBtn3Type, footerIBtn3Type = _s === void 0 ? 'button' : _s, footerIBtn3Accept = _a.footerIBtn3Accept, onClickFooterIBtn3 = _a.onClickFooterIBtn3;
|
|
54
54
|
var methods = (0, react_hook_form_1.useForm)({
|
|
55
55
|
mode: 'onChange',
|
|
56
56
|
defaultValues: {
|
|
@@ -85,16 +85,16 @@ var ChatList = react_1.default.forwardRef(function (_a, ref) {
|
|
|
85
85
|
var callBackAfterScrollToBottom = function () {
|
|
86
86
|
reset();
|
|
87
87
|
};
|
|
88
|
-
return (react_1.default.createElement(S_ChatList, { backgroundColor: baseBackgroundColors[
|
|
88
|
+
return (react_1.default.createElement(S_ChatList, { backgroundColor: baseBackgroundColors[colorTheme], id: "chatList" },
|
|
89
89
|
headerMode === 'use' && (react_1.default.createElement(react_1.default.Fragment, null,
|
|
90
|
-
react_1.default.createElement(Header_1.default, {
|
|
91
|
-
react_1.default.createElement(hybrid_1.Divider,
|
|
92
|
-
react_1.default.createElement(Body_1.default, { scrollVisibleType: scrollVisibleType, isSubmitted: isSubmitSuccessful, bodyMBtnText: bodyMBtnText, bodySpacingMode: bodySpacingMode, callBackAfterScrollToBottom: callBackAfterScrollToBottom, ref: ref }, children),
|
|
93
|
-
react_1.default.createElement(hybrid_1.Divider,
|
|
90
|
+
react_1.default.createElement(Header_1.default, { colorTheme: colorTheme, titleText: titleText, descText: descText, captionText: captionText, titleStyleTheme: titleStyleTheme, headerDisplayType: headerDisplayType, headerIBtn1IconName: headerIBtn1IconName, headerIBtn1IconFillType: headerIBtn1IconFillType, onClickHeaderIBtn1: onClickHeaderIBtn1 }),
|
|
91
|
+
react_1.default.createElement(hybrid_1.Divider, { colorTheme: colorTheme === 'transparent' ? 'divider1' : 'none' }))),
|
|
92
|
+
react_1.default.createElement(Body_1.default, { scrollVisibleType: scrollVisibleType, isSubmitted: isSubmitSuccessful, bodyMBtnText: bodyMBtnText, bodySpacingMode: bodySpacingMode, callBackAfterScrollToBottom: callBackAfterScrollToBottom, bodyChildren: bodyChildren, ref: ref }, children),
|
|
93
|
+
react_1.default.createElement(hybrid_1.Divider, { colorTheme: colorTheme === 'transparent' ? 'divider1' : 'none' }),
|
|
94
94
|
react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_d" }),
|
|
95
95
|
react_1.default.createElement(react_hook_form_1.FormProvider, __assign({}, methods),
|
|
96
96
|
react_1.default.createElement("form", { onSubmit: handleSubmit(handleSubmitChat) },
|
|
97
|
-
react_1.default.createElement(Footer_1.default, { textFieldDefaultText: textFieldDefaultText, textFieldHintText: textFieldHintText, textFieldState: textFieldState, textFieldMaxLength: textFieldMaxLength, footerChildren: footerChildren, isSubmitBtnActive: isSubmitButtonActive, submitIBtnIconName: submitIBtnIconName, submitIBtnIconFillType: submitIBtnIconFillType, footerIBtn1State: footerIBtn1State, footerIBtn1IconName: footerIBtn1IconName, footerIBtn1IconFillType: footerIBtn1IconFillType, footerIBtn1Type: footerIBtn1Type, onClickFooterIBtn1: onClickFooterIBtn1, footerIBtn2State: footerIBtn2State, footerIBtn2IconName: footerIBtn2IconName, footerIBtn2IconFillType: footerIBtn2IconFillType, footerIBtn2Type: footerIBtn2Type, onClickFooterIBtn2: onClickFooterIBtn2, footerIBtn3State: footerIBtn3State, footerIBtn3IconName: footerIBtn3IconName, footerIBtn3IconFillType: footerIBtn3IconFillType, footerIBtn3Type: footerIBtn3Type, footerIBtn3Accept: footerIBtn3Accept, onClickFooterIBtn3: onClickFooterIBtn3 }))),
|
|
97
|
+
react_1.default.createElement(Footer_1.default, { colorTheme: colorTheme, textFieldDefaultText: textFieldDefaultText, textFieldHintText: textFieldHintText, textFieldState: textFieldState, textFieldMaxLength: textFieldMaxLength, footerChildren: footerChildren, isSubmitBtnActive: isSubmitButtonActive, submitIBtnIconName: submitIBtnIconName, submitIBtnIconFillType: submitIBtnIconFillType, footerIBtn1State: footerIBtn1State, footerIBtn1IconName: footerIBtn1IconName, footerIBtn1IconFillType: footerIBtn1IconFillType, footerIBtn1Type: footerIBtn1Type, onClickFooterIBtn1: onClickFooterIBtn1, footerIBtn2State: footerIBtn2State, footerIBtn2IconName: footerIBtn2IconName, footerIBtn2IconFillType: footerIBtn2IconFillType, footerIBtn2Type: footerIBtn2Type, onClickFooterIBtn2: onClickFooterIBtn2, footerIBtn3State: footerIBtn3State, footerIBtn3IconName: footerIBtn3IconName, footerIBtn3IconFillType: footerIBtn3IconFillType, footerIBtn3Type: footerIBtn3Type, footerIBtn3Accept: footerIBtn3Accept, onClickFooterIBtn3: onClickFooterIBtn3 }))),
|
|
98
98
|
react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_d" })));
|
|
99
99
|
});
|
|
100
100
|
var S_ChatList = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n background-color: ", ";\n display: flex;\n flex-direction: column;\n height: 100%;\n"], ["\n background-color: ", ";\n display: flex;\n flex-direction: column;\n height: 100%;\n"])), function (_a) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FillIconNameKeys, LineIconNameKeys } from '../../../common';
|
|
3
3
|
import type { Props as ChatListProps } from './ChatList';
|
|
4
|
-
declare type Props = Pick<ChatListProps, 'textFieldDefaultText' | 'textFieldHintText' | 'textFieldState' | 'textFieldMaxLength' | 'footerIBtn3Accept'> & {
|
|
4
|
+
declare type Props = Pick<ChatListProps, 'textFieldDefaultText' | 'textFieldHintText' | 'textFieldState' | 'textFieldMaxLength' | 'footerIBtn3Accept' | 'colorTheme'> & {
|
|
5
5
|
isSubmitBtnActive?: boolean;
|
|
6
6
|
submitIBtnIconName?: FillIconNameKeys | LineIconNameKeys;
|
|
7
7
|
submitIBtnIconFillType?: 'fill' | 'line';
|
|
@@ -21,5 +21,5 @@ declare type Props = Pick<ChatListProps, 'textFieldDefaultText' | 'textFieldHint
|
|
|
21
21
|
footerIBtn3Type?: 'button' | 'upload';
|
|
22
22
|
onClickFooterIBtn3?: (e: React.ChangeEvent<HTMLInputElement> | React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
23
23
|
};
|
|
24
|
-
declare function ChatTextField({ textFieldDefaultText, textFieldHintText, textFieldState, textFieldMaxLength, isSubmitBtnActive, submitIBtnIconName, submitIBtnIconFillType, footerIBtn1State, footerIBtn1IconName, footerIBtn1IconFillType, footerIBtn1Type, onClickFooterIBtn1, footerIBtn2State, footerIBtn2IconName, footerIBtn2IconFillType, footerIBtn2Type, onClickFooterIBtn2, footerIBtn3State, footerIBtn3IconName, footerIBtn3IconFillType, footerIBtn3Type, footerIBtn3Accept, onClickFooterIBtn3 }: Props): JSX.Element;
|
|
24
|
+
declare function ChatTextField({ colorTheme, textFieldDefaultText, textFieldHintText, textFieldState, textFieldMaxLength, isSubmitBtnActive, submitIBtnIconName, submitIBtnIconFillType, footerIBtn1State, footerIBtn1IconName, footerIBtn1IconFillType, footerIBtn1Type, onClickFooterIBtn1, footerIBtn2State, footerIBtn2IconName, footerIBtn2IconFillType, footerIBtn2Type, onClickFooterIBtn2, footerIBtn3State, footerIBtn3IconName, footerIBtn3IconFillType, footerIBtn3Type, footerIBtn3Accept, onClickFooterIBtn3 }: Props): JSX.Element;
|
|
25
25
|
export default ChatTextField;
|
|
@@ -13,7 +13,7 @@ var IconButton_1 = require("../IconButton");
|
|
|
13
13
|
var TextField_1 = require("../TextField");
|
|
14
14
|
var UploadIconButton_1 = require("../UploadIconButton");
|
|
15
15
|
function ChatTextField(_a) {
|
|
16
|
-
var textFieldDefaultText = _a.textFieldDefaultText, textFieldHintText = _a.textFieldHintText, textFieldState = _a.textFieldState, textFieldMaxLength = _a.textFieldMaxLength, isSubmitBtnActive = _a.isSubmitBtnActive, _b = _a.submitIBtnIconName, submitIBtnIconName = _b === void 0 ? 'ic_paper_plane' : _b, _c = _a.submitIBtnIconFillType, submitIBtnIconFillType = _c === void 0 ? 'fill' : _c, footerIBtn1State = _a.footerIBtn1State, footerIBtn1IconName = _a.footerIBtn1IconName, footerIBtn1IconFillType = _a.footerIBtn1IconFillType, footerIBtn1Type = _a.footerIBtn1Type, onClickFooterIBtn1 = _a.onClickFooterIBtn1, footerIBtn2State = _a.footerIBtn2State, footerIBtn2IconName = _a.footerIBtn2IconName, footerIBtn2IconFillType = _a.footerIBtn2IconFillType, footerIBtn2Type = _a.footerIBtn2Type, onClickFooterIBtn2 = _a.onClickFooterIBtn2, footerIBtn3State = _a.footerIBtn3State, footerIBtn3IconName = _a.footerIBtn3IconName, footerIBtn3IconFillType = _a.footerIBtn3IconFillType, footerIBtn3Type = _a.footerIBtn3Type, footerIBtn3Accept = _a.footerIBtn3Accept, onClickFooterIBtn3 = _a.onClickFooterIBtn3;
|
|
16
|
+
var colorTheme = _a.colorTheme, textFieldDefaultText = _a.textFieldDefaultText, textFieldHintText = _a.textFieldHintText, textFieldState = _a.textFieldState, textFieldMaxLength = _a.textFieldMaxLength, isSubmitBtnActive = _a.isSubmitBtnActive, _b = _a.submitIBtnIconName, submitIBtnIconName = _b === void 0 ? 'ic_paper_plane' : _b, _c = _a.submitIBtnIconFillType, submitIBtnIconFillType = _c === void 0 ? 'fill' : _c, footerIBtn1State = _a.footerIBtn1State, footerIBtn1IconName = _a.footerIBtn1IconName, footerIBtn1IconFillType = _a.footerIBtn1IconFillType, footerIBtn1Type = _a.footerIBtn1Type, onClickFooterIBtn1 = _a.onClickFooterIBtn1, footerIBtn2State = _a.footerIBtn2State, footerIBtn2IconName = _a.footerIBtn2IconName, footerIBtn2IconFillType = _a.footerIBtn2IconFillType, footerIBtn2Type = _a.footerIBtn2Type, onClickFooterIBtn2 = _a.onClickFooterIBtn2, footerIBtn3State = _a.footerIBtn3State, footerIBtn3IconName = _a.footerIBtn3IconName, footerIBtn3IconFillType = _a.footerIBtn3IconFillType, footerIBtn3Type = _a.footerIBtn3Type, footerIBtn3Accept = _a.footerIBtn3Accept, onClickFooterIBtn3 = _a.onClickFooterIBtn3;
|
|
17
17
|
var chatValidation = {
|
|
18
18
|
validate: function (value) {
|
|
19
19
|
if (!value)
|
|
@@ -34,7 +34,7 @@ function ChatTextField(_a) {
|
|
|
34
34
|
? 'ui_cpnt_button_icon_primary'
|
|
35
35
|
: 'ui_cpnt_button_icon_disabled', iconFillType: footerIBtn2IconFillType, iconSize: 24, state: footerIBtn2State, onClick: onClickFooterIBtn2 })))),
|
|
36
36
|
react_1.default.createElement(S_TextFieldWrapper, null,
|
|
37
|
-
react_1.default.createElement(TextField_1.TextField, { name: "chat", responsiveMode: "use", textLineType: "single", inputType: "text", hintText: textFieldHintText, defaultText: textFieldDefaultText, validation: chatValidation, maxLength: textFieldMaxLength, enterSubmitMode: "use", validationPoint: "onChange", state: textFieldState, autoComplete: "off" })),
|
|
37
|
+
react_1.default.createElement(TextField_1.TextField, { name: "chat", responsiveMode: "use", textLineType: "single", inputType: "text", hintText: textFieldHintText, defaultText: textFieldDefaultText, validation: chatValidation, maxLength: textFieldMaxLength, colorTheme: colorTheme === 'transparent' ? 'transparent' : 'none', enterSubmitMode: "use", validationPoint: "onChange", state: textFieldState, autoComplete: "off" })),
|
|
38
38
|
footerIBtn1IconName && (react_1.default.createElement(react_1.default.Fragment, null, footerIBtn1Type === 'button' ? (react_1.default.createElement(IconButton_1.IconButton, { iconName: footerIBtn1IconName, baseSize: "large", baseColorKey: "ui_cpnt_button_fill_base_transparent", iconColorKey: footerIBtn1State === 'normal'
|
|
39
39
|
? 'ui_cpnt_button_icon_primary'
|
|
40
40
|
: 'ui_cpnt_button_icon_disabled', iconFillType: footerIBtn1IconFillType, iconSize: 24, state: footerIBtn1State, onClick: onClickFooterIBtn1 })) : (react_1.default.createElement(UploadIconButton_1.UploadIconButton, { iconName: footerIBtn1IconName, baseSize: "large", baseColorKey: "ui_cpnt_button_fill_base_transparent", iconColorKey: footerIBtn1State === 'normal'
|