pds-dev-kit-web 2.2.31 → 2.2.32

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.
@@ -6,12 +6,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  /* eslint-disable import/order */
7
7
  var SemanticColor_json_1 = __importDefault(require("./SemanticColor.json"));
8
8
  var PaletteColor_Dark_json_1 = __importDefault(require("./PaletteColor_Dark.json"));
9
- var PaletteColor_light_json_1 = __importDefault(require("./PaletteColor_light.json"));
10
9
  var UIColor_json_1 = __importDefault(require("./UIColor.json"));
10
+ var PaletteColor_light_json_1 = __importDefault(require("./PaletteColor_light.json"));
11
11
  var colorSet = {
12
12
  SemanticColor: SemanticColor_json_1.default,
13
13
  PaletteColor_Dark: PaletteColor_Dark_json_1.default,
14
- PaletteColor_light: PaletteColor_light_json_1.default,
15
- UIColor: UIColor_json_1.default
14
+ UIColor: UIColor_json_1.default,
15
+ PaletteColor_light: PaletteColor_light_json_1.default
16
16
  };
17
17
  exports.default = colorSet;
@@ -840,4 +840,5 @@ export interface UITheme {
840
840
  ui_108: string;
841
841
  ui_110: string;
842
842
  ui_contentscontainer03_background: string;
843
+ ui_contents_dimmed: string;
843
844
  }
