pds-dev-kit-web 1.3.24 → 1.3.27

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 (25) hide show
  1. package/dist/src/common/styles/colorSet/PaletteColor_Dark.json +5 -1
  2. package/dist/src/common/styles/colorSet/PaletteColor_light.json +5 -1
  3. package/dist/src/common/styles/colorSet/UIColor.json +10 -7
  4. package/dist/src/common/styles/colorSet/index.d.ts +11 -0
  5. package/dist/src/common/styles/colorSet/ui-type.d.ts +3 -0
  6. package/dist/src/desktop/components/Card/Card.js +5 -6
  7. package/dist/src/desktop/components/EditApplyTextField/EditApplyTextField.d.ts +4 -2
  8. package/dist/src/desktop/components/EditApplyTextField/EditApplyTextField.js +7 -8
  9. package/dist/src/desktop/components/IconButton/IconButton.js +5 -2
  10. package/dist/src/desktop/components/ReactionButton/ReactionButton.js +1 -1
  11. package/dist/src/desktop/components/TextLabel/TextLabel.js +2 -1
  12. package/dist/src/desktop/components/UploadIconButton/UploadIconButton.js +2 -2
  13. package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/ContentsContainer.d.ts +3 -2
  14. package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/ContentsContainer.js +2 -2
  15. package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTS.d.ts +3 -2
  16. package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTS.js +4 -6
  17. package/dist/src/desktop/layout/LayoutWT/ContainersBox/ContainersBox.d.ts +3 -2
  18. package/dist/src/desktop/layout/LayoutWT/ContainersBox/ContainersBox.js +2 -2
  19. package/dist/src/hybrid/components/Icon/Icon.js +1 -1
  20. package/dist/src/mobile/components/Card/Card.js +5 -6
  21. package/dist/src/mobile/components/IconButton/IconButton.js +5 -2
  22. package/dist/src/mobile/components/TextLabel/TextLabel.js +2 -1
  23. package/dist/src/mobile/components/UploadIconButton/UploadIconButton.js +2 -2
  24. package/package.json +1 -1
  25. package/release-note.md +7 -5
@@ -156,5 +156,9 @@
156
156
  "sys_cpnt_sheet_base_01": "darkgrey50",
157
157
  "sys_component_base_white_opacity20": "white/opacity20",
158
158
  "sys_border_line_07": "darkgrey70",
159
- "sys_border_line_white_opacity50": "white/opacity50"
159
+ "sys_border_line_white_opacity50": "white/opacity50",
160
+ "sys_background_dimmed_02": "black/opacity65",
161
+ "sys_border_line_08": "darkgrey500",
162
+ "sys_sys_component_base_06": "darkgrey30",
163
+ "sys_sys_component_base_07": "darkgrey70"
160
164
  }
@@ -156,5 +156,9 @@
156
156
  "sys_cpnt_sheet_base_01": "grey30",
157
157
  "sys_component_base_white_opacity20": "white/opacity20",
158
158
  "sys_border_line_07": "grey70",
159
- "sys_border_line_white_opacity50": "white/opacity50"
159
+ "sys_border_line_white_opacity50": "white/opacity50",
160
+ "sys_background_dimmed_02": "black/opacity30",
161
+ "sys_border_line_08": "grey500",
162
+ "sys_sys_component_base_06": "grey30",
163
+ "sys_sys_component_base_07": "grey70"
160
164
  }
@@ -22,7 +22,7 @@
22
22
  "ui_cpnt_button_icon_disabled": "sys_widget_grey_03",
23
23
  "ui_cpnt_button_icon_default": "sys_widget_grey_02",
24
24
  "ui_cpnt_textfield_border_normal": "sys_border_line_01",
25
- "ui_cpnt_textfield_border_focus": "sys_border_line_03",
25
+ "ui_cpnt_textfield_border_focus": "sys_border_line_08",
26
26
  "ui_cpnt_textfield_border_error": "sys_border_line_04",
27
27
  "ui_cpnt_textfield_base_normal": "sys_component_base_white_opacity00",
28
28
  "ui_cpnt_textfield_base_disabled": "sys_component_base_01",
@@ -128,7 +128,7 @@
128
128
  "ui_27": "sys_widget_white",
129
129
  "ui_cpnt_divider": "sys_border_line_01",
130
130
  "ui_cpnt_select_border_normal": "sys_border_line_01",
131
- "ui_cpnt_select_border_focus": "sys_border_line_03",
131
+ "ui_cpnt_select_border_focus": "sys_border_line_08",
132
132
  "ui_cpnt_select_base_normal": "sys_component_base_white_opacity00",
133
133
  "ui_cpnt_select_base_disabled": "sys_component_base_01",
134
134
  "ui_cpnt_select_text_hint": "sys_text_grey_02",
@@ -201,7 +201,7 @@
201
201
  "ui_cpnt_chip_fill_text_active_02": "sys_text_grey_01",
202
202
  "ui_cpnt_chip_fill_icon_active_02": "sys_widget_grey_01",
203
203
  "ui_cpnt_dropdown_border_normal": "sys_border_line_01",
204
- "ui_cpnt_dropdown_border_focus": "sys_border_line_03",
204
+ "ui_cpnt_dropdown_border_focus": "sys_border_line_08",
205
205
  "ui_cpnt_dropdown_base_normal": "sys_component_base_white_opacity00",
206
206
  "ui_cpnt_dropdown_base_disabled": "sys_component_base_01",
207
207
  "ui_cpnt_dropdown_text_hint": "sys_text_grey_03",
@@ -280,8 +280,8 @@
280
280
  "ui_cpnt_card_icon_basic": "sys_widget_primary_01",
281
281
  "ui_cpnt_card_icon_custom": "sys_widget_grey_01",
282
282
  "ui_cpnt_card_icon_create": "sys_widget_grey_01",
