pds-dev-kit-web 1.3.5 → 1.3.8

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 (30) hide show
  1. package/dist/index.d.ts +2 -2
  2. package/dist/src/common/assets/icons/line/DesignPreference.d.ts +4 -0
  3. package/dist/src/common/assets/icons/line/DesignPreference.js +38 -0
  4. package/dist/src/common/assets/icons/line/Question.d.ts +4 -0
  5. package/dist/src/common/assets/icons/line/Question.js +34 -0
  6. package/dist/src/common/assets/icons/line/index.d.ts +2 -0
  7. package/dist/src/common/assets/icons/line/index.js +4 -0
  8. package/dist/src/common/index.d.ts +2 -2
  9. package/dist/src/common/styles/colorSet/PaletteColor_Dark.json +11 -2
  10. package/dist/src/common/styles/colorSet/PaletteColor_light.json +11 -2
  11. package/dist/src/common/styles/colorSet/UIColor.json +11 -2
  12. package/dist/src/common/styles/colorSet/index.d.ts +84 -57
  13. package/dist/src/common/styles/colorSet/index.js +3 -3
  14. package/dist/src/common/styles/colorSet/ui-type.d.ts +9 -0
  15. package/dist/src/desktop/components/AdminListHeader/AdminListHeader.d.ts +2 -1
  16. package/dist/src/desktop/components/AdminListHeader/AdminListHeader.js +4 -4
  17. package/dist/src/desktop/components/AdminListHeader/HeaderBar.d.ts +1 -2
  18. package/dist/src/desktop/components/AdminListHeader/HeaderBar.js +2 -2
  19. package/dist/src/desktop/components/DesktopHeaderBar/DesktopHeaderBar.d.ts +13 -30
  20. package/dist/src/desktop/components/DesktopHeaderBar/DesktopHeaderBar.js +70 -18
  21. package/dist/src/desktop/components/DesktopTabBar/DesktopTabBar.js +23 -19
  22. package/dist/src/desktop/components/EditApplyTextField/EditApplyTextField.js +5 -2
  23. package/dist/src/desktop/components/FilterBar/FilterBar.js +2 -2
  24. package/dist/src/desktop/components/TextLabel/TextLabel.d.ts +4 -1
  25. package/dist/src/desktop/components/TextLabel/TextLabel.js +73 -8
  26. package/dist/src/desktop/layout/LayoutWF/LayoutWF.js +1 -1
  27. package/dist/src/desktop/layout/LayoutWS/LayoutWS.js +1 -1
  28. package/dist/src/desktop/layout/LayoutWT/LayoutWT.js +1 -1
  29. package/package.json +1 -1
  30. package/release-note.md +10 -47
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { UITheme, IFormValues, FillIconNameKeys, LineIconNameKeys, DesktopFontSize, FontWeight, PDSTextType, UiColors, PdsDevKitTheme, fontWeight, desktopFontSize, desktopLineHeight, mobileFontSize, mobileLineHeight, boxShadow, spacing, uiColors, customTheme, theme, Form } from './src/common';
2
- export { UITheme, IFormValues, FillIconNameKeys, LineIconNameKeys, PdsDevKitTheme, DesktopFontSize, FontWeight, PDSTextType, UiColors };
1
+ import { UITheme, IFormValues, FillIconNameKeys, LineIconNameKeys, DesktopFontSize, FontWeight, PDSTextType, PDSValueOption, UiColors, PdsDevKitTheme, fontWeight, desktopFontSize, desktopLineHeight, mobileFontSize, mobileLineHeight, boxShadow, spacing, uiColors, customTheme, theme, Form } from './src/common';
2
+ export { UITheme, IFormValues, FillIconNameKeys, LineIconNameKeys, PdsDevKitTheme, DesktopFontSize, FontWeight, PDSTextType, PDSValueOption, UiColors };
3
3
  export { fontWeight, desktopFontSize, desktopLineHeight, mobileFontSize, mobileLineHeight, boxShadow, spacing, uiColors, customTheme };
4
4
  export { theme };
