pds-dev-kit-web 2.2.85 → 2.2.87

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.
@@ -9,14 +9,22 @@ function buildCascadedColors(lowLevel, highLevel, override) {
9
9
  if (override === void 0) { override = {}; }
10
10
  return Object.keys(highLevel).reduce(function (acc, key) {
11
11
  var keyInLowLevelColors = highLevel[key];
12
+ var hasOpacity = keyInLowLevelColors.indexOf('/') !== -1;
12
13
  var colorValue;
13
- if (keyInLowLevelColors.indexOf('/') !== -1) {
14
- colorValue = override[key]
15
- ? override[key]
16
- : lowLevel[keyInLowLevelColors.split('/')[0]] + lowLevel[keyInLowLevelColors.split('/')[1]];
14
+ if (hasOpacity) {
15
+ var _a = keyInLowLevelColors.split('/'), colorKey = _a[0], opacity = _a[1];
16
+ var isUserBrandPrimaryColor = key.includes('usr_brand_primary');
17
+ if (isUserBrandPrimaryColor) {
18
+ colorValue = override.usr_brand_primary
19
+ ? override.usr_brand_primary + lowLevel[opacity]
20
+ : lowLevel[colorKey] + lowLevel[opacity];
21
+ }
22
+ else {
23
+ colorValue = override[key] || lowLevel[colorKey] + lowLevel[opacity];
24
+ }
17
25
  }
18
26
  else {
19
- colorValue = override[key] ? override[key] : lowLevel[keyInLowLevelColors];
27
+ colorValue = override[key] || lowLevel[keyInLowLevelColors];
20
28
  }
21
29
  acc[key] = colorValue;
22
30
  return acc;
@@ -3,6 +3,7 @@ import type { PDSTabItemOption } from '../../../common/types';
3
3
  export type ItemType = PDSTabItemOption;
4
4
  type UserDesktopSideTabProps = {
5
5
  itemArray: ItemType[];
6
+ spacingMode?: 'use' | 'none';
6
7
  };
7
- declare function UserDesktopSideTab({ itemArray }: UserDesktopSideTabProps): JSX.Element;
8
+ declare function UserDesktopSideTab({ itemArray, spacingMode }: UserDesktopSideTabProps): JSX.Element;
8
9
  export default UserDesktopSideTab;
@@ -22,22 +22,22 @@ var jsx_runtime_1 = require("react/jsx-runtime");
22
22
  var styled_components_1 = __importDefault(require("styled-components"));
23
23
  var TextLabel_1 = require("../TextLabel");
24
24
  function UserDesktopSideTab(_a) {
25
- var itemArray = _a.itemArray;
25
+ var itemArray = _a.itemArray, _b = _a.spacingMode, spacingMode = _b === void 0 ? 'use' : _b;
26
26
  var handleClickTabItem = function (item, e) {
27
27
  if (item.onClick) {
28
28
  item.onClick(e);
29
29
  }
30
30
  };
31
31
  return ((0, jsx_runtime_1.jsx)("div", __assign({ "x-pds-name": "UserDesktopSideTab", "x-pds-element-type": "component", "x-pds-device-type": "desktop" }, { children: itemArray.map(function (item, index) {
32
- return ((0, jsx_runtime_1.jsx)(S_TabWrapper, __assign({ onClick: function (e) { return handleClickTabItem(item, e); } }, { children: (0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: item.title, lineLimit: 1, ellipsisMode: "use", styleTheme: "headingBold", colorTheme: item.isActive ? 'sysTextPrimary' : 'sysTextSecondary', singleLineMode: "use", wordBreak: "break_all" }) }), index));
32
+ return ((0, jsx_runtime_1.jsx)(S_TabWrapper, __assign({ spacingMode: spacingMode, onClick: function (e) { return handleClickTabItem(item, e); } }, { children: (0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: item.title, lineLimit: 1, ellipsisMode: "use", styleTheme: "headingBold", colorTheme: item.isActive ? 'sysTextPrimary' : 'sysTextSecondary', singleLineMode: "use", wordBreak: "break_all" }) }), index));
33
33
  }) })));
34
34
  }
35
35
  var S_TabWrapper = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n align-items: center;\n background-color: ", ";\n cursor: pointer;\n display: flex;\n height: 56px;\n padding-left: ", ";\n padding-right: ", ";\n"], ["\n align-items: center;\n background-color: ", ";\n cursor: pointer;\n display: flex;\n height: 56px;\n padding-left: ", ";\n padding-right: ", ";\n"])), function (_a) {
36
36
  var theme = _a.theme;
37
37
  return theme.ui_cpnt_userdesktopsidetab_base_area;
38
38
  }, function (_a) {
39
- var theme = _a.theme;
40
- return theme.spacing.spacingE;
39
+ var theme = _a.theme, spacingMode = _a.spacingMode;
40
+ return (spacingMode === 'use' ? theme.spacing.spacingE : 0);
41
41
  }, function (_a) {
42
42
  var theme = _a.theme;
43
43
  return theme.spacing.spacingD;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pds-dev-kit-web",
3
- "version": "2.2.85",
3
+ "version": "2.2.87",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "main": "dist/index.js",
package/release-note.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # PDS-DEV-KIT-WEB Release Notes
2
- ## [v2.2.85]
2
+ ## [v2.2.87]
3
3
  ## daily|https://design.storybook.publ.biz/
4
4
 
5
5
  ### 업데이트 사항
6
- * [PDS-1239] HorizontalFormGroup에 labelRequirementMode prop 추가
6
+ * [PDS-1241] UserDestopTabBar의 styleTheme : content2의 컬러 이슈 해결