@@ -21,6 +21,11 @@ export type ContextMenuItemValueOption = {
21
21
  export type DropdownValueOption = ContextMenuItemValueOption & {
22
22
  state?: 'normal' | 'disabled';
23
23
  };
24
+ export type DropdownGroupInfo = {
25
+ key: string;
26
+ values: DropdownValueOption['value'][];
27
+ title?: PDSTextType;
28
+ };
24
29
  export type AdminListDropdownValueOption = {
25
30
  text: DropdownValueOption['text'];
26
31
  value: DropdownValueOption['value'];
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import type { PDSTextType } from '../../../common';
3
- import type { DropdownValueOption } from '../../../common/types';
3
+ import type { DropdownGroupInfo, DropdownValueOption } from '../../../common/types';
4
4
  type Props = {
5
5
  colorTheme?: 'none' | 'dark' | 'white';
6
6
  hintText?: PDSTextType;
@@ -14,7 +14,8 @@ type Props = {
14
14
  customWidth?: string;
15
15
  displayType?: 'text_only' | 'icon_only' | 'icon_text';
16
16
  fontWeight?: 'bold' | 'regular';
17
+ groupInfoArray?: DropdownGroupInfo[];
17
18
  onChange?: (option: DropdownValueOption) => void;
18
19
  };
19
- declare function Dropdown({ colorTheme, value, defaultValue, hintText, maxHeightItemNumber, responsiveMode, size, state, valueArray, customWidth, displayType, fontWeight, onChange }: Props): JSX.Element;
20
+ declare function Dropdown({ colorTheme, value, defaultValue, hintText, maxHeightItemNumber, responsiveMode, size, state, valueArray, customWidth, displayType, fontWeight, groupInfoArray, onChange }: Props): JSX.Element;
20
21
  export default Dropdown;
@@ -57,7 +57,7 @@ function Dropdown(_a) {
57
57
  // selectionMode = 'single',
58
58
  _e = _a.size,
59
59
  // selectionMode = 'single',
60
- size = _e === void 0 ? 'large' : _e, _f = _a.state, state = _f === void 0 ? 'normal' : _f, valueArray = _a.valueArray, customWidth = _a.customWidth, _g = _a.displayType, displayType = _g === void 0 ? 'text_only' : _g, _h = _a.fontWeight, fontWeight = _h === void 0 ? 'regular' : _h, onChange = _a.onChange;
60
+ size = _e === void 0 ? 'large' : _e, _f = _a.state, state = _f === void 0 ? 'normal' : _f, valueArray = _a.valueArray, customWidth = _a.customWidth, _g = _a.displayType, displayType = _g === void 0 ? 'text_only' : _g, _h = _a.fontWeight, fontWeight = _h === void 0 ? 'regular' : _h, groupInfoArray = _a.groupInfoArray, onChange = _a.onChange;
61
61
  var _j = (0, react_1.useState)(false), isFocused = _j[0], setIsFocused = _j[1];
62
62
  var _k = (0, react_1.useState)(null), selectedValue = _k[0], setSelectedValue = _k[1];
63
63
  var _l = (0, react_1.useState)(null), contextMenuSizeOffset = _l[0], setContextMenuSizeOffset = _l[1];
@@ -238,10 +238,112 @@ function Dropdown(_a) {
238
238
  var LARGE_HEIGHT = 48;
239
239
  return LARGE_HEIGHT * maxHeightItemNumber;
240
240
  }, [size, maxHeightItemNumber]);
241
+ var resultByGroup = {};
242
+ if (groupInfoArray) {
243
+ groupInfoArray.forEach(function (groupInfo) {
244
+ var _a;
245
+ var currentGroupResult = [];
246
+ (_a = groupInfo.values) === null || _a === void 0 ? void 0 : _a.forEach(function (value) {
247
+ var matchingObject = valueArray.find(function (item) { return item.value === value; });
248
+ if (matchingObject) {
249
+ currentGroupResult.push(matchingObject);
250
+ }
251
+ });
252
+ resultByGroup[groupInfo.key] = currentGroupResult;
253
+ });
254
+ }
241
255
  return ((0, jsx_runtime_1.jsxs)(S_Dropdown, __assign({ "x-pds-name": "Dropdown", "x-pds-element-type": "component", "x-pds-device-type": "desktop", className: "container", ref: dropdownRef, size: size, tabIndex: 0, onBlur: handleBlur, responsiveMode: responsiveMode, customWidth: customWidth, displayType: displayType }, { children: [(0, jsx_runtime_1.jsxs)(S_Select, __assign({ size: size, onClick: handleClick, isFocused: isFocused, state: state, colorTheme: colorTheme, responsiveMode: responsiveMode, customWidth: customWidth, displayType: displayType }, { children: [(0, jsx_runtime_1.jsxs)(S_TextLabel, __assign({ size: size, responsiveMode: responsiveMode, displayType: displayType }, { children: [(displayType === 'icon_only' || displayType === 'icon_text') && (selectedValue === null || selectedValue === void 0 ? void 0 : selectedValue.iconName) && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(hybrid_1.Icon, { size: size === 'small' ? 20 : 24, iconName: selectedValue.iconName, fillType: selectedValue.iconFillType, colorKey: getIconColorKey() }), displayType === 'icon_text' && (0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_b", spacingType: "width" })] })), (displayType === 'text_only' || displayType === 'icon_text') && ((0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: (selectedValue === null || selectedValue === void 0 ? void 0 : selectedValue.text) || (value === null || value === void 0 ? void 0 : value.text) || (defaultValue === null || defaultValue === void 0 ? void 0 : defaultValue.text) || hintText, styleTheme: fontWeight === 'bold' ? 'form2Bold' : 'form2Regular', singleLineMode: "use", colorTheme: getTextColorTheme(), colorOverride: getTextColorOverride(), ellipsisMode: "use", lineLimit: 1, wordBreak: "break_all" }))] })), (0, jsx_runtime_1.jsx)(hybrid_1.Icon, { size: 16, fillType: "line", iconName: isFocused ? 'ic_arrow_up' : 'ic_arrow_down', colorKey: getArrowIconColorKey() })] })), isFocused &&
242
- (0, react_dom_1.createPortal)((0, jsx_runtime_1.jsx)(S_ContextMenuWrapper, __assign({ ref: contextMenuRef, contextMenuPositionCss: contextMenuPositionCss }, { children: (0, jsx_runtime_1.jsx)(ContextMenu_1.ContextMenu, __assign({ autoWidthMode: "use", maxHeight: maxHeight, customWidth: getCustomWidth() }, { children: valueArray.map(function (el) { return ((0, jsx_runtime_1.jsx)("div", __assign({ onMouseDown: function () { return handleClickOption(el); } }, { children: (0, jsx_runtime_1.jsx)(ContextMenuItem_1.ContextMenuItem, { option: el, size: size, isSelected: (selectedValue === null || selectedValue === void 0 ? void 0 : selectedValue.value) === el.value, state: el.state, displayType: displayType }) }), el.value)); }) })) })), document.body)] })));
256
+ (0, react_dom_1.createPortal)((0, jsx_runtime_1.jsx)(S_ContextMenuWrapper, __assign({ ref: contextMenuRef, contextMenuPositionCss: contextMenuPositionCss }, { children: (0, jsx_runtime_1.jsx)(ContextMenu_1.ContextMenu, __assign({ autoWidthMode: "use", maxHeight: maxHeight, customWidth: getCustomWidth() }, { children: groupInfoArray
257
+ ? Object.keys(resultByGroup).map(function (key) {
258
+ var _a, _b, _c;
259
+ return ((0, jsx_runtime_1.jsxs)(S_Group, __assign({ size: size, hasGroupTitle: Boolean((_a = groupInfoArray.find(function (groupInfo) { return groupInfo.key === key; })) === null || _a === void 0 ? void 0 : _a.title) }, { children: [((_b = groupInfoArray.find(function (groupInfo) { return groupInfo.key === key; })) === null || _b === void 0 ? void 0 : _b.title) && ((0, jsx_runtime_1.jsx)(S_Wrapper, __assign({ size: size }, { children: (0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: (_c = groupInfoArray.find(function (groupInfo) { return groupInfo.key === key; })) === null || _c === void 0 ? void 0 : _c.title, colorTheme: "sysTextSecondary", styleTheme: "caption1Bold", letterSpacing: "0.15em" }) }))), resultByGroup[key].map(function (el) { return ((0, jsx_runtime_1.jsx)("div", __assign({ onMouseDown: function () { return handleClickOption(el); } }, { children: (0, jsx_runtime_1.jsx)(ContextMenuItem_1.ContextMenuItem, { option: el, size: size, isSelected: (selectedValue === null || selectedValue === void 0 ? void 0 : selectedValue.value) === el.value, state: el.state, displayType: displayType }) }), el.value)); })] }), key));
260
+ })
261
+ : valueArray.map(function (el) { return ((0, jsx_runtime_1.jsx)("div", __assign({ onMouseDown: function () { return handleClickOption(el); } }, { children: (0, jsx_runtime_1.jsx)(ContextMenuItem_1.ContextMenuItem, { option: el, size: size, isSelected: (selectedValue === null || selectedValue === void 0 ? void 0 : selectedValue.value) === el.value, state: el.state, displayType: displayType }) }), el.value)); }) })) })), document.body)] })));
243
262
  }
244
- var S_TextLabel = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n padding-right: ", ";\n\n ", ";\n"], ["\n align-items: center;\n display: flex;\n padding-right: ", ";\n\n ", ";\n"])), function (_a) {
263
+ var largeGroupTitle = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n padding-left: ", ";\n padding-right: ", ";\n"], ["\n padding-left: ", ";\n padding-right: ", ";\n"])), function (_a) {
264
+ var theme = _a.theme;
265
+ return theme.spacing.spacingE;
266
+ }, function (_a) {
267
+ var theme = _a.theme;
268
+ return theme.spacing.spacingE;
269
+ });
270
+ var mediumGroupTitle = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n padding-left: ", ";\n padding-right: ", ";\n"], ["\n padding-left: ", ";\n padding-right: ", ";\n"])), function (_a) {
271
+ var theme = _a.theme;
272
+ return theme.spacing.spacingD;
273
+ }, function (_a) {
274
+ var theme = _a.theme;
275
+ return theme.spacing.spacingD;
276
+ });
277
+ var smallGroupTitle = (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n padding-left: ", ";\n padding-right: ", ";\n"], ["\n padding-left: ", ";\n padding-right: ", ";\n"])), function (_a) {
278
+ var theme = _a.theme;
279
+ return theme.spacing.spacingD;
280
+ }, function (_a) {
281
+ var theme = _a.theme;
282
+ return theme.spacing.spacingD;
283
+ });
284
+ var largeGroupDivider = (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n left: ", ";\n right: ", ";\n"], ["\n left: ", ";\n right: ", ";\n"])), function (_a) {
285
+ var theme = _a.theme;
286
+ return theme.spacing.spacingE;
287
+ }, function (_a) {
288
+ var theme = _a.theme;
289
+ return theme.spacing.spacingE;
290
+ });
291
+ var mediumGroupDivider = (0, styled_components_1.css)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n left: ", ";\n right: ", ";\n"], ["\n left: ", ";\n right: ", ";\n"])), function (_a) {
292
+ var theme = _a.theme;
293
+ return theme.spacing.spacingD;
294
+ }, function (_a) {
295
+ var theme = _a.theme;
296
+ return theme.spacing.spacingD;
297
+ });
298
+ var smallGroupDivider = (0, styled_components_1.css)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n left: ", ";\n right: ", ";\n"], ["\n left: ", ";\n right: ", ";\n"])), function (_a) {
299
+ var theme = _a.theme;
300
+ return theme.spacing.spacingD;
301
+ }, function (_a) {
302
+ var theme = _a.theme;
303
+ return theme.spacing.spacingD;
304
+ });
305
+ var S_Group = styled_components_1.default.div(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n position: relative;\n\n &:not(:last-child) {\n padding-bottom: ", ";\n }\n\n &:not(:first-child) {\n padding-top: ", ";\n ", ";\n\n &:after {\n background-color: ", ";\n content: '';\n height: 1px;\n position: absolute;\n top: 0;\n\n ", ";\n }\n }\n"], ["\n position: relative;\n\n &:not(:last-child) {\n padding-bottom: ", ";\n }\n\n &:not(:first-child) {\n padding-top: ", ";\n ", ";\n\n &:after {\n background-color: ", ";\n content: '';\n height: 1px;\n position: absolute;\n top: 0;\n\n ", ";\n }\n }\n"])), function (_a) {
306
+ var theme = _a.theme;
307
+ return theme.spacing.spacingB;
308
+ }, function (_a) {
309
+ var theme = _a.theme;
310
+ return theme.spacing.spacingA;
311
+ }, function (_a) {
312
+ var theme = _a.theme, hasGroupTitle = _a.hasGroupTitle;
313
+ return hasGroupTitle
314
+ ? "padding-top: ".concat(theme.spacing.spacingA)
315
+ : "padding-top: ".concat(theme.spacing.spacingB);
316
+ }, function (_a) {
317
+ var theme = _a.theme;
318
+ return theme.ui_cpnt_divider;
319
+ }, function (_a) {
320
+ var size = _a.size;
321
+ return size &&
322
+ {
323
+ large: largeGroupDivider,
324
+ medium: mediumGroupDivider,
325
+ small: smallGroupDivider
326
+ }[size];
327
+ });
328
+ var S_Wrapper = styled_components_1.default.div(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n padding-bottom: ", ";\n\n ", ":first-child & {\n padding-top: ", ";\n }\n\n ", ":not(:first-child) > & {\n padding-top: ", ";\n }\n\n ", ";\n"], ["\n padding-bottom: ", ";\n\n ", ":first-child & {\n padding-top: ", ";\n }\n\n ", ":not(:first-child) > & {\n padding-top: ", ";\n }\n\n ", ";\n"])), function (_a) {
329
+ var theme = _a.theme;
330
+ return theme.spacing.spacingC;
331
+ }, S_Group, function (_a) {
332
+ var theme = _a.theme;
333
+ return theme.spacing.spacingA;
334
+ }, S_Group, function (_a) {
335
+ var theme = _a.theme;
336
+ return theme.spacing.spacingC;
337
+ }, function (_a) {
338
+ var size = _a.size;
339
+ return size &&
340
+ {
341
+ large: largeGroupTitle,
342
+ medium: mediumGroupTitle,
343
+ small: smallGroupTitle
344
+ }[size];
345
+ });
346
+ var S_TextLabel = styled_components_1.default.div(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n padding-right: ", ";\n\n ", ";\n"], ["\n align-items: center;\n display: flex;\n padding-right: ", ";\n\n ", ";\n"])), function (_a) {
245
347
  var theme = _a.theme;
246
348
  return theme.spacing.spacingB;
247
349
  }, function (_a) {
@@ -253,7 +355,7 @@ var S_TextLabel = styled_components_1.default.div(templateObject_1 || (templateO
253
355
  small: small
254
356
  }[size];
255
357
  });
