pds-dev-kit-web 2.1.10 → 2.1.11
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/assets/icons/fill/Audio.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/Audio.js +30 -0
- package/dist/src/common/assets/icons/fill/Calendar.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/Calendar.js +30 -0
- package/dist/src/common/assets/icons/fill/Embed.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/Embed.js +30 -0
- package/dist/src/common/assets/icons/fill/Icon.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/Icon.js +30 -0
- package/dist/src/common/assets/icons/fill/List.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/List.js +30 -0
- package/dist/src/common/assets/icons/fill/PostInquiry.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/PostInquiry.js +30 -0
- package/dist/src/common/assets/icons/fill/ScrollingText.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/ScrollingText.js +30 -0
- package/dist/src/common/assets/icons/fill/SellerPage.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/SellerPage.js +30 -0
- package/dist/src/common/assets/icons/fill/Slider.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/Slider.js +30 -0
- package/dist/src/common/assets/icons/fill/index.d.ts +9 -0
- package/dist/src/common/assets/icons/fill/index.js +18 -0
- package/dist/src/common/assets/icons/line/Audio.d.ts +4 -0
- package/dist/src/common/assets/icons/line/Audio.js +30 -0
- package/dist/src/common/assets/icons/line/Calendar.d.ts +4 -0
- package/dist/src/common/assets/icons/line/Calendar.js +30 -0
- package/dist/src/common/assets/icons/line/Embed.d.ts +4 -0
- package/dist/src/common/assets/icons/line/Embed.js +30 -0
- package/dist/src/common/assets/icons/line/Icon.d.ts +4 -0
- package/dist/src/common/assets/icons/line/Icon.js +30 -0
- package/dist/src/common/assets/icons/line/List.d.ts +4 -0
- package/dist/src/common/assets/icons/line/List.js +30 -0
- package/dist/src/common/assets/icons/line/ScrollingText.d.ts +4 -0
- package/dist/src/common/assets/icons/line/ScrollingText.js +30 -0
- package/dist/src/common/assets/icons/line/Slider.d.ts +4 -0
- package/dist/src/common/assets/icons/line/Slider.js +30 -0
- package/dist/src/common/assets/icons/line/index.d.ts +7 -0
- package/dist/src/common/assets/icons/line/index.js +14 -0
- package/dist/src/common/styles/colorSet/PaletteColor_Dark.json +22 -1
- package/dist/src/common/styles/colorSet/PaletteColor_light.json +22 -1
- package/dist/src/common/styles/colorSet/UIColor.json +22 -2
- package/dist/src/common/styles/colorSet/index.d.ts +503 -441
- package/dist/src/common/styles/colorSet/index.js +5 -5
- package/dist/src/common/styles/colorSet/ui-type.d.ts +20 -0
- package/dist/src/desktop/components/BasicButtonGroup/BasicButtonGroup.js +1 -1
- package/dist/src/desktop/components/SegmentedButtonGroup/SegmentedButtonGroup.js +1 -1
- package/dist/src/desktop/components/TextLabel/TextLabel.js +2 -2
- package/dist/src/mobile/components/BasicButtonGroup/BasicButtonGroup.js +1 -1
- package/dist/src/mobile/components/SegmentedButtonGroup/SegmentedButtonGroup.js +1 -1
- package/package.json +1 -1
- package/release-note.md +28 -10
|
@@ -4,14 +4,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
/* eslint-disable import/order */
|
|
7
|
-
var SemanticColor_json_1 = __importDefault(require("./SemanticColor.json"));
|
|
8
7
|
var PaletteColor_Dark_json_1 = __importDefault(require("./PaletteColor_Dark.json"));
|
|
9
|
-
var
|
|
8
|
+
var SemanticColor_json_1 = __importDefault(require("./SemanticColor.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
|
-
SemanticColor: SemanticColor_json_1.default,
|
|
13
12
|
PaletteColor_Dark: PaletteColor_Dark_json_1.default,
|
|
14
|
-
|
|
15
|
-
UIColor: UIColor_json_1.default
|
|
13
|
+
SemanticColor: SemanticColor_json_1.default,
|
|
14
|
+
UIColor: UIColor_json_1.default,
|
|
15
|
+
PaletteColor_light: PaletteColor_light_json_1.default
|
|
16
16
|
};
|
|
17
17
|
exports.default = colorSet;
|
|
@@ -808,4 +808,24 @@ export interface UITheme {
|
|
|
808
808
|
ui_editor_layout_navigation_panel_section_item_area_normal: string;
|
|
809
809
|
ui_editor_scroll_bar: string;
|
|
810
810
|
ui_editor_scroll_track: string;
|
|
811
|
+
ui_sw_sidebar_base: string;
|
|
812
|
+
ui_sw_sidebar_label_text_normal: string;
|
|
813
|
+
ui_sw_sidebar_item_text_normal: string;
|
|
814
|
+
ui_sw_sidebar_item_text_selected: string;
|
|
815
|
+
ui_sw_sidebar_label_icon_normal_01: string;
|
|
816
|
+
ui_sw_sidebar_item_icon_normal: string;
|
|
817
|
+
ui_sw_sidebar_item_icon_selected: string;
|
|
818
|
+
ui_sw_sidebar_badge_base_01: string;
|
|
819
|
+
ui_sw_sidebar_badge_base_02: string;
|
|
820
|
+
ui_sw_sidebar_badge_text_01: string;
|
|
821
|
+
ui_sw_sidebar_badge_text_02: string;
|
|
822
|
+
ui_sw_sidebar_divider: string;
|
|
823
|
+
ui_sw_sidebar_label_base_normal: string;
|
|
824
|
+
ui_sw_sidebar_label_base_hover: string;
|
|
825
|
+
ui_sw_sidebar_label_base_pressed: string;
|
|
826
|
+
ui_sw_sidebar_item_base_normal: string;
|
|
827
|
+
ui_sw_sidebar_item_base_hover: string;
|
|
828
|
+
ui_sw_sidebar_item_base_pressed: string;
|
|
829
|
+
ui_sw_sidebar_label_icon_normal_02: string;
|
|
830
|
+
ui_104: string;
|
|
811
831
|
}
|
|
@@ -54,7 +54,7 @@ function BasicButtonGroup(_a) {
|
|
|
54
54
|
};
|
|
55
55
|
return ((0, jsx_runtime_1.jsx)(S_BasicButtonGroup, __assign({ "x-pds-name": "BasicButtonGroup", "x-pds-element-type": "component", "x-pds-device-type": "desktop" }, { children: valueArray.map(function (_a, index) {
|
|
56
56
|
var iconName = _a.iconName, _b = _a.iconFillType, iconFillType = _b === void 0 ? 'line' : _b, _c = _a.state, buttonState = _c === void 0 ? 'normal' : _c, onClick = _a.onClick, onMouseDown = _a.onMouseDown, tooltipText = _a.tooltipText, _d = _a.tooltipPosition, tooltipPosition = _d === void 0 ? 'center_bottom' : _d, _e = _a.iconColorTheme, iconColorTheme = _e === void 0 ? 'none' : _e;
|
|
57
|
-
return ((0, jsx_runtime_1.jsxs)(S_BasicButton, __assign({ size: size, onClick: function (e) { return onClick && onClick(e); }, onMouseDown: function (e) { return onMouseDown && onMouseDown(e); }, onPointerEnter: function () { return setHoveredButtonIndex(index); }, onPointerLeave: function () { return setHoveredButtonIndex(null); }, disabled: state === 'disabled' || buttonState === 'disabled' }, { children: [(0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: iconName, size: size === 'small' ? 20 : 24,
|
|
57
|
+
return ((0, jsx_runtime_1.jsxs)(S_BasicButton, __assign({ size: size, onClick: function (e) { return onClick && onClick(e); }, onMouseDown: function (e) { return onMouseDown && onMouseDown(e); }, onPointerEnter: function () { return setHoveredButtonIndex(index); }, onPointerLeave: function () { return setHoveredButtonIndex(null); }, disabled: state === 'disabled' || buttonState === 'disabled' }, { children: [(0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: iconName, size: size === 'small' ? 20 : 24, fillType: iconFillType, colorKey: getColorKey(buttonState, iconColorTheme) }, void 0), tooltipText && ((0, jsx_runtime_1.jsx)(S_TooltipWrapper, __assign({ className: "TooltipWrapper", isTooltipOpen: hoveredButtonIndex === index, tooltipPosition: tooltipPosition, size: size }, { children: (0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: tooltipText, colorOverride: "ui_cpnt_textlabel_button_tooltip", styleTheme: "caption2Regular", colorTheme: "sysTextSecondary" }, void 0) }), void 0))] }), iconName + index));
|
|
58
58
|
}) }), void 0));
|
|
59
59
|
}
|
|
60
60
|
var S_BasicButtonGroup = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n width: max-content;\n\n & > button:not(:last-child) {\n margin-right: ", ";\n }\n"], ["\n align-items: center;\n display: flex;\n width: max-content;\n\n & > button:not(:last-child) {\n margin-right: ", ";\n }\n"])), function (_a) {
|
|
@@ -73,7 +73,7 @@ function SegmentedButtonGroup(_a) {
|
|
|
73
73
|
};
|
|
74
74
|
return ((0, jsx_runtime_1.jsx)(S_SegmentedButtonGroupGroups, __assign({ "x-pds-name": "SegmentedButtonGroup", "x-pds-element-type": "component", "x-pds-device-type": "desktop", selectionType: selectionType }, { children: valueArray.map(function (_a, index) {
|
|
75
75
|
var currentButtonValue = _a.value, iconName = _a.iconName, _b = _a.iconFillType, iconFillType = _b === void 0 ? 'line' : _b, _c = _a.state, buttonState = _c === void 0 ? 'normal' : _c, tooltipText = _a.tooltipText, _d = _a.tooltipPosition, tooltipPosition = _d === void 0 ? 'center_bottom' : _d, _e = _a.iconColorTheme, iconColorTheme = _e === void 0 ? 'none' : _e;
|
|
76
|
-
return ((0, jsx_runtime_1.jsxs)(S_BasicButton, __assign({ size: size, onClick: function () { return handleClick(currentButtonValue); }, onMouseDown: function () { return handleMouseDown(currentButtonValue); }, disabled: state === 'disabled' || buttonState === 'disabled', selectionType: selectionType, isSelected: checkSelection(currentButtonValue), onPointerEnter: function () { return setCurrentButtonIndex(index); }, onPointerLeave: function () { return setCurrentButtonIndex(null); } }, { children: [(0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: iconName, size: size === 'small' ? 20 : 24,
|
|
76
|
+
return ((0, jsx_runtime_1.jsxs)(S_BasicButton, __assign({ size: size, onClick: function () { return handleClick(currentButtonValue); }, onMouseDown: function () { return handleMouseDown(currentButtonValue); }, disabled: state === 'disabled' || buttonState === 'disabled', selectionType: selectionType, isSelected: checkSelection(currentButtonValue), onPointerEnter: function () { return setCurrentButtonIndex(index); }, onPointerLeave: function () { return setCurrentButtonIndex(null); } }, { children: [(0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: iconName, size: size === 'small' ? 20 : 24, fillType: iconFillType, colorKey: getIconColorKey(checkSelection(currentButtonValue), state === 'disabled' || buttonState === 'disabled', iconColorTheme) }, void 0), tooltipText && ((0, jsx_runtime_1.jsx)(S_TooltipWrapper, __assign({ className: "TooltipWrapper", isTooltipOpen: index === currentButtonIndex, tooltipPosition: tooltipPosition, size: size }, { children: (0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: tooltipText, colorOverride: "ui_cpnt_textlabel_button_tooltip", styleTheme: "caption2Regular", colorTheme: "sysTextSecondary" }, void 0) }), void 0))] }), String(currentButtonValue)));
|
|
77
77
|
}) }), void 0));
|
|
78
78
|
}
|
|
79
79
|
var S_SegmentedButtonGroupGroups = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: max-content;\n\n & > button:not(:last-child) {\n margin-right: ", ";\n }\n"], ["\n width: max-content;\n\n & > button:not(:last-child) {\n margin-right: ", ";\n }\n"])), function (_a) {
|
|
@@ -417,7 +417,7 @@ var S_AfterTextBox = styled_components_1.default.div(templateObject_43 || (templ
|
|
|
417
417
|
}
|
|
418
418
|
});
|
|
419
419
|
var S_IconWrapper = styled_components_1.default.div(templateObject_44 || (templateObject_44 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n height: 16px;\n height: 100%;\n justify-content: center;\n width: 16px;\n"], ["\n align-items: center;\n display: flex;\n height: 16px;\n height: 100%;\n justify-content: center;\n width: 16px;\n"])));
|
|
420
|
-
var S_TooltipWrapper = styled_components_1.default.div(templateObject_45 || (templateObject_45 = __makeTemplateObject(["\n align-items: center;\n background-color: ", ";\n border-radius: ", ";\n box-sizing: border-box;\n color: ", ";\n display: flex;\n justify-content: center;\n max-width:
|
|
420
|
+
var S_TooltipWrapper = styled_components_1.default.div(templateObject_45 || (templateObject_45 = __makeTemplateObject(["\n ", "\n align-items: center;\n background-color: ", ";\n border-radius: ", ";\n box-sizing: border-box;\n color: ", ";\n display: flex;\n justify-content: center;\n line-height: 1.2;\n max-width: 240px;\n overflow-wrap: break-word;\n padding: ", ";\n position: absolute;\n text-align: left;\n white-space: pre-wrap;\n width: max-content;\n word-break: keep-all;\n z-index: 400;\n\n ", ";\n\n ", ";\n"], ["\n ", "\n align-items: center;\n background-color: ", ";\n border-radius: ", ";\n box-sizing: border-box;\n color: ", ";\n display: flex;\n justify-content: center;\n line-height: 1.2;\n max-width: 240px;\n overflow-wrap: break-word;\n padding: ", ";\n position: absolute;\n text-align: left;\n white-space: pre-wrap;\n width: max-content;\n word-break: keep-all;\n z-index: 400;\n\n ", ";\n\n ", ";\n"])), caption2Regular, function (_a) {
|
|
421
421
|
var theme = _a.theme;
|
|
422
422
|
return theme.ui_cpnt_button_tooltip_base;
|
|
423
423
|
}, function (_a) {
|
|
@@ -429,7 +429,7 @@ var S_TooltipWrapper = styled_components_1.default.div(templateObject_45 || (tem
|
|
|
429
429
|
}, function (_a) {
|
|
430
430
|
var theme = _a.theme;
|
|
431
431
|
return theme.spacing.spacingA + " " + theme.spacing.spacingB;
|
|
432
|
-
},
|
|
432
|
+
}, function (_a) {
|
|
433
433
|
var isTooltipOpen = _a.isTooltipOpen;
|
|
434
434
|
return !isTooltipOpen && 'display: none';
|
|
435
435
|
}, function (_a) {
|
|
@@ -50,7 +50,7 @@ function BasicButtonGroup(_a) {
|
|
|
50
50
|
};
|
|
51
51
|
return ((0, jsx_runtime_1.jsx)(S_BasicButtonGroup, __assign({ "x-pds-name": "BasicButtonGroup", "x-pds-element-type": "component", "x-pds-device-type": "mobile" }, { children: valueArray.map(function (_a, index) {
|
|
52
52
|
var iconName = _a.iconName, _b = _a.iconFillType, iconFillType = _b === void 0 ? 'line' : _b, _c = _a.state, buttonState = _c === void 0 ? 'normal' : _c, _d = _a.iconColorTheme, iconColorTheme = _d === void 0 ? 'none' : _d, onClick = _a.onClick, onMouseDown = _a.onMouseDown;
|
|
53
|
-
return ((0, jsx_runtime_1.jsx)(S_BasicButton, __assign({ size: size, onClick: function (e) { return onClick && onClick(e); }, onMouseDown: function (e) { return onMouseDown && onMouseDown(e); }, disabled: state === 'disabled' || buttonState === 'disabled' }, { children: (0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: iconName, size: size === 'small' ? 20 : 24,
|
|
53
|
+
return ((0, jsx_runtime_1.jsx)(S_BasicButton, __assign({ size: size, onClick: function (e) { return onClick && onClick(e); }, onMouseDown: function (e) { return onMouseDown && onMouseDown(e); }, disabled: state === 'disabled' || buttonState === 'disabled' }, { children: (0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: iconName, size: size === 'small' ? 20 : 24, fillType: iconFillType, colorKey: getColorKey(buttonState, iconColorTheme) }, void 0) }), iconName + index));
|
|
54
54
|
}) }), void 0));
|
|
55
55
|
}
|
|
56
56
|
var S_BasicButtonGroup = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: max-content;\n\n & > button:not(:last-child) {\n margin-right: ", ";\n }\n"], ["\n width: max-content;\n\n & > button:not(:last-child) {\n margin-right: ", ";\n }\n"])), function (_a) {
|
|
@@ -69,7 +69,7 @@ function SegmentedButtonGroup(_a) {
|
|
|
69
69
|
};
|
|
70
70
|
return ((0, jsx_runtime_1.jsx)(S_SegmentedButtonGroupGroups, __assign({ "x-pds-name": "SegmentedButtonGroup", "x-pds-element-type": "component", "x-pds-device-type": "mobile", selectionType: selectionType }, { children: valueArray.map(function (_a) {
|
|
71
71
|
var currentButtonValue = _a.value, iconName = _a.iconName, _b = _a.iconFillType, iconFillType = _b === void 0 ? 'line' : _b, _c = _a.iconColorTheme, iconColorTheme = _c === void 0 ? 'none' : _c, _d = _a.state, buttonState = _d === void 0 ? 'normal' : _d;
|
|
72
|
-
return ((0, jsx_runtime_1.jsx)(S_BasicButton, __assign({ size: size, onClick: function () { return handleClick(currentButtonValue); }, onMouseDown: function () { return handleMouseDown(currentButtonValue); }, disabled: state === 'disabled' || buttonState === 'disabled', selectionType: selectionType, isSelected: checkSelection(currentButtonValue) }, { children: (0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: iconName, size: size === 'small' ? 20 : 24,
|
|
72
|
+
return ((0, jsx_runtime_1.jsx)(S_BasicButton, __assign({ size: size, onClick: function () { return handleClick(currentButtonValue); }, onMouseDown: function () { return handleMouseDown(currentButtonValue); }, disabled: state === 'disabled' || buttonState === 'disabled', selectionType: selectionType, isSelected: checkSelection(currentButtonValue) }, { children: (0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: iconName, size: size === 'small' ? 20 : 24, fillType: iconFillType, colorKey: getIconColorKey(checkSelection(currentButtonValue), state === 'disabled' || buttonState === 'disabled', iconColorTheme) }, void 0) }), String(currentButtonValue)));
|
|
73
73
|
}) }), void 0));
|
|
74
74
|
}
|
|
75
75
|
var S_SegmentedButtonGroupGroups = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: max-content;\n\n & > button:not(:last-child) {\n margin-right: ", ";\n }\n"], ["\n width: max-content;\n\n & > button:not(:last-child) {\n margin-right: ", ";\n }\n"])), function (_a) {
|
package/package.json
CHANGED
package/release-note.md
CHANGED
|
@@ -3,14 +3,32 @@
|
|
|
3
3
|
## daily|https://design.storybook.publ.biz/
|
|
4
4
|
|
|
5
5
|
### Components
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
*
|
|
6
|
+
* BasicButtonGroup
|
|
7
|
+
* iconFillType이 제대로 작동하도록 수정
|
|
8
|
+
* SegmentedButtonGroup
|
|
9
|
+
* iconFillType이 제대로 작동하도록 수정
|
|
10
|
+
* Icon
|
|
11
|
+
* ic_audio
|
|
12
|
+
* fill, line 추가
|
|
13
|
+
* ic_calendar
|
|
14
|
+
* fill, line 추가
|
|
15
|
+
* ic_embed
|
|
16
|
+
* fill, line 추가
|
|
17
|
+
* ic_icon
|
|
18
|
+
* fill, line 추가
|
|
19
|
+
* ic_list
|
|
20
|
+
* fill, line 추가
|
|
21
|
+
* ic_post_inquiry
|
|
22
|
+
* fill 추가
|
|
23
|
+
* ic_scrolling_text
|
|
24
|
+
* fill, line 추가
|
|
25
|
+
* ic_seller_page
|
|
26
|
+
* fill 추가
|
|
27
|
+
* ic_slider
|
|
28
|
+
* fill, line 추가
|
|
29
|
+
* TextLabel
|
|
30
|
+
* 툴팁 텍스트의 행간을 1.2로 수정
|
|
31
|
+
* 툴팁 최대 너비를 320px -> 240px로 수정
|
|
32
|
+
|
|
15
33
|
### Color
|
|
16
|
-
|
|
34
|
+
* 컬러 키 값 23.07.29 15시 46분 기준 싱크
|