283
- "ui_cpnt_modal_dimmed": "sys_background_dimmed_20",
284
- "ui_cpnt_alertdialog_dimmed": "sys_background_dimmed_20",
283
+ "ui_cpnt_modal_dimmed": "sys_background_dimmed_02",
284
+ "ui_cpnt_alertdialog_dimmed": "sys_background_dimmed_02",
285
285
  "ui_cpnt_bottomsheet_base": "sys_component_base_02",
286
286
  "ui_cpnt_bottomsheet_icon_03": "sys_widget_grey_03",
287
287
  "ui_cpnt_button_icon_white": "sys_widget_white",
@@ -332,7 +332,7 @@
332
332
  "ui_cpnt_icon_usr_brandprimary": "usr_brand_primary",
333
333
  "ui_container_divider": "sys_border_line_01",
334
334
  "ui_area_divider": "sys_border_line_01",
335
- "ui_cpnt_list_base_area_seller": "usr_component_base_brand_primary_opacity10",
335
+ "ui_cpnt_list_base_area_seller": "sys_component_base_01",
336
336
  "ui_temp_grey_01": "sys_temp_grey_01",
337
337
  "ui_temp_grey_02": "sys_temp_grey_02",
338
338
  "ui_temp_grey_03": "sys_temp_grey_03",
@@ -489,5 +489,8 @@
489
489
  "ui_cpnt_dropdown_base_white_normal": "sys_component_base_white_opacity00",
490
490
  "ui_profile_image_border_brandprimary": "usr_brand_primary",
491
491
  "ui_cpnt_dropdown_base_white_disabled": "sys_component_base_white_opacity10",
492
- "ui_cpnt_dropdown_border_white_disabled": "sys_border_line_white_opacity50"
492
+ "ui_cpnt_dropdown_border_white_disabled": "sys_border_line_white_opacity50",
493
+ "ui_cpnt_sheet_base_white_opacity00": "sys_component_base_white_opacity00",
494
+ "ui_dimmed_01": "sys_background_dimmed_20",
495
+ "ui_cpnt_reactionbutton_base_01": "sys_component_base_07"
493
496
  }
@@ -158,6 +158,10 @@ declare const colorSet: {
158
158
  sys_component_base_white_opacity20: string;
159
159
  sys_border_line_07: string;
160
160
  sys_border_line_white_opacity50: string;
161
+ sys_background_dimmed_02: string;
162
+ sys_border_line_08: string;
163
+ sys_sys_component_base_06: string;
164
+ sys_sys_component_base_07: string;
161
165
  };
162
166
  readonly PaletteColor_light: {
163
167
  sys_container_background_01: string;
@@ -318,6 +322,10 @@ declare const colorSet: {
318
322
  sys_component_base_white_opacity20: string;
319
323
  sys_border_line_07: string;
320
324
  sys_border_line_white_opacity50: string;
325
+ sys_background_dimmed_02: string;
326
+ sys_border_line_08: string;
327
+ sys_sys_component_base_06: string;
328
+ sys_sys_component_base_07: string;
321
329
  };
322
330
  readonly SemanticColor: {
323
331
  blue500: string;
@@ -869,6 +877,9 @@ declare const colorSet: {
869
877
  ui_profile_image_border_brandprimary: string;
870
878
  ui_cpnt_dropdown_base_white_disabled: string;
871
879
  ui_cpnt_dropdown_border_white_disabled: string;
880
+ ui_cpnt_sheet_base_white_opacity00: string;
881
+ ui_dimmed_01: string;
882
+ ui_cpnt_reactionbutton_base_01: string;
872
883
  };
873
884
  };
874
885
  export default colorSet;
@@ -490,4 +490,7 @@ export interface UITheme {
490
490
  ui_profile_image_border_brandprimary: string;
491
491
  ui_cpnt_dropdown_base_white_disabled: string;
492
492
  ui_cpnt_dropdown_border_white_disabled: string;
493
+ ui_cpnt_sheet_base_white_opacity00: string;
494
+ ui_dimmed_01: string;
495
+ ui_cpnt_reactionbutton_base_01: string;
493
496
  }
@@ -25,15 +25,14 @@ function Card(_a) {
25
25
  react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_c" }),
26
26
  descText && (react_1.default.createElement(TextLabel_1.TextLabel, { text: descText, styleTheme: "caption1Regular", colorTheme: "sysTextSecondary" })))));
27
27
  }
28
- var S_CardGroups = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n background-color: ", ";\n border-radius: 16px;\n box-shadow: ", ";\n ", ";\n box-sizing: border-box;\n cursor: pointer;\n min-width: 144px;\n position: relative;\n"], ["\n background-color: ", ";\n border-radius: 16px;\n box-shadow: ", ";\n ", ";\n box-sizing: border-box;\n cursor: pointer;\n min-width: 144px;\n position: relative;\n"])), function (_a) {
28
+ var S_CardGroups = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n background-color: ", ";\n border-radius: 16px;\n box-sizing: border-box;\n cursor: pointer;\n min-width: 144px;\n position: relative;\n\n &::after {\n box-sizing: border-box;\n border-radius: 16px;\n box-shadow: ", ";\n content: '';\n height: 100%;\n position: absolute;\n top: 0;\n width: 100%;\n }\n"], ["\n background-color: ", ";\n border-radius: 16px;\n box-sizing: border-box;\n cursor: pointer;\n min-width: 144px;\n position: relative;\n\n &::after {\n box-sizing: border-box;\n border-radius: 16px;\n box-shadow: ", ";\n content: '';\n height: 100%;\n position: absolute;\n top: 0;\n width: 100%;\n }\n"])), function (_a) {
29
29
  var theme = _a.theme;
30
30
  return theme.ui_cpnt_card_base;
