pds-dev-kit-web 2.2.258 → 2.2.260

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.
@@ -379,5 +379,6 @@
379
379
  "sys_component_border_01": "grey100/opacity50",
380
380
  "sys_widget_grey_08": "grey400",
381
381
  "sys_on_base_hover_01": "black/opacity05",
382
- "sys_on_base_pressed_01": "black/opacity10"
382
+ "sys_on_base_pressed_01": "black/opacity10",
383
+ "usr_usr_brand_secondary_opacity50": "darkgreen500/opacity50"
383
384
  }
@@ -379,5 +379,6 @@
379
379
  "sys_component_border_01": "grey100/opacity50",
380
380
  "sys_widget_grey_08": "darkgrey500",
381
381
  "sys_on_base_hover_01": "white/opacity10",
382
- "sys_on_base_pressed_01": "white/opacity20"
382
+ "sys_on_base_pressed_01": "white/opacity20",
383
+ "usr_usr_brand_secondary_opacity50": "green500/opacity50"
383
384
  }
@@ -910,5 +910,6 @@
910
910
  "ui_cpnt_message_reaction_base_02": "sys_component_pastel_base_02",
911
911
  "ui_cpnt_message_reaction_base_03": "sys_component_pastel_base_03",
912
912
  "ui_cpnt_message_reaction_base_04": "sys_component_pastel_base_04",
913
- "ui_cpnt_message_reaction_base_05": "sys_component_pastel_base_05"
913
+ "ui_cpnt_message_reaction_base_05": "sys_component_pastel_base_05",
914
+ "ui_145": "usr_brand_secondary_opacity50"
914
915
  }