5
5
  export { Form };
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import IconType from '../IconType';
3
+ declare const DesignPreference: ({ color, size, ...rest }: IconType) => JSX.Element;
4
+ export default DesignPreference;
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ var __rest = (this && this.__rest) || function (s, e) {
14
+ var t = {};
15
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
16
+ t[p] = s[p];
17
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
18
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
19
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
20
+ t[p[i]] = s[p[i]];
21
+ }
22
+ return t;
23
+ };
24
+ var __importDefault = (this && this.__importDefault) || function (mod) {
25
+ return (mod && mod.__esModule) ? mod : { "default": mod };
26
+ };
27
+ Object.defineProperty(exports, "__esModule", { value: true });
28
+ var react_1 = __importDefault(require("react"));
29
+ var DesignPreference = function (_a) {
30
+ var color = _a.color, size = _a.size, rest = __rest(_a, ["color", "size"]);
31
+ return (react_1.default.createElement("svg", __assign({ width: size, height: size, viewBox: "0 0 24 24" }, rest),
32
+ react_1.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24" },
33
+ react_1.default.createElement("g", { fill: "none", fillRule: "evenodd" },
34
+ react_1.default.createElement("path", { stroke: color, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", d: "M14.0742,15.9112 C12.1572,16.6692 10.8122,18.4402 10.8122,20.5052 C10.8122,20.9592 10.8782,21.3992 11.0002,21.8172 C5.8122,21.4682 1.7242,17.5842 1.7242,12.8452 C1.7242,7.8752 6.2192,3.8462 11.7632,3.8462 C13.6432,3.8462 15.4022,4.3092 16.9062,5.1152 M20.6709,8.6912 C21.3939,9.9342 21.8029,11.3462 21.8029,12.8452 C21.8029,14.5302 21.2849,16.1062 20.3859,17.4542 C19.6069,16.5162 18.4769,15.8432 17.1799,15.6092" }),
35
+ react_1.default.createElement("path", { fill: color, d: "M8.9422,10.4341 C8.9422,9.3141 8.0342,8.4061 6.9142,8.4061 C5.7952,8.4061 4.8872,9.3141 4.8872,10.4341 C4.8872,11.5541 5.7952,12.4621 6.9142,12.4621 C8.0342,12.4621 8.9422,11.5541 8.9422,10.4341 M13.5869,7.8135 C13.5869,6.8415 12.7989,6.0535 11.8269,6.0535 C10.8559,6.0535 10.0679,6.8415 10.0679,7.8135 C10.0679,8.7855 10.8559,9.5735 11.8269,9.5735 C12.7989,9.5735 13.5869,8.7855 13.5869,7.8135 M9.2917,16.0693 C9.2917,15.0973 8.5037,14.3093 7.5317,14.3093 C6.5607,14.3093 5.7727,15.0973 5.7727,16.0693 C5.7727,17.0413 6.5607,17.8293 7.5317,17.8293 C8.5037,17.8293 9.2917,17.0413 9.2917,16.0693" }),
36
+ react_1.default.createElement("path", { stroke: color, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", d: "M17.7283,9.5905 C18.2343,9.7555 18.5663,10.0895 18.5163,10.5975 C18.5083,10.6775 18.4923,10.7575 18.4663,10.8375 L15.2993,20.2945 C15.1073,20.8805 14.4773,21.1985 13.8923,21.0075 C13.3073,20.8155 12.9883,20.1855 13.1803,19.6005 L16.3473,10.1425 C16.5393,9.5575 17.1433,9.3985 17.7283,9.5905 Z M18.6588,1.8879 C18.6588,1.8879 23.8258,3.4439 21.8078,7.3999 C21.8078,7.3999 21.4918,8.0149 20.8398,8.5739 C20.7368,8.6629 20.6258,8.7499 20.5058,8.8329 C19.2708,9.6879 17.7148,9.9479 16.6108,8.9289 C16.1568,8.5099 15.9078,7.6109 15.9508,7.1689 C16.0678,5.9859 16.7088,5.5819 17.6238,4.8589 C18.5388,4.1349 18.7498,2.9029 18.6588,1.8879 Z" })))));
37
+ };
38
+ exports.default = DesignPreference;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import IconType from '../IconType';
3
+ declare const Question: ({ color, size, ...rest }: IconType) => JSX.Element;
4
+ export default Question;
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ var __rest = (this && this.__rest) || function (s, e) {
14
+ var t = {};
15
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
16
+ t[p] = s[p];
17
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
18
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
19
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
20
+ t[p[i]] = s[p[i]];
21
+ }
22
+ return t;
23
+ };
24
+ var __importDefault = (this && this.__importDefault) || function (mod) {
25
+ return (mod && mod.__esModule) ? mod : { "default": mod };
26
+ };
27
+ Object.defineProperty(exports, "__esModule", { value: true });
28
+ var react_1 = __importDefault(require("react"));
29
+ var Question = function (_a) {
30
+ var color = _a.color, size = _a.size, rest = __rest(_a, ["color", "size"]);
31
+ return (react_1.default.createElement("svg", __assign({ width: size, height: size, viewBox: "0 0 24 24" }, rest),
32
+ react_1.default.createElement("path", { fill: color, fillRule: "evenodd", d: "M12.0001,2 C17.5231,2 22.0001,6.477 22.0001,12 C22.0001,17.523 17.5231,22 12.0001,22 C6.4771,22 2.0001,17.523 2.0001,12 C2.0001,6.477 6.4771,2 12.0001,2 Z M12.0001,3.5 C7.3131,3.5 3.5001,7.313 3.5001,12 C3.5001,16.687 7.3131,20.5 12.0001,20.5 C16.6871,20.5 20.5001,16.687 20.5001,12 C20.5001,7.313 16.6871,3.5 12.0001,3.5 Z M11.7876652,14.8317533 C12.1414506,14.8317533 12.4377914,14.9408168 12.6748641,15.158944 C12.9119368,15.3779367 13.0304731,15.6575203 13.0304731,15.9976948 C13.0304731,16.3378693 12.9119368,16.6174529 12.6748641,16.8355801 C12.4377914,17.0545728 12.1414506,17.1636364 11.7876652,17.1636364 C11.432968,17.1636364 11.1366272,17.0545728 10.8986427,16.8355801 C10.66157,16.6174529 10.5439455,16.3378693 10.5439455,15.9976948 C10.5439455,15.6575203 10.66157,15.3779367 10.8986427,15.158944 C11.1366272,14.9408168 11.432968,14.8317533 11.7876652,14.8317533 Z M11.8870534,6.8 C12.8754641,6.8 13.6413912,7.1341154 14.1848347,7.6075898 C14.7282782,8.08106421 15,8.75535409 15,9.62872827 C15,10.0113164 14.9270546,10.3584155 14.7802519,10.6708913 C14.6334492,10.9833671 14.3991119,11.3036332 14.0754166,11.6299583 L13.3104013,12.3683014 C13.0933886,12.5846974 12.9593513,12.8244641 12.8581395,13.3550671 C12.7514568,13.9090408 12.4131723,14.2388283 11.8706406,14.2379644 C11.2907244,14.2379644 10.9032017,13.8389285 10.8913481,13.2892827 C10.8858772,13.0339354 10.8995545,12.7699323 11.0655053,12.3414683 C11.1986308,11.9952347 11.4183789,11.6905492 11.7475452,11.2993053 C12.0247379,10.9686522 12.324726,10.7522562 12.495236,10.5159518 C12.6666577,10.2787818 12.7514568,10.0173755 12.7514568,9.73259835 C12.7514568,9.03840004 12.4861178,8.76747227 11.9754997,8.69649439 C11.7119843,8.66100544 11.4338798,8.74237033 11.2806944,8.95097606 C11.1548635,9.12236168 11.1402744,9.21238241 11.087389,9.34914467 C10.9360272,9.74211977 10.5676527,9.97669301 10.1199501,9.97669301 L10.0533874,9.97669301 C9.26284117,9.97669301 8.84066944,9.23661876 9.05585848,8.51385618 C9.15342301,8.18666545 9.27195935,7.96161363 9.57285929,7.66558393 C10.1071846,7.1393089 10.8940836,6.8 11.8870534,6.8 Z" })));
33
+ };
34
+ exports.default = Question;
@@ -32,6 +32,7 @@ declare const lineIcons: {
32
32
  readonly ic_copy: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
33
33
  readonly ic_cs: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
34
34
  readonly ic_dashboard: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
35
+ readonly ic_design_preference: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
35
36
  readonly ic_developer: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
36
37
  readonly ic_edit: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
37
38
  readonly ic_editor: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
@@ -82,6 +83,7 @@ declare const lineIcons: {
82
83
  readonly ic_post_welcome: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
83
84
  readonly ic_profit: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
84
85
  readonly ic_qr: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
86
+ readonly ic_question: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
85
87
  readonly ic_radio_off: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
86
88
  readonly ic_radio_on: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
87
89
  readonly ic_report: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
@@ -35,6 +35,7 @@ var ContWatching_1 = __importDefault(require("./ContWatching"));
35
35
  var Copy_1 = __importDefault(require("./Copy"));
36
36
  var Cs_1 = __importDefault(require("./Cs"));
37
37
  var Dashboard_1 = __importDefault(require("./Dashboard"));
38
+ var DesignPreference_1 = __importDefault(require("./DesignPreference"));
38
39
  var Developer_1 = __importDefault(require("./Developer"));
39
40
  var Edit_1 = __importDefault(require("./Edit"));
40
41
  var Editor_1 = __importDefault(require("./Editor"));
@@ -85,6 +86,7 @@ var PostVote_1 = __importDefault(require("./PostVote"));
85
86
  var PostWelcome_1 = __importDefault(require("./PostWelcome"));
86
87
  var Profit_1 = __importDefault(require("./Profit"));
87
88
  var Qr_1 = __importDefault(require("./Qr"));
89
+ var Question_1 = __importDefault(require("./Question"));
88
90
  var RadioOff_1 = __importDefault(require("./RadioOff"));
89
91
  var RadioOn_1 = __importDefault(require("./RadioOn"));
90
92
  var Report_1 = __importDefault(require("./Report"));
@@ -163,6 +165,7 @@ var lineIcons = {
163
165
  ic_copy: Copy_1.default,
164
166
  ic_cs: Cs_1.default,
165
167
  ic_dashboard: Dashboard_1.default,
168
+ ic_design_preference: DesignPreference_1.default,
166
169
  ic_developer: Developer_1.default,
167
170
  ic_edit: Edit_1.default,
168
171
  ic_editor: Editor_1.default,
@@ -213,6 +216,7 @@ var lineIcons = {
213
216
  ic_post_welcome: PostWelcome_1.default,
214
217
  ic_profit: Profit_1.default,
215
218
  ic_qr: Qr_1.default,
219
+ ic_question: Question_1.default,
216
220
  ic_radio_off: RadioOff_1.default,
217
221
  ic_radio_on: RadioOn_1.default,
218
222
  ic_report: Report_1.default,
@@ -1,6 +1,6 @@
1
1
  import { UITheme } from './styles/colorSet/ui-type';
2
- import { IFormValues, FillIconNameKeys, LineIconNameKeys, PdsDevKitTheme, DesktopFontSize, FontWeight, PDSTextType, UiColors, PDSValueOption } from './types';
3
- export { UITheme, IFormValues, FillIconNameKeys, LineIconNameKeys, PdsDevKitTheme, DesktopFontSize, FontWeight, PDSTextType, UiColors, PDSValueOption };
2
+ import { IFormValues, FillIconNameKeys, LineIconNameKeys, PdsDevKitTheme, DesktopFontSize, FontWeight, PDSTextType, PDSValueOption, UiColors } from './types';
3
+ export { UITheme, IFormValues, FillIconNameKeys, LineIconNameKeys, PdsDevKitTheme, DesktopFontSize, FontWeight, PDSTextType, PDSValueOption, UiColors };
4
4
  import { fontWeight, desktopFontSize, desktopLineHeight, mobileFontSize, mobileLineHeight, boxShadow, spacing } from './styles/theme';
5
5
  import { uiColors, customTheme } from './styles/ui-colors';
6
6
  export { fontWeight, desktopFontSize, desktopLineHeight, mobileFontSize, mobileLineHeight, boxShadow, spacing, uiColors, customTheme };
@@ -73,7 +73,7 @@
73
73
  "sys_temp_secondary_01": "darkgreen700",
74
74
  "sys_temp_red": "darkred500",
75
75
  "sys_temp_white_opacity_00": "white/opacity00",
76
- "sys_temp_dimmed": "black/opacity65",
76
+ "sys_temp_dimmed": "black/opacity20",
77
77
  "sys_temp_black": "black",
78
78
  "sys_temp_primary_02": "darkblue700",
79
79
  "sys_temp_primary_03": "darkblue300",
@@ -140,5 +140,14 @@
140
140
  "sys_gradient_base_01_opacity40": "grey950/opacity40",
141
141
  "sys_widget_black": "black",
142
142
  "usr_temp_primary_01": "darkblue500",
143
- "sys_cpnt_sheet_base_02_opacity50": "darkgrey50/opacity50"
143
+ "sys_cpnt_sheet_base_02_opacity50": "darkgrey50/opacity50",
144
+ "usr_menu_primarymenu_main": "darkgrey900",
145
+ "usr_menu_primarymenu_sub": "darkgrey500",
146
+ "usr_menu_secondarymenu_main": "darkgrey900",
147
+ "usr_menu_secondarymenu_sub": "darkgrey500",
148
+ "usr_menu_hover": "darkblue500",
149
+ "usr_menu_active": "darkblue500",
150
+ "usr_menu_background": "grey950",
151
+ "sys_cpnt_base_white_opacity50": "white/opacity50",
152
+ "sys_widget_dark_01": "grey950"
144
153
  }
@@ -73,7 +73,7 @@
73
73
  "sys_temp_secondary_01": "green700",
74
74
  "sys_temp_red": "red500",
75
75
  "sys_temp_white_opacity_00": "white/opacity00",
76
- "sys_temp_dimmed": "black/opacity65",
76
+ "sys_temp_dimmed": "black/opacity20",
77
77
  "sys_temp_black": "black",
78
78
  "sys_temp_primary_02": "blue700",
79
79
  "sys_temp_primary_03": "blue300",
@@ -140,5 +140,14 @@
140
140
  "sys_gradient_base_01_opacity40": "white/opacity40",
141
141
  "sys_widget_black": "black",
142
142
  "usr_temp_primary_01": "blue500",
143
- "sys_cpnt_sheet_base_02_opacity50": "grey50/opacity50"
143
+ "sys_cpnt_sheet_base_02_opacity50": "grey50/opacity50",
144
+ "usr_menu_primarymenu_main": "grey900",
145
+ "usr_menu_primarymenu_sub": "grey500",
146
+ "usr_menu_secondarymenu_main": "grey900",
147
+ "usr_menu_secondarymenu_sub": "grey500",
148
+ "usr_menu_hover": "blue500",
149
+ "usr_menu_active": "blue500",
150
+ "usr_menu_background": "white",
151
+ "sys_cpnt_base_white_opacity50": "white/opacity50",
152
+ "sys_widget_dark_01": "grey900"
144
153
  }
@@ -469,6 +469,15 @@
469
469
  "ui_cpnt_pg_gradient_04": "sys_gradient_base_01_opacity75",
470
470
  "ui_cpnt_pg_gradient_05": "sys_gradient_base_01_opacity40",
471
471
  "ui_cpnt_mask_base": "sys_component_base_02",
472
- "ui_temp_usr_primary_01": "usr_temp_primary_01",
473
- "ui_cpnt_sheet_base_02_opacity50": "sys_cpnt_sheet_base_02_opacity50"
472
+ "ui_temp_usr_primary_01": "usr_brand_primary",
473
+ "ui_cpnt_sheet_base_02_opacity50": "sys_cpnt_sheet_base_02_opacity50",
474
+ "ui_menu_primarymenu_main": "usr_menu_primarymenu_main",
475
+ "ui_menu_primarymenu_sub": "usr_menu_primarymenu_sub",
476
+ "ui_menu_secondarymenu_main": "usr_menu_secondarymenu_main",
477
+ "ui_menu_secondarymenu_sub": "usr_menu_secondarymenu_sub",
478
+ "ui_menu_hover": "usr_menu_hover",
479
+ "ui_menu_active": "usr_menu_active",
480
+ "ui_menu_background": "usr_menu_background",
481
+ "ui_cpnt_video_progress_base": "sys_cpnt_base_white_opacity50",
482
+ "ui_cpnt_icon_sys_dark": "sys_widget_dark_01"
474
483
  }
@@ -1,4 +1,61 @@
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
+ };
2
59
  readonly PaletteColor_Dark: {
3
60
  sys_container_background_01: string;
4
61
  sys_container_background_02: string;
@@ -142,6 +199,15 @@ declare const colorSet: {
142
199
  sys_widget_black: string;
143
200
  usr_temp_primary_01: string;
144
201
  sys_cpnt_sheet_base_02_opacity50: string;
202
+ usr_menu_primarymenu_main: string;
203
+ usr_menu_primarymenu_sub: string;
204
+ usr_menu_secondarymenu_main: string;
205
+ usr_menu_secondarymenu_sub: string;
206
+ usr_menu_hover: string;
207
+ usr_menu_active: string;
208
+ usr_menu_background: string;
209
+ sys_cpnt_base_white_opacity50: string;
210
+ sys_widget_dark_01: string;
145
211
  };
146
212
  readonly PaletteColor_light: {
147
213
  sys_container_background_01: string;
@@ -286,6 +352,15 @@ declare const colorSet: {
286
352
  sys_widget_black: string;
287
353
  usr_temp_primary_01: string;
288
354
  sys_cpnt_sheet_base_02_opacity50: string;
355
+ usr_menu_primarymenu_main: string;
356
+ usr_menu_primarymenu_sub: string;
357
+ usr_menu_secondarymenu_main: string;
358
+ usr_menu_secondarymenu_sub: string;
359
+ usr_menu_hover: string;
360
+ usr_menu_active: string;
361
+ usr_menu_background: string;
362
+ sys_cpnt_base_white_opacity50: string;
363
+ sys_widget_dark_01: string;
289
364
  };
290
365
  readonly UIColor: {
291
366
  ui_cpnt_button_fill_base_primary: string;
@@ -760,63 +835,15 @@ declare const colorSet: {
760
835
  ui_cpnt_mask_base: string;
761
836
  ui_temp_usr_primary_01: string;
762
837
  ui_cpnt_sheet_base_02_opacity50: string;
763
- };
764
- readonly SemanticColor: {
765
- blue500: string;
766
- blue700: string;
767
- blue300: string;
768
- green700: string;
769
- green500: string;
770
- green300: string;
771
- red500: string;
772
- grey900: string;
773
- grey500: string;
774
- grey400: string;
775
- grey100: string;
776
- grey50: string;
777
- white: string;
778
- black: string;
779
- darkblue500: string;
780
- grey950: string;
781
- darkgrey900: string;
782
- darkgrey500: string;
783
- darkgrey400: string;
784
- darkgrey100: string;
785
- darkgrey50: string;
786
- darkred500: string;
787
- darkgreen700: string;
788
- orange500: string;
789
- darkorange500: string;
790
- opacity00: string;
791
- opacity20: string;
792
- opacity30: string;
793
- opacity65: string;
794
- darkgreen500: string;
795
- grey70: string;
796
- navy500: string;
797
- lightgreen500: string;
798
- pink500: string;
799
- darkgrey70: string;
800
- darknavy500: string;
801
- darkpink500: string;
802
- darklightgreen500: string;
803
- opacity10: string;
804
- grey600: string;
805
- darkgrey600: string;
806
- skyblue500: string;
807
- skyblue300: string;
808
- pink300: string;
809
- lightpink500: string;
810
- darkblue300: string;
811
- darkblue700: string;
812
- darkgreen300: string;
813
- darkskyblue500: string;
814
- navy100: string;
815
- darknavy100: string;
816
- opacity80: string;
817
- opacity50: string;
818
- grey30: string;
819
- opacity95: string;
838
+ ui_menu_primarymenu_main: string;
839
+ ui_menu_primarymenu_sub: string;
840
+ ui_menu_secondarymenu_main: string;
841
+ ui_menu_secondarymenu_sub: string;
842
+ ui_menu_hover: string;
843
+ ui_menu_active: string;
844
+ ui_menu_background: string;
845
+ ui_cpnt_video_progress_base: string;
846
+ ui_cpnt_icon_sys_dark: string;
820
847
  };
821
848
  };
822
849
  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 SemanticColor_json_1 = __importDefault(require("./SemanticColor.json"));
7
8
  var PaletteColor_Dark_json_1 = __importDefault(require("./PaletteColor_Dark.json"));
8
9
  var PaletteColor_light_json_1 = __importDefault(require("./PaletteColor_light.json"));
9
10
  var UIColor_json_1 = __importDefault(require("./UIColor.json"));
10
- var SemanticColor_json_1 = __importDefault(require("./SemanticColor.json"));
11
11
  var colorSet = {
12
+ SemanticColor: SemanticColor_json_1.default,
12
13
  PaletteColor_Dark: PaletteColor_Dark_json_1.default,
13
14
  PaletteColor_light: PaletteColor_light_json_1.default,
14
- UIColor: UIColor_json_1.default,
15
- SemanticColor: SemanticColor_json_1.default
15
+ UIColor: UIColor_json_1.default
16
16
  };
17
17
  exports.default = colorSet;
@@ -471,4 +471,13 @@ export interface UITheme {
471
471
  ui_cpnt_mask_base: string;
472
472
  ui_temp_usr_primary_01: string;
473
473
  ui_cpnt_sheet_base_02_opacity50: string;
474
+ ui_menu_primarymenu_main: string;
475
+ ui_menu_primarymenu_sub: string;
476
+ ui_menu_secondarymenu_main: string;
477
+ ui_menu_secondarymenu_sub: string;
478
+ ui_menu_hover: string;
479
+ ui_menu_active: string;
480
+ ui_menu_background: string;
481
+ ui_cpnt_video_progress_base: string;
482
+ ui_cpnt_icon_sys_dark: string;
474
483
  }
@@ -4,7 +4,6 @@ import { PDSValueOption } from '../../../common';
4
4
  declare type Props = {
5
5
  headerBarSize?: 'regular' | 'small';
6
6
  headerBarTitleText?: TFunctionResult;
7
- itemCountUnit?: number;
8
7
  currentPage?: number;
9
8
  totalPage?: number;
10
9
  contentText?: TFunctionResult;
@@ -13,6 +12,8 @@ declare type Props = {
13
12
  onChangeCount?: (option: PDSValueOption) => void;
14
13
  onClickNextButton?: () => void;
15
14
  onClickPrevButton?: () => void;
15
+ /** @deprecated v1.5 totalPage를 받아오기 때문에 deprecated 될 예정입니다. */
16
+ itemCountUnit?: number;
16
17
  };
17
18
  declare function AdminListHeader({ headerBarSize, headerBarTitleText, itemCountUnit, currentPage, totalPage, contentText, filterBar, dropdownTextArray, onChangeCount, onClickNextButton, onClickPrevButton }: Props): JSX.Element;
18
19
  export default AdminListHeader;
@@ -12,7 +12,7 @@ var styled_components_1 = __importDefault(require("styled-components"));
12
12
  var hybrid_1 = require("../../../hybrid");
13
13
  var TextLabel_1 = require("../TextLabel");
14
14
  var HeaderBar_1 = __importDefault(require("./HeaderBar"));
15
- var defaultPaginaionTextArray = [
15
+ var defaultPaginationTextArray = [
16
16
  {
17
17
  text: '15',
18
18
  value: 15
@@ -31,10 +31,10 @@ var defaultPaginaionTextArray = [
31
31
  }
32
32
  ];
33
33
  function AdminListHeader(_a) {
34
- var _b = _a.headerBarSize, headerBarSize = _b === void 0 ? 'regular' : _b, headerBarTitleText = _a.headerBarTitleText, _c = _a.itemCountUnit, itemCountUnit = _c === void 0 ? 15 : _c, _d = _a.currentPage, currentPage = _d === void 0 ? 1 : _d, _e = _a.totalPage, totalPage = _e === void 0 ? 1 : _e, contentText = _a.contentText, filterBar = _a.filterBar, _f = _a.dropdownTextArray, dropdownTextArray = _f === void 0 ? defaultPaginaionTextArray : _f, onChangeCount = _a.onChangeCount, onClickNextButton = _a.onClickNextButton, onClickPrevButton = _a.onClickPrevButton;
34
+ var _b = _a.headerBarSize, headerBarSize = _b === void 0 ? 'regular' : _b, headerBarTitleText = _a.headerBarTitleText, _c = _a.itemCountUnit, itemCountUnit = _c === void 0 ? 15 : _c, _d = _a.currentPage, currentPage = _d === void 0 ? 1 : _d, _e = _a.totalPage, totalPage = _e === void 0 ? 1 : _e, contentText = _a.contentText, filterBar = _a.filterBar, _f = _a.dropdownTextArray, dropdownTextArray = _f === void 0 ? defaultPaginationTextArray : _f, onChangeCount = _a.onChangeCount, onClickNextButton = _a.onClickNextButton, onClickPrevButton = _a.onClickPrevButton;
35
35
  return (react_1.default.createElement(S_AdminListHeader, null,
36
- react_1.default.createElement(HeaderBar_1.default, { titleText: headerBarTitleText, size: headerBarSize, count: itemCountUnit, currentPage: currentPage, totalPage: totalPage, dropdownTextArray: dropdownTextArray, onChangeDropdown: onChangeCount, onClickIBtn1: onClickNextButton, onClickIBtn2: onClickPrevButton }),
37
- headerBarTitleText && !contentText && react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_e" }),
36
+ react_1.default.createElement(HeaderBar_1.default, { titleText: headerBarTitleText, size: headerBarSize, currentPage: currentPage, totalPage: totalPage, dropdownTextArray: dropdownTextArray, onChangeDropdown: onChangeCount, onClickIBtn1: onClickNextButton, onClickIBtn2: onClickPrevButton }),
37
+ headerBarTitleText && !contentText && react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_d" }),
38
38
  headerBarTitleText && contentText && react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_b" }),
39
39
  contentText && (react_1.default.createElement(react_1.default.Fragment, null,
40
40
  react_1.default.createElement(S_ContentTextWrapper, null,
@@ -4,7 +4,6 @@ import { PDSValueOption } from '../../../common';
4
4
  declare type Props = {
5
5
  titleText?: TFunctionResult;
6
6
  size?: 'regular' | 'small';
7
- count?: number;
8
7
  currentPage?: number;
9
8
  totalPage?: number;
10
9
  dropdownTextArray: PDSValueOption[];
@@ -12,5 +11,5 @@ declare type Props = {
12
11
  onClickIBtn1?: () => void;
13
12
  onClickIBtn2?: () => void;
14
13
  };
15
- declare function HeaderBar({ titleText, size, count, currentPage, totalPage, dropdownTextArray, onChangeDropdown, onClickIBtn1, onClickIBtn2 }: Props): JSX.Element;
14
+ declare function HeaderBar({ titleText, size, currentPage, totalPage, dropdownTextArray, onChangeDropdown, onClickIBtn1, onClickIBtn2 }: Props): JSX.Element;
16
15
  export default HeaderBar;
@@ -34,7 +34,7 @@ var Dropdown_1 = require("../Dropdown");
34
34
  var IconButton_1 = require("../IconButton");
35
35
  var TextLabel_1 = require("../TextLabel");
36
36
  function HeaderBar(_a) {
37
- var titleText = _a.titleText, _b = _a.size, size = _b === void 0 ? 'regular' : _b, _c = _a.count, count = _c === void 0 ? 15 : _c, _d = _a.currentPage, currentPage = _d === void 0 ? 1 : _d, _e = _a.totalPage, totalPage = _e === void 0 ? 1 : _e, dropdownTextArray = _a.dropdownTextArray, onChangeDropdown = _a.onChangeDropdown, onClickIBtn1 = _a.onClickIBtn1, onClickIBtn2 = _a.onClickIBtn2;
37
+ var titleText = _a.titleText, _b = _a.size, size = _b === void 0 ? 'regular' : _b, _c = _a.currentPage, currentPage = _c === void 0 ? 1 : _c, _d = _a.totalPage, totalPage = _d === void 0 ? 1 : _d, dropdownTextArray = _a.dropdownTextArray, onChangeDropdown = _a.onChangeDropdown, onClickIBtn1 = _a.onClickIBtn1, onClickIBtn2 = _a.onClickIBtn2;
38
38
  var t = (0, react_i18next_1.useTranslation)('translation').t;
39
39
  var handleDropdown = function (option) {
40
40
  if (onChangeDropdown) {
@@ -52,7 +52,7 @@ function HeaderBar(_a) {
52
52
  react_1.default.createElement(S_Page, null,
53
53
  react_1.default.createElement(TextLabel_1.TextLabel, { text: currentPage, styleTheme: "caption1Regular", colorTheme: "sysTextPrimary" }),
54
54
  react_1.default.createElement(TextLabel_1.TextLabel, { text: " / ", styleTheme: "caption1Regular", colorTheme: "sysTextPrimary" }),
55
- react_1.default.createElement(TextLabel_1.TextLabel, { text: Math.ceil(totalPage / count), styleTheme: "caption1Regular", colorTheme: "sysTextTertiary" })),
55
+ react_1.default.createElement(TextLabel_1.TextLabel, { text: totalPage, styleTheme: "caption1Regular", colorTheme: "sysTextTertiary" })),
56
56
  react_1.default.createElement(S_IconButtonBox, null,
57
57
  react_1.default.createElement(IconButton_1.IconButton, { fillType: "fill", baseSize: "small", iconSize: 24, shapeType: "rectangle", iconName: "ic_arrow_left", iconFillType: "line", iconColorKey: "ui_cpnt_list_icon_01", baseColorKey: "ui_cpnt_button_fill_base_transparent", onClick: onClickIBtn2 }),
58
58
  react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_d", spacingType: "width" }),
@@ -1,39 +1,22 @@
1
1
  /// <reference types="react" />
2
2
  import { FillIconNameKeys, LineIconNameKeys, PDSTextType } from '../../../common';
3
- declare const defaultProps: {
4
- size: "large" | "xlarge";
5
- leftDisplayType: "text" | "icon" | "back";
6
- rightBtnMode: "none" | "close" | "mbtn";
7
- dividerType: "none" | "solid";
8
- };
9
- declare type DefaultProps = Readonly<typeof defaultProps>;
10
- declare type OptionalProps = {
3
+ declare type DesktopHeaderBarProps = {
11
4
  text?: PDSTextType;
5
+ size?: 'xlarge' | 'large';
6
+ leftDisplayType?: 'text' | 'icon' | 'back';
12
7
  iconName?: FillIconNameKeys | LineIconNameKeys;
8
+ rightBtnMode?: 'none' | 'close' | 'mbtn' | 'mbtn_fill' | 'help_window';
9
+ rightBtn2Mode?: 'none' | 'mbtn' | 'mbtn_fill' | 'help_window';
10
+ rightBtn3Mode?: 'none' | 'help_window';
13
11
  mBtnText?: PDSTextType;
12
+ mBtn2Text?: PDSTextType;
13
+ mBtnState?: 'normal' | 'disabled';
14
+ mBtn2State?: 'normal' | 'disabled';
15
+ dividerType?: 'none' | 'solid';
14
16
  onClickLeftBtn?: () => void;
15
17
  onClickRightBtn?: () => void;
18
+ onClickRightBtn2?: () => void;
19
+ onClickRightBtn3?: () => void;
16
20
  };
17
- declare type Complete<T> = {
18
- [P in keyof Required<T>]: Pick<T, P> extends Required<Pick<T, P>> ? T[P] : T[P] | undefined;
19
- };
20
- declare type TextType = {
21
- leftDisplayType: 'text';
22
- text: PDSTextType;
23
- };
24
- declare type IconType = {
25
- leftDisplayType: 'icon';
26
- } & Complete<Pick<OptionalProps, 'iconName'>>;
27
- declare type BackType = {
28
- leftDisplayType: 'back';
29
- } & Complete<Pick<OptionalProps, 'onClickLeftBtn'>>;
30
- declare type CloseType = {
31
- rightBtnMode: 'close';
32
- } & Complete<Pick<OptionalProps, 'onClickRightBtn'>>;
33
- declare type MBtnType = {
34
- rightBtnMode: 'mbtn';
35
- mBtnText: PDSTextType;
36
- } & Complete<Pick<OptionalProps, 'onClickRightBtn'>>;
37
- declare type DesktopHeaderBarProps = OptionalProps & (TextType | IconType | BackType | CloseType | MBtnType) & Partial<DefaultProps>;
38
- declare function DesktopHeaderBar({ text, size, leftDisplayType, iconName, rightBtnMode, mBtnText, dividerType, onClickLeftBtn, onClickRightBtn }: DesktopHeaderBarProps): JSX.Element;
21
+ declare function DesktopHeaderBar({ text, size, leftDisplayType, iconName, rightBtnMode, rightBtn2Mode, rightBtn3Mode, mBtnText, mBtn2Text, mBtnState, mBtn2State, dividerType, onClickLeftBtn, onClickRightBtn, onClickRightBtn2, onClickRightBtn3 }: DesktopHeaderBarProps): JSX.Element;
39
22
  export default DesktopHeaderBar;
@@ -13,14 +13,12 @@ var hybrid_1 = require("../../../hybrid");
13
13
  var IconButton_1 = require("../IconButton");
14
14
  var MainButton_1 = require("../MainButton");
15
15
  var TextLabel_1 = require("../TextLabel");
16
- var defaultProps = {
17
- size: 'xlarge',
18
- leftDisplayType: 'text',
19
- rightBtnMode: 'none',
20
- dividerType: 'none'
21
- };
22
16
  function DesktopHeaderBar(_a) {
23
- var text = _a.text, _b = _a.size, size = _b === void 0 ? 'xlarge' : _b, _c = _a.leftDisplayType, leftDisplayType = _c === void 0 ? 'text' : _c, iconName = _a.iconName, _d = _a.rightBtnMode, rightBtnMode = _d === void 0 ? 'none' : _d, mBtnText = _a.mBtnText, _e = _a.dividerType, dividerType = _e === void 0 ? 'none' : _e, onClickLeftBtn = _a.onClickLeftBtn, onClickRightBtn = _a.onClickRightBtn;
17
+ var text = _a.text, _b = _a.size, size = _b === void 0 ? 'xlarge' : _b, _c = _a.leftDisplayType, leftDisplayType = _c === void 0 ? 'text' : _c, iconName = _a.iconName, _d = _a.rightBtnMode, rightBtnMode = _d === void 0 ? 'none' : _d, _e = _a.rightBtn2Mode, rightBtn2Mode = _e === void 0 ? 'none' : _e, _f = _a.rightBtn3Mode, rightBtn3Mode = _f === void 0 ? 'none' : _f, mBtnText = _a.mBtnText, mBtn2Text = _a.mBtn2Text, _g = _a.mBtnState, mBtnState = _g === void 0 ? 'normal' : _g, _h = _a.mBtn2State, mBtn2State = _h === void 0 ? 'normal' : _h, _j = _a.dividerType, dividerType = _j === void 0 ? 'none' : _j, onClickLeftBtn = _a.onClickLeftBtn, onClickRightBtn = _a.onClickRightBtn, onClickRightBtn2 = _a.onClickRightBtn2, onClickRightBtn3 = _a.onClickRightBtn3;
18
+ var isLastButtonIcon = rightBtnMode === 'close' ||
19
+ rightBtnMode === 'help_window' ||
20
+ (rightBtnMode === 'none' && rightBtn2Mode === 'help_window') ||
21
+ (rightBtnMode === 'none' && rightBtn2Mode === 'none' && rightBtn3Mode === 'help_window');
24
22
  var handleClickLeftBtn = function () {
25
23
  if (onClickLeftBtn) {
26
24
  onClickLeftBtn();
@@ -31,6 +29,23 @@ function DesktopHeaderBar(_a) {
31
29
  onClickRightBtn();
32
30
  }
33
31
  };
32
+ var handleClickRightBtn2 = function () {
33
+ if (onClickRightBtn2) {
34
+ onClickRightBtn2();
35
+ }
36
+ };
37
+ var handleClickRightBtn3 = function () {
38
+ if (onClickRightBtn3) {
39
+ onClickRightBtn3();
40
+ }
41
+ };
42
+ var mBtnElement = function (text, state, handleClick) {
43
+ return size === 'xlarge' && (react_1.default.createElement(MainButton_1.MainButton, { text: text, size: "small", fillType: "line", onClick: handleClick, state: state }));
44
+ };
45
+ var mBtnFillElement = function (text, state, handleClick) {
46
+ return size === 'xlarge' && (react_1.default.createElement(MainButton_1.MainButton, { text: text, size: "small", onClick: handleClick, state: state }));
47
+ };
48
+ var iconButtonElement = function (iconName, handleClick) { return (react_1.default.createElement(IconButton_1.IconButton, { fillType: "fill", baseSize: "large", iconSize: 24, shapeType: "rectangle", iconName: iconName, iconFillType: "line", onClick: handleClick, iconColorKey: "ui_cpnt_button_icon_enabled", baseColorKey: "ui_cpnt_button_fill_base_transparent" })); };
34
49
  var leftDisplayMode = function () {
35
50
  switch (leftDisplayType) {
36
51
  case 'icon': {
@@ -39,21 +54,52 @@ function DesktopHeaderBar(_a) {
39
54
  react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_c", spacingType: "width" })));
40
55
  }
41
56
  case 'back': {
42
- return (react_1.default.createElement(IconButton_1.IconButton, { iconSize: 24, baseSize: "large", fillType: "fill", iconFillType: "line", iconName: "ic_arrow_left", onClick: handleClickLeftBtn, iconColorKey: "ui_cpnt_button_icon_enabled", baseColorKey: "ui_cpnt_button_fill_base_transparent" }));
57
+ return iconButtonElement('ic_arrow_left', handleClickLeftBtn);
43
58
  }
44
59
  case 'text': {
45
60
  return;
46
61
  }
47
62
  }
48
63
  };
64
+ var rightButton3Mode = function () {
65
+ switch (rightBtn3Mode) {
66
+ case 'help_window': {
67
+ return iconButtonElement('ic_help_window', handleClickRightBtn3);
68
+ }
69
+ case 'none': {
70
+ return;
71
+ }
72
+ }
73
+ };
74
+ var rightButton2Mode = function () {
75
+ switch (rightBtn2Mode) {
76
+ case 'mbtn': {
77
+ return mBtnElement(mBtn2Text, mBtn2State, handleClickRightBtn2);
78
+ }
79
+ case 'mbtn_fill': {
80
+ return mBtnFillElement(mBtn2Text, mBtn2State, handleClickRightBtn2);
81
+ }
82
+ case 'help_window': {
83
+ return iconButtonElement('ic_help_window', handleClickRightBtn2);
84
+ }
85
+ case 'none': {
86
+ return;
87
+ }
88
+ }
89
+ };
49
90
  var rightButtonMode = function () {
50
91
  switch (rightBtnMode) {
51
92
  case 'close': {
52
- return (react_1.default.createElement(IconButton_1.IconButton, { fillType: "fill", baseSize: "large", iconSize: 24, shapeType: "rectangle", iconName: "ic_xmark", iconFillType: "line", onClick: handleClickRightBtn, iconColorKey: "ui_cpnt_button_icon_enabled", baseColorKey: "ui_cpnt_button_fill_base_transparent" }));
93
+ return iconButtonElement('ic_xmark', handleClickRightBtn);
53
94
  }
54
95
  case 'mbtn': {
55
- return (react_1.default.createElement(react_1.default.Fragment, null, size === 'xlarge' && (react_1.default.createElement(S_MainButtonWrapper, null,
56
- react_1.default.createElement(MainButton_1.MainButton, { text: mBtnText, size: "small", fillType: "line", onClick: handleClickRightBtn })))));
96
+ return mBtnElement(mBtnText, mBtnState, handleClickRightBtn);
97
+ }
98
+ case 'mbtn_fill': {
99
+ return mBtnFillElement(mBtnText, mBtnState, handleClickRightBtn);
100
+ }
101
+ case 'help_window': {
102
+ return iconButtonElement('ic_help_window', handleClickRightBtn);
57
103
  }
58
104
  case 'none': {
59
105
  return;
@@ -64,9 +110,12 @@ function DesktopHeaderBar(_a) {
64
110
  react_1.default.createElement(S_LeftDisplayBox, null,
65
111
  leftDisplayMode(),
66
112
  react_1.default.createElement(TextLabel_1.TextLabel, { text: text, styleTheme: "body1Bold", singleLineMode: "use", colorTheme: "sysTextPrimary" })),
67
- rightButtonMode()));
113
+ react_1.default.createElement(S_ButtonBox, { isLastButtonIcon: isLastButtonIcon },
114
+ rightButton3Mode(),
115
+ rightButton2Mode(),
116
+ rightButtonMode())));
68
117
  }
69
- var S_DesktopHeaderBar = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n align-items: center;\n background-color: ", ";\n border-bottom: ", ";\n box-sizing: border-box;\n display: flex;\n height: ", ";\n justify-content: space-between;\n padding-left: ", ";\n padding-right: ", ";\n"], ["\n align-items: center;\n background-color: ", ";\n border-bottom: ", ";\n box-sizing: border-box;\n display: flex;\n height: ", ";\n justify-content: space-between;\n padding-left: ", ";\n padding-right: ", ";\n"])), function (_a) {
118
+ var S_DesktopHeaderBar = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n align-items: center;\n background-color: ", ";\n border-bottom: ", ";\n box-sizing: border-box;\n display: flex;\n height: ", ";\n justify-content: space-between;\n padding-left: ", ";\n"], ["\n align-items: center;\n background-color: ", ";\n border-bottom: ", ";\n box-sizing: border-box;\n display: flex;\n height: ", ";\n justify-content: space-between;\n padding-left: ", ";\n"])), function (_a) {
70
119
  var theme = _a.theme;
71
120
  return theme.ui_cpnt_headerbar_base_area;
72
121
  }, function (_a) {
@@ -78,14 +127,17 @@ var S_DesktopHeaderBar = styled_components_1.default.div(templateObject_1 || (te
78
127
  }, function (_a) {
79
128
  var hasBackIcon = _a.hasBackIcon, theme = _a.theme;
80
129
  return hasBackIcon ? theme.spacing.spacingC : theme.spacing.spacingE;
81
- }, function (_a) {
82
- var theme = _a.theme;
83
- return theme.spacing.spacingB;
84
130
  });
85
- var S_LeftDisplayBox = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n"], ["\n align-items: center;\n display: flex;\n"])));
86
- var S_MainButtonWrapper = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n margin: 0 ", ";\n"], ["\n margin: 0 ", ";\n"])), function (_a) {
131
+ var S_LeftDisplayBox = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n margin-right: ", ";\n"], ["\n align-items: center;\n display: flex;\n margin-right: ", ";\n"])), function (_a) {
87
132
  var theme = _a.theme;
88
133
  return theme.spacing.spacingD;
89
134
  });
135
+ var S_ButtonBox = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n margin-right: ", ";\n\n & > :not(:last-child) {\n margin-right: ", ";\n }\n"], ["\n align-items: center;\n display: flex;\n margin-right: ", ";\n\n & > :not(:last-child) {\n margin-right: ", ";\n }\n"])), function (_a) {
136
+ var isLastButtonIcon = _a.isLastButtonIcon, theme = _a.theme;
137
+ return isLastButtonIcon ? theme.spacing.spacingB : theme.spacing.spacingE;
138
+ }, function (_a) {
139
+ var theme = _a.theme;
140
+ return theme.spacing.spacingB;
141
+ });
90
142
  exports.default = DesktopHeaderBar;
91
143
  var templateObject_1, templateObject_2, templateObject_3;
@@ -50,24 +50,21 @@ function DesktopTabBar(_a) {
50
50
  return (react_1.default.createElement(TextLabel_1.TextLabel, { text: value.title, styleTheme: pathname === value.path ? 'caption1Bold' : 'caption1Regular', colorTheme: pathname === value.path ? 'usrTextBrandPrimary' : 'sysTextSecondary', singleLineMode: "use" }));
51
51
  }
52
52
  };
53
- return (react_1.default.createElement(react_1.default.Fragment, null,
54
- react_1.default.createElement(S_TabBox, null,
55
- textArray.map(function (value) { return (react_1.default.createElement(S_TabWrapper, { key: value.path, isActive: pathname.includes(value.path), styleTheme: styleTheme, onClick: function () {
53
+ return (react_1.default.createElement(S_TabBox, null,
54
+ textArray.map(function (value) { return (react_1.default.createElement(S_TabWrapper, { key: value.path, isActive: pathname.includes(value.path), styleTheme: styleTheme },
55
+ react_1.default.createElement(S_TitleWrapper, { onClick: function () {
56
56
  handleClick(value);
57
- } },
58
- textLabel(value, false),
59
- value.subArray && pathname.includes(value.path) && (react_1.default.createElement(S_SubTabBox, null, value.subArray.map(function (subValue) { return (react_1.default.createElement(S_SubWrapper, { key: subValue.path }, textLabel(subValue, true))); }))))); }),
60
- textArray.map(function (value) { return value.subArray && pathname.includes(value.path) && react_1.default.createElement(S_SubBackground, null); }))));
57
+ } }, textLabel(value, false)),
58
+ value.subArray && pathname.includes(value.path) && (react_1.default.createElement(S_SubTabBox, null, value.subArray.map(function (subValue) { return (react_1.default.createElement(S_SubWrapper, { onClick: function () {
59
+ handleClick(subValue);
60
+ }, key: subValue.path }, textLabel(subValue, true))); }))))); }),
61
+ textArray.map(function (value) {
62
+ return value.subArray && pathname.includes(value.path) && react_1.default.createElement(S_SubBackground, { key: value.path });
63
+ })));
61
64
  }
62
- var mediumStyle = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n align-items: flex-end;\n box-sizing: border-box;\n justify-content: center;\n cursor: pointer;\n display: flex;\n margin-right: ", ";\n position: relative;\n padding: 0 ", ";\n padding-bottom: ", ";\n\n &:last-child {\n margin-right: 0;\n }\n\n &::after {\n background-color: ", ";\n bottom: -1px;\n content: '';\n height: 2px;\n position: absolute;\n width: 100%;\n ", ";\n }\n"], ["\n align-items: flex-end;\n box-sizing: border-box;\n justify-content: center;\n cursor: pointer;\n display: flex;\n margin-right: ", ";\n position: relative;\n padding: 0 ", ";\n padding-bottom: ", ";\n\n &:last-child {\n margin-right: 0;\n }\n\n &::after {\n background-color: ", ";\n bottom: -1px;\n content: '';\n height: 2px;\n position: absolute;\n width: 100%;\n ", ";\n }\n"])), function (_a) {
65
+ var mediumStyle = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n align-items: flex-end;\n box-sizing: border-box;\n justify-content: center;\n display: flex;\n margin-right: ", ";\n position: relative;\n\n &:last-child {\n margin-right: 0;\n }\n\n &::after {\n background-color: ", ";\n bottom: -1px;\n content: '';\n height: 2px;\n position: absolute;\n width: 100%;\n ", ";\n }\n"], ["\n align-items: flex-end;\n box-sizing: border-box;\n justify-content: center;\n display: flex;\n margin-right: ", ";\n position: relative;\n\n &:last-child {\n margin-right: 0;\n }\n\n &::after {\n background-color: ", ";\n bottom: -1px;\n content: '';\n height: 2px;\n position: absolute;\n width: 100%;\n ", ";\n }\n"])), function (_a) {
63
66
  var theme = _a.theme;
64
67
  return theme.spacing.spacingD;
65
- }, function (_a) {
66
- var theme = _a.theme;
67
- return theme.spacing.spacingA;
68
- }, function (_a) {
69
- var theme = _a.theme;
70
- return theme.spacing.spacingB;
71
68
  }, function (_a) {
72
69
  var theme = _a.theme, styleTheme = _a.styleTheme;
73
70
  return styleTheme === 'content'
@@ -78,7 +75,14 @@ var mediumStyle = (0, styled_components_1.css)(templateObject_1 || (templateObje
78
75
  return !isActive && "display: none;";
79
76
  });
80
77
  var S_TabWrapper = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n position: relative;\n ", "\n"], ["\n position: relative;\n ", "\n"])), mediumStyle);
81
- var S_TabBox = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n background-color: ", ";\n border-bottom: 1px solid ", ";\n box-sizing: border-box;\n display: flex;\n flex-direction: row;\n padding-left: ", ";\n position: relative;\n height: 40px;\n"], ["\n background-color: ", ";\n border-bottom: 1px solid ", ";\n box-sizing: border-box;\n display: flex;\n flex-direction: row;\n padding-left: ", ";\n position: relative;\n height: 40px;\n"])), function (_a) {
78
+ var S_TitleWrapper = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n cursor: pointer;\n min-width: 100%;\n padding: 0 ", ";\n padding-bottom: ", ";\n"], ["\n cursor: pointer;\n min-width: 100%;\n padding: 0 ", ";\n padding-bottom: ", ";\n"])), function (_a) {
79
+ var theme = _a.theme;
80
+ return theme.spacing.spacingA;
81
+ }, function (_a) {
82
+ var theme = _a.theme;
83
+ return theme.spacing.spacingB;
84
+ });
85
+ var S_TabBox = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n background-color: ", ";\n border-bottom: 1px solid ", ";\n box-sizing: border-box;\n display: flex;\n flex-direction: row;\n padding-left: ", ";\n position: relative;\n height: 40px;\n"], ["\n background-color: ", ";\n border-bottom: 1px solid ", ";\n box-sizing: border-box;\n display: flex;\n flex-direction: row;\n padding-left: ", ";\n position: relative;\n height: 40px;\n"])), function (_a) {
82
86
  var theme = _a.theme;
83
87
  return theme.ui_cpnt_tabbar_base_area;
84
88
  }, function (_a) {
@@ -88,12 +92,12 @@ var S_TabBox = styled_components_1.default.div(templateObject_3 || (templateObje
88
92
  var theme = _a.theme;
89
93
  return theme.spacing.spacingE;
90
94
  });
91
- var S_SubBackground = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n width: 100%;\n height: 32px;\n background-color: ", ";\n position: absolute;\n bottom: -33px;\n left: 0px;\n"], ["\n width: 100%;\n height: 32px;\n background-color: ", ";\n position: absolute;\n bottom: -33px;\n left: 0px;\n"])), function (_a) {
95
+ var S_SubBackground = styled_components_1.default.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n width: 100%;\n height: 32px;\n background-color: ", ";\n position: absolute;\n bottom: -33px;\n left: 0px;\n"], ["\n width: 100%;\n height: 32px;\n background-color: ", ";\n position: absolute;\n bottom: -33px;\n left: 0px;\n"])), function (_a) {
92
96
  var theme = _a.theme;
93
97
  return theme.ui_cpnt_tabbar_base_area_sub;
94
98
  });
95
- var S_SubTabBox = styled_components_1.default.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n width: 100vw;\n position: absolute;\n bottom: -33px;\n left: 0px;\n height: 32px;\n display: flex;\n z-index: 1;\n"], ["\n width: 100vw;\n position: absolute;\n bottom: -33px;\n left: 0px;\n height: 32px;\n display: flex;\n z-index: 1;\n"])));
96
- var S_SubWrapper = styled_components_1.default.div(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n align-items: center;\n justify-content: center;\n cursor: pointer;\n display: flex;\n margin-right: ", ";\n position: relative;\n padding: 0 ", ";\n\n &:last-child {\n margin-right: 0;\n }\n"], ["\n align-items: center;\n justify-content: center;\n cursor: pointer;\n display: flex;\n margin-right: ", ";\n position: relative;\n padding: 0 ", ";\n\n &:last-child {\n margin-right: 0;\n }\n"])), function (_a) {
99
+ var S_SubTabBox = styled_components_1.default.div(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n width: 100vw;\n position: absolute;\n bottom: -33px;\n left: 0px;\n height: 32px;\n display: flex;\n z-index: 1;\n"], ["\n width: 100vw;\n position: absolute;\n bottom: -33px;\n left: 0px;\n height: 32px;\n display: flex;\n z-index: 1;\n"])));
100
+ var S_SubWrapper = styled_components_1.default.div(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n align-items: center;\n justify-content: center;\n cursor: pointer;\n display: flex;\n margin-right: ", ";\n position: relative;\n padding: 0 ", ";\n\n &:last-child {\n margin-right: 0;\n }\n"], ["\n align-items: center;\n justify-content: center;\n cursor: pointer;\n display: flex;\n margin-right: ", ";\n position: relative;\n padding: 0 ", ";\n\n &:last-child {\n margin-right: 0;\n }\n"])), function (_a) {
97
101
  var theme = _a.theme;
98
102
  return theme.spacing.spacingE;
99
103
  }, function (_a) {
@@ -101,4 +105,4 @@ var S_SubWrapper = styled_components_1.default.div(templateObject_6 || (template
101
105
  return theme.spacing.spacingA;
102
106
  });
103
107
  exports.default = DesktopTabBar;
104
- var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6;
108
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7;
@@ -37,14 +37,17 @@ function EditApplyTextField(_a) {
37
37
  var _l = (0, react_hook_form_1.useFormContext)(), register = _l.register, setValue = _l.setValue, trigger = _l.trigger, watch = _l.watch, errors = _l.formState.errors;
38
38
  var _m = (0, react_1.useState)(false), isFocused = _m[0], setIsFocused = _m[1];
39
39
  var _o = (0, react_1.useState)(false), isOpen = _o[0], setIsOpen = _o[1];
40
- var _p = (0, react_1.useState)(), prevValue = _p[0], setPrevValue = _p[1];
40
+ var _p = (0, react_1.useState)(defaultText !== null && defaultText !== void 0 ? defaultText : ''), prevValue = _p[0], setPrevValue = _p[1];
41
41
  var currentValue = watch(name);
42
42
  var validateOnChange = register(name, validation).onChange;
43
43
  var isError = Object.keys(errors).some(function (error) { return error === name; });
44
44
  (0, react_1.useEffect)(function () {
45
- if (defaultText) {
45
+ if (defaultText !== undefined && defaultText !== null) {
46
46
  setPrevValue(defaultText);
47
+ setValue(name, defaultText);
48
+ return;
47
49
  }
50
+ setValue(name, '');
48
51
  }, [defaultText]);
49
52
  function handleFocus(e) {
50
53
  if (state !== 'read_only') {
@@ -37,8 +37,8 @@ var S_ChipBox = styled_components_1.default.div(templateObject_2 || (templateObj
37
37
  var theme = _a.theme;
38
38
  return theme.spacing.spacingE;
39
39
  });
40
- var S_ChipWrapper = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n padding: ", ";\n"], ["\n padding: ", ";\n"])), function (_a) {
40
+ var S_ChipWrapper = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n padding-right: ", ";\n\n &:last-child {\n padding-right: 0;\n }\n"], ["\n padding-right: ", ";\n\n &:last-child {\n padding-right: 0;\n }\n"])), function (_a) {
41
41
  var theme = _a.theme;
42
- return theme.spacing.spacingA;
42
+ return theme.spacing.spacingB;
43
43
  });
44
44
  var templateObject_1, templateObject_2, templateObject_3;
@@ -2,6 +2,8 @@
2
2
  import { PDSTextType, UiColors } from '../../../common';
3
3
  export declare type TextLabelProps = {
4
4
  text: PDSTextType;
5
+ tooltipText?: PDSTextType;
6
+ tooltipPosition?: 'left_top' | 'left_bottom' | 'right_top' | 'right_bottom';
5
7
  textAlign?: 'left' | 'center' | 'right';
6
8
  styleTheme?: 'displayBold' | 'headingBold' | 'leadParaBold' | 'leadParaRegular' | 'subTitleBold' | 'subTitleRegular' | 'body1Bold' | 'body1Regular' | 'body2Bold' | 'body2Regular' | 'caption1Bold' | 'caption1Regular' | 'caption2Bold' | 'caption2Regular' | 'form1Regular' | 'form2Regular' | 'blog1Regular';
7
9
  colorOverride?: UiColors;
@@ -15,6 +17,7 @@ export declare type TextLabelProps = {
15
17
  };
16
18
  export declare type TextStyleProps = {
17
19
  textAlign?: 'left' | 'center' | 'right';
20
+ tooltipPosition?: 'left_top' | 'left_bottom' | 'right_top' | 'right_bottom';
18
21
  styleTheme?: 'displayBold' | 'headingBold' | 'leadParaBold' | 'leadParaRegular' | 'subTitleBold' | 'subTitleRegular' | 'body1Bold' | 'body1Regular' | 'body2Bold' | 'body2Regular' | 'caption1Bold' | 'caption1Regular' | 'caption2Bold' | 'caption2Regular' | 'form1Regular' | 'form2Regular' | 'blog1Regular';
19
22
  colorOverride?: UiColors;
20
23
  colorTheme?: 'sysTextPrimary' | 'sysTextSecondary' | 'sysTextTertiary' | 'sysTextWhite' | 'sysTextError' | 'sysTextBrandPrimary' | 'sysTextBrandSeconVariant' | 'usrTextBrandPrimary' | 'usrTextBrandSeconVariant' | 'usrTextBrandOnPrimary';
@@ -25,5 +28,5 @@ export declare type TextStyleProps = {
25
28
  customFontSize?: string;
26
29
  customFontWeight?: 'bold' | 'regular';
27
30
  };
28
- declare function TextLabel({ text, textAlign, styleTheme, colorOverride, colorTheme, singleLineMode, ellipsisMode, lineLimit, userSelectMode, customFontSize, customFontWeight }: TextLabelProps): JSX.Element;
31
+ declare function TextLabel({ text, tooltipText, tooltipPosition, textAlign, styleTheme, colorOverride, colorTheme, singleLineMode, ellipsisMode, lineLimit, userSelectMode, customFontSize, customFontWeight }: TextLabelProps): JSX.Element;
29
32
  export default TextLabel;
@@ -22,16 +22,23 @@ var __importStar = (this && this.__importStar) || function (mod) {
22
22
  __setModuleDefault(result, mod);
23
23
  return result;
24
24
  };
25
- var __importDefault = (this && this.__importDefault) || function (mod) {
26
- return (mod && mod.__esModule) ? mod : { "default": mod };
27
- };
28
25
  Object.defineProperty(exports, "__esModule", { value: true });
29
- var react_1 = __importDefault(require("react"));
26
+ var react_1 = __importStar(require("react"));
30
27
  var styled_components_1 = __importStar(require("styled-components"));
31
28
  var common_1 = require("../../../common");
29
+ var hybrid_1 = require("../../../hybrid");
32
30
  function TextLabel(_a) {
33
- var text = _a.text, _b = _a.textAlign, textAlign = _b === void 0 ? 'left' : _b, _c = _a.styleTheme, styleTheme = _c === void 0 ? 'body2Bold' : _c, colorOverride = _a.colorOverride, _d = _a.colorTheme, colorTheme = _d === void 0 ? 'sysTextPrimary' : _d, _e = _a.singleLineMode, singleLineMode = _e === void 0 ? 'none' : _e, _f = _a.ellipsisMode, ellipsisMode = _f === void 0 ? 'none' : _f, lineLimit = _a.lineLimit, _g = _a.userSelectMode, userSelectMode = _g === void 0 ? 'none' : _g, customFontSize = _a.customFontSize, customFontWeight = _a.customFontWeight;
34
- return (react_1.default.createElement(S_TextLabel, { textAlign: textAlign, styleTheme: styleTheme, colorOverride: colorOverride, colorTheme: colorTheme, singleLineMode: singleLineMode, ellipsisMode: ellipsisMode, lineLimit: lineLimit, userSelectMode: userSelectMode, customFontSize: customFontSize, customFontWeight: customFontWeight }, text));
31
+ var text = _a.text, tooltipText = _a.tooltipText, _b = _a.tooltipPosition, tooltipPosition = _b === void 0 ? 'right_bottom' : _b, _c = _a.textAlign, textAlign = _c === void 0 ? 'left' : _c, _d = _a.styleTheme, styleTheme = _d === void 0 ? 'body2Bold' : _d, colorOverride = _a.colorOverride, _e = _a.colorTheme, colorTheme = _e === void 0 ? 'sysTextPrimary' : _e, _f = _a.singleLineMode, singleLineMode = _f === void 0 ? 'none' : _f, _g = _a.ellipsisMode, ellipsisMode = _g === void 0 ? 'none' : _g, lineLimit = _a.lineLimit, _h = _a.userSelectMode, userSelectMode = _h === void 0 ? 'none' : _h, customFontSize = _a.customFontSize, customFontWeight = _a.customFontWeight;
32
+ var _j = (0, react_1.useState)(false), isTooltipOpen = _j[0], setIsTooltipOpen = _j[1];
33
+ var handleTooltipToggle = function (value) {
34
+ setIsTooltipOpen(value);
35
+ };
36
+ return (react_1.default.createElement(S_TextLabel, { textAlign: textAlign, styleTheme: styleTheme, colorOverride: colorOverride, colorTheme: colorTheme, singleLineMode: singleLineMode, ellipsisMode: ellipsisMode, lineLimit: lineLimit, userSelectMode: userSelectMode, customFontSize: customFontSize, customFontWeight: customFontWeight },
37
+ text,
38
+ tooltipText && (react_1.default.createElement(S_TooltipBox, { styleTheme: styleTheme },
39
+ react_1.default.createElement(S_IconWrapper, { onMouseEnter: function () { return handleTooltipToggle(true); }, onMouseLeave: function () { return handleTooltipToggle(false); } },
40
+ react_1.default.createElement(hybrid_1.Icon, { iconName: "ic_question", size: 16, fillType: "line" })),
41
+ react_1.default.createElement(S_TooltipWrapper, { className: "TooltipWrapper", isTooltipOpen: isTooltipOpen, tooltipPosition: tooltipPosition }, "" + tooltipText)))));
35
42
  }
36
43
  var displayBold = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n font-size: ", ";\n line-height: ", ";\n font-weight: ", ";\n"], ["\n font-size: ", ";\n line-height: ", ";\n font-weight: ", ";\n"])), function (_a) {
37
44
  var theme = _a.theme;
@@ -259,7 +266,11 @@ var ellipsisStyle = (0, styled_components_1.css)(templateObject_30 || (templateO
259
266
  return lineLimit;
260
267
  });
261
268
  var userSelectModeStyle = (0, styled_components_1.css)(templateObject_31 || (templateObject_31 = __makeTemplateObject(["\n -ms-user-select: none;\n -moz-user-select: -moz-none;\n -khtml-user-select: none;\n -webkit-user-select: none;\n user-select: none;\n"], ["\n -ms-user-select: none;\n -moz-user-select: -moz-none;\n -khtml-user-select: none;\n -webkit-user-select: none;\n user-select: none;\n"])));
262
- var S_TextLabel = styled_components_1.default.div(templateObject_32 || (templateObject_32 = __makeTemplateObject(["\n box-sizing: border-box;\n text-align: ", ";\n white-space: pre-wrap;\n word-break: keep-all;\n overflow-wrap: break-word;\n hyphens: auto;\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n"], ["\n box-sizing: border-box;\n text-align: ", ";\n white-space: pre-wrap;\n word-break: keep-all;\n overflow-wrap: break-word;\n hyphens: auto;\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n"])), function (_a) {
269
+ var tooltipLeftTop = (0, styled_components_1.css)(templateObject_32 || (templateObject_32 = __makeTemplateObject(["\n right: 0;\n bottom: 20px;\n"], ["\n right: 0;\n bottom: 20px;\n"])));
270
+ var tooltipLeftBottom = (0, styled_components_1.css)(templateObject_33 || (templateObject_33 = __makeTemplateObject(["\n right: 0;\n top: 20px;\n"], ["\n right: 0;\n top: 20px;\n"])));
271
+ var tooltipRightTop = (0, styled_components_1.css)(templateObject_34 || (templateObject_34 = __makeTemplateObject(["\n left: 0;\n bottom: 20px;\n"], ["\n left: 0;\n bottom: 20px;\n"])));
272
+ var tooltipRightBottom = (0, styled_components_1.css)(templateObject_35 || (templateObject_35 = __makeTemplateObject(["\n left: 0;\n top: 20px;\n"], ["\n left: 0;\n top: 20px;\n"])));
273
+ var S_TextLabel = styled_components_1.default.div(templateObject_36 || (templateObject_36 = __makeTemplateObject(["\n box-sizing: border-box;\n text-align: ", ";\n white-space: pre-wrap;\n word-break: keep-all;\n overflow-wrap: break-word;\n hyphens: auto;\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n"], ["\n box-sizing: border-box;\n text-align: ", ";\n white-space: pre-wrap;\n word-break: keep-all;\n overflow-wrap: break-word;\n hyphens: auto;\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n"])), function (_a) {
263
274
  var textAlign = _a.textAlign;
264
275
  return textAlign;
265
276
  }, function (_a) {
@@ -317,5 +328,59 @@ var S_TextLabel = styled_components_1.default.div(templateObject_32 || (template
317
328
  var userSelectMode = _a.userSelectMode;
318
329
  return userSelectMode === 'none' && userSelectModeStyle;
319
330
  });
331
+ var S_TooltipBox = styled_components_1.default.div(templateObject_37 || (templateObject_37 = __makeTemplateObject(["\n display: inline-block;\n margin-left: ", ";\n position: relative;\n\n ", ";\n"], ["\n display: inline-block;\n margin-left: ", ";\n position: relative;\n\n ", ";\n"])), function (_a) {
332
+ var theme = _a.theme;
333
+ return theme.spacing.spacingA;
334
+ }, function (_a) {
335
+ var styleTheme = _a.styleTheme;
336
+ switch (styleTheme) {
337
+ case 'headingBold':
338
+ return;
339
+ case 'leadParaBold':
340
+ return;
341
+ case 'leadParaRegular':
342
+ return;
343
+ default:
344
+ return 'vertical-align: middle';
345
+ }
346
+ });
347
+ var S_IconWrapper = styled_components_1.default.div(templateObject_38 || (templateObject_38 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n height: 100%;\n justify-content: center;\n width: 16px;\n height: 16px;\n"], ["\n align-items: center;\n display: flex;\n height: 100%;\n justify-content: center;\n width: 16px;\n height: 16px;\n"])));
348
+ var S_TooltipWrapper = styled_components_1.default.div(templateObject_39 || (templateObject_39 = __makeTemplateObject(["\n background-color: ", ";\n border: 1px solid ", ";\n border-radius: 8px;\n box-shadow: ", ";\n box-sizing: border-box;\n color: ", ";\n font-size: ", ";\n font-weight: ", ";\n hyphens: auto;\n line-height: ", ";\n max-width: 320px;\n overflow-wrap: break-word;\n padding: ", ";\n position: absolute;\n text-align: left;\n white-space: pre-wrap;\n width: max-content;\n word-break: keep-all;\n\n ", ";\n\n ", ";\n"], ["\n background-color: ", ";\n border: 1px solid ", ";\n border-radius: 8px;\n box-shadow: ", ";\n box-sizing: border-box;\n color: ", ";\n font-size: ", ";\n font-weight: ", ";\n hyphens: auto;\n line-height: ", ";\n max-width: 320px;\n overflow-wrap: break-word;\n padding: ", ";\n position: absolute;\n text-align: left;\n white-space: pre-wrap;\n width: max-content;\n word-break: keep-all;\n\n ", ";\n\n ", ";\n"])), function (_a) {
349
+ var theme = _a.theme;
350
+ return theme.ui_cpnt_contextmenu_base;
351
+ }, function (_a) {
352
+ var theme = _a.theme;
353
+ return theme.ui_cpnt_contextmenu_border;
354
+ }, function (_a) {
355
+ var theme = _a.theme;
356
+ return theme.boxShadow.elevation2;
357
+ }, function (_a) {
358
+ var theme = _a.theme;
359
+ return theme.ui_cpnt_textlabel_sys_secondary;
360
+ }, function (_a) {
361
+ var theme = _a.theme;
362
+ return theme.desktopFontSize.caption2;
363
+ }, function (_a) {
364
+ var theme = _a.theme;
365
+ return theme.fontWeight.normal;
366
+ }, function (_a) {
367
+ var theme = _a.theme;
368
+ return theme.desktopLineHeight.caption2;
369
+ }, function (_a) {
370
+ var theme = _a.theme;
371
+ return theme.spacing.spacingC;
372
+ }, function (_a) {
373
+ var isTooltipOpen = _a.isTooltipOpen;
374
+ return !isTooltipOpen && 'display: none';
375
+ }, function (_a) {
376
+ var tooltipPosition = _a.tooltipPosition;
377
+ return tooltipPosition &&
378
+ {
379
+ left_top: tooltipLeftTop,
380
+ left_bottom: tooltipLeftBottom,
381
+ right_top: tooltipRightTop,
382
+ right_bottom: tooltipRightBottom
383
+ }[tooltipPosition];
384
+ });
320
385
  exports.default = TextLabel;
321
- 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, templateObject_19, templateObject_20, templateObject_21, templateObject_22, templateObject_23, templateObject_24, templateObject_25, templateObject_26, templateObject_27, templateObject_28, templateObject_29, templateObject_30, templateObject_31, templateObject_32;
386
+ 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, templateObject_19, templateObject_20, templateObject_21, templateObject_22, templateObject_23, templateObject_24, templateObject_25, templateObject_26, templateObject_27, templateObject_28, templateObject_29, templateObject_30, templateObject_31, templateObject_32, templateObject_33, templateObject_34, templateObject_35, templateObject_36, templateObject_37, templateObject_38, templateObject_39;
@@ -13,6 +13,6 @@ var LayoutWF = function (_a) {
13
13
  var children = _a.children;
14
14
  return react_1.default.createElement(S_LayoutWF, null, children);
15
15
  };
16
- var S_LayoutWF = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n height: 100vh;\n width: 100vw;\n"], ["\n height: 100vh;\n width: 100vw;\n"])));
16
+ var S_LayoutWF = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n height: 100vh;\n width: 100vw;\n min-width: 1200px;\n"], ["\n height: 100vh;\n width: 100vw;\n min-width: 1200px;\n"])));
17
17
  exports.default = LayoutWF;
18
18
  var templateObject_1;
@@ -15,7 +15,7 @@ var LayoutWS = function (_a) {
15
15
  react_1.default.createElement(S_LeftWrapper, null, globalMenuContainer),
16
16
  react_1.default.createElement(S_RightWrapper, null, children)));
17
17
  };
18
- var S_LayoutWS = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n height: 100vh;\n width: 100vw;\n"], ["\n display: flex;\n height: 100vh;\n width: 100vw;\n"])));
18
+ var S_LayoutWS = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n height: 100vh;\n width: 100vw;\n min-width: 1200px;\n"], ["\n display: flex;\n height: 100vh;\n width: 100vw;\n min-width: 1200px;\n"])));
19
19
  var S_LeftWrapper = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n height: 100%;\n"], ["\n height: 100%;\n"])));
20
20
  var S_RightWrapper = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n /* width: calc(100% - 240px); */\n width: 100%;\n"], ["\n /* width: calc(100% - 240px); */\n width: 100%;\n"])));
21
21
  exports.default = LayoutWS;
@@ -16,7 +16,7 @@ var LayoutWT = function (_a) {
16
16
  react_1.default.createElement(S_TopWrapper, null, globalMenuContainer),
17
17
  react_1.default.createElement(S_BottomWrapper, null, children))));
18
18
  };
19
- var S_LayoutWT = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n height: 100vh;\n width: 100vw;\n"], ["\n height: 100vh;\n width: 100vw;\n"])));
19
+ var S_LayoutWT = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n height: 100vh;\n width: 100vw;\n min-width: 1200px;\n"], ["\n height: 100vh;\n width: 100vw;\n min-width: 1200px;\n"])));
20
20
  var S_Box = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n height: 100%;\n"], ["\n display: flex;\n flex-direction: column;\n height: 100%;\n"])));
21
21
  var S_TopWrapper = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n margin: 0;\n"], ["\n margin: 0;\n"])));
22
22
  var S_BottomWrapper = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n flex: 1;\n height: 100%;\n overflow: hidden;\n"], ["\n flex: 1;\n height: 100%;\n overflow: hidden;\n"])));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pds-dev-kit-web",
3
- "version": "1.3.5",
3
+ "version": "1.3.8",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "main": "dist/index.js",
package/release-note.md CHANGED
@@ -1,50 +1,13 @@
1
1
  # PDS-DEV-KIT-WEB Release Notes
2
- ## [v1.3.5]
2
+ ## [v1.3.8]
3
3
 
4
4
  ### Component
5
- * PDSValueOption타입 추가 (텍스트와 id와 같은 고유값이 있는 형태의 컴포넌트는 모두 PDSValueOption 타입을 사용해 통일감있게 PDS 컴포넌트를 생성할 예정)(해당 타입은 ‘pds-dev-kit-web’에서 임포트 해서 사용할 수 있습니다.)
6
- * AdminList
7
- * BulkActionBar의 MainButton과 Dropdown에 colotTheme 적용
8
- * HeaderRowHideMode 프롭 명칭을 HeaderRowMode로 변경 (default는 ‘use')
9
- * selectionMode가 ‘none’일 시 왼쪽 여백이 너무 작은 이슈 수정
10
- * BulkActionBar의 MainButton과 Dropdown 액션 이후에 AdminList의 상태를 초기화 하는 로직을 삭제 (-> 각 개발자가 각 상황에 알맞게 사용하는게 더 낫다고 판단)
11
- * selectedIds, onSelect 프롭을 받지 않을 시 useEffect에서 발생하던 에러 픽스
12
- * AdminListHeader
13
- * TitleText, DescText, FilterBar, BulkActionBar 사이의 여백 조정
14
- * AdminListItem
15
- * column5Text 부터 TextStyle이 반영되지 않던 이슈 수정
16
- * quickActionBtnMode가 ‘none’일 때 버튼 영역이 보이지 않도록 수정
17
- * selectState가 ‘maintain’일 때 체크박스가 선택되어진 상태에서 유지되도록 변경
18
- * selectionMode가 ‘none’일 시 왼쪽 여백이 너무 작은 이슈 수정
19
- * Chip
20
- * prop추가
21
- * option
22
- * prop deprecated표시 (1.5에서 삭제 예정)
23
- * activeChipId
24
- * chipId
25
- * ContextMenuItem
26
- * prop추가
27
- * value
28
- * id
29
- * prop deprecated표시 (1.5에서 삭제 예정)
30
- * text
31
- * value
32
- * prop type 변경
33
- * onClick이 value로 PDSValueOption도 받을 수 있음
34
- * Dropdown
35
- * prop type 변경
36
- * defaultValue
37
- * valueArray
38
- * onChange
39
- * FilterBar
40
- * prop추가
41
- * value
42
- * prop deprecated표시 (1.5에서 삭제 예정)
43
- * activeChipId
44
- * prop type 변경
45
- * textArray
46
- * name
47
- * onClickChip
48
- * UserDesktopNavBar
49
- * prop type 변경
50
- * textArray
5
+ * Icon
6
+ * line 아이콘 추가 (ic_question)
7
+ * D_TextLabel
8
+ * prop 추가
9
+ * tooltipText
10
+ * tooltipPosition
11
+
12
+ ### Color
13
+ * 컬러 22.04.24 20시 21분 기준 싱크