pds-dev-kit-web 2.2.311 → 2.2.313
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.
- package/dist/src/common/styles/colorSet/UIColor.json +1 -1
- package/dist/src/common/styles/colorSet/index.d.ts +772 -772
- package/dist/src/common/styles/colorSet/index.js +3 -3
- package/dist/src/desktop/components/Chip/Chip.d.ts +4 -2
- package/dist/src/desktop/components/Chip/Chip.js +17 -17
- package/dist/src/desktop/components/ComboBox/ComboBox.d.ts +42 -0
- package/dist/src/desktop/components/ComboBox/ComboBox.js +463 -0
- package/dist/src/desktop/components/ComboBox/index.d.ts +1 -0
- package/dist/src/desktop/components/ComboBox/index.js +8 -0
- package/dist/src/desktop/components/ContextMenu/ContextMenu.d.ts +2 -1
- package/dist/src/desktop/components/ContextMenu/ContextMenu.js +2 -2
- package/dist/src/desktop/components/index.d.ts +2 -1
- package/dist/src/desktop/components/index.js +4 -2
- package/dist/src/desktop/index.d.ts +1 -1
- package/dist/src/desktop/index.js +3 -2
- package/dist/src/mobile/components/Chip/Chip.d.ts +4 -2
- package/dist/src/mobile/components/Chip/Chip.js +17 -17
- package/dist/src/mobile/components/ComboBox/ComboBox.d.ts +42 -0
- package/dist/src/mobile/components/ComboBox/ComboBox.js +463 -0
- package/dist/src/mobile/components/ComboBox/index.d.ts +1 -0
- package/dist/src/mobile/components/ComboBox/index.js +8 -0
- package/dist/src/mobile/components/ContextMenu/ContextMenu.d.ts +2 -1
- package/dist/src/mobile/components/ContextMenu/ContextMenu.js +2 -2
- package/dist/src/mobile/components/index.d.ts +2 -1
- package/dist/src/mobile/components/index.js +3 -1
- package/dist/src/mobile/index.d.ts +1 -1
- package/dist/src/mobile/index.js +3 -2
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Button/Button.js +69 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Text/Text.js +4 -1
- package/package.json +1 -1
- package/release-note.md +2 -2
|
@@ -5,13 +5,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
/* eslint-disable import/order */
|
|
7
7
|
var SemanticColor_json_1 = __importDefault(require("./SemanticColor.json"));
|
|
8
|
+
var UIColor_json_1 = __importDefault(require("./UIColor.json"));
|
|
8
9
|
var PaletteColor_light_json_1 = __importDefault(require("./PaletteColor_light.json"));
|
|
9
10
|
var PaletteColor_Dark_json_1 = __importDefault(require("./PaletteColor_Dark.json"));
|
|
10
|
-
var UIColor_json_1 = __importDefault(require("./UIColor.json"));
|
|
11
11
|
var colorSet = {
|
|
12
12
|
SemanticColor: SemanticColor_json_1.default,
|
|
13
|
+
UIColor: UIColor_json_1.default,
|
|
13
14
|
PaletteColor_light: PaletteColor_light_json_1.default,
|
|
14
|
-
PaletteColor_Dark: PaletteColor_Dark_json_1.default
|
|
15
|
-
UIColor: UIColor_json_1.default
|
|
15
|
+
PaletteColor_Dark: PaletteColor_Dark_json_1.default
|
|
16
16
|
};
|
|
17
17
|
exports.default = colorSet;
|
|
@@ -13,11 +13,13 @@ export type ChipProps = {
|
|
|
13
13
|
value?: PDSValueOption['value'];
|
|
14
14
|
id?: PDSValueOption['value'];
|
|
15
15
|
onClickChip?: (e: React.MouseEvent<HTMLDivElement>) => void;
|
|
16
|
-
onClickXMarkIcon?: () => void;
|
|
16
|
+
onClickXMarkIcon?: (e?: React.MouseEvent) => void;
|
|
17
|
+
imageMode?: 'none' | 'left';
|
|
18
|
+
imageSrc?: string;
|
|
17
19
|
/** @deprecated value 필드를 대신 사용하세요. */
|
|
18
20
|
activeChipId?: string | number;
|
|
19
21
|
/** @deprecated id 필드를 대신 사용하세요. */
|
|
20
22
|
chipId?: string | number;
|
|
21
23
|
};
|
|
22
|
-
export default function Chip({ displayType, shapeType, text, filterIconMode, iconFillType, iconName, overrideTextColorKey, overrideBackgroundColorKey, value, id, activeChipId, chipId, onClickChip, onClickXMarkIcon }: ChipProps): JSX.Element;
|
|
24
|
+
export default function Chip({ displayType, shapeType, text, filterIconMode, iconFillType, iconName, overrideTextColorKey, overrideBackgroundColorKey, value, id, activeChipId, chipId, onClickChip, onClickXMarkIcon, imageMode, imageSrc }: ChipProps): JSX.Element;
|
|
23
25
|
export {};
|
|
@@ -45,7 +45,7 @@ var hybrid_1 = require("../../../hybrid");
|
|
|
45
45
|
var Icon_1 = require("../../../hybrid/components/Icon");
|
|
46
46
|
var TextLabel_1 = require("../TextLabel");
|
|
47
47
|
function Chip(_a) {
|
|
48
|
-
var _b = _a.displayType, displayType = _b === void 0 ? 'filter_single' : _b, _c = _a.shapeType, shapeType = _c === void 0 ? 'round' : _c, text = _a.text, _d = _a.filterIconMode, filterIconMode = _d === void 0 ? 'none' : _d, _e = _a.iconFillType, iconFillType = _e === void 0 ? 'line' : _e, iconName = _a.iconName, overrideTextColorKey = _a.overrideTextColorKey, overrideBackgroundColorKey = _a.overrideBackgroundColorKey, value = _a.value, id = _a.id, activeChipId = _a.activeChipId, chipId = _a.chipId, onClickChip = _a.onClickChip, onClickXMarkIcon = _a.onClickXMarkIcon;
|
|
48
|
+
var _b = _a.displayType, displayType = _b === void 0 ? 'filter_single' : _b, _c = _a.shapeType, shapeType = _c === void 0 ? 'round' : _c, text = _a.text, _d = _a.filterIconMode, filterIconMode = _d === void 0 ? 'none' : _d, _e = _a.iconFillType, iconFillType = _e === void 0 ? 'line' : _e, iconName = _a.iconName, overrideTextColorKey = _a.overrideTextColorKey, overrideBackgroundColorKey = _a.overrideBackgroundColorKey, value = _a.value, id = _a.id, activeChipId = _a.activeChipId, chipId = _a.chipId, onClickChip = _a.onClickChip, onClickXMarkIcon = _a.onClickXMarkIcon, _f = _a.imageMode, imageMode = _f === void 0 ? 'none' : _f, imageSrc = _a.imageSrc;
|
|
49
49
|
var isActive = (0, react_1.useMemo)(function () {
|
|
50
50
|
if (activeChipId !== undefined && chipId !== undefined) {
|
|
51
51
|
return activeChipId === chipId;
|
|
@@ -63,7 +63,7 @@ function Chip(_a) {
|
|
|
63
63
|
var handleClickXMarkIcon = function (e) {
|
|
64
64
|
e.stopPropagation();
|
|
65
65
|
if (onClickXMarkIcon) {
|
|
66
|
-
onClickXMarkIcon();
|
|
66
|
+
onClickXMarkIcon(e);
|
|
67
67
|
}
|
|
68
68
|
else
|
|
69
69
|
onClickChip === null || onClickChip === void 0 ? void 0 : onClickChip(e);
|
|
@@ -71,27 +71,27 @@ function Chip(_a) {
|
|
|
71
71
|
var chipType = function () {
|
|
72
72
|
switch (displayType) {
|
|
73
73
|
case 'category_choice':
|
|
74
|
-
return ((0, jsx_runtime_1.jsxs)(S_CategoryChoiceChip, __assign({ isActive: isActive, shapeType: shapeType, onClick: handleClickChip }, { children: [!isActive && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Icon_1.Icon, { size: 16, fillType: "line", iconName: "ic_filter", colorKey: "ui_cpnt_chip_line_icon_01" }), (0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_a", spacingType: "width" })] })), (0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: text, styleTheme: "caption1Regular", singleLineMode: "use", colorTheme: isActive ? 'usrTextBrandOnPrimary' : 'sysTextPrimary', ellipsisMode: "use", lineLimit: 1, wordBreak: "break_all" }), isActive && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_a", spacingType: "width" }), (0, jsx_runtime_1.jsx)(S_XIconWrapper, __assign({ onClick: handleClickXMarkIcon }, { children: (0, jsx_runtime_1.jsx)(Icon_1.Icon, { size: 12, fillType: "line", iconName: "ic_xmark", colorKey: "ui_cpnt_chip_fill_icon_active_01" }) }))] }))] })));
|
|
74
|
+
return ((0, jsx_runtime_1.jsxs)(S_CategoryChoiceChip, __assign({ isActive: isActive, shapeType: shapeType, onClick: handleClickChip }, { children: [!isActive && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Icon_1.Icon, { size: 16, fillType: "line", iconName: "ic_filter", colorKey: "ui_cpnt_chip_line_icon_01" }), (0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_a", spacingType: "width" })] })), imageMode === 'left' && imageSrc && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(hybrid_1.ImageView, { src: imageSrc, ratio: "1_1", width: 16, height: 16, shapeType: "circular", scaleType: "cover" }), (0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_a", spacingType: "width" })] })), (0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: text, styleTheme: "caption1Regular", singleLineMode: "use", colorTheme: isActive ? 'usrTextBrandOnPrimary' : 'sysTextPrimary', ellipsisMode: "use", lineLimit: 1, wordBreak: "break_all" }), isActive && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_a", spacingType: "width" }), (0, jsx_runtime_1.jsx)(S_XIconWrapper, __assign({ onClick: handleClickXMarkIcon }, { children: (0, jsx_runtime_1.jsx)(Icon_1.Icon, { size: 12, fillType: "line", iconName: "ic_xmark", colorKey: "ui_cpnt_chip_fill_icon_active_01" }) }))] }))] })));
|
|
75
75
|
case 'information':
|
|
76
|
-
return ((0, jsx_runtime_1.
|
|
76
|
+
return ((0, jsx_runtime_1.jsxs)(S_InfoChip, __assign({ onClick: handleClickChip, shapeType: shapeType, overrideBackgroundColorKey: overrideBackgroundColorKey }, { children: [imageMode === 'left' && imageSrc && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(hybrid_1.ImageView, { src: imageSrc, ratio: "1_1", width: 16, height: 16, shapeType: "circular", scaleType: "cover" }), (0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_a", spacingType: "width" })] })), (0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: text, styleTheme: "caption2Regular", singleLineMode: "use", colorTheme: "sysTextPrimary", colorOverride: overrideTextColorKey, ellipsisMode: "use", lineLimit: 1, wordBreak: "break_all" })] })));
|
|
77
77
|
case 'label':
|
|
78
|
-
return ((0, jsx_runtime_1.
|
|
78
|
+
return ((0, jsx_runtime_1.jsxs)(S_LabelChip, __assign({ shapeType: shapeType, onClick: handleClickChip }, { children: [imageMode === 'left' && imageSrc && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(hybrid_1.ImageView, { src: imageSrc, ratio: "1_1", width: 16, height: 16, shapeType: "circular", scaleType: "cover" }), (0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_a", spacingType: "width" })] })), (0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: text, styleTheme: "caption2Bold", singleLineMode: "use", colorTheme: "sysTextTertiary", ellipsisMode: "use", lineLimit: 1, wordBreak: "break_all" })] })));
|
|
79
79
|
case 'time':
|
|
80
|
-
return ((0, jsx_runtime_1.
|
|
80
|
+
return ((0, jsx_runtime_1.jsxs)(S_TimeChip, __assign({ shapeType: shapeType, onClick: handleClickChip }, { children: [imageMode === 'left' && imageSrc && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(hybrid_1.ImageView, { src: imageSrc, ratio: "1_1", width: 16, height: 16, shapeType: "circular", scaleType: "cover" }), (0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_a", spacingType: "width" })] })), (0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: text, styleTheme: "caption2Bold", singleLineMode: "use", colorTheme: "sysTextWhite", ellipsisMode: "use", lineLimit: 1, wordBreak: "break_all" })] })));
|
|
81
81
|
case 'removable':
|
|
82
|
-
return ((0, jsx_runtime_1.jsxs)(S_RemovableChip, __assign({ shapeType: shapeType, onClick: handleClickChip }, { children: [(0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: text, styleTheme: "caption1Regular", singleLineMode: "use", colorTheme: "sysTextSecondary", ellipsisMode: "use", lineLimit: 1, wordBreak: "break_all" }), (0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_b", spacingType: "width" }), (0, jsx_runtime_1.jsx)(S_XIconWrapper, __assign({ onClick: handleClickXMarkIcon }, { children: (0, jsx_runtime_1.jsx)(Icon_1.Icon, { size: 12, iconName: "ic_xmark", fillType: "line", colorKey: "ui_cpnt_chip_fill_icon_inactive" }) }))] })));
|
|
82
|
+
return ((0, jsx_runtime_1.jsxs)(S_RemovableChip, __assign({ shapeType: shapeType, onClick: handleClickChip }, { children: [imageMode === 'left' && imageSrc && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(hybrid_1.ImageView, { src: imageSrc, ratio: "1_1", width: 16, height: 16, shapeType: "circular", scaleType: "cover" }), (0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_a", spacingType: "width" })] })), (0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: text, styleTheme: "caption1Regular", singleLineMode: "use", colorTheme: "sysTextSecondary", ellipsisMode: "use", lineLimit: 1, wordBreak: "break_all" }), (0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_b", spacingType: "width" }), (0, jsx_runtime_1.jsx)(S_XIconWrapper, __assign({ onClick: handleClickXMarkIcon }, { children: (0, jsx_runtime_1.jsx)(Icon_1.Icon, { size: 12, iconName: "ic_xmark", fillType: "line", colorKey: "ui_cpnt_chip_fill_icon_inactive" }) }))] })));
|
|
83
83
|
case 'information2':
|
|
84
|
-
return ((0, jsx_runtime_1.jsxs)(S_Information2, __assign({ shapeType: shapeType }, { children: [(0, jsx_runtime_1.jsx)(Icon_1.Icon, { fillType: iconFillType, iconName: iconName, size: 16, colorKey: "ui_cpnt_icon_usr_brandprimary" }), text && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_a", spacingType: "width" }), (0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: text, styleTheme: "caption1Bold", singleLineMode: "use", colorTheme: "usrTextBrandPrimary", ellipsisMode: "use", lineLimit: 1, wordBreak: "break_all" })] }))] })));
|
|
84
|
+
return ((0, jsx_runtime_1.jsxs)(S_Information2, __assign({ shapeType: shapeType }, { children: [(0, jsx_runtime_1.jsx)(Icon_1.Icon, { fillType: iconFillType, iconName: iconName, size: 16, colorKey: "ui_cpnt_icon_usr_brandprimary" }), imageMode === 'left' && imageSrc && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(hybrid_1.ImageView, { src: imageSrc, ratio: "1_1", width: 16, height: 16, shapeType: "circular", scaleType: "cover" }), (0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_a", spacingType: "width" })] })), text && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_a", spacingType: "width" }), (0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: text, styleTheme: "caption1Bold", singleLineMode: "use", colorTheme: "usrTextBrandPrimary", ellipsisMode: "use", lineLimit: 1, wordBreak: "break_all" })] }))] })));
|
|
85
85
|
case 'information3':
|
|
86
|
-
return ((0, jsx_runtime_1.jsxs)(S_Information3, __assign({ shapeType: shapeType }, { children: [(0, jsx_runtime_1.jsx)(Icon_1.Icon, { fillType: iconFillType, iconName: iconName, size: 16, colorKey: "ui_cpnt_icon_sys_white" }), text && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_a", spacingType: "width" }), (0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: text, styleTheme: "caption1Bold", singleLineMode: "use", colorTheme: "sysTextWhite", ellipsisMode: "use", lineLimit: 1, wordBreak: "break_all" })] }))] })));
|
|
86
|
+
return ((0, jsx_runtime_1.jsxs)(S_Information3, __assign({ shapeType: shapeType }, { children: [(0, jsx_runtime_1.jsx)(Icon_1.Icon, { fillType: iconFillType, iconName: iconName, size: 16, colorKey: "ui_cpnt_icon_sys_white" }), imageMode === 'left' && imageSrc && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(hybrid_1.ImageView, { src: imageSrc, ratio: "1_1", width: 16, height: 16, shapeType: "circular", scaleType: "cover" }), (0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_a", spacingType: "width" })] })), text && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_a", spacingType: "width" }), (0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: text, styleTheme: "caption1Bold", singleLineMode: "use", colorTheme: "sysTextWhite", ellipsisMode: "use", lineLimit: 1, wordBreak: "break_all" })] }))] })));
|
|
87
87
|
default:
|
|
88
|
-
return ((0, jsx_runtime_1.jsxs)(S_FilterSingleChip, __assign({ isActive: isActive, shapeType: shapeType, onClick: handleClickChip }, { children: [filterIconMode === 'left' && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Icon_1.Icon, { fillType: iconFillType, iconName: iconName, size: 16, colorKey: isActive ? 'ui_cpnt_chip_fill_icon_active_01' : 'ui_cpnt_chip_line_icon_02' }), (0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_a", spacingType: "width" })] })), (0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: text, styleTheme: "caption1Regular", singleLineMode: "use", colorTheme: isActive ? 'usrTextBrandOnPrimary' : 'sysTextSecondary', ellipsisMode: "use", lineLimit: 1, wordBreak: "break_all" })] })));
|
|
88
|
+
return ((0, jsx_runtime_1.jsxs)(S_FilterSingleChip, __assign({ isActive: isActive, shapeType: shapeType, onClick: handleClickChip }, { children: [filterIconMode === 'left' && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Icon_1.Icon, { fillType: iconFillType, iconName: iconName, size: 16, colorKey: isActive ? 'ui_cpnt_chip_fill_icon_active_01' : 'ui_cpnt_chip_line_icon_02' }), (0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_a", spacingType: "width" })] })), imageMode === 'left' && imageSrc && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(hybrid_1.ImageView, { src: imageSrc, ratio: "1_1", width: 16, height: 16, shapeType: "circular", scaleType: "cover" }), (0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_a", spacingType: "width" })] })), (0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: text, styleTheme: "caption1Regular", singleLineMode: "use", colorTheme: isActive ? 'usrTextBrandOnPrimary' : 'sysTextSecondary', ellipsisMode: "use", lineLimit: 1, wordBreak: "break_all" })] })));
|
|
89
89
|
}
|
|
90
90
|
};
|
|
91
91
|
return ((0, jsx_runtime_1.jsx)(S_ChipWrapper, __assign({ "x-pds-name": "Chip", "x-pds-element-type": "component", "x-pds-device-type": "desktop" }, { children: chipType() })));
|
|
92
92
|
}
|
|
93
93
|
exports.default = Chip;
|
|
94
|
-
var S_CategoryChoiceChip = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n align-items: center;\n background-color: ", ";\n ", ";\n box-sizing: border-box;\n cursor: pointer;\n display: flex;\n height: 40px;\n justify-content: center;\n padding-left: ", ";\n padding-right: ", ";\n\n &:hover {\n background-color: ", ";\n }\n\n & > div {\n height: 40px;\n line-height: 40px;\n }\n\n ", ";\n"], ["\n align-items: center;\n background-color: ", ";\n ", ";\n box-sizing: border-box;\n cursor: pointer;\n display: flex;\n height: 40px;\n justify-content: center;\n padding-left: ", ";\n padding-right: ", ";\n\n &:hover {\n background-color: ", ";\n }\n\n & > div {\n height: 40px;\n line-height: 40px;\n }\n\n ", ";\n"])), function (_a) {
|
|
94
|
+
var S_CategoryChoiceChip = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n align-items: center;\n background-color: ", ";\n ", ";\n box-sizing: border-box;\n cursor: pointer;\n display: flex;\n height: 40px;\n justify-content: center;\n padding-left: ", ";\n padding-right: ", ";\n\n &:hover {\n background-color: ", ";\n }\n\n & > div:not([x-pds-name='ImageView']) {\n height: 40px;\n line-height: 40px;\n }\n\n ", ";\n"], ["\n align-items: center;\n background-color: ", ";\n ", ";\n box-sizing: border-box;\n cursor: pointer;\n display: flex;\n height: 40px;\n justify-content: center;\n padding-left: ", ";\n padding-right: ", ";\n\n &:hover {\n background-color: ", ";\n }\n\n & > div:not([x-pds-name='ImageView']) {\n height: 40px;\n line-height: 40px;\n }\n\n ", ";\n"])), function (_a) {
|
|
95
95
|
var theme = _a.theme, isActive = _a.isActive;
|
|
96
96
|
return isActive ? theme.ui_cpnt_chip_fill_base_active_01 : '';
|
|
97
97
|
}, function (_a) {
|
|
@@ -110,7 +110,7 @@ var S_CategoryChoiceChip = styled_components_1.default.div(templateObject_1 || (
|
|
|
110
110
|
var theme = _a.theme, isActive = _a.isActive;
|
|
111
111
|
return isActive ? '' : "border: 1px solid ".concat(theme.ui_cpnt_chip_line_border_01);
|
|
112
112
|
});
|
|
113
|
-
var S_InfoChip = styled_components_1.default.span(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n align-items: center;\n background-color: ", ";\n ", ";\n box-sizing: border-box;\n display: flex;\n height: 24px;\n padding-left: ", ";\n padding-right: ", ";\n\n & > div {\n height: 24px;\n line-height: 24px;\n }\n"], ["\n align-items: center;\n background-color: ", ";\n ", ";\n box-sizing: border-box;\n display: flex;\n height: 24px;\n padding-left: ", ";\n padding-right: ", ";\n\n & > div {\n height: 24px;\n line-height: 24px;\n }\n"])), function (_a) {
|
|
113
|
+
var S_InfoChip = styled_components_1.default.span(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n align-items: center;\n background-color: ", ";\n ", ";\n box-sizing: border-box;\n display: flex;\n height: 24px;\n padding-left: ", ";\n padding-right: ", ";\n\n & > div:not([x-pds-name='ImageView']) {\n height: 24px;\n line-height: 24px;\n }\n"], ["\n align-items: center;\n background-color: ", ";\n ", ";\n box-sizing: border-box;\n display: flex;\n height: 24px;\n padding-left: ", ";\n padding-right: ", ";\n\n & > div:not([x-pds-name='ImageView']) {\n height: 24px;\n line-height: 24px;\n }\n"])), function (_a) {
|
|
114
114
|
var theme = _a.theme, overrideBackgroundColorKey = _a.overrideBackgroundColorKey;
|
|
115
115
|
return overrideBackgroundColorKey
|
|
116
116
|
? theme[overrideBackgroundColorKey]
|
|
@@ -125,7 +125,7 @@ var S_InfoChip = styled_components_1.default.span(templateObject_2 || (templateO
|
|
|
125
125
|
var theme = _a.theme;
|
|
126
126
|
return theme.spacing.spacingC;
|
|
127
127
|
});
|
|
128
|
-
var S_RemovableChip = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n align-items: center;\n background-color: ", ";\n ", ";\n box-sizing: border-box;\n cursor: pointer;\n display: flex;\n height: 32px;\n justify-content: center;\n padding-left: ", ";\n padding-right: ", ";\n\n & > div {\n height: 32px;\n line-height: 32px;\n }\n"], ["\n align-items: center;\n background-color: ", ";\n ", ";\n box-sizing: border-box;\n cursor: pointer;\n display: flex;\n height: 32px;\n justify-content: center;\n padding-left: ", ";\n padding-right: ", ";\n\n & > div {\n height: 32px;\n line-height: 32px;\n }\n"])), function (_a) {
|
|
128
|
+
var S_RemovableChip = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n align-items: center;\n background-color: ", ";\n ", ";\n box-sizing: border-box;\n cursor: pointer;\n display: flex;\n height: 32px;\n justify-content: center;\n padding-left: ", ";\n padding-right: ", ";\n\n & > div:not([x-pds-name='ImageView']) {\n height: 32px;\n line-height: 32px;\n }\n"], ["\n align-items: center;\n background-color: ", ";\n ", ";\n box-sizing: border-box;\n cursor: pointer;\n display: flex;\n height: 32px;\n justify-content: center;\n padding-left: ", ";\n padding-right: ", ";\n\n & > div:not([x-pds-name='ImageView']) {\n height: 32px;\n line-height: 32px;\n }\n"])), function (_a) {
|
|
129
129
|
var theme = _a.theme;
|
|
130
130
|
return theme.ui_cpnt_chip_fill_base_inactive;
|
|
131
131
|
}, function (_a) {
|
|
@@ -139,7 +139,7 @@ var S_RemovableChip = styled_components_1.default.div(templateObject_3 || (templ
|
|
|
139
139
|
return theme.spacing.spacingC;
|
|
140
140
|
});
|
|
141
141
|
var S_XIconWrapper = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n align-items: center;\n cursor: pointer;\n display: flex;\n justify-content: center;\n"], ["\n align-items: center;\n cursor: pointer;\n display: flex;\n justify-content: center;\n"])));
|
|
142
|
-
var S_FilterSingleChip = styled_components_1.default.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n align-items: center;\n background-color: ", ";\n ", ";\n box-sizing: border-box;\n cursor: pointer;\n display: flex;\n height: 32px;\n justify-content: center;\n padding-left: ", ";\n padding-right: ", ";\n\n & > div {\n height: 32px;\n line-height: 32px;\n }\n"], ["\n align-items: center;\n background-color: ", ";\n ", ";\n box-sizing: border-box;\n cursor: pointer;\n display: flex;\n height: 32px;\n justify-content: center;\n padding-left: ", ";\n padding-right: ", ";\n\n & > div {\n height: 32px;\n line-height: 32px;\n }\n"])), function (_a) {
|
|
142
|
+
var S_FilterSingleChip = styled_components_1.default.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n align-items: center;\n background-color: ", ";\n ", ";\n box-sizing: border-box;\n cursor: pointer;\n display: flex;\n height: 32px;\n justify-content: center;\n padding-left: ", ";\n padding-right: ", ";\n\n & > div:not([x-pds-name='ImageView']) {\n height: 32px;\n line-height: 32px;\n }\n"], ["\n align-items: center;\n background-color: ", ";\n ", ";\n box-sizing: border-box;\n cursor: pointer;\n display: flex;\n height: 32px;\n justify-content: center;\n padding-left: ", ";\n padding-right: ", ";\n\n & > div:not([x-pds-name='ImageView']) {\n height: 32px;\n line-height: 32px;\n }\n"])), function (_a) {
|
|
143
143
|
var theme = _a.theme, isActive = _a.isActive;
|
|
144
144
|
return isActive ? theme.ui_cpnt_chip_fill_base_active_01 : theme.ui_cpnt_chip_fill_base_inactive;
|
|
145
145
|
}, function (_a) {
|
|
@@ -152,7 +152,7 @@ var S_FilterSingleChip = styled_components_1.default.div(templateObject_5 || (te
|
|
|
152
152
|
var theme = _a.theme;
|
|
153
153
|
return theme.spacing.spacingC;
|
|
154
154
|
});
|
|
155
|
-
var S_LabelChip = styled_components_1.default.div(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n align-items: center;\n border: 1px solid ", ";\n ", ";\n box-sizing: border-box;\n display: flex;\n height: 20px;\n justify-content: center;\n padding: 0 ", ";\n\n & > div {\n height: 20px;\n line-height: 20px;\n }\n"], ["\n align-items: center;\n border: 1px solid ", ";\n ", ";\n box-sizing: border-box;\n display: flex;\n height: 20px;\n justify-content: center;\n padding: 0 ", ";\n\n & > div {\n height: 20px;\n line-height: 20px;\n }\n"])), function (_a) {
|
|
155
|
+
var S_LabelChip = styled_components_1.default.div(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n align-items: center;\n border: 1px solid ", ";\n ", ";\n box-sizing: border-box;\n display: flex;\n height: 20px;\n justify-content: center;\n padding: 0 ", ";\n\n & > div:not([x-pds-name='ImageView']) {\n height: 20px;\n line-height: 20px;\n }\n"], ["\n align-items: center;\n border: 1px solid ", ";\n ", ";\n box-sizing: border-box;\n display: flex;\n height: 20px;\n justify-content: center;\n padding: 0 ", ";\n\n & > div:not([x-pds-name='ImageView']) {\n height: 20px;\n line-height: 20px;\n }\n"])), function (_a) {
|
|
156
156
|
var theme = _a.theme;
|
|
157
157
|
return theme.ui_cpnt_chip_line_border_01;
|
|
158
158
|
}, function (_a) {
|
|
@@ -162,7 +162,7 @@ var S_LabelChip = styled_components_1.default.div(templateObject_6 || (templateO
|
|
|
162
162
|
var theme = _a.theme;
|
|
163
163
|
return theme.spacing.spacingB;
|
|
164
164
|
});
|
|
165
|
-
var S_TimeChip = styled_components_1.default.div(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n align-items: center;\n background-color: ", ";\n ", ";\n box-sizing: border-box;\n display: flex;\n height: 20px;\n justify-content: center;\n padding: 0 ", ";\n\n & > div {\n height: 20px;\n line-height: 20px;\n }\n"], ["\n align-items: center;\n background-color: ", ";\n ", ";\n box-sizing: border-box;\n display: flex;\n height: 20px;\n justify-content: center;\n padding: 0 ", ";\n\n & > div {\n height: 20px;\n line-height: 20px;\n }\n"])), function (_a) {
|
|
165
|
+
var S_TimeChip = styled_components_1.default.div(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n align-items: center;\n background-color: ", ";\n ", ";\n box-sizing: border-box;\n display: flex;\n height: 20px;\n justify-content: center;\n padding: 0 ", ";\n\n & > div:not([x-pds-name='ImageView']) {\n height: 20px;\n line-height: 20px;\n }\n"], ["\n align-items: center;\n background-color: ", ";\n ", ";\n box-sizing: border-box;\n display: flex;\n height: 20px;\n justify-content: center;\n padding: 0 ", ";\n\n & > div:not([x-pds-name='ImageView']) {\n height: 20px;\n line-height: 20px;\n }\n"])), function (_a) {
|
|
166
166
|
var theme = _a.theme;
|
|
167
167
|
return theme.ui_cpnt_chip_base_playtime;
|
|
168
168
|
}, function (_a) {
|
|
@@ -172,7 +172,7 @@ var S_TimeChip = styled_components_1.default.div(templateObject_7 || (templateOb
|
|
|
172
172
|
var theme = _a.theme;
|
|
173
173
|
return theme.spacing.spacingB;
|
|
174
174
|
});
|
|
175
|
-
var informationBase = (0, styled_components_1.css)(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n align-items: center;\n border: 1px solid transparent;\n box-sizing: border-box;\n display: flex;\n height: 32px;\n justify-content: center;\n padding-left: ", ";\n padding-right: ", ";\n\n & > div {\n height: 32px;\n line-height: 32px;\n }\n"], ["\n align-items: center;\n border: 1px solid transparent;\n box-sizing: border-box;\n display: flex;\n height: 32px;\n justify-content: center;\n padding-left: ", ";\n padding-right: ", ";\n\n & > div {\n height: 32px;\n line-height: 32px;\n }\n"])), function (_a) {
|
|
175
|
+
var informationBase = (0, styled_components_1.css)(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n align-items: center;\n border: 1px solid transparent;\n box-sizing: border-box;\n display: flex;\n height: 32px;\n justify-content: center;\n padding-left: ", ";\n padding-right: ", ";\n\n & > div:not([x-pds-name='ImageView']) {\n height: 32px;\n line-height: 32px;\n }\n"], ["\n align-items: center;\n border: 1px solid transparent;\n box-sizing: border-box;\n display: flex;\n height: 32px;\n justify-content: center;\n padding-left: ", ";\n padding-right: ", ";\n\n & > div:not([x-pds-name='ImageView']) {\n height: 32px;\n line-height: 32px;\n }\n"])), function (_a) {
|
|
176
176
|
var theme = _a.theme;
|
|
177
177
|
return theme.spacing.spacingB;
|
|
178
178
|
}, function (_a) {
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Path } from 'react-hook-form';
|
|
3
|
+
import type { DesktopFontSize, IFormValues } from '../../../common/types';
|
|
4
|
+
type DropdownOption = {
|
|
5
|
+
text: string;
|
|
6
|
+
value: string;
|
|
7
|
+
imageSrc?: string;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
};
|
|
10
|
+
type CommonProps = {
|
|
11
|
+
name: Path<IFormValues>;
|
|
12
|
+
dropdownOptions: DropdownOption[];
|
|
13
|
+
noResultText?: string;
|
|
14
|
+
customWidth?: string;
|
|
15
|
+
customTextSize?: DesktopFontSize;
|
|
16
|
+
customTextColor?: string;
|
|
17
|
+
useImageMode?: 'none' | 'use';
|
|
18
|
+
imageSize?: number;
|
|
19
|
+
imageShape?: 'circular' | 'round' | 'rectangle';
|
|
20
|
+
placeholder?: string;
|
|
21
|
+
size?: 'small' | 'medium' | 'large' | 'rlarge';
|
|
22
|
+
state?: 'normal' | 'read_only' | 'disabled';
|
|
23
|
+
};
|
|
24
|
+
type SingleSelectProps = CommonProps & {
|
|
25
|
+
useMultipleMode?: 'none';
|
|
26
|
+
value: string;
|
|
27
|
+
defaultValue: string;
|
|
28
|
+
onChange: (value: string) => void;
|
|
29
|
+
values?: never;
|
|
30
|
+
onChangeMultiple?: never;
|
|
31
|
+
};
|
|
32
|
+
type MultiSelectProps = CommonProps & {
|
|
33
|
+
useMultipleMode: 'use';
|
|
34
|
+
values: string[];
|
|
35
|
+
onChangeMultiple: (values: string[]) => void;
|
|
36
|
+
value?: never;
|
|
37
|
+
defaultValue?: never;
|
|
38
|
+
onChange?: never;
|
|
39
|
+
};
|
|
40
|
+
type Props = SingleSelectProps | MultiSelectProps;
|
|
41
|
+
declare const ComboBox: ({ name, dropdownOptions, noResultText, customWidth, customTextSize, customTextColor, useImageMode, imageSize, imageShape, useMultipleMode, value, defaultValue, onChange, values, onChangeMultiple, placeholder, size, state }: Props) => JSX.Element;
|
|
42
|
+
export default ComboBox;
|