pds-dev-kit-web 1.3.13 → 1.3.16

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 (42) hide show
  1. package/dist/src/common/assets/icons/line/Order.d.ts +4 -0
  2. package/dist/src/common/assets/icons/line/Order.js +36 -0
  3. package/dist/src/common/assets/icons/line/Sales.d.ts +4 -0
  4. package/dist/src/common/assets/icons/line/Sales.js +36 -0
  5. package/dist/src/common/assets/icons/line/Settlement.d.ts +4 -0
  6. package/dist/src/common/assets/icons/line/Settlement.js +36 -0
  7. package/dist/src/common/assets/icons/line/index.d.ts +3 -0
  8. package/dist/src/common/assets/icons/line/index.js +6 -0
  9. package/dist/src/common/styles/colorSet/PaletteColor_Dark.json +2 -1
  10. package/dist/src/common/styles/colorSet/PaletteColor_light.json +2 -1
  11. package/dist/src/common/styles/colorSet/SemanticColor.json +4 -3
  12. package/dist/src/common/styles/colorSet/UIColor.json +1 -1
  13. package/dist/src/common/styles/colorSet/index.d.ts +62 -59
  14. package/dist/src/common/styles/colorSet/index.js +5 -5
  15. package/dist/src/desktop/components/AdminListHeader/AdminListHeader.d.ts +2 -1
  16. package/dist/src/desktop/components/AdminListHeader/AdminListHeader.js +2 -2
  17. package/dist/src/desktop/components/AdminListHeader/HeaderBar.d.ts +2 -1
  18. package/dist/src/desktop/components/AdminListHeader/HeaderBar.js +2 -2
  19. package/dist/src/desktop/components/BlogTextField/BlogTextField.js +6 -2
  20. package/dist/src/desktop/components/ContextMenu/ContextMenu.d.ts +2 -1
  21. package/dist/src/desktop/components/ContextMenu/ContextMenu.js +6 -3
  22. package/dist/src/desktop/components/ContextMenuItem/ContextMenuItem.d.ts +2 -1
  23. package/dist/src/desktop/components/ContextMenuItem/ContextMenuItem.js +22 -4
  24. package/dist/src/desktop/components/Dropdown/Dropdown.d.ts +10 -5
  25. package/dist/src/desktop/components/Dropdown/Dropdown.js +25 -10
  26. package/dist/src/desktop/components/FilterBar/FilterBar.js +1 -1
  27. package/dist/src/desktop/components/FloatingActionButton/FloatingActionButton.js +4 -4
  28. package/dist/src/desktop/components/IconButton/IconButton.d.ts +3 -3
  29. package/dist/src/desktop/components/IconButton/IconButton.js +2 -2
  30. package/dist/src/desktop/components/TextLabel/TextLabel.js +2 -2
  31. package/dist/src/desktop/layout/LayoutWT/Containers/PageMenuContainer/variation/TopPageMenu.js +1 -1
  32. package/dist/src/hybrid/components/ImageView/ImageView.js +3 -3
  33. package/dist/src/mobile/components/BlogTextField/BlogTextField.js +6 -2
  34. package/dist/src/mobile/components/ContextMenuItem/ContextMenuItem.d.ts +2 -1
  35. package/dist/src/mobile/components/ContextMenuItem/ContextMenuItem.js +16 -3
  36. package/dist/src/mobile/components/Dropdown/Dropdown.d.ts +6 -5
  37. package/dist/src/mobile/components/Dropdown/Dropdown.js +15 -9
  38. package/dist/src/mobile/components/IconButton/IconButton.d.ts +3 -3
  39. package/dist/src/mobile/components/IconButton/IconButton.js +2 -2
  40. package/dist/src/mobile/components/TextLabel/TextLabel.js +1 -1
  41. package/package.json +1 -1
  42. package/release-note.md +19 -9
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import IconType from '../IconType';
3
+ declare const Order: ({ color, size, ...rest }: IconType) => JSX.Element;
4
+ export default Order;
@@ -0,0 +1,36 @@
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 Order = 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("g", { fill: "none", fillRule: "evenodd" },
33
+ react_1.default.createElement("path", { fill: color, d: "M18.6337,2.75 L5.3657,2.75 C3.5067,2.75 1.9997,4.257 1.9997,6.116 L1.9997,17.884 C1.9997,19.743 3.5067,21.25 5.3657,21.25 L18.6337,21.25 C20.4927,21.25 21.9997,19.743 21.9997,17.884 L21.9997,6.116 C21.9997,4.257 20.4927,2.75 18.6337,2.75 L18.6337,2.75 Z M18.6337,4.164 C19.7097,4.164 20.5857,5.04 20.5857,6.116 L20.5857,17.884 C20.5857,18.96 19.7097,19.836 18.6337,19.836 L5.3657,19.836 C4.2897,19.836 3.4147,18.96 3.4147,17.884 L3.4147,6.116 C3.4147,5.04 4.2897,4.164 5.3657,4.164 L18.6337,4.164 Z" }),
34
+ react_1.default.createElement("path", { stroke: color, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", d: "M8.396,10.4279 L11.353,13.3849 L15.854,7.2739 M8.6684,16.726 L15.3314,16.726" }))));
35
+ };
36
+ exports.default = Order;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import IconType from '../IconType';
3
+ declare const Sales: ({ color, size, ...rest }: IconType) => JSX.Element;
4
+ export default Sales;
@@ -0,0 +1,36 @@
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 Sales = 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("g", { fill: "none", fillRule: "evenodd" },
33
+ react_1.default.createElement("path", { fill: color, d: "M18.6338,2.75 L5.3658,2.75 C3.5068,2.75 1.9998,4.257 1.9998,6.116 L1.9998,17.884 C1.9998,19.743 3.5068,21.25 5.3658,21.25 L18.6338,21.25 C20.4928,21.25 21.9998,19.743 21.9998,17.884 L21.9998,6.116 C21.9998,4.257 20.4928,2.75 18.6338,2.75 L18.6338,2.75 Z M18.6338,4.164 C19.7098,4.164 20.5858,5.04 20.5858,6.116 L20.5858,17.884 C20.5858,18.96 19.7098,19.836 18.6338,19.836 L5.3658,19.836 C4.2898,19.836 3.4148,18.96 3.4148,17.884 L3.4148,6.116 C3.4148,5.04 4.2898,4.164 5.3658,4.164 L18.6338,4.164 Z" }),
34
+ react_1.default.createElement("path", { stroke: color, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", d: "M5.9533,12.6542 L10.0263,8.8182 L14.0023,10.7362 L18.0663,6.6702 M6.3203,15.8164 L6.3203,17.4884 M10.1068,13.2275 L10.1068,17.4885 M13.8932,14.2581 L13.8932,17.4881 M17.6797,11.0279 L17.6797,17.4879" }))));
35
+ };
36
+ exports.default = Sales;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import IconType from '../IconType';
3
+ declare const Settlement: ({ color, size, ...rest }: IconType) => JSX.Element;
4
+ export default Settlement;
@@ -0,0 +1,36 @@
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 Settlement = 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("g", { fill: "none", fillRule: "evenodd" },
33
+ react_1.default.createElement("path", { fill: color, d: "M18.6337,2.75 L5.3657,2.75 C3.5067,2.75 1.9997,4.257 1.9997,6.116 L1.9997,17.884 C1.9997,19.743 3.5067,21.25 5.3657,21.25 L18.6337,21.25 C20.4927,21.25 21.9997,19.743 21.9997,17.884 L21.9997,6.116 C21.9997,4.257 20.4927,2.75 18.6337,2.75 L18.6337,2.75 Z M18.6337,4.164 C19.7097,4.164 20.5857,5.04 20.5857,6.116 L20.5857,17.884 C20.5857,18.96 19.7097,19.836 18.6337,19.836 L5.3657,19.836 C4.2897,19.836 3.4147,18.96 3.4147,17.884 L3.4147,6.116 C3.4147,5.04 4.2897,4.164 5.3657,4.164 L18.6337,4.164 Z" }),
34
+ react_1.default.createElement("path", { stroke: color, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", d: "M5.5698,8.625 L10.4328,8.625 M8.0011,6.1936 L8.0011,11.0566 M13.9383,8.625 L18.3003,8.625 M6.2819,13.9691 L9.7199,17.4071 M9.7204,13.9691 L6.2824,17.4071 M13.9383,16.9041 L18.3003,16.9041 M13.9383,14.4725 L18.3003,14.4725" }))));
35
+ };
36
+ exports.default = Settlement;
@@ -60,6 +60,7 @@ declare const lineIcons: {
60
60
  readonly ic_mic_on: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
61
61
  readonly ic_minus_circle: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
62
62
  readonly ic_open_page: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
63
+ readonly ic_order: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
63
64
  readonly ic_page_size_expand: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
64
65
  readonly ic_page_size_reduce: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
65
66
  readonly ic_papp: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
@@ -92,6 +93,7 @@ declare const lineIcons: {
92
93
  readonly ic_radio_on: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
93
94
  readonly ic_report: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
94
95
  readonly ic_requirement: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
96
+ readonly ic_sales: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
95
97
  readonly ic_search: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
96
98
  readonly ic_seller_info: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
97
99
  readonly ic_seller_intro: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
@@ -99,6 +101,7 @@ declare const lineIcons: {
99
101
  readonly ic_series: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
100
102
  readonly ic_series_list: ({ color, ...rest }: import("../IconType").default) => JSX.Element;
101
103
  readonly ic_setting: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
104
+ readonly ic_settlement: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
102
105
  readonly ic_share: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
103
106
  readonly ic_slideBanner: ({ color, ...rest }: import("../IconType").default) => JSX.Element;
104
107
  readonly ic_sort: ({ color, size, ...rest }: import("../IconType").default) => JSX.Element;
@@ -63,6 +63,7 @@ var MicOff_1 = __importDefault(require("./MicOff"));
63
63
  var MicOn_1 = __importDefault(require("./MicOn"));
64
64
  var MinusCircle_1 = __importDefault(require("./MinusCircle"));
65
65
  var OpenPage_1 = __importDefault(require("./OpenPage"));
66
+ var Order_1 = __importDefault(require("./Order"));
66
67
  var PageSizeExpand_1 = __importDefault(require("./PageSizeExpand"));
67
68
  var PageSizeReduce_1 = __importDefault(require("./PageSizeReduce"));
68
69
  var Papp_1 = __importDefault(require("./Papp"));
@@ -95,6 +96,7 @@ var RadioOff_1 = __importDefault(require("./RadioOff"));
95
96
  var RadioOn_1 = __importDefault(require("./RadioOn"));
96
97
  var Report_1 = __importDefault(require("./Report"));
97
98
  var Requirement_1 = __importDefault(require("./Requirement"));
99
+ var Sales_1 = __importDefault(require("./Sales"));
98
100
  var Search_1 = __importDefault(require("./Search"));
99
101
  var SellerInfo_1 = __importDefault(require("./SellerInfo"));
100
102
  var SellerIntro_1 = __importDefault(require("./SellerIntro"));
@@ -102,6 +104,7 @@ var SellerPage_1 = __importDefault(require("./SellerPage"));
102
104
  var Series_1 = __importDefault(require("./Series"));
103
105
  var SeriesList_1 = __importDefault(require("./SeriesList"));
104
106
  var Setting_1 = __importDefault(require("./Setting"));
107
+ var Settlement_1 = __importDefault(require("./Settlement"));
105
108
  var Share_1 = __importDefault(require("./Share"));
106
109
  var SlideBanner_1 = __importDefault(require("./SlideBanner"));
107
110
  var Sort_1 = __importDefault(require("./Sort"));
@@ -198,6 +201,7 @@ var lineIcons = {
198
201
  ic_mic_on: MicOn_1.default,
199
202
  ic_minus_circle: MinusCircle_1.default,
200
203
  ic_open_page: OpenPage_1.default,
204
+ ic_order: Order_1.default,
201
205
  ic_page_size_expand: PageSizeExpand_1.default,
202
206
  ic_page_size_reduce: PageSizeReduce_1.default,
203
207
  ic_papp: Papp_1.default,
@@ -230,6 +234,7 @@ var lineIcons = {
230
234
  ic_radio_on: RadioOn_1.default,
231
235
  ic_report: Report_1.default,
232
236
  ic_requirement: Requirement_1.default,
237
+ ic_sales: Sales_1.default,
233
238
  ic_search: Search_1.default,
234
239
  ic_seller_info: SellerInfo_1.default,
235
240
  ic_seller_intro: SellerIntro_1.default,
@@ -237,6 +242,7 @@ var lineIcons = {
237
242
  ic_series: Series_1.default,
238
243
  ic_series_list: SeriesList_1.default,
239
244
  ic_setting: Setting_1.default,
245
+ ic_settlement: Settlement_1.default,
240
246
  ic_share: Share_1.default,
241
247
  ic_slideBanner: SlideBanner_1.default,
242
248
  ic_sort: Sort_1.default,
@@ -152,5 +152,6 @@
152
152
  "sys_widget_dark_01": "grey950",
153
153
  "usr_menu_background_gradient_opacity00": "grey950/opacity00",
154
154
  "sys_border_line_white": "white",
155
- "sys_component_base_white_opacity10": "white/opacity10"
155
+ "sys_component_base_white_opacity10": "white/opacity10",
156
+ "sys_cpnt_sheet_base_01": "darkgrey50"
156
157
  }
@@ -152,5 +152,6 @@
152
152
  "sys_widget_dark_01": "grey900",
153
153
  "usr_menu_background_gradient_opacity00": "white/opacity00",
154
154
  "sys_border_line_white": "white",
155
- "sys_component_base_white_opacity10": "white/opacity10"
155
+ "sys_component_base_white_opacity10": "white/opacity10",
156
+ "sys_cpnt_sheet_base_01": "grey30"
156
157
  }
@@ -29,7 +29,7 @@
29
29
  "opacity30": "4D",
30
30
  "opacity65": "A6",
31
31
  "darkgreen500": "#0ce1a8",
32
- "grey70": "#F2F2F2",
32
+ "grey70": "#eff0f3",
33
33
  "navy500": "#313349",
34
34
  "lightgreen500": "#32d64c",
35
35
  "pink500": "#FB3A63",
@@ -52,6 +52,7 @@
52
52
  "darknavy100": "#7A82B2",
53
53
  "opacity80": "CC",
54
54
  "opacity50": "80",
55
- "grey30": "#f9fafb",
56
- "opacity95": "F2"
55
+ "grey30": "#f8f9fa",
56
+ "opacity95": "F2",
57
+ "darkgrey30": "#1d1d1e"
57
58
  }
@@ -426,7 +426,7 @@
426
426
  "ui_cpnt_dropdown_border_darktheme_normal": "sys_border_line_darktheme_01",
427
427
  "ui_cpnt_dropdown_border_darktheme_focus": "sys_border_line_darktheme_04",
428
428
  "ui_cpnt_dropdown_base_darktheme_disabled": "sys_component_base_darktheme_01",
429
- "ui_cpnt_sheet_base": "sys_component_base_01",
429
+ "ui_cpnt_sheet_base": "sys_cpnt_sheet_base_01",
430
430
  "ui_cpnt_button_icon_darktheme_default": "sys_widget_grey_darktheme_02",
431
431
  "ui_cpnt_button_icon_darktheme_primary": "usr_widget_brand_primary_darktheme_01",
432
432
  "ui_cpnt_button_text_darktheme_default": "sys_text_grey_darktheme_02",
@@ -1,5 +1,5 @@
1
1
  declare const colorSet: {
2
- readonly PaletteColor_Dark: {
2
+ readonly PaletteColor_light: {
3
3
  sys_container_background_01: string;
4
4
  sys_container_background_02: string;
5
5
  sys_container_background_03: string;
@@ -154,8 +154,67 @@ declare const colorSet: {
154
154
  usr_menu_background_gradient_opacity00: string;
155
155
  sys_border_line_white: string;
156
156
  sys_component_base_white_opacity10: string;
157
+ sys_cpnt_sheet_base_01: string;
157
158
  };
158
- readonly PaletteColor_light: {
159
+ readonly SemanticColor: {
160
+ blue500: string;
161
+ blue700: string;
162
+ blue300: string;
163
+ green700: string;
164
+ green500: string;
165
+ green300: string;
166
+ red500: string;
167
+ grey900: string;
168
+ grey500: string;
169
+ grey400: string;
170
+ grey100: string;
171
+ grey50: string;
172
+ white: string;
173
+ black: string;
174
+ darkblue500: string;
175
+ grey950: string;
176
+ darkgrey900: string;
177
+ darkgrey500: string;
178
+ darkgrey400: string;
179
+ darkgrey100: string;
180
+ darkgrey50: string;
181
+ darkred500: string;
182
+ darkgreen700: string;
183
+ orange500: string;
184
+ darkorange500: string;
185
+ opacity00: string;
186
+ opacity20: string;
187
+ opacity30: string;
188
+ opacity65: string;
189
+ darkgreen500: string;
190
+ grey70: string;
191
+ navy500: string;
192
+ lightgreen500: string;
193
+ pink500: string;
194
+ darkgrey70: string;
195
+ darknavy500: string;
196
+ darkpink500: string;
197
+ darklightgreen500: string;
198
+ opacity10: string;
199
+ grey600: string;
200
+ darkgrey600: string;
201
+ skyblue500: string;
202
+ skyblue300: string;
203
+ pink300: string;
204
+ lightpink500: string;
205
+ darkblue300: string;
206
+ darkblue700: string;
207
+ darkgreen300: string;
208
+ darkskyblue500: string;
209
+ navy100: string;
210
+ darknavy100: string;
211
+ opacity80: string;
212
+ opacity50: string;
213
+ grey30: string;
214
+ opacity95: string;
215
+ darkgrey30: string;
216
+ };
217
+ readonly PaletteColor_Dark: {
159
218
  sys_container_background_01: string;
160
219
  sys_container_background_02: string;
161
220
  sys_container_background_03: string;
@@ -310,6 +369,7 @@ declare const colorSet: {
310
369
  usr_menu_background_gradient_opacity00: string;
311
370
  sys_border_line_white: string;
312
371
  sys_component_base_white_opacity10: string;
372
+ sys_cpnt_sheet_base_01: string;
313
373
  };
314
374
  readonly UIColor: {
315
375
  ui_cpnt_button_fill_base_primary: string;
@@ -801,62 +861,5 @@ declare const colorSet: {
801
861
  ui_cpnt_dropdown_border_white_focus: string;
802
862
  ui_cpnt_dropdown_base_white_normal: string;
803
863
  };
804
- readonly SemanticColor: {
805
- blue500: string;
806
- blue700: string;
807
- blue300: string;
808
- green700: string;
809
- green500: string;
810
- green300: string;
811
- red500: string;
812
- grey900: string;
813
- grey500: string;
814
- grey400: string;
815
- grey100: string;
816
- grey50: string;
817
- white: string;
818
- black: string;
819
- darkblue500: string;
820
- grey950: string;
821
- darkgrey900: string;
822
- darkgrey500: string;
823
- darkgrey400: string;
824
- darkgrey100: string;
825
- darkgrey50: string;
826
- darkred500: string;
827
- darkgreen700: string;
828
- orange500: string;
829
- darkorange500: string;
830
- opacity00: string;
831
- opacity20: string;
832
- opacity30: string;
833
- opacity65: string;
834
- darkgreen500: string;
835
- grey70: string;
836
- navy500: string;
837
- lightgreen500: string;
838
- pink500: string;
839
- darkgrey70: string;
840
- darknavy500: string;
841
- darkpink500: string;
842
- darklightgreen500: string;
843
- opacity10: string;
844
- grey600: string;
845
- darkgrey600: string;
846
- skyblue500: string;
847
- skyblue300: string;
848
- pink300: string;
849
- lightpink500: string;
850
- darkblue300: string;
851
- darkblue700: string;
852
- darkgreen300: string;
853
- darkskyblue500: string;
854
- navy100: string;
855
- darknavy100: string;
856
- opacity80: string;
857
- opacity50: string;
858
- grey30: string;
859
- opacity95: string;
860
- };
861
864
  };
862
865
  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"));
8
7
  var PaletteColor_light_json_1 = __importDefault(require("./PaletteColor_light.json"));
9
- var UIColor_json_1 = __importDefault(require("./UIColor.json"));
10
8
  var SemanticColor_json_1 = __importDefault(require("./SemanticColor.json"));
9
+ var PaletteColor_Dark_json_1 = __importDefault(require("./PaletteColor_Dark.json"));
10
+ var UIColor_json_1 = __importDefault(require("./UIColor.json"));
11
11
  var colorSet = {
12
- PaletteColor_Dark: PaletteColor_Dark_json_1.default,
13
12
  PaletteColor_light: PaletteColor_light_json_1.default,
14
- UIColor: UIColor_json_1.default,
15
- SemanticColor: SemanticColor_json_1.default
13
+ SemanticColor: SemanticColor_json_1.default,
14
+ PaletteColor_Dark: PaletteColor_Dark_json_1.default,
15
+ UIColor: UIColor_json_1.default
16
16
  };
17
17
  exports.default = colorSet;
@@ -9,11 +9,12 @@ declare type Props = {
9
9
  contentText?: TFunctionResult;
10
10
  filterBar?: React.ReactNode;
11
11
  dropdownTextArray?: PDSValueOption[];
12
+ dropdownDefaultValue?: PDSValueOption;
12
13
  onChangeCount?: (option: PDSValueOption) => void;
13
14
  onClickNextButton?: () => void;
14
15
  onClickPrevButton?: () => void;
15
16
  /** @deprecated v1.5 totalPage를 받아오기 때문에 deprecated 될 예정입니다. */
16
17
  itemCountUnit?: number;
17
18
  };
18
- declare function AdminListHeader({ headerBarSize, headerBarTitleText, itemCountUnit, currentPage, totalPage, contentText, filterBar, dropdownTextArray, onChangeCount, onClickNextButton, onClickPrevButton }: Props): JSX.Element;
19
+ declare function AdminListHeader({ headerBarSize, headerBarTitleText, itemCountUnit, currentPage, totalPage, contentText, filterBar, dropdownTextArray, dropdownDefaultValue, onChangeCount, onClickNextButton, onClickPrevButton }: Props): JSX.Element;
19
20
  export default AdminListHeader;
@@ -31,9 +31,9 @@ var defaultPaginationTextArray = [
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 ? defaultPaginationTextArray : _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, dropdownDefaultValue = _a.dropdownDefaultValue, 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, currentPage: currentPage, totalPage: totalPage, dropdownTextArray: dropdownTextArray, onChangeDropdown: onChangeCount, onClickIBtn1: onClickNextButton, onClickIBtn2: onClickPrevButton }),
36
+ react_1.default.createElement(HeaderBar_1.default, { titleText: headerBarTitleText, size: headerBarSize, currentPage: currentPage, totalPage: totalPage, dropdownTextArray: dropdownTextArray, dropdownDefaultValue: dropdownDefaultValue, onChangeDropdown: onChangeCount, onClickIBtn1: onClickNextButton, onClickIBtn2: onClickPrevButton }),
37
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,
@@ -7,9 +7,10 @@ declare type Props = {
7
7
  currentPage?: number;
8
8
  totalPage?: number;
9
9
  dropdownTextArray: PDSValueOption[];
10
+ dropdownDefaultValue?: PDSValueOption;
10
11
  onChangeDropdown?: (option: PDSValueOption) => void;
11
12
  onClickIBtn1?: () => void;
12
13
  onClickIBtn2?: () => void;
13
14
  };
14
- declare function HeaderBar({ titleText, size, currentPage, totalPage, dropdownTextArray, onChangeDropdown, onClickIBtn1, onClickIBtn2 }: Props): JSX.Element;
15
+ declare function HeaderBar({ titleText, size, currentPage, totalPage, dropdownTextArray, dropdownDefaultValue, onChangeDropdown, onClickIBtn1, onClickIBtn2 }: Props): JSX.Element;
15
16
  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.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;
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, dropdownDefaultValue = _a.dropdownDefaultValue, 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) {
@@ -48,7 +48,7 @@ function HeaderBar(_a) {
48
48
  react_1.default.createElement(S_ListCount, null,
49
49
  react_1.default.createElement(TextLabel_1.TextLabel, { text: t('str_rows_per_page', '목록 개수'), styleTheme: "caption1Regular" }),
50
50
  react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_b", spacingType: "width" }),
51
- react_1.default.createElement(Dropdown_1.Dropdown, { size: "small", valueArray: dropdownTextArray, onChange: handleDropdown, defaultValue: dropdownTextArray[0] })),
51
+ react_1.default.createElement(Dropdown_1.Dropdown, { size: "small", valueArray: dropdownTextArray, onChange: handleDropdown, defaultValue: dropdownDefaultValue !== null && dropdownDefaultValue !== void 0 ? dropdownDefaultValue : dropdownTextArray[0] })),
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" }),
@@ -28,10 +28,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  /* eslint-disable react/jsx-no-bind */
30
30
  var react_1 = __importDefault(require("react"));
31
+ var react_hook_form_1 = require("react-hook-form");
31
32
  var styled_components_1 = __importStar(require("styled-components"));
32
33
  var components_1 = require("../../common/components");
33
34
  function BlogTextField(_a) {
34
35
  var hintText = _a.hintText, defaultText = _a.defaultText, _b = _a.size, size = _b === void 0 ? 'rlarge' : _b, _c = _a.textLineType, textLineType = _c === void 0 ? 'auto' : _c, _d = _a.multiRows, multiRows = _d === void 0 ? 8 : _d, _e = _a.autoMinRows, autoMinRows = _e === void 0 ? 8 : _e, autoMaxRows = _a.autoMaxRows, _f = _a.state, state = _f === void 0 ? 'normal' : _f, _g = _a.spacingMode, spacingMode = _g === void 0 ? 'use' : _g, maxLength = _a.maxLength, name = _a.name, validation = _a.validation, onBlur = _a.onBlur, onChange = _a.onChange, onFocus = _a.onFocus, onTarget = _a.onTarget;
36
+ var register = (0, react_hook_form_1.useFormContext)().register;
37
+ var validateOnChange = register(name, validation).onChange;
35
38
  function handleFocus(e) {
36
39
  if (onFocus) {
37
40
  onFocus(e);
@@ -48,16 +51,17 @@ function BlogTextField(_a) {
48
51
  }
49
52
  }
50
53
  function handleChange(e) {
54
+ validateOnChange(e);
51
55
  if (onChange) {
52
56
  onChange(e);
53
57
  }
54
58
  }
55
59
  var S_BlogTextField = function () {
56
60
  if (textLineType === 'multi') {
57
- return (react_1.default.createElement(components_1.TextFieldBase, { name: name, hintText: hintText, defaultText: defaultText, validation: validation, textLineType: "multi", multiRows: multiRows, state: state, maxLength: maxLength, textSize: "form1", textWeight: "normal", onFocus: handleFocus, onTarget: handleTarget, onChange: handleChange, onBlur: handleBlur }));
61
+ return (react_1.default.createElement(components_1.TextFieldBase, { name: name, hintText: hintText, defaultText: defaultText, validation: validation, textLineType: "multi", multiRows: multiRows, state: state, maxLength: maxLength, textSize: "form1", textWeight: "normal", onFocus: handleFocus, onTarget: handleTarget, onChange: handleChange, onBlur: handleBlur, validationPoint: "onChange" }));
58
62
  }
59
63
  if (textLineType === 'auto') {
60
- return (react_1.default.createElement(components_1.TextFieldBase, { name: name, hintText: hintText, defaultText: defaultText, validation: validation, textLineType: "auto", autoMinRows: autoMinRows, autoMaxRows: autoMaxRows, state: state, maxLength: maxLength, textSize: "form1", textWeight: "normal", onFocus: handleFocus, onTarget: handleTarget, onChange: handleChange, onBlur: handleBlur }));
64
+ return (react_1.default.createElement(components_1.TextFieldBase, { name: name, hintText: hintText, defaultText: defaultText, validation: validation, textLineType: "auto", autoMinRows: autoMinRows, autoMaxRows: autoMaxRows, state: state, maxLength: maxLength, textSize: "form1", textWeight: "normal", onFocus: handleFocus, onTarget: handleTarget, onChange: handleChange, onBlur: handleBlur, validationPoint: "onChange" }));
61
65
  }
62
66
  };
63
67
  return (react_1.default.createElement(react_1.default.Fragment, null,
@@ -2,6 +2,7 @@ import React from 'react';
2
2
  declare type ContextMenuProps = {
3
3
  children: React.ReactNode;
4
4
  autoWidthMode?: 'none' | 'use';
5
+ maxHeight?: number;
5
6
  };
6
- declare function ContextMenu({ children, autoWidthMode }: ContextMenuProps): JSX.Element;
7
+ declare function ContextMenu({ children, autoWidthMode, maxHeight }: ContextMenuProps): JSX.Element;
7
8
  export default ContextMenu;
@@ -10,10 +10,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
10
10
  var react_1 = __importDefault(require("react"));
11
11
  var styled_components_1 = __importDefault(require("styled-components"));
12
12
  function ContextMenu(_a) {
13
- var children = _a.children, _b = _a.autoWidthMode, autoWidthMode = _b === void 0 ? 'none' : _b;
14
- return react_1.default.createElement(S_ContextMenu, { autoWidth: autoWidthMode === 'use' }, children);
13
+ var children = _a.children, _b = _a.autoWidthMode, autoWidthMode = _b === void 0 ? 'none' : _b, maxHeight = _a.maxHeight;
14
+ return (react_1.default.createElement(S_ContextMenu, { autoWidth: autoWidthMode === 'use', maxHeight: maxHeight }, children));
15
15
  }
16
- var S_ContextMenu = styled_components_1.default.ul(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n background-color: ", ";\n border: 1px solid ", ";\n border-radius: 8px;\n box-shadow: ", ";\n list-style: none;\n margin: 0;\n min-width: 128px;\n overflow-y: auto;\n padding: ", " 0;\n position: relative;\n vertical-align: baseline;\n width: ", ";\n z-index: 3;\n"], ["\n background-color: ", ";\n border: 1px solid ", ";\n border-radius: 8px;\n box-shadow: ", ";\n list-style: none;\n margin: 0;\n min-width: 128px;\n overflow-y: auto;\n padding: ", " 0;\n position: relative;\n vertical-align: baseline;\n width: ", ";\n z-index: 3;\n"])), function (_a) {
16
+ var S_ContextMenu = styled_components_1.default.ul(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n background-color: ", ";\n border: 1px solid ", ";\n border-radius: 8px;\n box-shadow: ", ";\n list-style: none;\n margin: 0;\n min-width: 128px;\n overflow-y: auto;\n padding: ", " 0;\n position: relative;\n vertical-align: baseline;\n width: ", ";\n z-index: 3;\n\n ", ";\n"], ["\n background-color: ", ";\n border: 1px solid ", ";\n border-radius: 8px;\n box-shadow: ", ";\n list-style: none;\n margin: 0;\n min-width: 128px;\n overflow-y: auto;\n padding: ", " 0;\n position: relative;\n vertical-align: baseline;\n width: ", ";\n z-index: 3;\n\n ", ";\n"])), function (_a) {
17
17
  var theme = _a.theme;
18
18
  return theme.ui_cpnt_contextmenu_base;
19
19
  }, function (_a) {
@@ -28,6 +28,9 @@ var S_ContextMenu = styled_components_1.default.ul(templateObject_1 || (template
28
28
  }, function (_a) {
29
29
  var autoWidth = _a.autoWidth;
30
30
  return (autoWidth ? 'inherit' : 'auto');
31
+ }, function (_a) {
32
+ var maxHeight = _a.maxHeight;
33
+ return maxHeight && { maxHeight: maxHeight + "px" };
31
34
  });
32
35
  exports.default = ContextMenu;
33
36
  var templateObject_1;
@@ -4,11 +4,12 @@ export declare type ContextMenuItemProps = {
4
4
  option?: PDSValueOption;
5
5
  size?: 'large' | 'medium' | 'small';
6
6
  isSelected?: boolean;
7
+ state?: 'normal' | 'disabled';
7
8
  onClick?: (value: PDSValueOption | string | number | boolean) => void;
8
9
  /** @deprecated option 필드를 대신 사용하세요. */
9
10
  text?: PDSTextType;
10
11
  /** @deprecated option 필드를 대신 사용하세요. */
11
12
  value?: string | number | boolean;
12
13
  };
13
- declare function ContextMenuItem({ option, size, isSelected, onClick, text, value }: ContextMenuItemProps): JSX.Element;
14
+ declare function ContextMenuItem({ option, size, isSelected, state, onClick, text, value }: ContextMenuItemProps): JSX.Element;
14
15
  export default ContextMenuItem;
@@ -30,8 +30,11 @@ var react_1 = __importDefault(require("react"));
30
30
  var styled_components_1 = __importStar(require("styled-components"));
31
31
  var TextLabel_1 = require("../TextLabel");
32
32
  function ContextMenuItem(_a) {
33
- var option = _a.option, _b = _a.size, size = _b === void 0 ? 'small' : _b, _c = _a.isSelected, isSelected = _c === void 0 ? false : _c, onClick = _a.onClick, text = _a.text, value = _a.value;
33
+ var option = _a.option, _b = _a.size, size = _b === void 0 ? 'small' : _b, _c = _a.isSelected, isSelected = _c === void 0 ? false : _c, _d = _a.state, state = _d === void 0 ? 'normal' : _d, onClick = _a.onClick, text = _a.text, value = _a.value;
34
34
  var handleClick = function () {
35
+ if (state === 'disabled') {
36
+ return;
37
+ }
35
38
  if (onClick && option) {
36
39
  onClick(option);
37
40
  }
@@ -39,8 +42,18 @@ function ContextMenuItem(_a) {
39
42
  onClick(value);
40
43
  }
41
44
  };
42
- return (react_1.default.createElement(S_ContextMenuItem, { size: size, onClick: handleClick, selected: isSelected },
43
- react_1.default.createElement(TextLabel_1.TextLabel, { text: (option === null || option === void 0 ? void 0 : option.text) || text, styleTheme: "form2Regular", singleLineMode: "use" })));
45
+ var textColorTheme;
46
+ if (isSelected) {
47
+ textColorTheme = 'sysTextPrimary';
48
+ }
49
+ if (!isSelected && state === 'normal') {
50
+ textColorTheme = 'sysTextSecondary';
51
+ }
52
+ if (state === 'disabled') {
53
+ textColorTheme = 'sysTextTertiary';
54
+ }
55
+ return (react_1.default.createElement(S_ContextMenuItem, { size: size, onClick: handleClick, selected: isSelected, disabled: state === 'disabled' },
56
+ react_1.default.createElement(TextLabel_1.TextLabel, { text: (option === null || option === void 0 ? void 0 : option.text) || text, styleTheme: "form2Regular", singleLineMode: "use", colorTheme: textColorTheme })));
44
57
  }
45
58
  var large = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n height: 48px;\n padding: 0 ", ";\n"], ["\n height: 48px;\n padding: 0 ", ";\n"])), function (_a) {
46
59
  var theme = _a.theme;
@@ -54,7 +67,7 @@ var small = (0, styled_components_1.css)(templateObject_3 || (templateObject_3 =
54
67
  var theme = _a.theme;
55
68
  return theme.spacing.spacingD;
56
69
  });
57
- var S_ContextMenuItem = styled_components_1.default.li(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n align-items: center;\n background-color: ", ";\n cursor: pointer;\n display: flex;\n\n ", ";\n\n &:hover {\n background-color: ", ";\n }\n"], ["\n align-items: center;\n background-color: ", ";\n cursor: pointer;\n display: flex;\n\n ", ";\n\n &:hover {\n background-color: ", ";\n }\n"])), function (_a) {
70
+ var S_ContextMenuItem = styled_components_1.default.li(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n align-items: center;\n background-color: ", ";\n cursor: pointer;\n display: flex;\n\n ", ";\n\n &:hover {\n background-color: ", ";\n }\n\n ", ";\n"], ["\n align-items: center;\n background-color: ", ";\n cursor: pointer;\n display: flex;\n\n ", ";\n\n &:hover {\n background-color: ", ";\n }\n\n ", ";\n"])), function (_a) {
58
71
  var theme = _a.theme, selected = _a.selected;
59
72
  return selected
60
73
  ? theme.ui_cpnt_contextmenu_menu_base_selected
@@ -65,6 +78,11 @@ var S_ContextMenuItem = styled_components_1.default.li(templateObject_4 || (temp
65
78
  }, function (_a) {
66
79
  var theme = _a.theme;
67
80
  return theme.ui_cpnt_contextmenu_menu_base_hover;
81
+ }, function (_a) {
82
+ var disabled = _a.disabled;
83
+ return disabled && {
84
+ cursor: 'not-allowed'
85
+ };
68
86
  });
69
87
  exports.default = ContextMenuItem;
70
88
  var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
@@ -1,15 +1,20 @@
1
1
  /// <reference types="react" />
2
2
  import { TFunctionResult } from 'i18next';
3
3
  import { PDSValueOption } from '../../../common';
4
+ declare type DropDownValues = PDSValueOption & {
5
+ state?: 'normal' | 'disabled';
6
+ };
4
7
  declare type Props = {
5
- size?: 'large' | 'small';
6
- hintText?: TFunctionResult;
8
+ colorTheme?: 'none' | 'dark';
7
9
  defaultValue?: PDSValueOption;
8
- valueArray: PDSValueOption[];
10
+ hintText?: TFunctionResult;
11
+ maxHeightItemNumber?: number;
12
+ responsiveMode?: 'none' | 'use';
9
13
  selectionMode?: 'single' | 'multi';
14
+ size?: 'large' | 'small';
10
15
  state?: 'normal' | 'read_only' | 'disabled';
11
- colorTheme?: 'none' | 'dark';
16
+ valueArray: DropDownValues[];
12
17
  onChange?: (option: PDSValueOption) => void;
13
18
  };
14
- declare function Dropdown({ size, hintText, defaultValue, valueArray, selectionMode, state, colorTheme, onChange }: Props): JSX.Element;
19
+ declare function Dropdown({ colorTheme, defaultValue, hintText, maxHeightItemNumber, responsiveMode, selectionMode, size, state, valueArray, onChange }: Props): JSX.Element;
15
20
  export default Dropdown;
@@ -31,9 +31,9 @@ var ContextMenuItem_1 = require("../ContextMenuItem");
31
31
  var TextLabel_1 = require("../TextLabel");
32
32
  // TODO: selectionMode의 multi 기능 구현 추가 필요
33
33
  function Dropdown(_a) {
34
- var _b = _a.size, size = _b === void 0 ? 'large' : _b, hintText = _a.hintText, defaultValue = _a.defaultValue, valueArray = _a.valueArray, _c = _a.selectionMode, selectionMode = _c === void 0 ? 'single' : _c, _d = _a.state, state = _d === void 0 ? 'normal' : _d, _e = _a.colorTheme, colorTheme = _e === void 0 ? 'none' : _e, onChange = _a.onChange;
35
- var _f = (0, react_1.useState)(false), isFocused = _f[0], setIsFocused = _f[1];
36
- var _g = (0, react_1.useState)(defaultValue), selectedOption = _g[0], setSelectedOption = _g[1];
34
+ var _b = _a.colorTheme, colorTheme = _b === void 0 ? 'none' : _b, defaultValue = _a.defaultValue, hintText = _a.hintText, _c = _a.maxHeightItemNumber, maxHeightItemNumber = _c === void 0 ? 5 : _c, _d = _a.responsiveMode, responsiveMode = _d === void 0 ? 'none' : _d, _e = _a.selectionMode, selectionMode = _e === void 0 ? 'single' : _e, _f = _a.size, size = _f === void 0 ? 'large' : _f, _g = _a.state, state = _g === void 0 ? 'normal' : _g, valueArray = _a.valueArray, onChange = _a.onChange;
35
+ var _h = (0, react_1.useState)(false), isFocused = _h[0], setIsFocused = _h[1];
36
+ var _j = (0, react_1.useState)(defaultValue), selectedOption = _j[0], setSelectedOption = _j[1];
37
37
  (0, react_1.useEffect)(function () {
38
38
  if (defaultValue) {
39
39
  setSelectedOption(defaultValue);
@@ -97,14 +97,23 @@ function Dropdown(_a) {
97
97
  return 'ui_cpnt_dropdown_text_darktheme_enabled';
98
98
  }
99
99
  };
100
- return (react_1.default.createElement(S_Dropdown, { className: "container", size: size, tabIndex: 0, onBlur: handleBlur },
101
- react_1.default.createElement(S_Select, { size: size, onClick: handleClick, isFocused: isFocused, state: state, colorTheme: colorTheme },
100
+ var maxHeight = (0, react_1.useMemo)(function () {
101
+ if (size === 'small') {
102
+ var SMALL_HEIGHT = 32;
103
+ return SMALL_HEIGHT * maxHeightItemNumber;
104
+ }
105
+ // NOTE: 사이즈가 large인 경우입니다.
106
+ var LARGE_HEIGHT = 48;
107
+ return LARGE_HEIGHT * maxHeightItemNumber;
108
+ }, [size, maxHeightItemNumber]);
109
+ return (react_1.default.createElement(S_Dropdown, { className: "container", size: size, tabIndex: 0, onBlur: handleBlur, responsiveMode: responsiveMode },
110
+ react_1.default.createElement(S_Select, { size: size, onClick: handleClick, isFocused: isFocused, state: state, colorTheme: colorTheme, responsiveMode: responsiveMode },
102
111
  react_1.default.createElement(S_TextLabel, null,
103
112
  react_1.default.createElement(TextLabel_1.TextLabel, { text: (selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.text) || hintText, styleTheme: "form2Regular", singleLineMode: "use", colorTheme: getTextColorTheme(), colorOverride: getDarkTextColor() })),
104
113
  react_1.default.createElement(hybrid_1.Icon, { size: 16, fillType: "line", iconName: isFocused ? 'ic_arrow_up' : 'ic_arrow_down', colorKey: getIconColorKey() }),
105
114
  react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_d", spacingType: "width" })),
106
115
  isFocused && (react_1.default.createElement(S_ContextMenuWrapper, null,
107
- react_1.default.createElement(ContextMenu_1.ContextMenu, { autoWidthMode: "use" }, valueArray.map(function (el) { return (react_1.default.createElement(ContextMenuItem_1.ContextMenuItem, { key: el.value, option: el, size: size, isSelected: el.value === (selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.value), onClick: handleClickOption })); }))))));
116
+ react_1.default.createElement(ContextMenu_1.ContextMenu, { autoWidthMode: "use", maxHeight: maxHeight }, valueArray.map(function (el) { return (react_1.default.createElement(ContextMenuItem_1.ContextMenuItem, { key: el.value, option: el, size: size, isSelected: el.value === (selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.value), onClick: handleClickOption, state: el.state })); }))))));
108
117
  }
109
118
  var S_TextLabel = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n flex: 1;\n padding-left: ", ";\n padding-right: ", ";\n"], ["\n flex: 1;\n padding-left: ", ";\n padding-right: ", ";\n"])), function (_a) {
110
119
  var theme = _a.theme;
@@ -113,9 +122,15 @@ var S_TextLabel = styled_components_1.default.div(templateObject_1 || (templateO
113
122
  var theme = _a.theme;
114
123
  return theme.spacing.spacingB;
115
124
  });
116
- var large = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n height: 48px;\n width: 432px;\n"], ["\n height: 48px;\n width: 432px;\n"])));
117
- var small = (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n height: 32px;\n width: 188px;\n"], ["\n height: 32px;\n width: 188px;\n"])));
118
- var S_Dropdown = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n display: inline-block;\n position: relative;\n\n ", "\n"], ["\n display: inline-block;\n position: relative;\n\n ", "\n"])), function (_a) {
125
+ var large = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n height: 48px;\n width: ", ";\n"], ["\n height: 48px;\n width: ", ";\n"])), function (_a) {
126
+ var responsiveMode = _a.responsiveMode;
127
+ return (responsiveMode === 'use' ? '100%' : '432px');
128
+ });
129
+ var small = (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n height: 32px;\n width: ", ";\n"], ["\n height: 32px;\n width: ", ";\n"])), function (_a) {
130
+ var responsiveMode = _a.responsiveMode;
131
+ return (responsiveMode === 'use' ? '100%' : '188px');
132
+ });
133
+ var S_Dropdown = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n display: inline-block;\n position: relative;\n\n ", ";\n"], ["\n display: inline-block;\n position: relative;\n\n ", ";\n"])), function (_a) {
119
134
  var size = _a.size;
120
135
  return size &&
121
136
  {
@@ -123,7 +138,7 @@ var S_Dropdown = styled_components_1.default.div(templateObject_4 || (templateOb
123
138
  small: small
124
139
  }[size];
125
140
  });
126
- var S_Select = styled_components_1.default.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n align-items: center;\n box-sizing: border-box;\n background-color: ", ";\n border: 1px solid\n ", ";\n border-radius: 8px;\n color: ", ";\n cursor: pointer;\n display: flex;\n justify-content: space-between;\n\n ", "\n"], ["\n align-items: center;\n box-sizing: border-box;\n background-color: ", ";\n border: 1px solid\n ", ";\n border-radius: 8px;\n color: ", ";\n cursor: pointer;\n display: flex;\n justify-content: space-between;\n\n ", "\n"])), function (_a) {
141
+ var S_Select = styled_components_1.default.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n align-items: center;\n box-sizing: border-box;\n background-color: ", ";\n border: 1px solid\n ", ";\n border-radius: 8px;\n color: ", ";\n cursor: pointer;\n display: flex;\n justify-content: space-between;\n\n ", ";\n"], ["\n align-items: center;\n box-sizing: border-box;\n background-color: ", ";\n border: 1px solid\n ", ";\n border-radius: 8px;\n color: ", ";\n cursor: pointer;\n display: flex;\n justify-content: space-between;\n\n ", ";\n"])), function (_a) {
127
142
  var state = _a.state, colorTheme = _a.colorTheme, theme = _a.theme;
128
143
  switch (state) {
129
144
  case 'disabled':
@@ -24,7 +24,7 @@ function FilterBar(_a) {
24
24
  };
25
25
  var renderingTextField = function () {
26
26
  if (displayType === 'filterchips_searchfield' || displayType === 'searchfield') {
27
- return name && react_1.default.createElement(TextField_1.TextField, { name: name, size: "small", hintText: hintText });
27
+ return (name && (react_1.default.createElement(TextField_1.TextField, { name: name, size: "small", hintText: hintText, enterSubmitMode: "use", validationPoint: "onChange" })));
28
28
  }
29
29
  };
30
30
  return (react_1.default.createElement(S_FilterBarBox, null,
@@ -34,9 +34,6 @@ var TextLabel_1 = require("../TextLabel");
34
34
  // textColorKey?: string;
35
35
  // baseColorKey?: string;
36
36
  // borderColorKey?: string;
37
- // NOTE : PDS 문서 1.2 버전에서 업데이트 예정인 props
38
- // displayType?: 'icon_only' | 'text_only' | 'icon_text';
39
- // state?: 'normal' | 'disabled';
40
37
  function FloatingActionButton(_a) {
41
38
  var text = _a.text, _b = _a.displayType, displayType = _b === void 0 ? 'icon_text' : _b, _c = _a.size, size = _c === void 0 ? 'large' : _c, _d = _a.fontWeight, fontWeight = _d === void 0 ? 'bold' : _d, _e = _a.iconFillType, iconFillType = _e === void 0 ? 'line' : _e, iconName = _a.iconName, _f = _a.colorTheme, colorTheme = _f === void 0 ? 'none' : _f, _g = _a.state, state = _g === void 0 ? 'normal' : _g, onClick = _a.onClick, onMouseDown = _a.onMouseDown;
42
39
  var handleClick = function () {
@@ -71,9 +68,12 @@ var disabled = (0, styled_components_1.css)(templateObject_3 || (templateObject_
71
68
  var theme = _a.theme;
72
69
  return theme.ui_cpnt_button_fill_base_disabled;
73
70
  });
74
- var floatingActionButtonStyle = (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n align-items: center;\n background-color: ", ";\n border: none;\n bottom: 24px;\n cursor: ", ";\n display: flex;\n justify-content: center;\n position: fixed;\n right: 24px;\n /* NOTE : \uB808\uC774\uC5B4 \uB3C4\uC785 \uD6C4 \uC81C\uAC70\uB420 \uAC00\uB2A5\uC131 \uB18D\uD6C4 */\n z-index: 101;\n\n &:focus {\n outline: none;\n }\n\n &:hover:enabled {\n ", "\n }\n\n &:active:enabled {\n ", "\n }\n\n ", "\n"], ["\n align-items: center;\n background-color: ", ";\n border: none;\n bottom: 24px;\n cursor: ", ";\n display: flex;\n justify-content: center;\n position: fixed;\n right: 24px;\n /* NOTE : \uB808\uC774\uC5B4 \uB3C4\uC785 \uD6C4 \uC81C\uAC70\uB420 \uAC00\uB2A5\uC131 \uB18D\uD6C4 */\n z-index: 101;\n\n &:focus {\n outline: none;\n }\n\n &:hover:enabled {\n ", "\n }\n\n &:active:enabled {\n ", "\n }\n\n ", "\n"])), function (_a) {
71
+ var floatingActionButtonStyle = (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n align-items: center;\n background-color: ", ";\n border: none;\n bottom: 24px;\n box-shadow: ", ";\n cursor: ", ";\n display: flex;\n justify-content: center;\n position: fixed;\n right: 24px;\n /* NOTE : \uB808\uC774\uC5B4 \uB3C4\uC785 \uD6C4 \uC81C\uAC70\uB420 \uAC00\uB2A5\uC131 \uB18D\uD6C4 */\n z-index: 101;\n\n &:focus {\n outline: none;\n }\n\n &:hover:enabled {\n ", "\n }\n\n &:active:enabled {\n ", "\n }\n\n ", "\n"], ["\n align-items: center;\n background-color: ", ";\n border: none;\n bottom: 24px;\n box-shadow: ", ";\n cursor: ", ";\n display: flex;\n justify-content: center;\n position: fixed;\n right: 24px;\n /* NOTE : \uB808\uC774\uC5B4 \uB3C4\uC785 \uD6C4 \uC81C\uAC70\uB420 \uAC00\uB2A5\uC131 \uB18D\uD6C4 */\n z-index: 101;\n\n &:focus {\n outline: none;\n }\n\n &:hover:enabled {\n ", "\n }\n\n &:active:enabled {\n ", "\n }\n\n ", "\n"])), function (_a) {
75
72
  var theme = _a.theme;
76
73
  return theme.ui_cpnt_button_fill_base_primary;
74
+ }, function (_a) {
75
+ var theme = _a.theme;
76
+ return theme.boxShadow.elevation3;
77
77
  }, function (_a) {
78
78
  var state = _a.state;
79
79
  return (state === 'normal' ? 'pointer' : 'default');
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { FillIconNameKeys, LineIconNameKeys, UiColors } from '../../../common';
3
3
  export declare type IconButtonProps = {
4
4
  fillType?: 'fill' | 'line';
@@ -14,8 +14,8 @@ export declare type IconButtonProps = {
14
14
  colorTheme?: 'none' | 'line1' | 'line2';
15
15
  type?: 'submit' | 'reset' | 'button';
16
16
  state?: 'normal' | 'disabled';
17
- onClick?: (...args: any) => any;
18
- onMouseDown?: (...args: any) => any;
17
+ onClick?: () => any;
18
+ onMouseDown?: (e: React.MouseEvent<HTMLButtonElement>) => any;
19
19
  };
20
20
  declare function IconButton({ fillType, shapeType, baseSize, baseColorKey, borderColorKey, iconSize, iconFillType, iconName, iconColorKey, shadow, colorTheme, type, state, onClick, onMouseDown }: IconButtonProps): JSX.Element;
21
21
  export default IconButton;
@@ -37,9 +37,9 @@ function IconButton(_a) {
37
37
  onClick();
38
38
  }
39
39
  };
40
- var handleMouseDown = function () {
40
+ var handleMouseDown = function (e) {
41
41
  if (onMouseDown) {
42
- onMouseDown();
42
+ onMouseDown(e);
43
43
  }
44
44
  };
45
45
  var iconStateColorObj = {
@@ -270,7 +270,7 @@ var tooltipLeftTop = (0, styled_components_1.css)(templateObject_32 || (template
270
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
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
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 ", ";\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\n ", ";\n"])), function (_a) {
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\n ", ";\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\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n"])), function (_a) {
274
274
  var textAlign = _a.textAlign;
275
275
  return textAlign;
276
276
  }, function (_a) {
@@ -352,7 +352,7 @@ var S_TooltipBox = styled_components_1.default.div(templateObject_37 || (templat
352
352
  }
353
353
  });
354
354
  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"])));
355
- 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) {
355
+ 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 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 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) {
356
356
  var theme = _a.theme;
357
357
  return theme.ui_cpnt_contextmenu_base;
358
358
  }, function (_a) {
@@ -65,6 +65,6 @@ var S_TopPageMenuArea = styled_components_1.default.div(templateObject_3 || (tem
65
65
  var areaLine = _a.areaLine;
66
66
  return areaLine && areaLineStyle;
67
67
  });
68
- var S_TopPageMenuContent = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n min-height: 64px;\n"], ["\n min-height: 64px;\n"])));
68
+ var S_TopPageMenuContent = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n min-height: 48px;\n"], ["\n min-height: 48px;\n"])));
69
69
  exports.default = TopPageMenu;
70
70
  var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
@@ -30,7 +30,7 @@ var react_1 = __importDefault(require("react"));
30
30
  var styled_components_1 = __importStar(require("styled-components"));
31
31
  var ImageView = function (_a) {
32
32
  var src = _a.src, _b = _a.shapeType, shapeType = _b === void 0 ? 'round' : _b, _c = _a.radius, radius = _c === void 0 ? 8 : _c, width = _a.width, height = _a.height, noImageHeight = _a.noImageHeight, noImageWidth = _a.noImageWidth, _d = _a.ratio, ratio = _d === void 0 ? 'auto' : _d, _e = _a.scaleType, scaleType = _e === void 0 ? 'none' : _e, _f = _a.borderMode, borderMode = _f === void 0 ? 'none' : _f, _g = _a.backgroundFillMode, backgroundFillMode = _g === void 0 ? 'none' : _g;
33
- return (react_1.default.createElement(react_1.default.Fragment, null, ratio === 'auto' ? (react_1.default.createElement(S_AutoImageViewWrapper, { "$height": height, "$width": width, noImageHeight: noImageHeight, noImageWidth: noImageWidth, borderMode: borderMode, shapeType: shapeType, radius: radius, backgroundFillMode: backgroundFillMode, "$src": src }, src && (react_1.default.createElement(S_AutoImageView, { src: src, "$height": height, "$width": width, scaleType: scaleType })))) : (react_1.default.createElement(S_RatioImageViewWrapper, { "$width": width, borderMode: borderMode, shapeType: shapeType, radius: radius, backgroundFillMode: backgroundFillMode },
33
+ return (react_1.default.createElement(react_1.default.Fragment, null, ratio === 'auto' ? (react_1.default.createElement(S_AutoImageViewWrapper, { "$height": height, "$width": width, noImageHeight: noImageHeight, noImageWidth: noImageWidth, borderMode: borderMode, shapeType: shapeType, "$radius": radius, backgroundFillMode: backgroundFillMode, "$src": src }, src && (react_1.default.createElement(S_AutoImageView, { src: src, "$height": height, "$width": width, scaleType: scaleType })))) : (react_1.default.createElement(S_RatioImageViewWrapper, { "$width": width, borderMode: borderMode, shapeType: shapeType, "$radius": radius, backgroundFillMode: backgroundFillMode },
34
34
  react_1.default.createElement(S_RatioImageView, { "$src": src, scaleType: scaleType, ratio: ratio })))));
35
35
  };
36
36
  var wrapperStyle = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n box-sizing: border-box;\n display: inline-block;\n vertical-align: bottom;\n overflow: hidden;\n ", ";\n ", ";\n ", ";\n"], ["\n box-sizing: border-box;\n display: inline-block;\n vertical-align: bottom;\n overflow: hidden;\n ", ";\n ", ";\n ", ";\n"])), function (_a) {
@@ -40,10 +40,10 @@ var wrapperStyle = (0, styled_components_1.css)(templateObject_1 || (templateObj
40
40
  var borderMode = _a.borderMode, theme = _a.theme;
41
41
  return borderMode === 'use' && "border: 1px solid " + theme.ui_profile_image_border;
42
42
  }, function (_a) {
43
- var shapeType = _a.shapeType, radius = _a.radius;
43
+ var shapeType = _a.shapeType, $radius = _a.$radius;
44
44
  return shapeType &&
45
45
  {
46
- round: "border-radius: " + radius + "px",
46
+ round: "border-radius: " + $radius + "px",
47
47
  circular: 'border-radius: 50%',
48
48
  rectangle: ''
49
49
  }[shapeType];
@@ -28,10 +28,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  /* eslint-disable react/jsx-no-bind */
30
30
  var react_1 = __importDefault(require("react"));
31
+ var react_hook_form_1 = require("react-hook-form");
31
32
  var styled_components_1 = __importStar(require("styled-components"));
32
33
  var components_1 = require("../../common/components");
33
34
  function BlogTextField(_a) {
34
35
  var hintText = _a.hintText, defaultText = _a.defaultText, _b = _a.size, size = _b === void 0 ? 'rlarge' : _b, _c = _a.textLineType, textLineType = _c === void 0 ? 'auto' : _c, _d = _a.multiRows, multiRows = _d === void 0 ? 8 : _d, _e = _a.autoMinRows, autoMinRows = _e === void 0 ? 8 : _e, autoMaxRows = _a.autoMaxRows, _f = _a.state, state = _f === void 0 ? 'normal' : _f, _g = _a.spacingMode, spacingMode = _g === void 0 ? 'use' : _g, maxLength = _a.maxLength, name = _a.name, validation = _a.validation, onBlur = _a.onBlur, onChange = _a.onChange, onFocus = _a.onFocus, onTarget = _a.onTarget;
36
+ var register = (0, react_hook_form_1.useFormContext)().register;
37
+ var validateOnChange = register(name, validation).onChange;
35
38
  function handleFocus(e) {
36
39
  if (onFocus) {
37
40
  onFocus(e);
@@ -48,16 +51,17 @@ function BlogTextField(_a) {
48
51
  }
49
52
  }
50
53
  function handleChange(e) {
54
+ validateOnChange(e);
51
55
  if (onChange) {
52
56
  onChange(e);
53
57
  }
54
58
  }
55
59
  var S_BlogTextField = function () {
56
60
  if (textLineType === 'multi') {
57
- return (react_1.default.createElement(components_1.TextFieldBase, { name: name, hintText: hintText, defaultText: defaultText, validation: validation, textLineType: "multi", multiRows: multiRows, state: state, maxLength: maxLength, textSize: "form1", textWeight: "normal", onFocus: handleFocus, onTarget: handleTarget, onChange: handleChange, onBlur: handleBlur }));
61
+ return (react_1.default.createElement(components_1.TextFieldBase, { name: name, hintText: hintText, defaultText: defaultText, validation: validation, textLineType: "multi", multiRows: multiRows, state: state, maxLength: maxLength, textSize: "form1", textWeight: "normal", onFocus: handleFocus, onTarget: handleTarget, onChange: handleChange, onBlur: handleBlur, validationPoint: "onChange" }));
58
62
  }
59
63
  if (textLineType === 'auto') {
60
- return (react_1.default.createElement(components_1.TextFieldBase, { name: name, hintText: hintText, defaultText: defaultText, validation: validation, textLineType: "auto", autoMinRows: autoMinRows, autoMaxRows: autoMaxRows, state: state, maxLength: maxLength, textSize: "form1", textWeight: "normal", onFocus: handleFocus, onTarget: handleTarget, onChange: handleChange, onBlur: handleBlur }));
64
+ return (react_1.default.createElement(components_1.TextFieldBase, { name: name, hintText: hintText, defaultText: defaultText, validation: validation, textLineType: "auto", autoMinRows: autoMinRows, autoMaxRows: autoMaxRows, state: state, maxLength: maxLength, textSize: "form1", textWeight: "normal", onFocus: handleFocus, onTarget: handleTarget, onChange: handleChange, onBlur: handleBlur, validationPoint: "onChange" }));
61
65
  }
62
66
  };
63
67
  return (react_1.default.createElement(react_1.default.Fragment, null,
@@ -4,11 +4,12 @@ export declare type ContextMenuItemProps = {
4
4
  option?: PDSValueOption;
5
5
  size?: 'large' | 'medium' | 'small';
6
6
  isSelected?: boolean;
7
+ state?: 'normal' | 'disabled';
7
8
  onClick?: (value: PDSValueOption | string | number | boolean) => void;
8
9
  /** @deprecated option 필드를 대신 사용하세요. */
9
10
  text?: PDSTextType;
10
11
  /** @deprecated option 필드를 대신 사용하세요. */
11
12
  value?: string | number | boolean;
12
13
  };
13
- declare function ContextMenuItem({ option, size, isSelected, onClick, text, value }: ContextMenuItemProps): JSX.Element;
14
+ declare function ContextMenuItem({ option, size, isSelected, state, onClick, text, value }: ContextMenuItemProps): JSX.Element;
14
15
  export default ContextMenuItem;
@@ -30,8 +30,11 @@ var react_1 = __importDefault(require("react"));
30
30
  var styled_components_1 = __importStar(require("styled-components"));
31
31
  var TextLabel_1 = require("../TextLabel");
32
32
  function ContextMenuItem(_a) {
33
- var option = _a.option, _b = _a.size, size = _b === void 0 ? 'small' : _b, _c = _a.isSelected, isSelected = _c === void 0 ? false : _c, onClick = _a.onClick, text = _a.text, value = _a.value;
33
+ var option = _a.option, _b = _a.size, size = _b === void 0 ? 'small' : _b, _c = _a.isSelected, isSelected = _c === void 0 ? false : _c, _d = _a.state, state = _d === void 0 ? 'normal' : _d, onClick = _a.onClick, text = _a.text, value = _a.value;
34
34
  var handleClick = function () {
35
+ if (state === 'disabled') {
36
+ return;
37
+ }
35
38
  if (onClick && option) {
36
39
  onClick(option);
37
40
  }
@@ -39,8 +42,18 @@ function ContextMenuItem(_a) {
39
42
  onClick(value);
40
43
  }
41
44
  };
42
- return (react_1.default.createElement(S_ContextMenuItem, { size: size, onClick: handleClick, selected: isSelected },
43
- react_1.default.createElement(TextLabel_1.TextLabel, { text: (option === null || option === void 0 ? void 0 : option.text) || text, styleTheme: "form2Regular", singleLineMode: "use" })));
45
+ var textColorTheme;
46
+ if (isSelected) {
47
+ textColorTheme = 'sysTextPrimary';
48
+ }
49
+ if (!isSelected && state === 'normal') {
50
+ textColorTheme = 'sysTextSecondary';
51
+ }
52
+ if (state === 'disabled') {
53
+ textColorTheme = 'sysTextTertiary';
54
+ }
55
+ return (react_1.default.createElement(S_ContextMenuItem, { size: size, onClick: handleClick, selected: isSelected, disabled: state === 'disabled' },
56
+ react_1.default.createElement(TextLabel_1.TextLabel, { text: (option === null || option === void 0 ? void 0 : option.text) || text, styleTheme: "form2Regular", singleLineMode: "use", colorTheme: textColorTheme })));
44
57
  }
45
58
  var large = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n height: 48px;\n padding: 0 ", ";\n"], ["\n height: 48px;\n padding: 0 ", ";\n"])), function (_a) {
46
59
  var theme = _a.theme;
@@ -2,14 +2,15 @@
2
2
  import { TFunctionResult } from 'i18next';
3
3
  import { PDSValueOption } from '../../../common';
4
4
  declare type Props = {
5
- size?: 'large' | 'small';
6
- hintText?: TFunctionResult;
5
+ colorTheme?: 'none' | 'dark';
7
6
  defaultValue?: PDSValueOption;
8
- valueArray: PDSValueOption[];
7
+ hintText?: TFunctionResult;
8
+ responsiveMode?: 'none' | 'use';
9
9
  selectionMode?: 'single' | 'multi';
10
+ size?: 'large' | 'small';
10
11
  state?: 'normal' | 'read_only' | 'disabled';
11
- colorTheme?: 'none' | 'dark';
12
+ valueArray: PDSValueOption[];
12
13
  onChange?: (option: PDSValueOption) => void;
13
14
  };
14
- declare function Dropdown({ size, hintText, defaultValue, valueArray, selectionMode, state, colorTheme, onChange }: Props): JSX.Element;
15
+ declare function Dropdown({ colorTheme, defaultValue, hintText, responsiveMode, selectionMode, size, state, valueArray, onChange }: Props): JSX.Element;
15
16
  export default Dropdown;
@@ -31,9 +31,9 @@ var ContextMenuItem_1 = require("../ContextMenuItem");
31
31
  var TextLabel_1 = require("../TextLabel");
32
32
  // TODO: selectionMode의 multi 기능 구현 추가 필요
33
33
  function Dropdown(_a) {
34
- var _b = _a.size, size = _b === void 0 ? 'large' : _b, hintText = _a.hintText, defaultValue = _a.defaultValue, valueArray = _a.valueArray, _c = _a.selectionMode, selectionMode = _c === void 0 ? 'single' : _c, _d = _a.state, state = _d === void 0 ? 'normal' : _d, _e = _a.colorTheme, colorTheme = _e === void 0 ? 'none' : _e, onChange = _a.onChange;
35
- var _f = (0, react_1.useState)(false), isFocused = _f[0], setIsFocused = _f[1];
36
- var _g = (0, react_1.useState)(defaultValue), selectedOption = _g[0], setSelectedOption = _g[1];
34
+ var _b = _a.colorTheme, colorTheme = _b === void 0 ? 'none' : _b, defaultValue = _a.defaultValue, hintText = _a.hintText, _c = _a.responsiveMode, responsiveMode = _c === void 0 ? 'none' : _c, _d = _a.selectionMode, selectionMode = _d === void 0 ? 'single' : _d, _e = _a.size, size = _e === void 0 ? 'large' : _e, _f = _a.state, state = _f === void 0 ? 'normal' : _f, valueArray = _a.valueArray, onChange = _a.onChange;
35
+ var _g = (0, react_1.useState)(false), isFocused = _g[0], setIsFocused = _g[1];
36
+ var _h = (0, react_1.useState)(defaultValue), selectedOption = _h[0], setSelectedOption = _h[1];
37
37
  (0, react_1.useEffect)(function () {
38
38
  if (defaultValue) {
39
39
  setSelectedOption(defaultValue);
@@ -97,8 +97,8 @@ function Dropdown(_a) {
97
97
  return 'ui_cpnt_dropdown_text_darktheme_enabled';
98
98
  }
99
99
  };
100
- return (react_1.default.createElement(S_Dropdown, { className: "container", size: size, tabIndex: 0, onBlur: handleBlur },
101
- react_1.default.createElement(S_Select, { size: size, onClick: handleClick, isFocused: isFocused, state: state, colorTheme: colorTheme },
100
+ return (react_1.default.createElement(S_Dropdown, { className: "container", size: size, tabIndex: 0, onBlur: handleBlur, responsiveMode: responsiveMode },
101
+ react_1.default.createElement(S_Select, { size: size, onClick: handleClick, isFocused: isFocused, state: state, colorTheme: colorTheme, responsiveMode: responsiveMode },
102
102
  react_1.default.createElement(S_TextLabel, null,
103
103
  react_1.default.createElement(TextLabel_1.TextLabel, { text: (selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.text) || hintText, styleTheme: "form2Regular", singleLineMode: "use", colorTheme: getTextColorTheme(), colorOverride: getDarkTextColor() })),
104
104
  react_1.default.createElement(hybrid_1.Icon, { size: 16, fillType: "line", iconName: isFocused ? 'ic_arrow_up' : 'ic_arrow_down', colorKey: getIconColorKey() }),
@@ -113,9 +113,15 @@ var S_TextLabel = styled_components_1.default.div(templateObject_1 || (templateO
113
113
  var theme = _a.theme;
114
114
  return theme.spacing.spacingB;
115
115
  });
116
- var large = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n height: 48px;\n width: 432px;\n"], ["\n height: 48px;\n width: 432px;\n"])));
117
- var small = (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n height: 32px;\n width: 188px;\n"], ["\n height: 32px;\n width: 188px;\n"])));
118
- var S_Dropdown = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n display: inline-block;\n position: relative;\n\n ", "\n"], ["\n display: inline-block;\n position: relative;\n\n ", "\n"])), function (_a) {
116
+ var large = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n height: 48px;\n width: ", ";\n"], ["\n height: 48px;\n width: ", ";\n"])), function (_a) {
117
+ var responsiveMode = _a.responsiveMode;
118
+ return (responsiveMode === 'use' ? '100%' : '432px');
119
+ });
120
+ var small = (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n height: 32px;\n width: ", ";\n"], ["\n height: 32px;\n width: ", ";\n"])), function (_a) {
121
+ var responsiveMode = _a.responsiveMode;
122
+ return (responsiveMode === 'use' ? '100%' : '188px');
123
+ });
124
+ var S_Dropdown = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n display: inline-block;\n position: relative;\n\n ", ";\n"], ["\n display: inline-block;\n position: relative;\n\n ", ";\n"])), function (_a) {
119
125
  var size = _a.size;
120
126
  return size &&
121
127
  {
@@ -123,7 +129,7 @@ var S_Dropdown = styled_components_1.default.div(templateObject_4 || (templateOb
123
129
  small: small
124
130
  }[size];
125
131
  });
126
- var S_Select = styled_components_1.default.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n align-items: center;\n background-color: ", ";\n border: 1px solid\n ", ";\n border-radius: 8px;\n color: ", ";\n display: flex;\n justify-content: space-between;\n\n ", "\n"], ["\n align-items: center;\n background-color: ", ";\n border: 1px solid\n ", ";\n border-radius: 8px;\n color: ", ";\n display: flex;\n justify-content: space-between;\n\n ", "\n"])), function (_a) {
132
+ var S_Select = styled_components_1.default.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n align-items: center;\n background-color: ", ";\n border: 1px solid\n ", ";\n border-radius: 8px;\n color: ", ";\n display: flex;\n justify-content: space-between;\n\n ", ";\n"], ["\n align-items: center;\n background-color: ", ";\n border: 1px solid\n ", ";\n border-radius: 8px;\n color: ", ";\n display: flex;\n justify-content: space-between;\n\n ", ";\n"])), function (_a) {
127
133
  var state = _a.state, colorTheme = _a.colorTheme, theme = _a.theme;
128
134
  switch (state) {
129
135
  case 'disabled':
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { FillIconNameKeys, LineIconNameKeys, UiColors } from '../../../common';
3
3
  export declare type IconButtonProps = {
4
4
  fillType?: 'fill' | 'line';
@@ -14,8 +14,8 @@ export declare type IconButtonProps = {
14
14
  colorTheme?: 'none' | 'line1' | 'line2';
15
15
  type?: 'submit' | 'reset' | 'button';
16
16
  state?: 'normal' | 'disabled';
17
- onClick?: (...args: any) => any;
18
- onMouseDown?: (...args: any) => any;
17
+ onClick?: () => any;
18
+ onMouseDown?: (e: React.MouseEvent<HTMLButtonElement>) => any;
19
19
  };
20
20
  declare function IconButton({ fillType, shapeType, baseSize, baseColorKey, borderColorKey, iconSize, iconFillType, iconName, iconColorKey, shadow, colorTheme, type, state, onClick, onMouseDown }: IconButtonProps): JSX.Element;
21
21
  export default IconButton;
@@ -37,9 +37,9 @@ function IconButton(_a) {
37
37
  onClick();
38
38
  }
39
39
  };
40
- var handleMouseDown = function () {
40
+ var handleMouseDown = function (e) {
41
41
  if (onMouseDown) {
42
- onMouseDown();
42
+ onMouseDown(e);
43
43
  }
44
44
  };
45
45
  var iconStateColorObj = {
@@ -259,7 +259,7 @@ var ellipsisStyle = (0, styled_components_1.css)(templateObject_30 || (templateO
259
259
  return lineLimit;
260
260
  });
261
261
  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 ", ";\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\n ", ";\n"])), function (_a) {
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\n ", ";\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\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n"])), function (_a) {
263
263
  var textAlign = _a.textAlign;
264
264
  return textAlign;
265
265
  }, function (_a) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pds-dev-kit-web",
3
- "version": "1.3.13",
3
+ "version": "1.3.16",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "main": "dist/index.js",
package/release-note.md CHANGED
@@ -1,12 +1,22 @@
1
1
  # PDS-DEV-KIT-WEB Release Notes
2
- ## [v1.3.13]
2
+ ## [v1.3.16]
3
3
 
4
- ### Layout
5
- * WS
6
- * LayoutWS의 우측부분이 너비를 제대로 잡을 수 있도록 수정 (width: 100%; -> flex: 1; overflow: hidden;)
7
4
  ### Component
8
- * D_AdminListItem
9
- * 컬럼에 overflow: auto; 추가 (내용의 길이가 길어지면 타 칼럼을 침범하는 경우가 있음)
10
- * rowSize가 high일때 깨지는 부분 해결
11
- * D_ TextLabel
12
- * tooltipText 사용시 뜨는 아이콘의 fillType과 color 수정
5
+ * BlogTextField
6
+ * validation관련 내부 로직 변경
7
+ * useFormContext의 onChange와 커스텀 onChange를 엮음
8
+ * ContextMenuItem
9
+ * 내부 텍스트 컬러 변경
10
+ * 기본 : sysTextSecondary
11
+ * 선택 됨 : sysTextPrimary
12
+ * 비활성화 됨 : sysTextTertiary
13
+ * Dropdown
14
+ * responsiveMode prop 추가
15
+ * ImageView
16
+ * 스타일 관련 내부 로직 변경
17
+ * radius -> $radius
18
+ * TextLabel
19
+ * 기본 스펙에서 hyphen제거
20
+
21
+ ### Color
22
+ * 컬러 키 값 22.05.19 12시 10분 기준 싱크