pds-dev-kit-web 2.2.312 → 2.2.314
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/_wildcard.machine.publr.co+2-key.pem +28 -0
- package/_wildcard.machine.publr.co+2.pem +26 -0
- package/dist/index.d.ts +4 -4
- package/dist/index.js +5 -3
- package/dist/src/common/decorators/withFormProvider.js +8 -5
- 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/package.json +1 -1
- package/release-note.md +3 -2
|
@@ -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, onClickChip = _a.onClickChip, onClickXMarkIcon = _a.onClickXMarkIcon, activeChipId = _a.activeChipId, chipId = _a.chipId;
|
|
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, onClickChip = _a.onClickChip, onClickXMarkIcon = _a.onClickXMarkIcon, _f = _a.imageMode, imageMode = _f === void 0 ? 'none' : _f, imageSrc = _a.imageSrc, activeChipId = _a.activeChipId, chipId = _a.chipId;
|
|
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": "mobile" }, { 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 box-sizing: border-box;\n display: flex;\n height: 40px;\n justify-content: center;\n padding-left: ", ";\n padding-right: ", ";\n ", ";\n\n & > div {\n height: 40px;\n line-height: 40px;\n }\n\n ", ";\n"], ["\n align-items: center;\n background-color: ", ";\n box-sizing: border-box;\n display: flex;\n height: 40px;\n justify-content: center;\n padding-left: ", ";\n padding-right: ", ";\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 box-sizing: border-box;\n display: flex;\n height: 40px;\n justify-content: center;\n padding-left: ", ";\n padding-right: ", ";\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 box-sizing: border-box;\n display: flex;\n height: 40px;\n justify-content: center;\n padding-left: ", ";\n padding-right: ", ";\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) {
|
|
@@ -107,7 +107,7 @@ var S_CategoryChoiceChip = styled_components_1.default.div(templateObject_1 || (
|
|
|
107
107
|
var theme = _a.theme, isActive = _a.isActive;
|
|
108
108
|
return isActive ? '' : "border: 1px solid ".concat(theme.ui_cpnt_chip_line_border_01);
|
|
109
109
|
});
|
|
110
|
-
var S_InfoChip = styled_components_1.default.span(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n align-items: center;\n background-color: ", ";\n ", ";\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\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) {
|
|
110
|
+
var S_InfoChip = styled_components_1.default.span(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n align-items: center;\n background-color: ", ";\n ", ";\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\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) {
|
|
111
111
|
var theme = _a.theme, overrideBackgroundColorKey = _a.overrideBackgroundColorKey;
|
|
112
112
|
return overrideBackgroundColorKey
|
|
113
113
|
? theme[overrideBackgroundColorKey]
|
|
@@ -122,7 +122,7 @@ var S_InfoChip = styled_components_1.default.span(templateObject_2 || (templateO
|
|
|
122
122
|
var theme = _a.theme;
|
|
123
123
|
return theme.spacing.spacingC;
|
|
124
124
|
});
|
|
125
|
-
var S_RemovableChip = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n align-items: center;\n background-color: ", ";\n ", ";\n\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 background-color: ", ";\n ", ";\n\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) {
|
|
125
|
+
var S_RemovableChip = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n align-items: center;\n background-color: ", ";\n ", ";\n\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 background-color: ", ";\n ", ";\n\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) {
|
|
126
126
|
var theme = _a.theme;
|
|
127
127
|
return theme.ui_cpnt_chip_fill_base_inactive;
|
|
128
128
|
}, function (_a) {
|
|
@@ -136,7 +136,7 @@ var S_RemovableChip = styled_components_1.default.div(templateObject_3 || (templ
|
|
|
136
136
|
return theme.spacing.spacingC;
|
|
137
137
|
});
|
|
138
138
|
var S_XIconWrapper = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n justify-content: center;\n"], ["\n align-items: center;\n display: flex;\n justify-content: center;\n"])));
|
|
139
|
-
var S_FilterSingleChip = styled_components_1.default.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n align-items: center;\n background-color: ", ";\n ", ";\n\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 background-color: ", ";\n ", ";\n\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) {
|
|
139
|
+
var S_FilterSingleChip = styled_components_1.default.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n align-items: center;\n background-color: ", ";\n ", ";\n\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 background-color: ", ";\n ", ";\n\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) {
|
|
140
140
|
var theme = _a.theme, isActive = _a.isActive;
|
|
141
141
|
return isActive ? theme.ui_cpnt_chip_fill_base_active_01 : theme.ui_cpnt_chip_fill_base_inactive;
|
|
142
142
|
}, function (_a) {
|
|
@@ -149,7 +149,7 @@ var S_FilterSingleChip = styled_components_1.default.div(templateObject_5 || (te
|
|
|
149
149
|
var theme = _a.theme;
|
|
150
150
|
return theme.spacing.spacingC;
|
|
151
151
|
});
|
|
152
|
-
var S_LabelChip = styled_components_1.default.div(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n align-items: center;\n border: 1px solid ", ";\n ", ";\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\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) {
|
|
152
|
+
var S_LabelChip = styled_components_1.default.div(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n align-items: center;\n border: 1px solid ", ";\n ", ";\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\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) {
|
|
153
153
|
var theme = _a.theme;
|
|
154
154
|
return theme.ui_cpnt_chip_line_border_01;
|
|
155
155
|
}, function (_a) {
|
|
@@ -159,7 +159,7 @@ var S_LabelChip = styled_components_1.default.div(templateObject_6 || (templateO
|
|
|
159
159
|
var theme = _a.theme;
|
|
160
160
|
return theme.spacing.spacingB;
|
|
161
161
|
});
|
|
162
|
-
var S_TimeChip = styled_components_1.default.div(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n align-items: center;\n background-color: ", ";\n ", ";\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\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) {
|
|
162
|
+
var S_TimeChip = styled_components_1.default.div(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n align-items: center;\n background-color: ", ";\n ", ";\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\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) {
|
|
163
163
|
var theme = _a.theme;
|
|
164
164
|
return theme.ui_cpnt_chip_base_playtime;
|
|
165
165
|
}, function (_a) {
|
|
@@ -169,7 +169,7 @@ var S_TimeChip = styled_components_1.default.div(templateObject_7 || (templateOb
|
|
|
169
169
|
var theme = _a.theme;
|
|
170
170
|
return theme.spacing.spacingB;
|
|
171
171
|
});
|
|
172
|
-
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) {
|
|
172
|
+
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) {
|
|
173
173
|
var theme = _a.theme;
|
|
174
174
|
return theme.spacing.spacingB;
|
|
175
175
|
}, 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;
|