31
31
  }, function (_a) {
32
- var theme = _a.theme;
33
- return theme.boxShadow.elevation2;
34
- }, function (_a) {
35
- var selectState = _a.selectState, theme = _a.theme;
36
- return selectState === 'selected' ? "border: 2px solid " + theme.ui_cpnt_card_selected_border : '';
32
+ var theme = _a.theme, selectState = _a.selectState;
33
+ if (selectState === 'unselected')
34
+ return theme.boxShadow.elevation2;
35
+ return theme.boxShadow.elevation2 + ", 0 0 0 2px " + theme.ui_cpnt_card_selected_border + " inset";
37
36
  });
38
37
  var S_ImageIconModeBox = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n div {\n border-radius: 16px 16px 0 0;\n }\n"], ["\n div {\n border-radius: 16px 16px 0 0;\n }\n"])));
39
38
  var S_Content = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n padding: ", "; ;\n"], ["\n display: flex;\n flex-direction: column;\n padding: ", "; ;\n"])), function (_a) {
@@ -20,12 +20,14 @@ export declare type EditApplyTextFieldProps = {
20
20
  max?: number;
21
21
  maxLength?: number;
22
22
  min?: number;
23
- getInputValue?: (data: string[]) => void;
24
23
  onBlur?: (e: React.FocusEvent<HTMLInputElement> | React.FocusEvent<HTMLTextAreaElement>) => void;
25
24
  onChange?: (e: React.ChangeEvent<HTMLInputElement> | React.ChangeEvent<HTMLTextAreaElement>) => void;
26
- onClickSubmitBtn?: (...args: any) => any;
27
25
  onFocus?: (e: React.FocusEvent<HTMLInputElement> | React.FocusEvent<HTMLTextAreaElement>) => void;
28
26
  onTarget?: () => void;
27
+ /** @deprecated v1.5 해당 prop 대신 Form의 onSubmit을 사용하세요. */
28
+ getInputValue?: (data: string[]) => void;
29
+ /** @deprecated v1.5 해당 prop 대신 Form의 onSubmit을 사용하세요. */
30
+ onClickSubmitBtn?: (...args: any) => any;
29
31
  };
30
32
  declare function EditApplyTextField({ name, hintText, defaultText, validation, preventBlankMode, size, responsiveMode, textLineType, multiRows, autoMinRows, autoMaxRows, inputType, state, max, maxLength, min, getInputValue, onBlur, onChange, onClickSubmitBtn, onFocus, onTarget }: EditApplyTextFieldProps): JSX.Element;
31
33
  export default EditApplyTextField;
@@ -83,20 +83,19 @@ function EditApplyTextField(_a) {
83
83
  setValue(name, prevValue);
84
84
  }
85
85
  function handleSubmit() {
86
- if (!currentValue) {
87
- return;
88
- }
89
86
  // NOTE: preventBlankMode는 input에만 적용 가능
90
87
  // NOTE: 다른 TextField의 경우 'preventBlankMode === 'trim'일 경우에는 무조건 onBlur 시점에 적용'된다고 정의해두었지만, EditApplyTextField는 onBlur 시점에 모든 값이 초기값으로 돌리는 기획이 있기때문에 EditApplyTextField에서는 submit 버튼을 눌렀을 경우에 시행
91
- if (textLineType === 'single' && preventBlankMode === 'trim' && getInputValue) {
88
+ if (textLineType === 'single' && preventBlankMode === 'trim') {
92
89
  setValue(name, currentValue.replace(/^\s+|\s+$/gm, ''));
93
90
  setPrevValue(currentValue.replace(/^\s+|\s+$/gm, ''));
94
- getInputValue([name, currentValue.replace(/^\s+|\s+$/gm, '')]);
91
+ if (getInputValue)
92
+ getInputValue([name, currentValue.replace(/^\s+|\s+$/gm, '')]);
95
93
  }
96
- if (preventBlankMode !== 'trim' && getInputValue) {
94
+ if (preventBlankMode !== 'trim') {
97
95
  setValue(name, currentValue);
98
96
  setPrevValue(currentValue);
99
- getInputValue([name, currentValue]);
97
+ if (getInputValue)
98
+ getInputValue([name, currentValue]);
100
99
  }
101
100
  if (onClickSubmitBtn) {
102
101
  onClickSubmitBtn();
@@ -129,7 +128,7 @@ function EditApplyTextField(_a) {
129
128
  react_1.default.createElement(S_S_TextFieldBaseWrapper, { size: size, responsiveMode: responsiveMode, textLineType: textLineType, isFocused: isFocused, isError: isError, state: state }, S_TextFieldBase()),
130
129
  isOpen === true && (react_1.default.createElement(S_ButtonBox, null,
131
130
  react_1.default.createElement(IconButton_1.IconButton, { iconName: "ic_xmark", fillType: "fill", baseSize: "small", iconSize: 16, shapeType: "circular", shadow: "visible", iconColorKey: "ui_cpnt_button_icon_enabled", baseColorKey: "ui_cpnt_button_fill_base_white", tabIndex: -1, onMouseDown: handleCancel }),
132
- react_1.default.createElement(IconButton_1.IconButton, { iconName: "ic_check", fillType: "fill", baseSize: "small", iconSize: 16, shapeType: "circular", shadow: "visible", iconColorKey: "ui_cpnt_button_icon_on_primary", baseColorKey: "ui_cpnt_button_fill_base_primary", state: isError === true ? 'disabled' : 'normal', tabIndex: -1, onMouseDown: handleSubmit })))),
131
+ react_1.default.createElement(IconButton_1.IconButton, { iconName: "ic_check", fillType: "fill", baseSize: "small", iconSize: 16, shapeType: "circular", shadow: "visible", iconColorKey: "ui_cpnt_button_icon_on_primary", baseColorKey: "ui_cpnt_button_fill_base_primary", state: isError === true ? 'disabled' : 'normal', tabIndex: -1, onMouseDown: handleSubmit, type: "submit" })))),
133
132
  ((_b = errors[name]) === null || _b === void 0 ? void 0 : _b.message) && (react_1.default.createElement(S_Error, { isFocused: isFocused }, t(errors[name].message))))));
