pds-dev-kit-web 1.4.61 → 1.4.63

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.
Files changed (48) hide show
  1. package/dist/src/common/styles/colorSet/PaletteColor_Dark.json +8 -1
  2. package/dist/src/common/styles/colorSet/PaletteColor_light.json +8 -1
  3. package/dist/src/common/styles/colorSet/UIColor.json +24 -2
  4. package/dist/src/common/styles/colorSet/index.d.ts +96 -60
  5. package/dist/src/common/styles/colorSet/index.js +2 -2
  6. package/dist/src/common/styles/colorSet/ui-type.d.ts +22 -0
  7. package/dist/src/desktop/common/components/TextFieldBase/TextFieldBase.d.ts +1 -1
  8. package/dist/src/desktop/common/components/TextFieldBase/TextFieldBase.js +8 -4
  9. package/dist/src/desktop/components/BasicChatListItem/BasicChatListItem.d.ts +1 -1
  10. package/dist/src/desktop/components/BasicChatListItem/BasicChatListItem.js +6 -2
  11. package/dist/src/desktop/components/ChatList/Body.d.ts +1 -1
  12. package/dist/src/desktop/components/ChatList/Body.js +2 -1
  13. package/dist/src/desktop/components/ChatList/ChatList.d.ts +2 -1
  14. package/dist/src/desktop/components/ChatList/ChatList.js +8 -8
  15. package/dist/src/desktop/components/ChatList/ChatTextField.d.ts +2 -2
  16. package/dist/src/desktop/components/ChatList/ChatTextField.js +2 -2
  17. package/dist/src/desktop/components/ChatList/Footer.d.ts +2 -2
  18. package/dist/src/desktop/components/ChatList/Footer.js +2 -2
  19. package/dist/src/desktop/components/ChatList/Header.d.ts +2 -2
  20. package/dist/src/desktop/components/ChatList/Header.js +5 -5
  21. package/dist/src/desktop/components/FloatingActionButton/FloatingActionButton.d.ts +3 -3
  22. package/dist/src/desktop/components/FloatingActionButton/FloatingActionButton.js +4 -4
  23. package/dist/src/desktop/components/TextButton/TextButton.d.ts +2 -2
  24. package/dist/src/desktop/components/TextButton/TextButton.js +2 -2
  25. package/dist/src/desktop/components/TextField/TextField.d.ts +1 -1
  26. package/dist/src/desktop/components/TextField/TextField.js +80 -30
  27. package/dist/src/hybrid/components/ImageView/ImageView.d.ts +1 -1
  28. package/dist/src/hybrid/components/ImageView/ImageView.js +2 -0
  29. package/dist/src/mobile/common/components/TextFieldBase/TextFieldBase.d.ts +1 -1
  30. package/dist/src/mobile/common/components/TextFieldBase/TextFieldBase.js +8 -4
  31. package/dist/src/mobile/components/BasicChatListItem/BasicChatListItem.d.ts +1 -1
  32. package/dist/src/mobile/components/BasicChatListItem/BasicChatListItem.js +6 -2
  33. package/dist/src/mobile/components/ChatList/Body.d.ts +1 -1
  34. package/dist/src/mobile/components/ChatList/Body.js +2 -1
  35. package/dist/src/mobile/components/ChatList/ChatList.d.ts +2 -1
  36. package/dist/src/mobile/components/ChatList/ChatList.js +8 -8
  37. package/dist/src/mobile/components/ChatList/ChatTextField.d.ts +2 -2
  38. package/dist/src/mobile/components/ChatList/ChatTextField.js +2 -2
  39. package/dist/src/mobile/components/ChatList/Footer.d.ts +2 -2
  40. package/dist/src/mobile/components/ChatList/Footer.js +2 -2
  41. package/dist/src/mobile/components/ChatList/Header.d.ts +2 -2
  42. package/dist/src/mobile/components/ChatList/Header.js +5 -5
  43. package/dist/src/mobile/components/TextButton/TextButton.d.ts +2 -2
  44. package/dist/src/mobile/components/TextButton/TextButton.js +2 -2
  45. package/dist/src/mobile/components/TextField/TextField.d.ts +1 -1
  46. package/dist/src/mobile/components/TextField/TextField.js +80 -30
  47. package/package.json +1 -1
  48. package/release-note.md +11 -5
@@ -36,14 +36,14 @@ var TextLabel_1 = require("../TextLabel");
36
36
  // borderColorKey?: string;