@@ -1,129 +1,5 @@
1
1
  declare const colorSet: {
2
- readonly SemanticColor: {
3
- blue500: string;
4
- blue700: string;
5
- blue300: string;
6
- green700: string;
7
- green500: string;
8
- green300: string;
9
- red500: string;
10
- grey900: string;
11
- grey500: string;
12
- grey400: string;
13
- grey100: string;
14
- grey50: string;
15
- white: string;
16
- black: string;
17
- darkblue500: string;
18
- grey950: string;
19
- darkgrey900: string;
20
- darkgrey500: string;
21
- darkgrey400: string;
22
- darkgrey100: string;
23
- darkgrey50: string;
24
- darkred500: string;
25
- darkgreen700: string;
26
- orange500: string;
27
- darkorange500: string;
28
- opacity00: string;
29
- opacity20: string;
30
- opacity30: string;
31
- opacity65: string;
32
- darkgreen500: string;
33
- grey70: string;
34
- navy500: string;
35
- lightgreen500: string;
36
- pink500: string;
37
- darkgrey70: string;
38
- darknavy500: string;
39
- darkpink500: string;
40
- darklightgreen500: string;
41
- opacity10: string;
42
- grey600: string;
43
- darkgrey600: string;
44
- skyblue500: string;
45
- skyblue300: string;
46
- pink300: string;
47
- lightpink500: string;
48
- darkblue300: string;
49
- darkblue700: string;
50
- darkgreen300: string;
51
- darkskyblue500: string;
52
- navy100: string;
53
- darknavy100: string;
54
- opacity80: string;
55
- opacity50: string;
56
- grey30: string;
57
- opacity95: string;
58
- darkgrey30: string;
59
- opacity40: string;
60
- kakaoyellow: string;
61
- pastelblue500: string;
62
- pastelpink500: string;
63
- pastelorange500: string;
64
- pastelgreen500: string;
65
- pastelpurple500: string;
66
- darkpastelblue500: string;
67
- darkpastelpink500: string;
68
- darkpastelorange500: string;
69
- darkpastelgreen500: string;
70
- darkpastelpurple500: string;
71
- green30: string;
72
- darkgreen30: string;
73
- orange50: string;
74
- darkorange50: string;
75
- orange30: string;
76
- darkorange30: string;
77
- green50: string;
78
- darkgreen50: string;
79
- opacity90: string;
80
- facebookblue: string;
81
- opacity05: string;
82
- opacity15: string;
83
- grey80: string;
84
- grey200: string;
85
- darkgrey80: string;
86
- darkgrey200: string;
87
- opacity70: string;
88
- opacity60: string;
89
- skyblue100: string;
90
- green100: string;
91
- darkgreen100: string;
92
- darkskyblue100: string;
93
- opacity25: string;
94
- opacity35: string;
95
- grey10: string;
96
- darkgrey10: string;
97
- blue50: string;
98
- darkblue50: string;
99
- blue10: string;
100
- red10: string;
101
- green10: string;
102
- blue30: string;
103
- red30: string;
104
- orange300: string;
105
- darkorange300: string;
106
- darkpink300: string;
107
- pastelblue300: string;
108
- darkpastelblue300: string;
109
- softpurple500: string;
110
- darksoftpurple500: string;
111
- coolpink500: string;
112
- darkcoolpink500: string;
113
- brown500: string;
114
- darkbrown500: string;
115
- yellow300: string;
116
- darkyellow300: string;
117
- grey20: string;
118
- darkgrey20: string;
119
- grey300: string;
120
- darkgrey300: string;
121
- yellow500: string;
122
- darkyellow500: string;
123
- grey450: string;
124
- darkgrey450: string;
125
- };
126
- readonly PaletteColor_light: {
2
+ readonly PaletteColor_Dark: {
127
3
  sys_container_background_01: string;
128
4
  sys_container_background_02: string;
129
5
  sys_container_background_03: string;
@@ -505,8 +381,133 @@ declare const colorSet: {
505
381
  sys_widget_grey_08: string;
506
382
  sys_on_base_hover_01: string;
507
383
  sys_on_base_pressed_01: string;
384
+ usr_usr_brand_secondary_opacity50: string;
508
385
  };
509
- readonly PaletteColor_Dark: {
386
+ readonly SemanticColor: {
387
+ blue500: string;
388
+ blue700: string;
389
+ blue300: string;
390
+ green700: string;
391
+ green500: string;
392
+ green300: string;
393
+ red500: string;
394
+ grey900: string;
395
+ grey500: string;
396
+ grey400: string;
397
+ grey100: string;
398
+ grey50: string;
399
+ white: string;
400
+ black: string;
401
+ darkblue500: string;
402
+ grey950: string;
403
+ darkgrey900: string;
404
+ darkgrey500: string;
405
+ darkgrey400: string;
406
+ darkgrey100: string;
407
+ darkgrey50: string;
408
+ darkred500: string;
409
+ darkgreen700: string;
410
+ orange500: string;
411
+ darkorange500: string;
412
+ opacity00: string;
413
+ opacity20: string;
414
+ opacity30: string;
415
+ opacity65: string;
416
+ darkgreen500: string;
417
+ grey70: string;
418
+ navy500: string;
419
+ lightgreen500: string;
420
+ pink500: string;
421
+ darkgrey70: string;
422
+ darknavy500: string;
423
+ darkpink500: string;
424
+ darklightgreen500: string;
425
+ opacity10: string;
426
+ grey600: string;
427
+ darkgrey600: string;
428
+ skyblue500: string;
429
+ skyblue300: string;
430
+ pink300: string;
431
+ lightpink500: string;
432
+ darkblue300: string;
433
+ darkblue700: string;
434
+ darkgreen300: string;
435
+ darkskyblue500: string;
436
+ navy100: string;
437
+ darknavy100: string;
438
+ opacity80: string;
439
+ opacity50: string;
440
+ grey30: string;
441
+ opacity95: string;
442
+ darkgrey30: string;
443
+ opacity40: string;
444
+ kakaoyellow: string;
445
+ pastelblue500: string;
446
+ pastelpink500: string;
447
+ pastelorange500: string;
448
+ pastelgreen500: string;
449
+ pastelpurple500: string;
450
+ darkpastelblue500: string;
451
+ darkpastelpink500: string;
452
+ darkpastelorange500: string;
453
+ darkpastelgreen500: string;
454
+ darkpastelpurple500: string;
455
+ green30: string;
456
+ darkgreen30: string;
457
+ orange50: string;
458
+ darkorange50: string;
459
+ orange30: string;
460
+ darkorange30: string;
461
+ green50: string;
462
+ darkgreen50: string;
463
+ opacity90: string;
464
+ facebookblue: string;
465
+ opacity05: string;
466
+ opacity15: string;
467
+ grey80: string;
468
+ grey200: string;
469
+ darkgrey80: string;
470
+ darkgrey200: string;
471
+ opacity70: string;
472
+ opacity60: string;
473
+ skyblue100: string;
474
+ green100: string;
475
+ darkgreen100: string;
476
+ darkskyblue100: string;
477
+ opacity25: string;
478
+ opacity35: string;
479
+ grey10: string;
480
+ darkgrey10: string;
481
+ blue50: string;
482
+ darkblue50: string;
483
+ blue10: string;
484
+ red10: string;
485
+ green10: string;
486
+ blue30: string;
487
+ red30: string;
488
+ orange300: string;
489
+ darkorange300: string;
490
+ darkpink300: string;
491
+ pastelblue300: string;
492
+ darkpastelblue300: string;
493
+ softpurple500: string;
494
+ darksoftpurple500: string;
495
+ coolpink500: string;
496
+ darkcoolpink500: string;
497
+ brown500: string;
498
+ darkbrown500: string;
499
+ yellow300: string;
500
+ darkyellow300: string;
501
+ grey20: string;
502
+ darkgrey20: string;
503
+ grey300: string;
504
+ darkgrey300: string;
505
+ yellow500: string;
506
+ darkyellow500: string;
507
+ grey450: string;
508
+ darkgrey450: string;
509
+ };
510
+ readonly PaletteColor_light: {
510
511
  sys_container_background_01: string;
511
512
  sys_container_background_02: string;
512
513
  sys_container_background_03: string;
@@ -888,6 +889,7 @@ declare const colorSet: {
888
889
  sys_widget_grey_08: string;
889
890
  sys_on_base_hover_01: string;
890
891
  sys_on_base_pressed_01: string;
892
+ usr_usr_brand_secondary_opacity50: string;
891
893
  };
892
894
  readonly UIColor: {
893
895
  ui_cpnt_button_fill_base_primary: string;
@@ -1802,6 +1804,7 @@ declare const colorSet: {
1802
1804
  ui_cpnt_message_reaction_base_03: string;
1803
1805
  ui_cpnt_message_reaction_base_04: string;
1804
1806
  ui_cpnt_message_reaction_base_05: string;
1807
+ ui_145: string;
1805
1808
  };
1806
1809
  };
1807
1810
  export default colorSet;
@@ -4,14 +4,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  /* eslint-disable import/order */
7
+ var PaletteColor_Dark_json_1 = __importDefault(require("./PaletteColor_Dark.json"));
7
8
  var SemanticColor_json_1 = __importDefault(require("./SemanticColor.json"));
8
9
  var PaletteColor_light_json_1 = __importDefault(require("./PaletteColor_light.json"));
9
- var PaletteColor_Dark_json_1 = __importDefault(require("./PaletteColor_Dark.json"));
10
10
  var UIColor_json_1 = __importDefault(require("./UIColor.json"));
11
11
  var colorSet = {
12
+ PaletteColor_Dark: PaletteColor_Dark_json_1.default,
12
13
  SemanticColor: SemanticColor_json_1.default,
13
14
  PaletteColor_light: PaletteColor_light_json_1.default,
14
- PaletteColor_Dark: PaletteColor_Dark_json_1.default,
15
15
  UIColor: UIColor_json_1.default
16
16
  };
17
17
  exports.default = colorSet;
@@ -911,4 +911,5 @@ export interface UITheme {
911
911
  ui_cpnt_message_reaction_base_03: string;
912
912
  ui_cpnt_message_reaction_base_04: string;
913
913
  ui_cpnt_message_reaction_base_05: string;
914
+ ui_145: string;
914
915
  }
@@ -1,4 +1,4 @@
1
- import type { PDSIconType, PDSTextType } from '../../../common';
1
+ import type { PDSIconType, PDSTextType, UiColors } from '../../../common';
2
2
  import type React from 'react';
3
3
  export type TextButtonProps = {
4
4
  text?: PDSTextType;
@@ -11,8 +11,9 @@ export type TextButtonProps = {
11
11
  iconFillType?: 'fill' | 'line';
12
12
  iconName?: PDSIconType;
13
13
  colorTheme?: 'none' | 'red' | 'grey_01' | 'grey2' | 'grey3' | 'white' | 'white2';
14
+ overrideColorKey?: UiColors;
14
15
  onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
15
16
  onKeyDown?: (e: React.KeyboardEvent<HTMLButtonElement>) => void;
16
17
  };
17
- declare function TextButton({ text, size, responsiveMode, fontWeight, type, state, iconMode, iconFillType, iconName, colorTheme, onClick, onKeyDown, ...rest }: TextButtonProps): JSX.Element;
18
+ declare function TextButton({ text, size, responsiveMode, fontWeight, type, state, iconMode, iconFillType, iconName, colorTheme, overrideColorKey, onClick, onKeyDown, ...rest }: TextButtonProps): JSX.Element;
18
19
  export default TextButton;
@@ -71,14 +71,16 @@ var textColor = {
71
71
  white: 'sysTextWhite',
72
72
  white2: 'sysTextWhite'
73
73
  };
74
- var iconColor = {
75
- none: 'ui_cpnt_button_icon_primary',
76
- red: 'ui_cpnt_button_icon_error',
77
- grey_01: 'ui_cpnt_button_icon_enabled',
78
- grey2: 'ui_cpnt_button_icon_default',
79
- grey3: 'ui_141',
80
- white: 'ui_cpnt_sidebar_icon_01',
81
- white2: 'ui_cpnt_sidebar_icon_01'
74
+ var getIconColor = function (overrideColorKey) {
75
+ return ({
76
+ none: overrideColorKey ? overrideColorKey : 'ui_cpnt_button_icon_primary',
77
+ red: overrideColorKey ? overrideColorKey : 'ui_cpnt_button_icon_error',
78
+ grey_01: overrideColorKey ? overrideColorKey : 'ui_cpnt_button_icon_enabled',
79
+ grey2: overrideColorKey ? overrideColorKey : 'ui_cpnt_button_icon_default',
80
+ grey3: overrideColorKey ? overrideColorKey : 'ui_141',
81
+ white: overrideColorKey ? overrideColorKey : 'ui_cpnt_sidebar_icon_01',
82
+ white2: overrideColorKey ? overrideColorKey : 'ui_cpnt_sidebar_icon_01'
83
+ });
82
84
  };
83
85
  var textDisabledColor = {
84
86
  none: 'sysTextTertiary',
@@ -89,14 +91,16 @@ var textDisabledColor = {
89
91
  white: 'sysTextTertiary',
90
92
  white2: 'sysTextTertiary'
91
93
  };
92
- var overrideTextColor = {
93
- none: undefined,
94
- red: undefined,
95
- grey_01: undefined,
96
- grey2: undefined,
97
- grey3: 'ui_141',
98
- white: undefined,
99
- white2: undefined
94
+ var getOverrideTextColor = function (overrideColorKey) {
95
+ return ({
96
+ none: overrideColorKey,
97
+ red: overrideColorKey,
98
+ grey_01: overrideColorKey,
99
+ grey2: overrideColorKey,
100
+ grey3: overrideColorKey ? overrideColorKey : 'ui_141',
101
+ white: overrideColorKey,
102
+ white2: overrideColorKey
103
+ });
100
104
  };
101
105
  var overrideTextDisabledColor = {
102
106
  none: undefined,
@@ -126,7 +130,7 @@ var backgroundPressedColor = {
126
130
  white2: 'ui_cpnt_textbutton_white_variation_base_pressed'
127
131
  };
128
132
  function TextButton(_a) {
129
- 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.iconMode, iconMode = _f === void 0 ? 'none' : _f, _g = _a.iconFillType, iconFillType = _g === void 0 ? 'line' : _g, iconName = _a.iconName, _h = _a.colorTheme, colorTheme = _h === void 0 ? 'none' : _h, onClick = _a.onClick, onKeyDown = _a.onKeyDown, rest = __rest(_a, ["text", "size", "responsiveMode", "fontWeight", "type", "state", "iconMode", "iconFillType", "iconName", "colorTheme", "onClick", "onKeyDown"]);
133
+ 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.iconMode, iconMode = _f === void 0 ? 'none' : _f, _g = _a.iconFillType, iconFillType = _g === void 0 ? 'line' : _g, iconName = _a.iconName, _h = _a.colorTheme, colorTheme = _h === void 0 ? 'none' : _h, overrideColorKey = _a.overrideColorKey, onClick = _a.onClick, onKeyDown = _a.onKeyDown, rest = __rest(_a, ["text", "size", "responsiveMode", "fontWeight", "type", "state", "iconMode", "iconFillType", "iconName", "colorTheme", "overrideColorKey", "onClick", "onKeyDown"]);
130
134
  var buttonRef = (0, react_1.useRef)(null);
131
135
  /**
132
136
  * @when keydown 이벤트가 있을 때만
@@ -144,9 +148,13 @@ function TextButton(_a) {
144
148
  onClick(e);
145
149
  }
146
150
  };
147
- return ((0, jsx_runtime_1.jsxs)(S_Button, __assign({ ref: buttonRef, "x-pds-name": "TextButton", "x-pds-element-type": "component", "x-pds-device-type": "desktop" }, rest, { size: size, responsiveMode: responsiveMode, onClick: handleClick, onKeyDown: onKeyDown, type: type, fontWeight: fontWeight, disabled: state === 'disabled', state: state, hoverColor: backgroundHoverColor[colorTheme], pressedColor: backgroundPressedColor[colorTheme] }, { children: [size !== 'xsmall' && iconMode === 'left' && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: iconName, size: size === 'large' || size === 'rlarge' ? 20 : 16, colorKey: state === 'disabled' ? 'ui_cpnt_button_text_disabled' : iconColor[colorTheme], fillType: iconFillType }), (0, jsx_runtime_1.jsx)(components_1.Spacing, { size: size === 'large' || size === 'rlarge' ? 'spacing_b' : 'spacing_a', spacingType: "width" })] })), (0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: text, styleTheme: textStyle[size], colorTheme: state === 'disabled' ? textDisabledColor[colorTheme] : textColor[colorTheme], colorOverride: state === 'disabled'
151
+ return ((0, jsx_runtime_1.jsxs)(S_Button, __assign({ ref: buttonRef, "x-pds-name": "TextButton", "x-pds-element-type": "component", "x-pds-device-type": "desktop" }, rest, { size: size, responsiveMode: responsiveMode, onClick: handleClick, onKeyDown: onKeyDown, type: type, fontWeight: fontWeight, disabled: state === 'disabled', state: state, hoverColor: backgroundHoverColor[colorTheme], pressedColor: backgroundPressedColor[colorTheme] }, { children: [size !== 'xsmall' && iconMode === 'left' && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: iconName, size: size === 'large' || size === 'rlarge' ? 20 : 16, colorKey: state === 'disabled'
152
+ ? 'ui_cpnt_button_text_disabled'
153
+ : getIconColor(overrideColorKey)[colorTheme], fillType: iconFillType }), (0, jsx_runtime_1.jsx)(components_1.Spacing, { size: size === 'large' || size === 'rlarge' ? 'spacing_b' : 'spacing_a', spacingType: "width" })] })), (0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: text, styleTheme: textStyle[size], colorTheme: state === 'disabled' ? textDisabledColor[colorTheme] : textColor[colorTheme], colorOverride: state === 'disabled'
148
154
  ? overrideTextDisabledColor[colorTheme]
149
- : overrideTextColor[colorTheme], singleLineMode: "use", ellipsisMode: "use", lineLimit: 1, wordBreak: "break_all" }), size !== 'xsmall' && iconMode === 'right' && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(components_1.Spacing, { size: size === 'large' || size === 'rlarge' ? 'spacing_b' : 'spacing_a', spacingType: "width" }), (0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: iconName, size: size === 'large' || size === 'rlarge' ? 20 : 16, colorKey: state === 'disabled' ? 'ui_cpnt_button_text_disabled' : iconColor[colorTheme], fillType: iconFillType })] }))] })));
155
+ : getOverrideTextColor(overrideColorKey)[colorTheme], singleLineMode: "use", ellipsisMode: "use", lineLimit: 1, wordBreak: "break_all" }), size !== 'xsmall' && iconMode === 'right' && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(components_1.Spacing, { size: size === 'large' || size === 'rlarge' ? 'spacing_b' : 'spacing_a', spacingType: "width" }), (0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: iconName, size: size === 'large' || size === 'rlarge' ? 20 : 16, colorKey: state === 'disabled'
156
+ ? 'ui_cpnt_button_text_disabled'
157
+ : getIconColor(overrideColorKey)[colorTheme], fillType: iconFillType })] }))] })));
150
158
  }
151
159
  var large = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n border-radius: 14px;\n height: 48px;\n\n ", ";\n\n & > div {\n height: 48px;\n line-height: 48px;\n }\n"], ["\n border-radius: 14px;\n height: 48px;\n\n ", ";\n\n & > div {\n height: 48px;\n line-height: 48px;\n }\n"])), function (_a) {
152
160
  var size = _a.size;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import type { PDSIconType, PDSTextType } from '../../../common';
2
+ import type { PDSIconType, PDSTextType, UiColors } from '../../../common';
3
3
  export type TextButtonProps = {
4
4
  text?: PDSTextType;
5
5
  size?: 'rlarge' | 'large' | 'medium' | 'small' | 'xsmall';
@@ -11,7 +11,8 @@ export type TextButtonProps = {
11
11
  iconFillType?: 'fill' | 'line';
12
12
  iconName?: PDSIconType;
13
13
  colorTheme?: 'none' | 'red' | 'grey_01' | 'grey2' | 'grey3' | 'white' | 'white2';
14
+ overrideColorKey?: UiColors;
14
15
  onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
15
16
  };
16
- declare function TextButton({ text, size, responsiveMode, fontWeight, type, state, iconMode, iconFillType, iconName, colorTheme, onClick, ...rest }: TextButtonProps): JSX.Element;
17
+ declare function TextButton({ text, size, responsiveMode, fontWeight, type, state, iconMode, iconFillType, iconName, colorTheme, overrideColorKey, onClick, ...rest }: TextButtonProps): JSX.Element;
17
18
  export default TextButton;
@@ -70,14 +70,16 @@ var textColor = {
70
70
  white: 'sysTextWhite',
71
71
  white2: 'sysTextWhite'
72
72
  };
73
- var iconColor = {
74
- none: 'ui_cpnt_button_icon_primary',
75
- red: 'ui_cpnt_button_icon_error',
76
- grey_01: 'ui_cpnt_button_icon_enabled',
77
- grey2: 'ui_cpnt_button_icon_default',
78
- grey3: 'ui_141',
79
- white: 'ui_cpnt_sidebar_icon_01',
80
- white2: 'ui_cpnt_sidebar_icon_01'
73
+ var getIconColor = function (overrideColorKey) {
74
+ return ({
75
+ none: overrideColorKey ? overrideColorKey : 'ui_cpnt_button_icon_primary',
76
+ red: overrideColorKey ? overrideColorKey : 'ui_cpnt_button_icon_error',
77
+ grey_01: overrideColorKey ? overrideColorKey : 'ui_cpnt_button_icon_enabled',
78
+ grey2: overrideColorKey ? overrideColorKey : 'ui_cpnt_button_icon_default',
79
+ grey3: overrideColorKey ? overrideColorKey : 'ui_141',
80
+ white: overrideColorKey ? overrideColorKey : 'ui_cpnt_sidebar_icon_01',
81
+ white2: overrideColorKey ? overrideColorKey : 'ui_cpnt_sidebar_icon_01'
82
+ });
81
83
  };
82
84
  var textDisabledColor = {
83
85
  none: 'sysTextTertiary',
@@ -88,14 +90,16 @@ var textDisabledColor = {
88
90
  white: 'sysTextTertiary',
89
91
  white2: 'sysTextTertiary'
90
92
  };
91
- var overrideTextColor = {
92
- none: undefined,
93
- red: undefined,
94
- grey_01: undefined,
95
- grey2: undefined,
96
- grey3: 'ui_141',
97
- white: undefined,
98
- white2: undefined
93
+ var getOverrideTextColor = function (overrideColorKey) {
94
+ return ({
95
+ none: overrideColorKey,
96
+ red: overrideColorKey,
97
+ grey_01: overrideColorKey,
98
+ grey2: overrideColorKey,
99
+ grey3: overrideColorKey ? overrideColorKey : 'ui_141',
100
+ white: overrideColorKey,
101
+ white2: overrideColorKey
102
+ });
99
103
  };
100
104
  var overrideTextDisabledColor = {
101
105
  none: undefined,
@@ -116,15 +120,19 @@ var backgroundPressedColor = {
116
120
  white2: 'ui_cpnt_textbutton_white_variation_base_pressed'
117
121
  };
118
122
  function TextButton(_a) {
119
- 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.iconMode, iconMode = _f === void 0 ? 'none' : _f, _g = _a.iconFillType, iconFillType = _g === void 0 ? 'line' : _g, iconName = _a.iconName, _h = _a.colorTheme, colorTheme = _h === void 0 ? 'none' : _h, onClick = _a.onClick, rest = __rest(_a, ["text", "size", "responsiveMode", "fontWeight", "type", "state", "iconMode", "iconFillType", "iconName", "colorTheme", "onClick"]);
123
+ 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.iconMode, iconMode = _f === void 0 ? 'none' : _f, _g = _a.iconFillType, iconFillType = _g === void 0 ? 'line' : _g, iconName = _a.iconName, _h = _a.colorTheme, colorTheme = _h === void 0 ? 'none' : _h, overrideColorKey = _a.overrideColorKey, onClick = _a.onClick, rest = __rest(_a, ["text", "size", "responsiveMode", "fontWeight", "type", "state", "iconMode", "iconFillType", "iconName", "colorTheme", "overrideColorKey", "onClick"]);
120
124
  var handleClick = function (e) {
121
125
  if (onClick) {
122
126
  onClick(e);
123
127
  }
124
128
  };
125
- return ((0, jsx_runtime_1.jsxs)(S_Button, __assign({ "x-pds-name": "TextButton", "x-pds-element-type": "component", "x-pds-device-type": "mobile" }, rest, { size: size, responsiveMode: responsiveMode, onClick: handleClick, type: type, fontWeight: fontWeight, disabled: state === 'disabled', pressedColor: backgroundPressedColor[colorTheme] }, { children: [size !== 'xsmall' && iconMode === 'left' && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: iconName, size: size === 'large' || size === 'rlarge' ? 20 : 16, colorKey: state === 'disabled' ? 'ui_cpnt_button_text_disabled' : iconColor[colorTheme], fillType: iconFillType }), (0, jsx_runtime_1.jsx)(components_1.Spacing, { size: size === 'large' || size === 'rlarge' ? 'spacing_b' : 'spacing_a', spacingType: "width" })] })), (0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: text, styleTheme: textStyle[size], colorTheme: state === 'disabled' ? textDisabledColor[colorTheme] : textColor[colorTheme], colorOverride: state === 'disabled'
129
+ return ((0, jsx_runtime_1.jsxs)(S_Button, __assign({ "x-pds-name": "TextButton", "x-pds-element-type": "component", "x-pds-device-type": "mobile" }, rest, { size: size, responsiveMode: responsiveMode, onClick: handleClick, type: type, fontWeight: fontWeight, disabled: state === 'disabled', pressedColor: backgroundPressedColor[colorTheme] }, { children: [size !== 'xsmall' && iconMode === 'left' && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: iconName, size: size === 'large' || size === 'rlarge' ? 20 : 16, colorKey: state === 'disabled'
130
+ ? 'ui_cpnt_button_text_disabled'
131
+ : getIconColor(overrideColorKey)[colorTheme], fillType: iconFillType }), (0, jsx_runtime_1.jsx)(components_1.Spacing, { size: size === 'large' || size === 'rlarge' ? 'spacing_b' : 'spacing_a', spacingType: "width" })] })), (0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: text, styleTheme: textStyle[size], colorTheme: state === 'disabled' ? textDisabledColor[colorTheme] : textColor[colorTheme], colorOverride: state === 'disabled'
126
132
  ? overrideTextDisabledColor[colorTheme]
127
- : overrideTextColor[colorTheme], singleLineMode: "use" }), size !== 'xsmall' && iconMode === 'right' && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(components_1.Spacing, { size: size === 'large' || size === 'rlarge' ? 'spacing_b' : 'spacing_a', spacingType: "width" }), (0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: iconName, size: size === 'large' || size === 'rlarge' ? 20 : 16, colorKey: state === 'disabled' ? 'ui_cpnt_button_text_disabled' : iconColor[colorTheme], fillType: iconFillType })] }))] })));
133
+ : getOverrideTextColor(overrideColorKey)[colorTheme], singleLineMode: "use" }), size !== 'xsmall' && iconMode === 'right' && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(components_1.Spacing, { size: size === 'large' || size === 'rlarge' ? 'spacing_b' : 'spacing_a', spacingType: "width" }), (0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: iconName, size: size === 'large' || size === 'rlarge' ? 20 : 16, colorKey: state === 'disabled'
134
+ ? 'ui_cpnt_button_text_disabled'
135
+ : getIconColor(overrideColorKey)[colorTheme], fillType: iconFillType })] }))] })));
128
136
  }
129
137
  var large = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n border-radius: 14px;\n height: 48px;\n ", ";\n\n & > div {\n height: 48px;\n line-height: 48px;\n }\n"], ["\n border-radius: 14px;\n height: 48px;\n ", ";\n\n & > div {\n height: 48px;\n line-height: 48px;\n }\n"])), function (_a) {
130
138
  var size = _a.size;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pds-dev-kit-web",
3
- "version": "2.2.258",
3
+ "version": "2.2.260",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "main": "dist/index.js",
package/release-note.md CHANGED
@@ -1,7 +1,8 @@
1
1
  # PDS-DEV-KIT-WEB Release Notes
2
- ## [v2.2.258]
2
+ ## [v2.2.260]
3
3
  ## daily|https://design.storybook.publ.biz/
4
4
 
5
5
  ### 업데이트 사항
6
6
 
7
- * [PDS-1371] ChatBubbleListItem에 리액션 관련 사항 추가
7
+ * ui_145 color 추가
8
+