134
133
  }
135
134
  var S_EditApplyTextFieldWrapper = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: ", ";\n"], ["\n width: ", ";\n"])), function (_a) {
@@ -60,6 +60,9 @@ function IconButton(_a) {
60
60
  if (iconColorKey) {
61
61
  return iconColorKey;
62
62
  }
63
+ if (fillType === 'fill' && baseColorKey === 'ui_cpnt_button_fill_base_transparent') {
64
+ return 'ui_cpnt_button_icon_enabled';
65
+ }
63
66
  return iconStateColorObj[fillType];
64
67
  };
65
68
  return (react_1.default.createElement(S_IconButton, { fillType: fillType, shapeType: shapeType, baseSize: baseSize, baseColorKey: baseColorKey, borderColorKey: borderColorKey, shadow: shadow, colorTheme: colorTheme, type: type, state: state, disabled: state === 'disabled', tabIndex: tabIndex, onClick: handleClick, onMouseDown: handleMouseDown },
@@ -74,7 +77,7 @@ var fillDisabled = (0, styled_components_1.css)(templateObject_1 || (templateObj
74
77
  var fill = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n background-color: ", ";\n\n &:hover:enabled {\n ", "\n }\n\n &:active:enabled {\n ", "\n }\n\n ", ";\n"], ["\n background-color: ", ";\n\n &:hover:enabled {\n ", "\n }\n\n &:active:enabled {\n ", "\n }\n\n ", ";\n"])), function (_a) {
75
78
  var theme = _a.theme, baseColorKey = _a.baseColorKey;
76
79
  return baseColorKey
77
- ? (0, common_1.customTheme)(window.PdsUtils ? window.PdsUtils.tone : 'DARK')[baseColorKey]
80
+ ? (0, common_1.customTheme)(window.PdsUtils ? window.PdsUtils.tone : 'DARK', window.PdsUtils ? window.PdsUtils.palette : {})[baseColorKey]
78
81
  : theme.ui_cpnt_button_fill_base_primary;
79
82
  }, function (_a) {
80
83
  var theme = _a.theme, baseColorKey = _a.baseColorKey;
@@ -103,7 +106,7 @@ var line = (0, styled_components_1.css)(templateObject_4 || (templateObject_4 =
103
106
  }, function (_a) {
104
107
  var theme = _a.theme, borderColorKey = _a.borderColorKey;
105
108
  return borderColorKey
106
- ? (0, common_1.customTheme)(window.PdsUtils ? window.PdsUtils.tone : 'DARK')[borderColorKey]
109
+ ? (0, common_1.customTheme)(window.PdsUtils ? window.PdsUtils.tone : 'DARK', window.PdsUtils ? window.PdsUtils.palette : {})[borderColorKey]
107
110
  : theme.ui_cpnt_button_line_border_enabled;
108
111
  }, function (_a) {
109
112
  var colorTheme = _a.colorTheme;
@@ -65,7 +65,7 @@ function ReactionButton(_a) {
65
65
  case status === 'default' && colorTheme === 'none':
66
66
  return 'sysTextSecondary';
67
67
  case status === 'select' && colorTheme === 'none':
68
- return 'sysTextBrandPrimary';
68
+ return 'usrTextBrandPrimary';
69
69
  default:
70
70
  return 'sysTextSecondary';
71
71
  }
@@ -259,7 +259,8 @@ var customFontStyle = (0, styled_components_1.css)(templateObject_28 || (templat
259
259
  });
260
260
  var colorOverrideStyle = (0, styled_components_1.css)(templateObject_29 || (templateObject_29 = __makeTemplateObject(["\n color: ", ";\n"], ["\n color: ", ";\n"])), function (_a) {
261
261
  var colorOverride = _a.colorOverride;
262
- return colorOverride && (0, common_1.customTheme)(window.PdsUtils ? window.PdsUtils.tone : 'DARK')[colorOverride];
262
+ return colorOverride &&
263
+ (0, common_1.customTheme)(window.PdsUtils ? window.PdsUtils.tone : 'DARK', window.PdsUtils ? window.PdsUtils.palette : {})[colorOverride];
263
264
  });
264
265
  var ellipsisStyle = (0, styled_components_1.css)(templateObject_30 || (templateObject_30 = __makeTemplateObject(["\n -webkit-box-orient: vertical;\n display: -webkit-box;\n -webkit-line-clamp: ", ";\n overflow: hidden;\n text-overflow: ellipsis;\n"], ["\n -webkit-box-orient: vertical;\n display: -webkit-box;\n -webkit-line-clamp: ", ";\n overflow: hidden;\n text-overflow: ellipsis;\n"])), function (_a) {
265
266
  var lineLimit = _a.lineLimit;
@@ -63,7 +63,7 @@ var fillDisabled = (0, styled_components_1.css)(templateObject_1 || (templateObj
63
63
  var fill = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n background-color: ", ";\n\n &:hover:not([disabled]) {\n ", "\n }\n\n &:active:not([disabled]) {\n background-image: ", ";\n }\n\n ", ";\n"], ["\n background-color: ", ";\n\n &:hover:not([disabled]) {\n ", "\n }\n\n &:active:not([disabled]) {\n background-image: ", ";\n }\n\n ", ";\n"])), function (_a) {
64
64
  var theme = _a.theme, baseColorKey = _a.baseColorKey;
65
65
  return baseColorKey
66
- ? (0, common_1.customTheme)(window.PdsUtils ? window.PdsUtils.tone : 'DARK')[baseColorKey]
66
+ ? (0, common_1.customTheme)(window.PdsUtils ? window.PdsUtils.tone : 'DARK', window.PdsUtils ? window.PdsUtils.palette : {})[baseColorKey]
67
67
  : theme.ui_cpnt_button_fill_base_primary;
68
68
  }, function (_a) {
69
69
  var theme = _a.theme, baseColorKey = _a.baseColorKey;
@@ -100,7 +100,7 @@ var line = (0, styled_components_1.css)(templateObject_6 || (templateObject_6 =
100
100
  }, function (_a) {
101
101
  var theme = _a.theme, borderColorKey = _a.borderColorKey;
102
102
  return borderColorKey
103
- ? (0, common_1.customTheme)(window.PdsUtils ? window.PdsUtils.tone : 'DARK')[borderColorKey]
103
+ ? (0, common_1.customTheme)(window.PdsUtils ? window.PdsUtils.tone : 'DARK', window.PdsUtils ? window.PdsUtils.palette : {})[borderColorKey]
104
104
  : theme.ui_cpnt_button_line_border_enabled;
105
105
  }, function (_a) {
106
106
  var colorTheme = _a.colorTheme;
@@ -1,10 +1,11 @@
1
- /// <reference types="react" />
1
+ import { MutableRefObject } from 'react';
2
2
  export declare type ContentsContainerProps = {
3
3
  content1?: JSX.Element;
4
4
  content2?: JSX.Element;
5
5
  layoutType: 'WTA_1' | 'WTA_2' | 'WTA_3' | 'WTB_1' | 'WTC_1' | 'WTD_1' | 'WTD_2' | 'WTD_3' | 'WTD_4' | 'WTD_5' | 'WTD_6' | 'WTE_1' | 'WTF_1' | 'WTF_2' | 'WTF_3' | 'WTF_4' | 'WTF_5' | 'WTF_6' | 'WTG_1' | 'WTH_1' | 'WTH_2' | 'WTH_3' | 'WTI_1' | 'WTI_2' | 'WTJ_1' | 'WTK_1' | 'WTK_2' | 'WTK_3' | 'WTL_1' | 'WTM_1' | 'WTM_2' | 'WTN_1' | 'WTN_2' | 'WTN_3' | 'WTO_1' | 'WTP_1' | 'WTQ_1' | 'WTS_1';
6
6
  containerColor?: string;
7
7
  areaColor?: string;
8
+ container1Ref?: MutableRefObject<HTMLDivElement | null>;
8
9
  };
9
- declare const ContentsContainer: ({ content1, content2, layoutType, containerColor, areaColor }: ContentsContainerProps) => JSX.Element;
10
+ declare const ContentsContainer: ({ content1, content2, layoutType, containerColor, areaColor, container1Ref }: ContentsContainerProps) => JSX.Element;
10
11
  export default ContentsContainer;
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  var react_1 = __importDefault(require("react"));
7
7
  var variation_1 = require("./variation");
8
8
  var ContentsContainer = function (_a) {
9
- var content1 = _a.content1, content2 = _a.content2, layoutType = _a.layoutType, containerColor = _a.containerColor, areaColor = _a.areaColor;
9
+ var content1 = _a.content1, content2 = _a.content2, layoutType = _a.layoutType, containerColor = _a.containerColor, areaColor = _a.areaColor, container1Ref = _a.container1Ref;
10
10
  return (react_1.default.createElement(react_1.default.Fragment, null, {
11
11
  WTA_1: (react_1.default.createElement(variation_1.WTA, { layoutType: "WTA_1", content1: content1, containerColor: containerColor, areaColor: areaColor })),
12
12
  WTA_2: (react_1.default.createElement(variation_1.WTA, { layoutType: "WTA_2", content1: content1, containerColor: containerColor, areaColor: areaColor })),
@@ -45,7 +45,7 @@ var ContentsContainer = function (_a) {
45
45
  WTO_1: (react_1.default.createElement(variation_1.WTO, { layoutType: "WTO_1", content1: content1, containerColor: containerColor, areaColor: areaColor })),
46
46
  WTP_1: (react_1.default.createElement(variation_1.WTP, { layoutType: "WTP_1", content1: content1, containerColor: containerColor, areaColor: areaColor })),
47
47
  WTQ_1: (react_1.default.createElement(variation_1.WTQ, { layoutType: "WTQ_1", content1: content1, content2: content2, containerColor: containerColor, areaColor: areaColor })),
48
- WTS_1: (react_1.default.createElement(variation_1.WTS, { layoutType: "WTS_1", content1: content1, content2: content2, containerColor: containerColor, areaColor: areaColor }))
48
+ WTS_1: (react_1.default.createElement(variation_1.WTS, { layoutType: "WTS_1", content1: content1, content2: content2, containerColor: containerColor, areaColor: areaColor, container1Ref: container1Ref }))
49
49
  }[layoutType]));
50
50
  };
51
51
  exports.default = ContentsContainer;
@@ -1,10 +1,11 @@
1
- /// <reference types="react" />
1
+ import { MutableRefObject } from 'react';
2
2
  export declare type WTSProps = {
3
3
  content1?: JSX.Element;
4
4
  content2?: JSX.Element;
5
5
  layoutType: 'WTS_1';
6
6
  containerColor?: string;
7
7
  areaColor?: string;
8
+ container1Ref?: MutableRefObject<HTMLDivElement | null>;
8
9
  };
9
- declare const WTS: ({ content1, content2, containerColor, areaColor, layoutType }: WTSProps) => JSX.Element;
10
+ declare const WTS: ({ content1, content2, containerColor, areaColor, layoutType, container1Ref }: WTSProps) => JSX.Element;
10
11
  export default WTS;
@@ -11,8 +11,8 @@ var react_1 = __importDefault(require("react"));
11
11
  var styled_components_1 = __importDefault(require("styled-components"));
12
12
  var hybrid_1 = require("../../../../../../hybrid");
13
13
  var WTS = function (_a) {
14
- var content1 = _a.content1, content2 = _a.content2, containerColor = _a.containerColor, areaColor = _a.areaColor, layoutType = _a.layoutType;
15
- return (react_1.default.createElement(S_ContentsContainer, { layoutType: layoutType, containerColor: containerColor },
14
+ var content1 = _a.content1, content2 = _a.content2, containerColor = _a.containerColor, areaColor = _a.areaColor, layoutType = _a.layoutType, container1Ref = _a.container1Ref;
15
+ return (react_1.default.createElement(S_ContentsContainer, { layoutType: layoutType, containerColor: containerColor, ref: container1Ref },
16
16
  react_1.default.createElement(S_ContentsArea1, { layoutType: layoutType, areaColor: areaColor },
17
17
  react_1.default.createElement(S_Content1, null, content1)),
18
18
  react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_e" }),
@@ -30,14 +30,12 @@ var S_ContentsArea1 = styled_components_1.default.div(templateObject_2 || (templ
30
30
  var areaColor = _a.areaColor;
31
31
  return "background-color: " + areaColor;
32
32
  });
33
- // TODO: Area단에 height: 100%; overflow: auto; 추가와 padding-bottom: 88px; 삭제 것은 무한 스크롤 대응위한 임시 방편입니다.
34
- var S_ContentsArea2 = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n box-sizing: border-box;\n /* padding-bottom: 88px; */\n padding-left: 24px;\n padding-right: 24px;\n padding-top: 24px;\n max-width: 1400px;\n min-width: 1200px;\n width: 100%;\n\n height: 100%;\n overflow: auto;\n ", ";\n"], ["\n box-sizing: border-box;\n /* padding-bottom: 88px; */\n padding-left: 24px;\n padding-right: 24px;\n padding-top: 24px;\n max-width: 1400px;\n min-width: 1200px;\n width: 100%;\n\n height: 100%;\n overflow: auto;\n ", ";\n"])), function (_a) {
33
+ var S_ContentsArea2 = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n box-sizing: border-box;\n padding-left: 24px;\n padding-right: 24px;\n padding-top: 24px;\n max-width: 1400px;\n min-width: 1200px;\n width: 100%;\n ", ";\n"], ["\n box-sizing: border-box;\n padding-left: 24px;\n padding-right: 24px;\n padding-top: 24px;\n max-width: 1400px;\n min-width: 1200px;\n width: 100%;\n ", ";\n"])), function (_a) {
35
34
  var areaColor = _a.areaColor;
36
35
  return "background-color: " + areaColor;
37
36
  });
38
37
  // TODO: 철학에 위배되지만, 히어로 배너를 쓰지 않을 경우를 위해 임시로 제거 상태. 추후 조치 필요
39
38
  var S_Content1 = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n /* min-height: 480px; */\n"], ["\n /* min-height: 480px; */\n"])));
40
- // TODO: Content단에 height: 100%; 추가는 무한 스크롤 대응위한 임시 방편입니다.
41
- var S_Content2 = styled_components_1.default.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n height: 100%;\n"], ["\n height: 100%;\n"])));
39
+ var S_Content2 = styled_components_1.default.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n margin: 0;\n"], ["\n margin: 0;\n"])));
42
40
  exports.default = WTS;
43
41
  var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import React, { MutableRefObject } from 'react';
2
2
  export declare type ContainersBoxProps = {
3
3
  layoutType: 'WTA_1' | 'WTA_2' | 'WTA_3' | 'WTB_1' | 'WTC_1' | 'WTD_1' | 'WTD_2' | 'WTD_3' | 'WTD_4' | 'WTD_5' | 'WTD_6' | 'WTE_1' | 'WTF_1' | 'WTF_2' | 'WTF_3' | 'WTF_4' | 'WTF_5' | 'WTF_6' | 'WTG_1' | 'WTH_1' | 'WTH_2' | 'WTH_3' | 'WTI_1' | 'WTI_2' | 'WTJ_1' | 'WTK_1' | 'WTK_2' | 'WTK_3' | 'WTL_1' | 'WTM_1' | 'WTM_2' | 'WTN_1' | 'WTN_2' | 'WTN_3' | 'WTO_1' | 'WTP_1' | 'WTQ_1' | 'WTS_1';
4
4
  pageMenuContent?: JSX.Element;
@@ -9,6 +9,7 @@ export declare type ContainersBoxProps = {
9
9
  children?: React.ReactNode;
10
10
  containerColor?: string;
11
11
  areaColor?: string;
12
+ container1Ref?: MutableRefObject<HTMLDivElement | null>;
12
13
  };
13
- declare const ContainersBox: ({ layoutType, pageMenuContent, tabMenuContent, subMenuContent, content1, content2, containerColor, areaColor }: ContainersBoxProps) => JSX.Element;
14
+ declare const ContainersBox: ({ layoutType, pageMenuContent, tabMenuContent, subMenuContent, content1, content2, containerColor, areaColor, container1Ref }: ContainersBoxProps) => JSX.Element;
14
15
  export default ContainersBox;
@@ -30,7 +30,7 @@ var react_1 = __importDefault(require("react"));
30
30
  var styled_components_1 = __importStar(require("styled-components"));
31
31
  var Containers_1 = require("../Containers");
32
32
  var ContainersBox = function (_a) {
33
- var layoutType = _a.layoutType, pageMenuContent = _a.pageMenuContent, tabMenuContent = _a.tabMenuContent, subMenuContent = _a.subMenuContent, content1 = _a.content1, content2 = _a.content2, containerColor = _a.containerColor, areaColor = _a.areaColor;
33
+ var layoutType = _a.layoutType, pageMenuContent = _a.pageMenuContent, tabMenuContent = _a.tabMenuContent, subMenuContent = _a.subMenuContent, content1 = _a.content1, content2 = _a.content2, containerColor = _a.containerColor, areaColor = _a.areaColor, container1Ref = _a.container1Ref;
34
34
  return (react_1.default.createElement(S_ContainersBox, null,
35
35
  {
36
36
  WTA_1: react_1.default.createElement(react_1.default.Fragment, null),
@@ -194,7 +194,7 @@ var ContainersBox = function (_a) {
194
194
  WTQ_1: '',
195
195
  WTS_1: ''
196
196
  }[layoutType],
197
- react_1.default.createElement(Containers_1.ContentsContainer, { layoutType: layoutType, content1: content1, content2: content2, containerColor: containerColor, areaColor: areaColor })))));
197
+ react_1.default.createElement(Containers_1.ContentsContainer, { layoutType: layoutType, content1: content1, content2: content2, containerColor: containerColor, areaColor: areaColor, container1Ref: container1Ref })))));
198
198
  };
199
199
  var S_ContainersBox = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n align-items: flex-start;\n display: flex;\n height: 100%;\n"], ["\n align-items: flex-start;\n display: flex;\n height: 100%;\n"])));
200
200
  var S_RightBox = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: flex;\n flex: 1;\n flex-direction: column;\n height: 100%;\n"], ["\n display: flex;\n flex: 1;\n flex-direction: column;\n height: 100%;\n"])));
@@ -12,6 +12,6 @@ var Icon = function (_a) {
12
12
  var SelectedIcon = fillType === 'line'
13
13
  ? line_1.default[iconName] || fill_1.default[iconName]
14
14
  : fill_1.default[iconName] || line_1.default[iconName];
15
- return (react_1.default.createElement(SelectedIcon, { color: (0, common_1.customTheme)(window.PdsUtils ? window.PdsUtils.tone : 'DARK')[colorKey], size: size, style: { minWidth: size, minHeight: size } }));
15
+ return (react_1.default.createElement(SelectedIcon, { color: (0, common_1.customTheme)(window.PdsUtils ? window.PdsUtils.tone : 'DARK', window.PdsUtils ? window.PdsUtils.palette : {})[colorKey], size: size, style: { minWidth: size, minHeight: size } }));
16
16
  };
17
17
  exports.default = Icon;
@@ -25,15 +25,14 @@ function Card(_a) {
25
25
  react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_c" }),
26
26
  descText && (react_1.default.createElement(TextLabel_1.TextLabel, { text: descText, styleTheme: "caption1Regular", colorTheme: "sysTextSecondary" })))));
27
27
  }
28
- var S_CardGroups = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n background-color: ", ";\n border-radius: 16px;\n box-shadow: ", ";\n ", ";\n box-sizing: border-box;\n cursor: pointer;\n min-width: 144px;\n position: relative;\n"], ["\n background-color: ", ";\n border-radius: 16px;\n box-shadow: ", ";\n ", ";\n box-sizing: border-box;\n cursor: pointer;\n min-width: 144px;\n position: relative;\n"])), function (_a) {
28
+ var S_CardGroups = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n background-color: ", ";\n border-radius: 16px;\n box-sizing: border-box;\n min-width: 144px;\n position: relative;\n\n &::after {\n border-radius: 16px;\n box-shadow: ", ";\n content: '';\n height: 100%;\n position: absolute;\n top: 0;\n width: 100%;\n }\n"], ["\n background-color: ", ";\n border-radius: 16px;\n box-sizing: border-box;\n min-width: 144px;\n position: relative;\n\n &::after {\n border-radius: 16px;\n box-shadow: ", ";\n content: '';\n height: 100%;\n position: absolute;\n top: 0;\n width: 100%;\n }\n"])), function (_a) {
29
29
  var theme = _a.theme;
30
30
  return theme.ui_cpnt_card_base;
31
31
  }, function (_a) {
32
- var theme = _a.theme;
33
- return theme.boxShadow.elevation2;
34
- }, function (_a) {
35
- var selectState = _a.selectState, theme = _a.theme;
36
- return selectState === 'selected' ? "border: 2px solid " + theme.ui_cpnt_card_selected_border : '';
32
+ var theme = _a.theme, selectState = _a.selectState;
33
+ if (selectState === 'unselected')
34
+ return theme.boxShadow.elevation2;
35
+ return theme.boxShadow.elevation2 + ", 0 0 0 2px " + theme.ui_cpnt_card_selected_border + " inset";
37
36
  });
38
37
  var S_ImageIconModeBox = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n div {\n border-radius: 16px 16px 0 0;\n }\n"], ["\n div {\n border-radius: 16px 16px 0 0;\n }\n"])));
39
38
  var S_Content = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n padding: ", "; ;\n"], ["\n display: flex;\n flex-direction: column;\n padding: ", "; ;\n"])), function (_a) {
@@ -60,6 +60,9 @@ function IconButton(_a) {
60
60
  if (iconColorKey) {
61
61
  return iconColorKey;
62
62
  }
63
+ if (fillType === 'fill' && baseColorKey === 'ui_cpnt_button_fill_base_transparent') {
64
+ return 'ui_cpnt_button_icon_enabled';
65
+ }
63
66
  return iconStateColorObj[fillType];
64
67
  };
65
68
  return (react_1.default.createElement(S_IconButton, { fillType: fillType, shapeType: shapeType, baseSize: baseSize, baseColorKey: baseColorKey, borderColorKey: borderColorKey, shadow: shadow, colorTheme: colorTheme, type: type, state: state, disabled: state === 'disabled', tabIndex: tabIndex, onClick: handleClick, onMouseDown: handleMouseDown },
@@ -74,7 +77,7 @@ var fillDisabled = (0, styled_components_1.css)(templateObject_1 || (templateObj
74
77
  var fill = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n background-color: ", ";\n\n &:active:enabled {\n ", "\n }\n\n ", ";\n"], ["\n background-color: ", ";\n\n &:active:enabled {\n ", "\n }\n\n ", ";\n"])), function (_a) {
75
78
  var theme = _a.theme, baseColorKey = _a.baseColorKey;
76
79
  return baseColorKey
77
- ? (0, ui_colors_1.customTheme)(window.PdsUtils ? window.PdsUtils.tone : 'DARK')[baseColorKey]
80
+ ? (0, ui_colors_1.customTheme)(window.PdsUtils ? window.PdsUtils.tone : 'DARK', window.PdsUtils ? window.PdsUtils.palette : {})[baseColorKey]
78
81
  : theme.ui_cpnt_button_fill_base_primary;
79
82
  }, function (_a) {
80
83
  var theme = _a.theme, baseColorKey = _a.baseColorKey;
@@ -98,7 +101,7 @@ var line = (0, styled_components_1.css)(templateObject_4 || (templateObject_4 =
98
101
  }, function (_a) {
99
102
  var theme = _a.theme, borderColorKey = _a.borderColorKey;
100
103
  return borderColorKey
101
- ? (0, ui_colors_1.customTheme)(window.PdsUtils ? window.PdsUtils.tone : 'DARK')[borderColorKey]
104
+ ? (0, ui_colors_1.customTheme)(window.PdsUtils ? window.PdsUtils.tone : 'DARK', window.PdsUtils ? window.PdsUtils.palette : {})[borderColorKey]
102
105
  : theme.ui_cpnt_button_line_border_enabled;
103
106
  }, function (_a) {
104
107
  var colorTheme = _a.colorTheme;
@@ -252,7 +252,8 @@ var customFontStyle = (0, styled_components_1.css)(templateObject_28 || (templat
252
252
  });
253
253
  var colorOverrideStyle = (0, styled_components_1.css)(templateObject_29 || (templateObject_29 = __makeTemplateObject(["\n color: ", ";\n"], ["\n color: ", ";\n"])), function (_a) {
254
254
  var colorOverride = _a.colorOverride;
255
- return colorOverride && (0, common_1.customTheme)(window.PdsUtils ? window.PdsUtils.tone : 'DARK')[colorOverride];
255
+ return colorOverride &&
256
+ (0, common_1.customTheme)(window.PdsUtils ? window.PdsUtils.tone : 'DARK', window.PdsUtils ? window.PdsUtils.palette : {})[colorOverride];
256
257
  });
257
258
  var ellipsisStyle = (0, styled_components_1.css)(templateObject_30 || (templateObject_30 = __makeTemplateObject(["\n -webkit-box-orient: vertical;\n display: -webkit-box;\n -webkit-line-clamp: ", ";\n overflow: hidden;\n text-overflow: ellipsis;\n"], ["\n -webkit-box-orient: vertical;\n display: -webkit-box;\n -webkit-line-clamp: ", ";\n overflow: hidden;\n text-overflow: ellipsis;\n"])), function (_a) {
258
259
  var lineLimit = _a.lineLimit;
@@ -63,7 +63,7 @@ var fillDisabled = (0, styled_components_1.css)(templateObject_1 || (templateObj
63
63
  var fill = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n background-color: ", ";\n\n &:active:not([disabled]) {\n background-image: ", ";\n }\n\n ", ";\n"], ["\n background-color: ", ";\n\n &:active:not([disabled]) {\n background-image: ", ";\n }\n\n ", ";\n"])), function (_a) {
64
64
  var theme = _a.theme, baseColorKey = _a.baseColorKey;
65
65
  return baseColorKey
66
- ? (0, common_1.customTheme)(window.PdsUtils ? window.PdsUtils.tone : 'DARK')[baseColorKey]
66
+ ? (0, common_1.customTheme)(window.PdsUtils ? window.PdsUtils.tone : 'DARK', window.PdsUtils ? window.PdsUtils.palette : {})[baseColorKey]
67
67
  : theme.ui_cpnt_button_fill_base_primary;
68
68
  }, function (_a) {
69
69
  var theme = _a.theme, baseColorKey = _a.baseColorKey;
@@ -95,7 +95,7 @@ var line = (0, styled_components_1.css)(templateObject_6 || (templateObject_6 =
95
95
  }, function (_a) {
96
96
  var theme = _a.theme, borderColorKey = _a.borderColorKey;
97
97
  return borderColorKey
98
- ? (0, common_1.customTheme)(window.PdsUtils ? window.PdsUtils.tone : 'DARK')[borderColorKey]
98
+ ? (0, common_1.customTheme)(window.PdsUtils ? window.PdsUtils.tone : 'DARK', window.PdsUtils ? window.PdsUtils.palette : {})[borderColorKey]
99
99
  : theme.ui_cpnt_button_line_border_enabled;
100
100
  }, function (_a) {
101
101
  var colorTheme = _a.colorTheme;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pds-dev-kit-web",
3
- "version": "1.3.24",
3
+ "version": "1.3.27",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "main": "dist/index.js",
package/release-note.md CHANGED
@@ -1,7 +1,9 @@
1
1
  # PDS-DEV-KIT-WEB Release Notes
2
- ## [v1.3.24]
2
+ ## [v1.3.27]
3
3
 
4
- ### Layout
5
- * WTS_1
6
- * ContentArea2에 height: 100%; overflow: auto; 추가 (무한 스크롤 위한 임시 조치)
7
- * Content2에 height: 100%; 추가 (무한 스크롤 위한 임시 조치)
4
+ ### Component
5
+ * IconButton
6
+ * baseColorKey가 ui_cpnt_button_fill_base_transparent(투명)일때, icon색상 변경
7
+
8
+ ### Color
9
+ * 컬러 키 값 22.05.31 22시 10분 기준 싱크