37
37
  function FloatingActionButton(_a) {
38
38
  var text = _a.text, _b = _a.displayType, displayType = _b === void 0 ? 'icon_text' : _b, _c = _a.size, size = _c === void 0 ? 'large' : _c, _d = _a.fontWeight, fontWeight = _d === void 0 ? 'bold' : _d, _e = _a.iconFillType, iconFillType = _e === void 0 ? 'line' : _e, iconName = _a.iconName, _f = _a.colorTheme, colorTheme = _f === void 0 ? 'none' : _f, _g = _a.state, state = _g === void 0 ? 'normal' : _g, onClick = _a.onClick, onMouseDown = _a.onMouseDown;
39
- var handleClick = function () {
39
+ var handleClick = function (e) {
40
40
  if (onClick) {
41
- onClick();
41
+ onClick(e);
42
42
  }
43
43
  };
44
- var handleMouseDown = function () {
44
+ var handleMouseDown = function (e) {
45
45
  if (onMouseDown) {
46
- onMouseDown();
46
+ onMouseDown(e);
47
47
  }
48
48
  };
49
49
  var iconColor = function () {
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { PDSTextType } from '../../../common';
3
3
  export declare type TextButtonProps = {
4
4
  text?: PDSTextType;
@@ -8,7 +8,7 @@ export declare type TextButtonProps = {
8
8
  type?: 'submit' | 'reset' | 'button';
9
9
  state?: 'normal' | 'disabled';
10
10
  colorTheme?: 'none' | 'red' | 'grey_01' | 'white';
11
- onClick?: (...args: any) => any;
11
+ onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
12
12
  };
13
13
  declare function TextButton({ text, size, responsiveMode, fontWeight, type, state, colorTheme, onClick, ...rest }: TextButtonProps): JSX.Element;
14
14
  export default TextButton;
@@ -66,9 +66,9 @@ var textColor = {
66
66
  };
67
67
  function TextButton(_a) {
68
68
  var text = _a.text, _b = _a.size, size = _b === void 0 ? 'large' : _b, _c = _a.responsiveMode, responsiveMode = _c === void 0 ? 'none' : _c, fontWeight = _a.fontWeight, _d = _a.type, type = _d === void 0 ? 'button' : _d, _e = _a.state, state = _e === void 0 ? 'normal' : _e, _f = _a.colorTheme, colorTheme = _f === void 0 ? 'none' : _f, onClick = _a.onClick, rest = __rest(_a, ["text", "size", "responsiveMode", "fontWeight", "type", "state", "colorTheme", "onClick"]);
69
- var handleClick = function () {
69
+ var handleClick = function (e) {
70
70
  if (onClick) {
71
- onClick();
71
+ onClick(e);
72
72
  }
73
73
  };
74
74
  return (react_1.default.createElement(S_Button, __assign({}, rest, { size: size, responsiveMode: responsiveMode, onClick: handleClick, type: type, fontWeight: fontWeight, disabled: state === 'disabled', state: state, colorTheme: colorTheme }),
@@ -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 iconThemeColorNoneObj = {
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 iconThemeColorDarkObj = {
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: iconThemeColorNoneObj[state],
109
- dark: iconThemeColorDarkObj[state]
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: iconThemeColorNoneObj[state],
114
- dark: iconThemeColorDarkObj[state]
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 S_TextFieldWrapper = styled_components_1.default.div(templateObject_13 || (templateObject_13 = __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"], ["\n align-items: center;\n border-radius: 14px;\n box-sizing: border-box;\n cursor: ", ";\n display: flex;\n ", ";\n ", ";\n ", ";\n ", ";\n ", "\n"])), function (_a) {
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
- return colorTheme === 'none' &&
245
- state &&
246
- {
247
- normal: normal,
248
- read_only: read_only,
249
- disabled: disabled
250
- }[state];
251
- }, function (_a) {
252
- var state = _a.state, colorTheme = _a.colorTheme;
253
- return colorTheme === 'dark' &&
254
- state &&
255
- {
256
- normal: dark_normal,
257
- read_only: dark_read_only,
258
- disabled: dark_disabled
259
- }[state];
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(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n display: flex;\n"], ["\n display: flex;\n"])));
268
- var S_Error = styled_components_1.default.div(templateObject_15 || (templateObject_15 = __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) {
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
- return colorTheme === 'none'
271
- ? theme.ui_cpnt_textfield_text_error
272
- : theme.ui_cpnt_textfield_text_darktheme_error;
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;
@@ -7,7 +7,7 @@ export declare type ImageViewProps = {
7
7
  height?: number | 'responsive';
8
8
  noImageHeight?: number;
9
9
  noImageWidth?: number;
10
- ratio?: '16_9' | '9_16' | '16_10' | '10_16' | '4_3' | '3_4' | '1_1' | 'auto';
10
+ ratio?: '16_9' | '9_16' | '16_10' | '10_16' | '4_3' | '3_4' | '3_2' | '2_3' | '1_1' | 'auto';
11
11
  scaleType?: 'fill' | 'contain' | 'cover' | 'none';
12
12
  borderMode?: 'use' | 'none';
13
13
  backgroundFillMode?: 'use' | 'none';
@@ -78,6 +78,8 @@ var S_RatioImageView = styled_components_1.default.div(templateObject_3 || (temp
78
78
  '10_16': 'padding-top: 159.74%',
79
79
  '4_3': 'padding-top: 75%',
80
80
  '3_4': 'padding-top: 133.33%',
81
+ '3_2': 'padding-top: 66.66%',
82
+ '2_3': 'padding-top: 150%',
81
83
  '1_1': 'padding-top: 100%'
82
84
  }[ratio];
83
85
  });
@@ -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
- styleTheme?: 'solid' | 'translucent' | 'transparent';
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: 'ui_cpnt_list_base_area_translucent'
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.styleTheme, styleTheme = _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, _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;
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[styleTheme], id: "chatList" },
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, { styleTheme: styleTheme, titleText: titleText, descText: descText, captionText: captionText, titleStyleTheme: titleStyleTheme, headerDisplayType: headerDisplayType, headerIBtn1IconName: headerIBtn1IconName, headerIBtn1IconFillType: headerIBtn1IconFillType, onClickHeaderIBtn1: onClickHeaderIBtn1 }),
91
- react_1.default.createElement(hybrid_1.Divider, null))),
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, null),
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, 'styleTheme'>> & Pick<ChatListProps, 'titleText' | 'descText' | 'captionText' | 'titleStyleTheme' | 'headerDisplayType' | 'headerIBtn1IconName' | 'headerIBtn1IconFillType' | 'onClickHeaderIBtn1'>;
4
- declare function Header({ styleTheme, titleText, descText, captionText, titleStyleTheme, headerDisplayType, headerIBtn1IconName, headerIBtn1IconFillType, onClickHeaderIBtn1 }: Props): JSX.Element;
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 styleTheme = _a.styleTheme, titleText = _a.titleText, descText = _a.descText, captionText = _a.captionText, titleStyleTheme = _a.titleStyleTheme, headerDisplayType = _a.headerDisplayType, headerIBtn1IconName = _a.headerIBtn1IconName, headerIBtn1IconFillType = _a.headerIBtn1IconFillType, onClickHeaderIBtn1 = _a.onClickHeaderIBtn1;
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[styleTheme], wordBreak: "break_all" })),
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: "sysTextSecondary", colorOverride: styleTheme === 'translucent' ? 'ui_cpnt_list_text_caption_02' : undefined, wordBreak: "break_all" }))),
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: "sysTextTertiary", colorOverride: styleTheme === '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[styleTheme], iconSize: 24, iconFillType: headerIBtn1IconFillType, onClick: onClickHeaderIBtn1 }))));
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;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { PDSTextType } from '../../../common';
3
3
  export declare type TextButtonProps = {
4
4
  text?: PDSTextType;
@@ -8,7 +8,7 @@ export declare type TextButtonProps = {
8
8
  type?: 'submit' | 'reset' | 'button';
9
9
  state?: 'normal' | 'disabled';
10
10
  colorTheme?: 'none' | 'red' | 'grey_01' | 'white';
11
- onClick?: (...args: any) => any;
11
+ onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
12
12
  };
13
13
  declare function TextButton({ text, size, responsiveMode, fontWeight, type, state, colorTheme, onClick, ...rest }: TextButtonProps): JSX.Element;
14
14
  export default TextButton;
@@ -66,9 +66,9 @@ var textColor = {
66
66
  };
67
67
  function TextButton(_a) {
68
68
  var text = _a.text, _b = _a.size, size = _b === void 0 ? 'large' : _b, _c = _a.responsiveMode, responsiveMode = _c === void 0 ? 'none' : _c, fontWeight = _a.fontWeight, _d = _a.type, type = _d === void 0 ? 'button' : _d, _e = _a.state, state = _e === void 0 ? 'normal' : _e, _f = _a.colorTheme, colorTheme = _f === void 0 ? 'none' : _f, onClick = _a.onClick, rest = __rest(_a, ["text", "size", "responsiveMode", "fontWeight", "type", "state", "colorTheme", "onClick"]);
69
- var handleClick = function () {
69
+ var handleClick = function (e) {
70
70
  if (onClick) {
71
- onClick();
71
+ onClick(e);
72
72
  }
73
73
  };
74
74
  return (react_1.default.createElement(S_Button, __assign({}, rest, { size: size, responsiveMode: responsiveMode, onClick: handleClick, type: type, fontWeight: fontWeight, disabled: state === 'disabled', colorTheme: colorTheme }),
@@ -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;