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
|
@@ -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 display: flex;\n ", ";\n ", ";\n ", ";\n ", "\n"], ["\n align-items: center;\n border-radius: 14px;\n box-sizing: border-box;\n display: flex;\n ", ";\n ", ";\n ", ";\n ", "\n"])), function (_a) {
|
|
231
274
|
var size = _a.size;
|
|
232
275
|
return size &&
|
|
233
276
|
{
|
|
@@ -238,22 +281,23 @@ var S_TextFieldWrapper = styled_components_1.default.div(templateObject_13 || (t
|
|
|
238
281
|
}[size];
|
|
239
282
|
}, function (_a) {
|
|
240
283
|
var state = _a.state, colorTheme = _a.colorTheme;
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
}
|
|
284
|
+
if (state) {
|
|
285
|
+
switch (colorTheme) {
|
|
286
|
+
case 'none': {
|
|
287
|
+
return { normal: normal, read_only: read_only, disabled: disabled }[state];
|
|
288
|
+
}
|
|
289
|
+
case 'dark': {
|
|
290
|
+
return { normal: dark_normal, read_only: dark_read_only, disabled: dark_disabled }[state];
|
|
291
|
+
}
|
|
292
|
+
case 'transparent': {
|
|
293
|
+
return {
|
|
294
|
+
normal: transparent_normal,
|
|
295
|
+
read_only: transparent_read_only,
|
|
296
|
+
disabled: transparent_disabled
|
|
297
|
+
}[state];
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
}
|
|
257
301
|
}, function (_a) {
|
|
258
302
|
var responsiveMode = _a.responsiveMode;
|
|
259
303
|
return responsiveMode === 'use' && 'width: 100%';
|
|
@@ -261,12 +305,18 @@ var S_TextFieldWrapper = styled_components_1.default.div(templateObject_13 || (t
|
|
|
261
305
|
var customWidth = _a.customWidth;
|
|
262
306
|
return customWidth && "width: " + customWidth + ";";
|
|
263
307
|
});
|
|
264
|
-
var S_IconBox = styled_components_1.default.div(
|
|
265
|
-
var S_Error = styled_components_1.default.div(
|
|
308
|
+
var S_IconBox = styled_components_1.default.div(templateObject_17 || (templateObject_17 = __makeTemplateObject(["\n display: flex;\n"], ["\n display: flex;\n"])));
|
|
309
|
+
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) {
|
|
266
310
|
var theme = _a.theme, colorTheme = _a.colorTheme;
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
311
|
+
switch (colorTheme) {
|
|
312
|
+
case 'none': {
|
|
313
|
+
return theme.ui_cpnt_textfield_text_error;
|
|
314
|
+
}
|
|
315
|
+
case 'dark':
|
|
316
|
+
case 'transparent': {
|
|
317
|
+
return theme.ui_cpnt_textfield_text_darktheme_error;
|
|
318
|
+
}
|
|
319
|
+
}
|
|
270
320
|
}, function (_a) {
|
|
271
321
|
var theme = _a.theme;
|
|
272
322
|
return theme.desktopFontSize.caption2;
|
|
@@ -281,4 +331,4 @@ var S_Error = styled_components_1.default.div(templateObject_15 || (templateObje
|
|
|
281
331
|
return theme.spacing.spacingA;
|
|
282
332
|
});
|
|
283
333
|
exports.default = TextField;
|
|
284
|
-
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;
|
|
334
|
+
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;
|
package/package.json
CHANGED
package/release-note.md
CHANGED
|
@@ -1,14 +1,6 @@
|
|
|
1
1
|
# PDS-DEV-KIT-WEB Release Notes
|
|
2
|
-
## [v1.4.
|
|
2
|
+
## [v1.4.64]
|
|
3
3
|
|
|
4
4
|
### Component
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* onMouseDown type 변경
|
|
8
|
-
* TextButton
|
|
9
|
-
* onClick type 변경
|
|
10
|
-
* ImageView
|
|
11
|
-
* ratio에 '3_2'와 '2_3' 추가
|
|
12
|
-
|
|
13
|
-
### Color
|
|
14
|
-
* 컬러 키 값 22.09.29 14시 50분 기준 싱크
|
|
5
|
+
* Dropdown
|
|
6
|
+
* 표시되는 값이 selectedValue, value, defaultValue를 순서대로 검토하여 반영하게 함
|