256
- var large = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n height: 48px;\n width: ", ";\n\n & > div {\n height: 48px;\n line-height: 48px;\n }\n"], ["\n height: 48px;\n width: ", ";\n\n & > div {\n height: 48px;\n line-height: 48px;\n }\n"])), function (_a) {
358
+ var large = (0, styled_components_1.css)(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n height: 48px;\n width: ", ";\n\n & > div {\n height: 48px;\n line-height: 48px;\n }\n"], ["\n height: 48px;\n width: ", ";\n\n & > div {\n height: 48px;\n line-height: 48px;\n }\n"])), function (_a) {
257
359
  var displayType = _a.displayType, responsiveMode = _a.responsiveMode;
258
360
  if (responsiveMode === 'use') {
259
361
  return '100%';
@@ -263,7 +365,7 @@ var large = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 =
263
365
  }
264
366
  return '432px';
265
367
  });
266
- var medium = (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n border-radius: 12px;\n height: 40px;\n width: ", ";\n\n & > div {\n height: 40px;\n line-height: 40px;\n }\n"], ["\n border-radius: 12px;\n height: 40px;\n width: ", ";\n\n & > div {\n height: 40px;\n line-height: 40px;\n }\n"])), function (_a) {
368
+ var medium = (0, styled_components_1.css)(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n border-radius: 12px;\n height: 40px;\n width: ", ";\n\n & > div {\n height: 40px;\n line-height: 40px;\n }\n"], ["\n border-radius: 12px;\n height: 40px;\n width: ", ";\n\n & > div {\n height: 40px;\n line-height: 40px;\n }\n"])), function (_a) {
267
369
  var displayType = _a.displayType, responsiveMode = _a.responsiveMode;
268
370
  if (responsiveMode === 'use') {
269
371
  return '100%';
@@ -273,7 +375,7 @@ var medium = (0, styled_components_1.css)(templateObject_3 || (templateObject_3
273
375
  }
274
376
  return '188px';
275
377
  });
276
- var small = (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n border-radius: 10px;\n height: 32px;\n width: ", ";\n\n & > div {\n height: 32px;\n line-height: 32px;\n }\n"], ["\n border-radius: 10px;\n height: 32px;\n width: ", ";\n\n & > div {\n height: 32px;\n line-height: 32px;\n }\n"])), function (_a) {
378
+ var small = (0, styled_components_1.css)(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n border-radius: 10px;\n height: 32px;\n width: ", ";\n\n & > div {\n height: 32px;\n line-height: 32px;\n }\n"], ["\n border-radius: 10px;\n height: 32px;\n width: ", ";\n\n & > div {\n height: 32px;\n line-height: 32px;\n }\n"])), function (_a) {
277
379
  var displayType = _a.displayType, responsiveMode = _a.responsiveMode;
278
380
  if (responsiveMode === 'use') {
279
381
  return '100%';
@@ -283,7 +385,7 @@ var small = (0, styled_components_1.css)(templateObject_4 || (templateObject_4 =
283
385
  }
284
386
  return '188px';
285
387
  });
286
- var S_Dropdown = styled_components_1.default.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n display: inline-block;\n outline: none;\n position: relative;\n\n ", ";\n\n ", "\n"], ["\n display: inline-block;\n outline: none;\n position: relative;\n\n ", ";\n\n ", "\n"])), function (_a) {
388
+ var S_Dropdown = styled_components_1.default.div(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n display: inline-block;\n outline: none;\n position: relative;\n\n ", ";\n\n ", "\n"], ["\n display: inline-block;\n outline: none;\n position: relative;\n\n ", ";\n\n ", "\n"])), function (_a) {
287
389
  var size = _a.size;
288
390
  return size &&
289
391
  {
@@ -295,7 +397,7 @@ var S_Dropdown = styled_components_1.default.div(templateObject_5 || (templateOb
295
397
  var customWidth = _a.customWidth;
296
398
  return customWidth && "width: ".concat(customWidth, ";");
297
399
  });
298
- var colorThemeBackgroundReadOnly = (0, styled_components_1.css)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n ", ";\n"], ["\n ", ";\n"])), function (_a) {
400
+ var colorThemeBackgroundReadOnly = (0, styled_components_1.css)(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n ", ";\n"], ["\n ", ";\n"])), function (_a) {
299
401
  var colorTheme = _a.colorTheme, theme = _a.theme;
300
402
  switch (colorTheme) {
301
403
  case 'dark':
@@ -306,7 +408,7 @@ var colorThemeBackgroundReadOnly = (0, styled_components_1.css)(templateObject_6
306
408
  return theme.ui_cpnt_dropdown_base_disabled;
307
409
  }
308
410
  });
309
- var colorThemeBackgroundDisabled = (0, styled_components_1.css)(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n ", ";\n"], ["\n ", ";\n"])), function (_a) {
411
+ var colorThemeBackgroundDisabled = (0, styled_components_1.css)(templateObject_15 || (templateObject_15 = __makeTemplateObject(["\n ", ";\n"], ["\n ", ";\n"])), function (_a) {
310
412
  var colorTheme = _a.colorTheme, theme = _a.theme;
311
413
  switch (colorTheme) {
312
414
  case 'dark':
@@ -317,7 +419,7 @@ var colorThemeBackgroundDisabled = (0, styled_components_1.css)(templateObject_7
317
419
  return theme.ui_cpnt_dropdown_base_disabled;
318
420
  }
319
421
  });
320
- var colorThemeBackgroundNormal = (0, styled_components_1.css)(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n ", ";\n"], ["\n ", ";\n"])), function (_a) {
422
+ var colorThemeBackgroundNormal = (0, styled_components_1.css)(templateObject_16 || (templateObject_16 = __makeTemplateObject(["\n ", ";\n"], ["\n ", ";\n"])), function (_a) {
321
423
  var colorTheme = _a.colorTheme, theme = _a.theme;
322
424
  switch (colorTheme) {
323
425
  case 'dark':
@@ -328,7 +430,7 @@ var colorThemeBackgroundNormal = (0, styled_components_1.css)(templateObject_8 |
328
430
  return theme.ui_cpnt_dropdown_base_normal;
329
431
  }
330
432
  });
331
- var colorThemeBorderWhite = (0, styled_components_1.css)(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n ", ";\n"], ["\n ", ";\n"])), function (_a) {
433
+ var colorThemeBorderWhite = (0, styled_components_1.css)(templateObject_17 || (templateObject_17 = __makeTemplateObject(["\n ", ";\n"], ["\n ", ";\n"])), function (_a) {
332
434
  var state = _a.state, theme = _a.theme;
333
435
  switch (state) {
334
436
  case 'disabled':
@@ -338,7 +440,7 @@ var colorThemeBorderWhite = (0, styled_components_1.css)(templateObject_9 || (te
338
440
  return theme.ui_cpnt_dropdown_border_white_normal;
339
441
  }
340
442
  });
341
- var colorThemeBorderDark = (0, styled_components_1.css)(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n ", ";\n"], ["\n ", ";\n"])), function (_a) {
443
+ var colorThemeBorderDark = (0, styled_components_1.css)(templateObject_18 || (templateObject_18 = __makeTemplateObject(["\n ", ";\n"], ["\n ", ";\n"])), function (_a) {
342
444
  var state = _a.state, theme = _a.theme;
343
445
  switch (state) {
344
446
  case 'disabled':
@@ -348,7 +450,7 @@ var colorThemeBorderDark = (0, styled_components_1.css)(templateObject_10 || (te
348
450
  return theme.ui_cpnt_dropdown_border_darktheme_normal;
349
451
  }
350
452
  });
351
- var borderColor = (0, styled_components_1.css)(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n ", ";\n"], ["\n ", ";\n"])), function (_a) {
453
+ var borderColor = (0, styled_components_1.css)(templateObject_19 || (templateObject_19 = __makeTemplateObject(["\n ", ";\n"], ["\n ", ";\n"])), function (_a) {
352
454
  var state = _a.state, theme = _a.theme;
353
455
  switch (state) {
354
456
  case 'disabled':
@@ -359,7 +461,7 @@ var borderColor = (0, styled_components_1.css)(templateObject_11 || (templateObj
359
461
  return theme.ui_cpnt_dropdown_border_normal;
360
462
  }
361
463
  });
362
- var backgroundHoverColor = (0, styled_components_1.css)(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n ", ";\n"], ["\n ", ";\n"])), function (_a) {
464
+ var backgroundHoverColor = (0, styled_components_1.css)(templateObject_20 || (templateObject_20 = __makeTemplateObject(["\n ", ";\n"], ["\n ", ";\n"])), function (_a) {
363
465
  var colorTheme = _a.colorTheme, theme = _a.theme;
364
466
  switch (colorTheme) {
365
467
  case 'none':
@@ -372,7 +474,7 @@ var backgroundHoverColor = (0, styled_components_1.css)(templateObject_12 || (te
372
474
  return theme.ui_cpnt_textfield_base_hover;
373
475
  }
374
476
  });
375
- var backgroundActiveColor = (0, styled_components_1.css)(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n ", ";\n"], ["\n ", ";\n"])), function (_a) {
477
+ var backgroundActiveColor = (0, styled_components_1.css)(templateObject_21 || (templateObject_21 = __makeTemplateObject(["\n ", ";\n"], ["\n ", ";\n"])), function (_a) {
376
478
  var colorTheme = _a.colorTheme, theme = _a.theme;
377
479
  switch (colorTheme) {
378
480
  case 'none':
@@ -385,8 +487,8 @@ var backgroundActiveColor = (0, styled_components_1.css)(templateObject_13 || (t
385
487
  return theme.ui_cpnt_textfield_base_pressed;
386
488
  }
387
489
  });
388
- var normalActionColor = (0, styled_components_1.css)(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n &:hover {\n background-color: ", ";\n }\n\n &:active {\n background-color: ", ";\n }\n"], ["\n &:hover {\n background-color: ", ";\n }\n\n &:active {\n background-color: ", ";\n }\n"])), backgroundHoverColor, backgroundActiveColor);
389
- var S_Select = styled_components_1.default.div(templateObject_15 || (templateObject_15 = __makeTemplateObject(["\n align-items: center;\n background-color: ", ";\n border: 2px solid\n ", ";\n border-radius: 14px;\n box-sizing: border-box;\n cursor: ", ";\n display: flex;\n justify-content: space-between;\n padding-left: ", ";\n padding-right: ", ";\n\n ", ";\n\n ", "\n\n ", "\n\n ", "\n"], ["\n align-items: center;\n background-color: ", ";\n border: 2px solid\n ", ";\n border-radius: 14px;\n box-sizing: border-box;\n cursor: ", ";\n display: flex;\n justify-content: space-between;\n padding-left: ", ";\n padding-right: ", ";\n\n ", ";\n\n ", "\n\n ", "\n\n ", "\n"])), function (_a) {
490
+ var normalActionColor = (0, styled_components_1.css)(templateObject_22 || (templateObject_22 = __makeTemplateObject(["\n &:hover {\n background-color: ", ";\n }\n\n &:active {\n background-color: ", ";\n }\n"], ["\n &:hover {\n background-color: ", ";\n }\n\n &:active {\n background-color: ", ";\n }\n"])), backgroundHoverColor, backgroundActiveColor);
491
+ var S_Select = styled_components_1.default.div(templateObject_23 || (templateObject_23 = __makeTemplateObject(["\n align-items: center;\n background-color: ", ";\n border: 2px solid\n ", ";\n border-radius: 14px;\n box-sizing: border-box;\n cursor: ", ";\n display: flex;\n justify-content: space-between;\n padding-left: ", ";\n padding-right: ", ";\n\n ", ";\n\n ", "\n\n ", "\n\n ", "\n"], ["\n align-items: center;\n background-color: ", ";\n border: 2px solid\n ", ";\n border-radius: 14px;\n box-sizing: border-box;\n cursor: ", ";\n display: flex;\n justify-content: space-between;\n padding-left: ", ";\n padding-right: ", ";\n\n ", ";\n\n ", "\n\n ", "\n\n ", "\n"])), function (_a) {
390
492
  var state = _a.state;
391
493
  switch (state) {
392
494
  case 'disabled':
@@ -437,9 +539,9 @@ var S_Select = styled_components_1.default.div(templateObject_15 || (templateObj
437
539
  var state = _a.state;
438
540
  return state === 'normal' && normalActionColor;
439
541
  });
440
- var S_ContextMenuWrapper = styled_components_1.default.div(templateObject_16 || (templateObject_16 = __makeTemplateObject(["\n display: block;\n position: absolute;\n\n ", ";\n"], ["\n display: block;\n position: absolute;\n\n ", ";\n"])), function (_a) {
542
+ var S_ContextMenuWrapper = styled_components_1.default.div(templateObject_24 || (templateObject_24 = __makeTemplateObject(["\n display: block;\n position: absolute;\n\n ", ";\n"], ["\n display: block;\n position: absolute;\n\n ", ";\n"])), function (_a) {
441
543
  var contextMenuPositionCss = _a.contextMenuPositionCss;
442
544
  return contextMenuPositionCss;
443
545
  });
444
546
  exports.default = Dropdown;
445
- 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;
547
+ 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;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import type { PDSTextType } from '../../../common';
3
- import type { DropdownValueOption } from '../../../common/types';
3
+ import type { DropdownGroupInfo, DropdownValueOption } from '../../../common/types';
4
4
  type Props = {
5
5
  colorTheme?: 'none' | 'dark' | 'white';
6
6
  defaultValue?: DropdownValueOption;
@@ -14,7 +14,8 @@ type Props = {
14
14
  customWidth?: string;
15
15
  displayType?: 'text_only' | 'icon_only' | 'icon_text';
16
16
  fontWeight?: 'bold' | 'regular';
17
+ groupInfoArray?: DropdownGroupInfo[];
17
18
  onChange?: (option: DropdownValueOption) => void;
18
19
  };
19
- declare function Dropdown({ colorTheme, value, defaultValue, hintText, maxHeightItemNumber, responsiveMode, size, state, valueArray, customWidth, displayType, fontWeight, onChange }: Props): JSX.Element;
20
+ declare function Dropdown({ colorTheme, value, defaultValue, hintText, maxHeightItemNumber, responsiveMode, size, state, valueArray, customWidth, displayType, fontWeight, groupInfoArray, onChange }: Props): JSX.Element;
20
21
  export default Dropdown;
@@ -57,7 +57,7 @@ function Dropdown(_a) {
57
57
  // selectionMode = 'single',
58
58
  _e = _a.size,
59
59
  // selectionMode = 'single',
60
- size = _e === void 0 ? 'large' : _e, _f = _a.state, state = _f === void 0 ? 'normal' : _f, valueArray = _a.valueArray, customWidth = _a.customWidth, _g = _a.displayType, displayType = _g === void 0 ? 'text_only' : _g, _h = _a.fontWeight, fontWeight = _h === void 0 ? 'regular' : _h, onChange = _a.onChange;
60
+ size = _e === void 0 ? 'large' : _e, _f = _a.state, state = _f === void 0 ? 'normal' : _f, valueArray = _a.valueArray, customWidth = _a.customWidth, _g = _a.displayType, displayType = _g === void 0 ? 'text_only' : _g, _h = _a.fontWeight, fontWeight = _h === void 0 ? 'regular' : _h, groupInfoArray = _a.groupInfoArray, onChange = _a.onChange;
61
61
  var _j = (0, react_1.useState)(false), isFocused = _j[0], setIsFocused = _j[1];
62
62
  var _k = (0, react_1.useState)(null), selectedValue = _k[0], setSelectedValue = _k[1];
63
63
  var _l = (0, react_1.useState)(null), contextMenuSizeOffset = _l[0], setContextMenuSizeOffset = _l[1];
@@ -238,10 +238,112 @@ function Dropdown(_a) {
238
238
  var LARGE_HEIGHT = 48;
239
239
  return LARGE_HEIGHT * maxHeightItemNumber;
240
240
  }, [size, maxHeightItemNumber]);
241
+ var resultByGroup = {};
242
+ if (groupInfoArray) {
243
+ groupInfoArray.forEach(function (groupInfo) {
244
+ var _a;
245
+ var currentGroupResult = [];
246
+ (_a = groupInfo.values) === null || _a === void 0 ? void 0 : _a.forEach(function (value) {
247
+ var matchingObject = valueArray.find(function (item) { return item.value === value; });
248
+ if (matchingObject) {
249
+ currentGroupResult.push(matchingObject);
250
+ }
251
+ });
252
+ resultByGroup[groupInfo.key] = currentGroupResult;
253
+ });
254
+ }
241
255
  return ((0, jsx_runtime_1.jsxs)(S_Dropdown, __assign({ "x-pds-name": "Dropdown", "x-pds-element-type": "component", "x-pds-device-type": "mobile", className: "container", ref: dropdownRef, size: size, tabIndex: 0, onBlur: handleBlur, responsiveMode: responsiveMode, customWidth: customWidth, displayType: displayType }, { children: [(0, jsx_runtime_1.jsxs)(S_Select, __assign({ size: size, onClick: handleClick, isFocused: isFocused, state: state, colorTheme: colorTheme, responsiveMode: responsiveMode, customWidth: customWidth, displayType: displayType }, { children: [(0, jsx_runtime_1.jsxs)(S_TextLabel, __assign({ size: size, responsiveMode: responsiveMode, displayType: displayType }, { children: [(displayType === 'icon_only' || displayType === 'icon_text') && (selectedValue === null || selectedValue === void 0 ? void 0 : selectedValue.iconName) && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(hybrid_1.Icon, { size: size === 'small' ? 20 : 24, iconName: selectedValue.iconName, fillType: selectedValue.iconFillType, colorKey: getIconColorKey() }), displayType === 'icon_text' && (0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_b", spacingType: "width" })] })), (displayType === 'text_only' || displayType === 'icon_text') && ((0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: (selectedValue === null || selectedValue === void 0 ? void 0 : selectedValue.text) || (value === null || value === void 0 ? void 0 : value.text) || (defaultValue === null || defaultValue === void 0 ? void 0 : defaultValue.text) || hintText, styleTheme: fontWeight === 'bold' ? 'form2Bold' : 'form2Regular', singleLineMode: "use", colorTheme: getTextColorTheme(), colorOverride: getTextColorOverride(), ellipsisMode: "use", lineLimit: 1, wordBreak: "break_all" }))] })), (0, jsx_runtime_1.jsx)(hybrid_1.Icon, { size: 16, fillType: "line", iconName: isFocused ? 'ic_arrow_up' : 'ic_arrow_down', colorKey: getArrowIconColorKey() })] })), isFocused &&
242
- (0, react_dom_1.createPortal)((0, jsx_runtime_1.jsx)(S_ContextMenuWrapper, __assign({ ref: contextMenuRef, contextMenuPositionCss: contextMenuPositionCss }, { children: (0, jsx_runtime_1.jsx)(ContextMenu_1.ContextMenu, __assign({ autoWidthMode: "use", maxHeight: maxHeight, customWidth: getCustomWidth() }, { children: valueArray.map(function (el) { return ((0, jsx_runtime_1.jsx)("div", __assign({ onMouseDown: function () { return handleClickOption(el); } }, { children: (0, jsx_runtime_1.jsx)(ContextMenuItem_1.ContextMenuItem, { option: el, size: size, isSelected: (selectedValue === null || selectedValue === void 0 ? void 0 : selectedValue.value) === el.value, state: el.state, displayType: displayType }) }), el.value)); }) })) })), document.body)] })));
256
+ (0, react_dom_1.createPortal)((0, jsx_runtime_1.jsx)(S_ContextMenuWrapper, __assign({ ref: contextMenuRef, contextMenuPositionCss: contextMenuPositionCss }, { children: (0, jsx_runtime_1.jsx)(ContextMenu_1.ContextMenu, __assign({ autoWidthMode: "use", maxHeight: maxHeight, customWidth: getCustomWidth() }, { children: groupInfoArray
257
+ ? Object.keys(resultByGroup).map(function (key) {
258
+ var _a, _b, _c;
259
+ return ((0, jsx_runtime_1.jsxs)(S_Group, __assign({ size: size, hasGroupTitle: Boolean((_a = groupInfoArray.find(function (groupInfo) { return groupInfo.key === key; })) === null || _a === void 0 ? void 0 : _a.title) }, { children: [((_b = groupInfoArray.find(function (groupInfo) { return groupInfo.key === key; })) === null || _b === void 0 ? void 0 : _b.title) && ((0, jsx_runtime_1.jsx)(S_Wrapper, __assign({ size: size }, { children: (0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: (_c = groupInfoArray.find(function (groupInfo) { return groupInfo.key === key; })) === null || _c === void 0 ? void 0 : _c.title, colorTheme: "sysTextSecondary", styleTheme: "caption1Bold", letterSpacing: "0.15em" }) }))), resultByGroup[key].map(function (el) { return ((0, jsx_runtime_1.jsx)("div", __assign({ onMouseDown: function () { return handleClickOption(el); } }, { children: (0, jsx_runtime_1.jsx)(ContextMenuItem_1.ContextMenuItem, { option: el, size: size, isSelected: (selectedValue === null || selectedValue === void 0 ? void 0 : selectedValue.value) === el.value, state: el.state, displayType: displayType }) }), el.value)); })] }), key));
260
+ })
261
+ : valueArray.map(function (el) { return ((0, jsx_runtime_1.jsx)("div", __assign({ onMouseDown: function () { return handleClickOption(el); } }, { children: (0, jsx_runtime_1.jsx)(ContextMenuItem_1.ContextMenuItem, { option: el, size: size, isSelected: (selectedValue === null || selectedValue === void 0 ? void 0 : selectedValue.value) === el.value, state: el.state, displayType: displayType }) }), el.value)); }) })) })), document.body)] })));
243
262
  }
244
- var S_TextLabel = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n padding-right: ", ";\n\n ", ";\n"], ["\n align-items: center;\n display: flex;\n padding-right: ", ";\n\n ", ";\n"])), function (_a) {
263
+ var largeGroupTitle = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n padding-left: ", ";\n padding-right: ", ";\n"], ["\n padding-left: ", ";\n padding-right: ", ";\n"])), function (_a) {
264
+ var theme = _a.theme;
265
+ return theme.spacing.spacingE;
266
+ }, function (_a) {
267
+ var theme = _a.theme;
268
+ return theme.spacing.spacingE;
269
+ });
270
+ var mediumGroupTitle = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n padding-left: ", ";\n padding-right: ", ";\n"], ["\n padding-left: ", ";\n padding-right: ", ";\n"])), function (_a) {
271
+ var theme = _a.theme;
272
+ return theme.spacing.spacingD;
273
+ }, function (_a) {
274
+ var theme = _a.theme;
275
+ return theme.spacing.spacingD;
276
+ });
277
+ var smallGroupTitle = (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n padding-left: ", ";\n padding-right: ", ";\n"], ["\n padding-left: ", ";\n padding-right: ", ";\n"])), function (_a) {
278
+ var theme = _a.theme;
279
+ return theme.spacing.spacingD;
280
+ }, function (_a) {
281
+ var theme = _a.theme;
282
+ return theme.spacing.spacingD;
283
+ });
284
+ var largeGroupDivider = (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n left: ", ";\n right: ", ";\n"], ["\n left: ", ";\n right: ", ";\n"])), function (_a) {
285
+ var theme = _a.theme;
286
+ return theme.spacing.spacingE;
287
+ }, function (_a) {
288
+ var theme = _a.theme;
289
+ return theme.spacing.spacingE;
290
+ });
291
+ var mediumGroupDivider = (0, styled_components_1.css)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n left: ", ";\n right: ", ";\n"], ["\n left: ", ";\n right: ", ";\n"])), function (_a) {
292
+ var theme = _a.theme;
293
+ return theme.spacing.spacingD;
294
+ }, function (_a) {
295
+ var theme = _a.theme;
296
+ return theme.spacing.spacingD;
297
+ });
298
+ var smallGroupDivider = (0, styled_components_1.css)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n left: ", ";\n right: ", ";\n"], ["\n left: ", ";\n right: ", ";\n"])), function (_a) {
299
+ var theme = _a.theme;
300
+ return theme.spacing.spacingD;
301
+ }, function (_a) {
302
+ var theme = _a.theme;
303
+ return theme.spacing.spacingD;
304
+ });
305
+ var S_Group = styled_components_1.default.div(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n position: relative;\n\n &:not(:last-child) {\n padding-bottom: ", ";\n }\n\n &:not(:first-child) {\n padding-top: ", ";\n ", ";\n\n &:after {\n background-color: ", ";\n content: '';\n height: 1px;\n position: absolute;\n top: 0;\n\n ", ";\n }\n }\n"], ["\n position: relative;\n\n &:not(:last-child) {\n padding-bottom: ", ";\n }\n\n &:not(:first-child) {\n padding-top: ", ";\n ", ";\n\n &:after {\n background-color: ", ";\n content: '';\n height: 1px;\n position: absolute;\n top: 0;\n\n ", ";\n }\n }\n"])), function (_a) {
306
+ var theme = _a.theme;
307
+ return theme.spacing.spacingB;
308
+ }, function (_a) {
309
+ var theme = _a.theme;
310
+ return theme.spacing.spacingA;
311
+ }, function (_a) {
312
+ var theme = _a.theme, hasGroupTitle = _a.hasGroupTitle;
313
+ return hasGroupTitle
314
+ ? "padding-top: ".concat(theme.spacing.spacingA)
315
+ : "padding-top: ".concat(theme.spacing.spacingB);
316
+ }, function (_a) {
317
+ var theme = _a.theme;
318
+ return theme.ui_cpnt_divider;
319
+ }, function (_a) {
320
+ var size = _a.size;
321
+ return size &&
322
+ {
323
+ large: largeGroupDivider,
324
+ medium: mediumGroupDivider,
325
+ small: smallGroupDivider
326
+ }[size];
327
+ });
328
+ var S_Wrapper = styled_components_1.default.div(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n padding-bottom: ", ";\n\n ", ":first-child & {\n padding-top: ", ";\n }\n\n ", ":not(:first-child) > & {\n padding-top: ", ";\n }\n\n ", ";\n"], ["\n padding-bottom: ", ";\n\n ", ":first-child & {\n padding-top: ", ";\n }\n\n ", ":not(:first-child) > & {\n padding-top: ", ";\n }\n\n ", ";\n"])), function (_a) {
329
+ var theme = _a.theme;
330
+ return theme.spacing.spacingC;
331
+ }, S_Group, function (_a) {
332
+ var theme = _a.theme;
333
+ return theme.spacing.spacingA;
334
+ }, S_Group, function (_a) {
335
+ var theme = _a.theme;
336
+ return theme.spacing.spacingC;
337
+ }, function (_a) {
338
+ var size = _a.size;
339
+ return size &&
340
+ {
341
+ large: largeGroupTitle,
342
+ medium: mediumGroupTitle,
343
+ small: smallGroupTitle
344
+ }[size];
345
+ });
346
+ var S_TextLabel = styled_components_1.default.div(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n padding-right: ", ";\n\n ", ";\n"], ["\n align-items: center;\n display: flex;\n padding-right: ", ";\n\n ", ";\n"])), function (_a) {
245
347
  var theme = _a.theme;
246
348
  return theme.spacing.spacingB;
247
349
  }, function (_a) {
@@ -253,7 +355,7 @@ var S_TextLabel = styled_components_1.default.div(templateObject_1 || (templateO
253
355
  small: small
254
356
  }[size];
255
357
  });
256
- var large = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n height: 48px;\n width: ", ";\n\n & > div {\n height: 48px;\n line-height: 48px;\n }\n"], ["\n height: 48px;\n width: ", ";\n\n & > div {\n height: 48px;\n line-height: 48px;\n }\n"])), function (_a) {
358
+ var large = (0, styled_components_1.css)(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n height: 48px;\n width: ", ";\n\n & > div {\n height: 48px;\n line-height: 48px;\n }\n"], ["\n height: 48px;\n width: ", ";\n\n & > div {\n height: 48px;\n line-height: 48px;\n }\n"])), function (_a) {
257
359
  var displayType = _a.displayType, responsiveMode = _a.responsiveMode;
258
360
  if (responsiveMode === 'use') {
259
361
  return '100%';
@@ -263,7 +365,7 @@ var large = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 =
263
365
  }
264
366
  return '432px';
265
367
  });
266
- var medium = (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n border-radius: 12px;\n height: 40px;\n width: ", ";\n\n & > div {\n height: 40px;\n line-height: 40px;\n }\n"], ["\n border-radius: 12px;\n height: 40px;\n width: ", ";\n\n & > div {\n height: 40px;\n line-height: 40px;\n }\n"])), function (_a) {
368
+ var medium = (0, styled_components_1.css)(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n border-radius: 12px;\n height: 40px;\n width: ", ";\n\n & > div {\n height: 40px;\n line-height: 40px;\n }\n"], ["\n border-radius: 12px;\n height: 40px;\n width: ", ";\n\n & > div {\n height: 40px;\n line-height: 40px;\n }\n"])), function (_a) {
267
369
  var displayType = _a.displayType, responsiveMode = _a.responsiveMode;
268
370
  if (responsiveMode === 'use') {
269
371
  return '100%';
@@ -273,7 +375,7 @@ var medium = (0, styled_components_1.css)(templateObject_3 || (templateObject_3
273
375
  }
274
376
  return '188px';
275
377
  });
276
- var small = (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n border-radius: 10px;\n height: 32px;\n width: ", ";\n\n & > div {\n height: 32px;\n line-height: 32px;\n }\n"], ["\n border-radius: 10px;\n height: 32px;\n width: ", ";\n\n & > div {\n height: 32px;\n line-height: 32px;\n }\n"])), function (_a) {
378
+ var small = (0, styled_components_1.css)(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n border-radius: 10px;\n height: 32px;\n width: ", ";\n\n & > div {\n height: 32px;\n line-height: 32px;\n }\n"], ["\n border-radius: 10px;\n height: 32px;\n width: ", ";\n\n & > div {\n height: 32px;\n line-height: 32px;\n }\n"])), function (_a) {
277
379
  var displayType = _a.displayType, responsiveMode = _a.responsiveMode;
278
380
  if (responsiveMode === 'use') {
279
381
  return '100%';
@@ -283,7 +385,7 @@ var small = (0, styled_components_1.css)(templateObject_4 || (templateObject_4 =
283
385
  }
284
386
  return '188px';
285
387
  });
286
- var S_Dropdown = styled_components_1.default.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n display: inline-block;\n outline: none;\n position: relative;\n\n ", ";\n\n ", "\n"], ["\n display: inline-block;\n outline: none;\n position: relative;\n\n ", ";\n\n ", "\n"])), function (_a) {
388
+ var S_Dropdown = styled_components_1.default.div(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n display: inline-block;\n outline: none;\n position: relative;\n\n ", ";\n\n ", "\n"], ["\n display: inline-block;\n outline: none;\n position: relative;\n\n ", ";\n\n ", "\n"])), function (_a) {
287
389
  var size = _a.size;
288
390
  return size &&
289
391
  {
@@ -295,7 +397,7 @@ var S_Dropdown = styled_components_1.default.div(templateObject_5 || (templateOb
295
397
  var customWidth = _a.customWidth;
296
398
  return customWidth && "width: ".concat(customWidth, ";");
297
399
  });
298
- var colorThemeBackgroundReadOnly = (0, styled_components_1.css)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n ", ";\n"], ["\n ", ";\n"])), function (_a) {
400
+ var colorThemeBackgroundReadOnly = (0, styled_components_1.css)(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n ", ";\n"], ["\n ", ";\n"])), function (_a) {
299
401
  var colorTheme = _a.colorTheme, theme = _a.theme;
300
402
  switch (colorTheme) {
301
403
  case 'dark':
@@ -306,7 +408,7 @@ var colorThemeBackgroundReadOnly = (0, styled_components_1.css)(templateObject_6
306
408
  return theme.ui_cpnt_dropdown_base_disabled;
307
409
  }
308
410
  });
309
- var colorThemeBackgroundDisabled = (0, styled_components_1.css)(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n ", ";\n"], ["\n ", ";\n"])), function (_a) {
411
+ var colorThemeBackgroundDisabled = (0, styled_components_1.css)(templateObject_15 || (templateObject_15 = __makeTemplateObject(["\n ", ";\n"], ["\n ", ";\n"])), function (_a) {
310
412
  var colorTheme = _a.colorTheme, theme = _a.theme;
311
413
  switch (colorTheme) {
312
414
  case 'dark':
@@ -317,7 +419,7 @@ var colorThemeBackgroundDisabled = (0, styled_components_1.css)(templateObject_7
317
419
  return theme.ui_cpnt_dropdown_base_disabled;
318
420
  }
319
421
  });
320
- var colorThemeBackgroundNormal = (0, styled_components_1.css)(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n ", ";\n"], ["\n ", ";\n"])), function (_a) {
422
+ var colorThemeBackgroundNormal = (0, styled_components_1.css)(templateObject_16 || (templateObject_16 = __makeTemplateObject(["\n ", ";\n"], ["\n ", ";\n"])), function (_a) {
321
423
  var colorTheme = _a.colorTheme, theme = _a.theme;
322
424
  switch (colorTheme) {
323
425
  case 'dark':
@@ -328,7 +430,7 @@ var colorThemeBackgroundNormal = (0, styled_components_1.css)(templateObject_8 |
328
430
  return theme.ui_cpnt_dropdown_base_normal;
329
431
  }
330
432
  });
331
- var colorThemeBorderWhite = (0, styled_components_1.css)(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n ", ";\n"], ["\n ", ";\n"])), function (_a) {
433
+ var colorThemeBorderWhite = (0, styled_components_1.css)(templateObject_17 || (templateObject_17 = __makeTemplateObject(["\n ", ";\n"], ["\n ", ";\n"])), function (_a) {
332
434
  var state = _a.state, theme = _a.theme;
333
435
  switch (state) {
334
436
  case 'disabled':
@@ -338,7 +440,7 @@ var colorThemeBorderWhite = (0, styled_components_1.css)(templateObject_9 || (te
338
440
  return theme.ui_cpnt_dropdown_border_white_normal;
339
441
  }
340
442
  });
341
- var colorThemeBorderDark = (0, styled_components_1.css)(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n ", ";\n"], ["\n ", ";\n"])), function (_a) {
443
+ var colorThemeBorderDark = (0, styled_components_1.css)(templateObject_18 || (templateObject_18 = __makeTemplateObject(["\n ", ";\n"], ["\n ", ";\n"])), function (_a) {
342
444
  var state = _a.state, theme = _a.theme;
343
445
  switch (state) {
344
446
  case 'disabled':
@@ -348,7 +450,7 @@ var colorThemeBorderDark = (0, styled_components_1.css)(templateObject_10 || (te
348
450
  return theme.ui_cpnt_dropdown_border_darktheme_normal;
349
451
  }
350
452
  });
351
- var borderColor = (0, styled_components_1.css)(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n ", ";\n"], ["\n ", ";\n"])), function (_a) {
453
+ var borderColor = (0, styled_components_1.css)(templateObject_19 || (templateObject_19 = __makeTemplateObject(["\n ", ";\n"], ["\n ", ";\n"])), function (_a) {
352
454
  var state = _a.state, theme = _a.theme;
353
455
  switch (state) {
354
456
  case 'disabled':
@@ -359,7 +461,7 @@ var borderColor = (0, styled_components_1.css)(templateObject_11 || (templateObj
359
461
  return theme.ui_cpnt_dropdown_border_normal;
360
462
  }
361
463
  });
362
- var backgroundActiveColor = (0, styled_components_1.css)(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n ", ";\n"], ["\n ", ";\n"])), function (_a) {
464
+ var backgroundActiveColor = (0, styled_components_1.css)(templateObject_20 || (templateObject_20 = __makeTemplateObject(["\n ", ";\n"], ["\n ", ";\n"])), function (_a) {
363
465
  var colorTheme = _a.colorTheme, theme = _a.theme;
364
466
  switch (colorTheme) {
365
467
  case 'none':
@@ -372,8 +474,8 @@ var backgroundActiveColor = (0, styled_components_1.css)(templateObject_12 || (t
372
474
  return theme.ui_cpnt_textfield_base_pressed;
373
475
  }
374
476
  });
375
- var normalActionColor = (0, styled_components_1.css)(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n &:active {\n background-color: ", ";\n }\n"], ["\n &:active {\n background-color: ", ";\n }\n"])), backgroundActiveColor);
376
- var S_Select = styled_components_1.default.div(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n align-items: center;\n background-color: ", ";\n border: 2px solid\n ", ";\n border-radius: 14px;\n box-sizing: border-box;\n display: flex;\n justify-content: space-between;\n padding-left: ", ";\n padding-right: ", ";\n\n ", ";\n\n ", "\n\n ", "\n\n ", "\n"], ["\n align-items: center;\n background-color: ", ";\n border: 2px solid\n ", ";\n border-radius: 14px;\n box-sizing: border-box;\n display: flex;\n justify-content: space-between;\n padding-left: ", ";\n padding-right: ", ";\n\n ", ";\n\n ", "\n\n ", "\n\n ", "\n"])), function (_a) {
477
+ var normalActionColor = (0, styled_components_1.css)(templateObject_21 || (templateObject_21 = __makeTemplateObject(["\n &:active {\n background-color: ", ";\n }\n"], ["\n &:active {\n background-color: ", ";\n }\n"])), backgroundActiveColor);
478
+ var S_Select = styled_components_1.default.div(templateObject_22 || (templateObject_22 = __makeTemplateObject(["\n align-items: center;\n background-color: ", ";\n border: 2px solid\n ", ";\n border-radius: 14px;\n box-sizing: border-box;\n display: flex;\n justify-content: space-between;\n padding-left: ", ";\n padding-right: ", ";\n\n ", ";\n\n ", "\n\n ", "\n\n ", "\n"], ["\n align-items: center;\n background-color: ", ";\n border: 2px solid\n ", ";\n border-radius: 14px;\n box-sizing: border-box;\n display: flex;\n justify-content: space-between;\n padding-left: ", ";\n padding-right: ", ";\n\n ", ";\n\n ", "\n\n ", "\n\n ", "\n"])), function (_a) {
377
479
  var state = _a.state;
378
480
  switch (state) {
379
481
  case 'disabled':
@@ -414,9 +516,9 @@ var S_Select = styled_components_1.default.div(templateObject_14 || (templateObj
414
516
  var state = _a.state;
415
517
  return state === 'normal' && normalActionColor;
416
518
  });
417
- var S_ContextMenuWrapper = styled_components_1.default.div(templateObject_15 || (templateObject_15 = __makeTemplateObject(["\n display: block;\n position: absolute;\n\n ", ";\n"], ["\n display: block;\n position: absolute;\n\n ", ";\n"])), function (_a) {
519
+ var S_ContextMenuWrapper = styled_components_1.default.div(templateObject_23 || (templateObject_23 = __makeTemplateObject(["\n display: block;\n position: absolute;\n\n ", ";\n"], ["\n display: block;\n position: absolute;\n\n ", ";\n"])), function (_a) {
418
520
  var contextMenuPositionCss = _a.contextMenuPositionCss;
419
521
  return contextMenuPositionCss;
420
522
  });
421
523
  exports.default = Dropdown;
422
- 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;
524
+ 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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pds-dev-kit-web",
3
- "version": "2.2.31",
3
+ "version": "2.2.32",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "main": "dist/index.js",