pds-dev-kit-web 2.2.86 → 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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pds-dev-kit-web",
3
- "version": "2.2.86",
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.86]
2
+ ## [v2.2.87]
3
3
  ## daily|https://design.storybook.publ.biz/
4
4
 
5
5
  ### 업데이트 사항
6
- * [PDS-1240] UserDesktopSideTab에 spacingMode 추가
6
+ * [PDS-1241] UserDestopTabBar의 styleTheme : content2의 컬러 이슈 해결