pds-dev-kit-web-test 0.0.6 → 0.0.7
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/README.md +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.js +7 -3
- package/dist/src/GlobalStyle.js +1 -1
- package/dist/src/common/assets/icons/line/Ghost.d.ts +4 -0
- package/dist/src/common/assets/icons/line/Ghost.js +36 -0
- package/dist/src/common/assets/icons/line/PaymentFreeTrial.d.ts +4 -0
- package/dist/src/common/assets/icons/line/PaymentFreeTrial.js +34 -0
- package/dist/src/common/assets/icons/line/PaymentOnetime.js +1 -1
- package/dist/src/common/assets/icons/line/PaymentRegularly.js +2 -1
- package/dist/src/common/assets/icons/line/PostColumn.d.ts +4 -0
- package/dist/src/common/assets/icons/line/PostColumn.js +34 -0
- package/dist/src/common/assets/icons/line/index.d.ts +3 -0
- package/dist/src/common/assets/icons/line/index.js +6 -0
- package/dist/src/common/components/BoxLayout/Row.js +1 -1
- package/dist/src/common/components/Navigations/ContextTextLabelNav.d.ts +3 -2
- package/dist/src/common/components/Navigations/ContextTextLabelNav.js +10 -5
- package/dist/src/common/hooks/useDetectOverflow.js +1 -1
- package/dist/src/common/styles/colorSet/PaletteColor_Dark.json +3 -1
- package/dist/src/common/styles/colorSet/PaletteColor_light.json +3 -1
- package/dist/src/common/styles/colorSet/UIColor.json +5 -1
- package/dist/src/common/styles/colorSet/index.d.ts +8 -0
- package/dist/src/common/styles/colorSet/ui-type.d.ts +4 -0
- package/dist/src/desktop/components/AdminList/AdminList.d.ts +4 -1
- package/dist/src/desktop/components/AdminList/AdminList.js +2 -2
- package/dist/src/desktop/components/AdminList/BulkActionBar.d.ts +4 -1
- package/dist/src/desktop/components/AdminList/BulkActionBar.js +4 -4
- package/dist/src/desktop/components/AdminListHeader/HeaderBar.js +1 -1
- package/dist/src/desktop/components/BasicChatListItem/BasicChatListItem.d.ts +15 -0
- package/dist/src/desktop/components/BasicChatListItem/BasicChatListItem.js +121 -0
- package/dist/src/desktop/components/BasicChatListItem/Popup.d.ts +19 -0
- package/dist/src/desktop/components/BasicChatListItem/Popup.js +238 -0
- package/dist/src/desktop/components/BasicChatListItem/index.d.ts +1 -0
- package/dist/src/desktop/components/BasicChatListItem/index.js +8 -0
- package/dist/src/desktop/components/BodyTextGroup/BodyTextGroup.d.ts +4 -1
- package/dist/src/desktop/components/BodyTextGroup/BodyTextGroup.js +4 -4
- package/dist/src/desktop/components/ChatList/Body.d.ts +7 -0
- package/dist/src/desktop/components/ChatList/Body.js +89 -0
- package/dist/src/desktop/components/ChatList/ChatList.d.ts +24 -0
- package/dist/src/desktop/components/ChatList/ChatList.js +93 -0
- package/dist/src/desktop/components/ChatList/ChatTextField.d.ts +7 -0
- package/dist/src/desktop/components/ChatList/ChatTextField.js +41 -0
- package/dist/src/desktop/components/ChatList/Footer.d.ts +7 -0
- package/dist/src/desktop/components/ChatList/Footer.js +27 -0
- package/dist/src/desktop/components/ChatList/Header.d.ts +5 -0
- package/dist/src/desktop/components/ChatList/Header.js +50 -0
- package/dist/src/desktop/components/ChatList/index.d.ts +1 -0
- package/dist/src/desktop/components/ChatList/index.js +8 -0
- package/dist/src/desktop/components/ChatList/useAutoScrollToBottom.d.ts +10 -0
- package/dist/src/desktop/components/ChatList/useAutoScrollToBottom.js +48 -0
- package/dist/src/desktop/components/Chip/Chip.js +14 -14
- package/dist/src/desktop/components/ContextMenu/ContextMenu.d.ts +2 -1
- package/dist/src/desktop/components/ContextMenu/ContextMenu.js +14 -5
- package/dist/src/desktop/components/ContextMenuItem/ContextMenuItem.js +4 -4
- package/dist/src/desktop/components/Dropdown/Dropdown.d.ts +2 -2
- package/dist/src/desktop/components/Dropdown/Dropdown.js +30 -13
- package/dist/src/desktop/components/DynamicDesktopNavBar/blocks/PrimaryMenu.js +1 -1
- package/dist/src/desktop/components/DynamicDesktopNavBar/blocks/SecondaryMenu.js +1 -1
- package/dist/src/desktop/components/DynamicDesktopNavBar/components/ContextMenuNavs/ContextMenuItemNav.js +4 -38
- package/dist/src/desktop/components/DynamicDesktopNavBar/components/IconNav.d.ts +2 -1
- package/dist/src/desktop/components/DynamicDesktopNavBar/components/IconNav.js +2 -2
- package/dist/src/desktop/components/DynamicDesktopNavBar/components/ImageIconNav.d.ts +2 -1
- package/dist/src/desktop/components/DynamicDesktopNavBar/components/ImageIconNav.js +2 -2
- package/dist/src/desktop/components/DynamicDesktopNavBar/components/MenuItemNav/MenuItemNav.d.ts +1 -2
- package/dist/src/desktop/components/DynamicDesktopNavBar/components/MenuItemNav/MenuItemNav.js +2 -2
- package/dist/src/desktop/components/DynamicDesktopNavBar/components/MenuItemNav/components/InternalLinkMenuItemNav.d.ts +1 -2
- package/dist/src/desktop/components/DynamicDesktopNavBar/components/MenuItemNav/components/InternalLinkMenuItemNav.js +4 -4
- package/dist/src/desktop/components/DynamicDesktopNavBar/components/MenuItemNav/components/PAppMenuItemNav.d.ts +1 -2
- package/dist/src/desktop/components/DynamicDesktopNavBar/components/MenuItemNav/components/PAppMenuItemNav.js +1 -1
- package/dist/src/desktop/components/EditApplyTextField/EditApplyTextField.d.ts +2 -1
- package/dist/src/desktop/components/EditApplyTextField/EditApplyTextField.js +12 -11
- package/dist/src/desktop/components/MainButton/MainButton.js +5 -5
- package/dist/src/desktop/components/Select/Select.d.ts +3 -2
- package/dist/src/desktop/components/Select/Select.js +11 -5
- package/dist/src/desktop/components/StatusBlock/StatusBlock.js +11 -5
- package/dist/src/desktop/components/TextButton/TextButton.js +5 -5
- package/dist/src/desktop/components/TextField/TextField.d.ts +2 -1
- package/dist/src/desktop/components/TextField/TextField.js +11 -5
- package/dist/src/desktop/components/UploadMainButton/UploadMainButton.js +7 -7
- package/dist/src/desktop/components/UploadTextButton/UploadTextButton.js +5 -5
- package/dist/src/desktop/components/index.d.ts +3 -1
- package/dist/src/desktop/components/index.js +5 -1
- package/dist/src/desktop/index.d.ts +2 -2
- package/dist/src/desktop/index.js +4 -2
- package/dist/src/desktop/layout/LayoutWF/Containers/ContentsContainer/ContentsContainer.d.ts +1 -1
- package/dist/src/desktop/layout/LayoutWF/Containers/ContentsContainer/ContentsContainer.js +2 -1
- package/dist/src/desktop/layout/LayoutWF/Containers/ContentsContainer/variation/WFE.d.ts +2 -1
- package/dist/src/desktop/layout/LayoutWF/Containers/ContentsContainer/variation/WFE.js +41 -11
- package/dist/src/desktop/layout/LayoutWF/ContainersBox/ContainersBox.d.ts +1 -1
- package/dist/src/desktop/layout/LayoutWF/ContainersBox/ContainersBox.js +2 -0
- package/dist/src/desktop/layout/LayoutWS/Containers/ContentsContainer/ContentsContainer.d.ts +1 -1
- package/dist/src/desktop/layout/LayoutWS/Containers/ContentsContainer/ContentsContainer.js +2 -1
- package/dist/src/desktop/layout/LayoutWS/Containers/ContentsContainer/variation/WSG.d.ts +1 -1
- package/dist/src/desktop/layout/LayoutWS/Containers/ContentsContainer/variation/WSG.js +16 -10
- package/dist/src/desktop/layout/LayoutWS/ContainersBox/ContainersBox.d.ts +1 -1
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/ContentsContainer.d.ts +1 -1
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/ContentsContainer.js +5 -3
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTO.d.ts +3 -2
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTO.js +8 -10
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTP.d.ts +3 -2
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTP.js +8 -10
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTQ.js +5 -5
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTT.d.ts +11 -0
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTT.js +65 -0
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/index.d.ts +1 -0
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/index.js +3 -1
- package/dist/src/desktop/layout/LayoutWT/Containers/SubMenuContainer/variation/LeftSubMenu.js +1 -1
- package/dist/src/desktop/layout/LayoutWT/ContainersBox/ContainersBox.d.ts +1 -1
- package/dist/src/desktop/layout/LayoutWT/ContainersBox/ContainersBox.js +16 -11
- package/dist/src/hybrid/components/Divider/Divider.js +4 -1
- package/dist/src/hybrid/components/Spacing/Spacing.js +1 -1
- package/dist/src/mobile/components/BasicChatListItem/BasicChatListItem.d.ts +15 -0
- package/dist/src/mobile/components/BasicChatListItem/BasicChatListItem.js +121 -0
- package/dist/src/mobile/components/BasicChatListItem/Popup.d.ts +19 -0
- package/dist/src/mobile/components/BasicChatListItem/Popup.js +238 -0
- package/dist/src/mobile/components/BasicChatListItem/index.d.ts +1 -0
- package/dist/src/mobile/components/BasicChatListItem/index.js +8 -0
- package/dist/src/mobile/components/BodyTextGroup/BodyTextGroup.d.ts +4 -1
- package/dist/src/mobile/components/BodyTextGroup/BodyTextGroup.js +4 -4
- package/dist/src/mobile/components/ChatList/Body.d.ts +7 -0
- package/dist/src/mobile/components/ChatList/Body.js +94 -0
- package/dist/src/mobile/components/ChatList/ChatList.d.ts +24 -0
- package/dist/src/mobile/components/ChatList/ChatList.js +93 -0
- package/dist/src/mobile/components/ChatList/ChatTextField.d.ts +7 -0
- package/dist/src/mobile/components/ChatList/ChatTextField.js +41 -0
- package/dist/src/mobile/components/ChatList/Footer.d.ts +7 -0
- package/dist/src/mobile/components/ChatList/Footer.js +27 -0
- package/dist/src/mobile/components/ChatList/Header.d.ts +5 -0
- package/dist/src/mobile/components/ChatList/Header.js +50 -0
- package/dist/src/mobile/components/ChatList/index.d.ts +1 -0
- package/dist/src/mobile/components/ChatList/index.js +8 -0
- package/dist/src/mobile/components/ChatList/useAutoScrollToBottom.d.ts +10 -0
- package/dist/src/mobile/components/ChatList/useAutoScrollToBottom.js +48 -0
- package/dist/src/mobile/components/ChatList/useTimeout.d.ts +6 -0
- package/dist/src/mobile/components/ChatList/useTimeout.js +11 -0
- package/dist/src/mobile/components/Chip/Chip.js +14 -14
- package/dist/src/mobile/components/ContextMenu/ContextMenu.d.ts +2 -1
- package/dist/src/mobile/components/ContextMenu/ContextMenu.js +14 -5
- package/dist/src/mobile/components/ContextMenuItem/ContextMenuItem.js +4 -4
- package/dist/src/mobile/components/Dropdown/Dropdown.d.ts +2 -2
- package/dist/src/mobile/components/Dropdown/Dropdown.js +30 -13
- package/dist/src/mobile/components/MainButton/MainButton.js +5 -5
- package/dist/src/mobile/components/Select/Select.d.ts +3 -2
- package/dist/src/mobile/components/Select/Select.js +11 -5
- package/dist/src/mobile/components/StatusBlock/StatusBlock.js +4 -4
- package/dist/src/mobile/components/TextButton/TextButton.js +4 -4
- package/dist/src/mobile/components/TextField/TextField.d.ts +2 -1
- package/dist/src/mobile/components/TextField/TextField.js +11 -5
- package/dist/src/mobile/components/UploadMainButton/UploadMainButton.js +7 -7
- package/dist/src/mobile/components/UploadTextButton/UploadTextButton.js +5 -5
- package/dist/src/mobile/components/index.d.ts +3 -1
- package/dist/src/mobile/components/index.js +5 -1
- package/dist/src/mobile/index.d.ts +2 -2
- package/dist/src/mobile/index.js +3 -1
- package/package.json +1 -1
- package/release-note.md +3 -2
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
+
return cooked;
|
|
5
|
+
};
|
|
6
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
7
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
8
|
+
};
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
var react_1 = __importDefault(require("react"));
|
|
11
|
+
var styled_components_1 = __importDefault(require("styled-components"));
|
|
12
|
+
var hybrid_1 = require("../../../hybrid");
|
|
13
|
+
var IconButton_1 = require("../IconButton");
|
|
14
|
+
var TextLabel_1 = require("../TextLabel");
|
|
15
|
+
var titleTextColors = {
|
|
16
|
+
solid: 'sysTextPrimary',
|
|
17
|
+
translucent: 'sysTextWhite',
|
|
18
|
+
transparent: 'sysTextWhite'
|
|
19
|
+
};
|
|
20
|
+
var iconColors = {
|
|
21
|
+
solid: 'ui_cpnt_button_icon_enabled',
|
|
22
|
+
translucent: 'ui_cpnt_button_icon_white',
|
|
23
|
+
transparent: 'ui_cpnt_button_icon_white'
|
|
24
|
+
};
|
|
25
|
+
function Header(_a) {
|
|
26
|
+
var styleTheme = _a.styleTheme, titleText = _a.titleText, captionText = _a.captionText, headerDisplayType = _a.headerDisplayType, headerIBtn1IconName = _a.headerIBtn1IconName, headerIBtn1IconFillType = _a.headerIBtn1IconFillType, onClickHeaderIBtn1 = _a.onClickHeaderIBtn1;
|
|
27
|
+
return (react_1.default.createElement(S_HeaderContentWrapper, null,
|
|
28
|
+
react_1.default.createElement(S_HeaderLeftBox, null,
|
|
29
|
+
titleText && (react_1.default.createElement(TextLabel_1.TextLabel, { text: titleText, styleTheme: "body1Bold", colorTheme: titleTextColors[styleTheme] })),
|
|
30
|
+
captionText && (react_1.default.createElement(react_1.default.Fragment, null,
|
|
31
|
+
react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_a" }),
|
|
32
|
+
react_1.default.createElement(TextLabel_1.TextLabel, { text: captionText, styleTheme: "caption1Regular", colorTheme: "sysTextSecondary", colorOverride: styleTheme === 'translucent' ? 'ui_cpnt_list_text_caption_02' : undefined })))),
|
|
33
|
+
headerDisplayType === 'ibtn1' && headerIBtn1IconName && (react_1.default.createElement(IconButton_1.IconButton, { iconName: headerIBtn1IconName, baseSize: "large", baseColorKey: "ui_cpnt_button_fill_base_transparent", iconColorKey: iconColors[styleTheme], iconSize: 24, iconFillType: headerIBtn1IconFillType, onClick: onClickHeaderIBtn1 }))));
|
|
34
|
+
}
|
|
35
|
+
var S_HeaderContentWrapper = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n padding-bottom: ", ";\n padding-left: ", ";\n padding-right: ", ";\n padding-top: ", ";\n"], ["\n align-items: center;\n display: flex;\n padding-bottom: ", ";\n padding-left: ", ";\n padding-right: ", ";\n padding-top: ", ";\n"])), function (_a) {
|
|
36
|
+
var theme = _a.theme;
|
|
37
|
+
return theme.spacing.spacingD;
|
|
38
|
+
}, function (_a) {
|
|
39
|
+
var theme = _a.theme;
|
|
40
|
+
return theme.spacing.spacingE;
|
|
41
|
+
}, function (_a) {
|
|
42
|
+
var theme = _a.theme;
|
|
43
|
+
return theme.spacing.spacingC;
|
|
44
|
+
}, function (_a) {
|
|
45
|
+
var theme = _a.theme;
|
|
46
|
+
return theme.spacing.spacingD;
|
|
47
|
+
});
|
|
48
|
+
var S_HeaderLeftBox = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n flex: 1;\n"], ["\n flex: 1;\n"])));
|
|
49
|
+
exports.default = Header;
|
|
50
|
+
var templateObject_1, templateObject_2;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as ChatList } from './ChatList';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.ChatList = void 0;
|
|
7
|
+
var ChatList_1 = require("./ChatList");
|
|
8
|
+
Object.defineProperty(exports, "ChatList", { enumerable: true, get: function () { return __importDefault(ChatList_1).default; } });
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare type Props = {
|
|
3
|
+
behavior?: 'auto' | 'smooth';
|
|
4
|
+
heightOfEndOfList?: number;
|
|
5
|
+
};
|
|
6
|
+
declare function useAutoScrollToBottom({ behavior, heightOfEndOfList }?: Props): {
|
|
7
|
+
triggerScrollToBottom: () => void;
|
|
8
|
+
EndOfList: () => JSX.Element;
|
|
9
|
+
};
|
|
10
|
+
export default useAutoScrollToBottom;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
10
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
11
|
+
}) : function(o, v) {
|
|
12
|
+
o["default"] = v;
|
|
13
|
+
});
|
|
14
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
15
|
+
if (mod && mod.__esModule) return mod;
|
|
16
|
+
var result = {};
|
|
17
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
18
|
+
__setModuleDefault(result, mod);
|
|
19
|
+
return result;
|
|
20
|
+
};
|
|
21
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
+
var react_1 = __importStar(require("react"));
|
|
23
|
+
function useAutoScrollToBottom(_a) {
|
|
24
|
+
var _b = _a === void 0 ? {} : _a, _c = _b.behavior, behavior = _c === void 0 ? 'auto' : _c, _d = _b.heightOfEndOfList, heightOfEndOfList = _d === void 0 ? 10 : _d;
|
|
25
|
+
var scrollRef = (0, react_1.useRef)(null);
|
|
26
|
+
var _e = (0, react_1.useState)(false), scrollTrigger = _e[0], setScrollTrigger = _e[1];
|
|
27
|
+
/**
|
|
28
|
+
* @when scrollTrigger가 변할 때마다(false -> true, vice versa)
|
|
29
|
+
* @expected EndOfList가 화면에 보이도록 스크롤 한다.
|
|
30
|
+
* @clear -
|
|
31
|
+
*/
|
|
32
|
+
(0, react_1.useEffect)(function () {
|
|
33
|
+
if (scrollRef.current) {
|
|
34
|
+
scrollRef.current.scrollIntoView({ behavior: behavior });
|
|
35
|
+
}
|
|
36
|
+
}, [scrollTrigger]);
|
|
37
|
+
function triggerScrollToBottom() {
|
|
38
|
+
setScrollTrigger(function (prev) { return !prev; });
|
|
39
|
+
}
|
|
40
|
+
function EndOfList() {
|
|
41
|
+
return react_1.default.createElement("li", { style: { listStyle: 'none', height: heightOfEndOfList + "px" }, ref: scrollRef });
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
triggerScrollToBottom: triggerScrollToBottom,
|
|
45
|
+
EndOfList: EndOfList
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
exports.default = useAutoScrollToBottom;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var react_1 = require("react");
|
|
4
|
+
function useTimeout(_a, delay) {
|
|
5
|
+
var callback = _a.callback, target = _a.target;
|
|
6
|
+
(0, react_1.useEffect)(function () {
|
|
7
|
+
var timeout = setTimeout(function () { return callback(); }, delay);
|
|
8
|
+
return function () { return clearTimeout(timeout); };
|
|
9
|
+
}, [target]);
|
|
10
|
+
}
|
|
11
|
+
exports.default = useTimeout;
|
|
@@ -60,48 +60,48 @@ function Chip(_a) {
|
|
|
60
60
|
!isActive && (react_1.default.createElement(react_1.default.Fragment, null,
|
|
61
61
|
react_1.default.createElement(Icon_1.Icon, { size: 16, fillType: "line", iconName: "ic_filter", colorKey: "ui_cpnt_chip_line_icon_01" }),
|
|
62
62
|
react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_a", spacingType: "width" }))),
|
|
63
|
-
react_1.default.createElement(TextLabel_1.TextLabel, { text: text, styleTheme: "caption1Regular", singleLineMode: "use", colorTheme: isActive ? 'usrTextBrandOnPrimary' : 'sysTextPrimary', ellipsisMode: "use", lineLimit: 1 }),
|
|
63
|
+
react_1.default.createElement(TextLabel_1.TextLabel, { text: text, styleTheme: "caption1Regular", singleLineMode: "use", colorTheme: isActive ? 'usrTextBrandOnPrimary' : 'sysTextPrimary', ellipsisMode: "use", lineLimit: 1, wordBreak: "break_all" }),
|
|
64
64
|
isActive && (react_1.default.createElement(react_1.default.Fragment, null,
|
|
65
65
|
react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_a", spacingType: "width" }),
|
|
66
66
|
react_1.default.createElement(Icon_1.Icon, { size: 12, fillType: "line", iconName: "ic_xmark", colorKey: "ui_cpnt_chip_fill_icon_active_01" })))));
|
|
67
67
|
case 'information':
|
|
68
68
|
return (react_1.default.createElement(S_InfoChip, { onClick: handleClickChip },
|
|
69
|
-
react_1.default.createElement(TextLabel_1.TextLabel, { text: text, styleTheme: "caption2Regular", singleLineMode: "use", colorTheme: "sysTextPrimary", ellipsisMode: "use", lineLimit: 1 })));
|
|
69
|
+
react_1.default.createElement(TextLabel_1.TextLabel, { text: text, styleTheme: "caption2Regular", singleLineMode: "use", colorTheme: "sysTextPrimary", ellipsisMode: "use", lineLimit: 1, wordBreak: "break_all" })));
|
|
70
70
|
case 'label':
|
|
71
71
|
return (react_1.default.createElement(S_LabelChip, { onClick: handleClickChip },
|
|
72
|
-
react_1.default.createElement(TextLabel_1.TextLabel, { text: text, styleTheme: "caption2Bold", singleLineMode: "use", colorTheme: "sysTextTertiary", ellipsisMode: "use", lineLimit: 1 })));
|
|
72
|
+
react_1.default.createElement(TextLabel_1.TextLabel, { text: text, styleTheme: "caption2Bold", singleLineMode: "use", colorTheme: "sysTextTertiary", ellipsisMode: "use", lineLimit: 1, wordBreak: "break_all" })));
|
|
73
73
|
case 'time':
|
|
74
74
|
return (react_1.default.createElement(S_TimeChip, { onClick: handleClickChip },
|
|
75
|
-
react_1.default.createElement(TextLabel_1.TextLabel, { text: text, styleTheme: "caption2Bold", singleLineMode: "use", colorTheme: "sysTextWhite", ellipsisMode: "use", lineLimit: 1 })));
|
|
75
|
+
react_1.default.createElement(TextLabel_1.TextLabel, { text: text, styleTheme: "caption2Bold", singleLineMode: "use", colorTheme: "sysTextWhite", ellipsisMode: "use", lineLimit: 1, wordBreak: "break_all" })));
|
|
76
76
|
case 'removable':
|
|
77
77
|
return (react_1.default.createElement(S_RemovableChip, { onClick: handleClickChip },
|
|
78
|
-
react_1.default.createElement(TextLabel_1.TextLabel, { text: text, styleTheme: "caption1Regular", singleLineMode: "use", colorTheme: "sysTextSecondary", ellipsisMode: "use", lineLimit: 1 }),
|
|
78
|
+
react_1.default.createElement(TextLabel_1.TextLabel, { text: text, styleTheme: "caption1Regular", singleLineMode: "use", colorTheme: "sysTextSecondary", ellipsisMode: "use", lineLimit: 1, wordBreak: "break_all" }),
|
|
79
79
|
react_1.default.createElement(S_XIconWrapper, { onClick: handleClickXMarkIcon },
|
|
80
80
|
react_1.default.createElement(Icon_1.Icon, { size: 12, iconName: "ic_xmark", fillType: "line", colorKey: "ui_cpnt_chip_fill_icon_inactive" }))));
|
|
81
81
|
default:
|
|
82
82
|
return (react_1.default.createElement(S_FilterSingleChip, { isActive: isActive, onClick: handleClickChip },
|
|
83
83
|
filterIconMode === 'left' && (react_1.default.createElement(S_FilterIconWrapper, null,
|
|
84
84
|
react_1.default.createElement(Icon_1.Icon, { fillType: iconFillType, iconName: iconName, size: 16, colorKey: isActive ? 'ui_cpnt_chip_fill_icon_active_01' : 'ui_cpnt_chip_line_icon_02' }))),
|
|
85
|
-
react_1.default.createElement(TextLabel_1.TextLabel, { text: text, styleTheme: "caption1Regular", singleLineMode: "use", colorTheme: isActive ? 'usrTextBrandOnPrimary' : 'sysTextSecondary', ellipsisMode: "use", lineLimit: 1 })));
|
|
85
|
+
react_1.default.createElement(TextLabel_1.TextLabel, { text: text, styleTheme: "caption1Regular", singleLineMode: "use", colorTheme: isActive ? 'usrTextBrandOnPrimary' : 'sysTextSecondary', ellipsisMode: "use", lineLimit: 1, wordBreak: "break_all" })));
|
|
86
86
|
}
|
|
87
87
|
};
|
|
88
88
|
return react_1.default.createElement(S_ChipWrapper, null, chipType());
|
|
89
89
|
}
|
|
90
90
|
exports.default = Chip;
|
|
91
|
-
var S_CategoryChoiceChip = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n border-radius:
|
|
91
|
+
var S_CategoryChoiceChip = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n border-radius: 20px;\n box-sizing: border-box;\n background-color: ", ";\n display: flex;\n align-items: center;\n justify-content: center;\n height: 40px;\n padding-left: ", ";\n padding-right: ", ";\n\n & > div {\n height: 40px;\n line-height: 40px;\n }\n\n ", ";\n"], ["\n border-radius: 20px;\n box-sizing: border-box;\n background-color: ", ";\n display: flex;\n align-items: center;\n justify-content: center;\n height: 40px;\n padding-left: ", ";\n padding-right: ", ";\n\n & > div {\n height: 40px;\n line-height: 40px;\n }\n\n ", ";\n"])), function (_a) {
|
|
92
92
|
var theme = _a.theme, isActive = _a.isActive;
|
|
93
93
|
return isActive ? theme.ui_cpnt_chip_fill_base_active_01 : '';
|
|
94
94
|
}, function (_a) {
|
|
95
95
|
var theme = _a.theme;
|
|
96
|
-
return theme.spacing.
|
|
96
|
+
return theme.spacing.spacingD;
|
|
97
97
|
}, function (_a) {
|
|
98
98
|
var theme = _a.theme;
|
|
99
|
-
return theme.spacing.
|
|
99
|
+
return theme.spacing.spacingD;
|
|
100
100
|
}, function (_a) {
|
|
101
101
|
var theme = _a.theme, isActive = _a.isActive;
|
|
102
102
|
return isActive ? '' : "border: 1px solid " + theme.ui_cpnt_chip_line_border_01;
|
|
103
103
|
});
|
|
104
|
-
var S_InfoChip = styled_components_1.default.span(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n align-items: center;\n background-color: ", ";\n border-radius: 12px;\n box-sizing: border-box;\n display: flex;\n height: 24px;\n padding-left: ", ";\n padding-right: ", ";\n"], ["\n align-items: center;\n background-color: ", ";\n border-radius: 12px;\n box-sizing: border-box;\n display: flex;\n height: 24px;\n padding-left: ", ";\n padding-right: ", ";\n"])), function (_a) {
|
|
104
|
+
var S_InfoChip = styled_components_1.default.span(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n align-items: center;\n background-color: ", ";\n border-radius: 12px;\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 border-radius: 12px;\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) {
|
|
105
105
|
var theme = _a.theme;
|
|
106
106
|
return theme.ui_cpnt_chip_fill_base_inactive;
|
|
107
107
|
}, function (_a) {
|
|
@@ -111,7 +111,7 @@ var S_InfoChip = styled_components_1.default.span(templateObject_2 || (templateO
|
|
|
111
111
|
var theme = _a.theme;
|
|
112
112
|
return theme.spacing.spacingC;
|
|
113
113
|
});
|
|
114
|
-
var S_RemovableChip = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n background-color: ", ";\n border-radius: 16px;\n box-sizing: border-box;\n height: 32px;\n display: flex;\n align-items: center;\n justify-content: center;\n padding-left: ", ";\n padding-right: ", ";\n"], ["\n background-color: ", ";\n border-radius: 16px;\n box-sizing: border-box;\n height: 32px;\n display: flex;\n align-items: center;\n justify-content: center;\n padding-left: ", ";\n padding-right: ", ";\n"])), function (_a) {
|
|
114
|
+
var S_RemovableChip = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n background-color: ", ";\n border-radius: 16px;\n box-sizing: border-box;\n height: 32px;\n display: flex;\n align-items: center;\n justify-content: center;\n padding-left: ", ";\n padding-right: ", ";\n\n & > div {\n height: 32px;\n line-height: 32px;\n }\n"], ["\n background-color: ", ";\n border-radius: 16px;\n box-sizing: border-box;\n height: 32px;\n display: flex;\n align-items: center;\n justify-content: center;\n padding-left: ", ";\n padding-right: ", ";\n\n & > div {\n height: 32px;\n line-height: 32px;\n }\n"])), function (_a) {
|
|
115
115
|
var theme = _a.theme;
|
|
116
116
|
return theme.ui_cpnt_chip_fill_base_inactive;
|
|
117
117
|
}, function (_a) {
|
|
@@ -125,7 +125,7 @@ var S_XIconWrapper = styled_components_1.default.div(templateObject_4 || (templa
|
|
|
125
125
|
var theme = _a.theme;
|
|
126
126
|
return theme.spacing.spacingB;
|
|
127
127
|
});
|
|
128
|
-
var S_FilterSingleChip = styled_components_1.default.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n background-color: ", ";\n border-radius: 16px;\n box-sizing: border-box;\n display: flex;\n align-items: center;\n justify-content: center;\n height: 32px;\n padding-left: ", ";\n padding-right: ", ";\n"], ["\n background-color: ", ";\n border-radius: 16px;\n box-sizing: border-box;\n display: flex;\n align-items: center;\n justify-content: center;\n height: 32px;\n padding-left: ", ";\n padding-right: ", ";\n"])), function (_a) {
|
|
128
|
+
var S_FilterSingleChip = styled_components_1.default.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n background-color: ", ";\n border-radius: 16px;\n box-sizing: border-box;\n display: flex;\n align-items: center;\n justify-content: center;\n height: 32px;\n padding-left: ", ";\n padding-right: ", ";\n\n & > div {\n height: 32px;\n line-height: 32px;\n }\n"], ["\n background-color: ", ";\n border-radius: 16px;\n box-sizing: border-box;\n display: flex;\n align-items: center;\n justify-content: center;\n height: 32px;\n padding-left: ", ";\n padding-right: ", ";\n\n & > div {\n height: 32px;\n line-height: 32px;\n }\n"])), function (_a) {
|
|
129
129
|
var theme = _a.theme, isActive = _a.isActive;
|
|
130
130
|
return isActive ? theme.ui_cpnt_chip_fill_base_active_01 : theme.ui_cpnt_chip_fill_base_inactive;
|
|
131
131
|
}, function (_a) {
|
|
@@ -139,14 +139,14 @@ var S_FilterIconWrapper = styled_components_1.default.div(templateObject_6 || (t
|
|
|
139
139
|
var theme = _a.theme;
|
|
140
140
|
return theme.spacing.spacingA;
|
|
141
141
|
});
|
|
142
|
-
var S_LabelChip = styled_components_1.default.div(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n border: 1px solid ", ";\n border-radius: 10px;\n box-sizing: border-box;\n display: flex;\n align-items: center;\n justify-content: center;\n height: 20px;\n padding: 0 ", ";\n"], ["\n border: 1px solid ", ";\n border-radius: 10px;\n box-sizing: border-box;\n display: flex;\n align-items: center;\n justify-content: center;\n height: 20px;\n padding: 0 ", ";\n"])), function (_a) {
|
|
142
|
+
var S_LabelChip = styled_components_1.default.div(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n border: 1px solid ", ";\n border-radius: 10px;\n box-sizing: border-box;\n display: flex;\n align-items: center;\n justify-content: center;\n height: 20px;\n padding: 0 ", ";\n\n & > div {\n height: 20px;\n line-height: 20px;\n }\n"], ["\n border: 1px solid ", ";\n border-radius: 10px;\n box-sizing: border-box;\n display: flex;\n align-items: center;\n justify-content: center;\n height: 20px;\n padding: 0 ", ";\n\n & > div {\n height: 20px;\n line-height: 20px;\n }\n"])), function (_a) {
|
|
143
143
|
var theme = _a.theme;
|
|
144
144
|
return theme.ui_cpnt_chip_line_border_01;
|
|
145
145
|
}, function (_a) {
|
|
146
146
|
var theme = _a.theme;
|
|
147
147
|
return theme.spacing.spacingB;
|
|
148
148
|
});
|
|
149
|
-
var S_TimeChip = styled_components_1.default.div(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n background-color: ", ";\n border-radius: 10px;\n box-sizing: border-box;\n height: 20px;\n padding: 0 ", ";\n display: flex;\n align-items: center;\n justify-content: center;\n"], ["\n background-color: ", ";\n border-radius: 10px;\n box-sizing: border-box;\n height: 20px;\n padding: 0 ", ";\n display: flex;\n align-items: center;\n justify-content: center;\n"])), function (_a) {
|
|
149
|
+
var S_TimeChip = styled_components_1.default.div(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n background-color: ", ";\n border-radius: 10px;\n box-sizing: border-box;\n height: 20px;\n padding: 0 ", ";\n display: flex;\n align-items: center;\n justify-content: center;\n\n & > div {\n height: 20px;\n line-height: 20px;\n }\n"], ["\n background-color: ", ";\n border-radius: 10px;\n box-sizing: border-box;\n height: 20px;\n padding: 0 ", ";\n display: flex;\n align-items: center;\n justify-content: center;\n\n & > div {\n height: 20px;\n line-height: 20px;\n }\n"])), function (_a) {
|
|
150
150
|
var theme = _a.theme;
|
|
151
151
|
return theme.ui_cpnt_chip_base_playtime;
|
|
152
152
|
}, function (_a) {
|
|
@@ -3,6 +3,7 @@ declare type ContextMenuProps = {
|
|
|
3
3
|
children: React.ReactNode;
|
|
4
4
|
autoWidthMode?: 'none' | 'use';
|
|
5
5
|
maxHeight?: number;
|
|
6
|
+
customWidth?: string;
|
|
6
7
|
};
|
|
7
|
-
declare function ContextMenu({ children, autoWidthMode, maxHeight }: ContextMenuProps): JSX.Element;
|
|
8
|
+
declare function ContextMenu({ children, autoWidthMode, maxHeight, customWidth }: ContextMenuProps): JSX.Element;
|
|
8
9
|
export default ContextMenu;
|
|
@@ -10,10 +10,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
10
10
|
var react_1 = __importDefault(require("react"));
|
|
11
11
|
var styled_components_1 = __importDefault(require("styled-components"));
|
|
12
12
|
function ContextMenu(_a) {
|
|
13
|
-
var children = _a.children, _b = _a.autoWidthMode, autoWidthMode = _b === void 0 ? 'none' : _b, maxHeight = _a.maxHeight;
|
|
14
|
-
return (react_1.default.createElement(S_ContextMenu, { autoWidth: autoWidthMode === 'use', maxHeight: maxHeight }, children));
|
|
13
|
+
var children = _a.children, _b = _a.autoWidthMode, autoWidthMode = _b === void 0 ? 'none' : _b, maxHeight = _a.maxHeight, customWidth = _a.customWidth;
|
|
14
|
+
return (react_1.default.createElement(S_ContextMenu, { autoWidth: autoWidthMode === 'use', maxHeight: maxHeight, customWidth: customWidth }, children));
|
|
15
15
|
}
|
|
16
|
-
var S_ContextMenu = styled_components_1.default.ul(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n background-color: ", ";\n border: 1px solid ", ";\n border-radius: 14px;\n box-sizing: border-box;\n box-shadow: ", ";\n list-style: none;\n margin: 0;\n min-width: 128px;\n overflow-y: auto;\n padding: ", " 0;\n vertical-align: baseline;\n width: ", ";\n max-height: ", ";\n"], ["\n background-color: ", ";\n border: 1px solid ", ";\n border-radius: 14px;\n box-sizing: border-box;\n box-shadow: ", ";\n list-style: none;\n margin: 0;\n min-width: 128px;\n overflow-y: auto;\n padding: ", " 0;\n vertical-align: baseline;\n width: ", ";\n max-height: ", ";\n"])), function (_a) {
|
|
16
|
+
var S_ContextMenu = styled_components_1.default.ul(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n background-color: ", ";\n border: 1px solid ", ";\n border-radius: 14px;\n box-sizing: border-box;\n box-shadow: ", ";\n list-style: none;\n margin: 0;\n min-width: 128px;\n overflow-y: auto;\n padding: ", " 0;\n vertical-align: baseline;\n width: ", ";\n max-height: ", ";\n\n ", "\n"], ["\n background-color: ", ";\n border: 1px solid ", ";\n border-radius: 14px;\n box-sizing: border-box;\n box-shadow: ", ";\n list-style: none;\n margin: 0;\n min-width: 128px;\n overflow-y: auto;\n padding: ", " 0;\n vertical-align: baseline;\n width: ", ";\n max-height: ", ";\n\n ", "\n"])), function (_a) {
|
|
17
17
|
var theme = _a.theme;
|
|
18
18
|
return theme.ui_cpnt_contextmenu_base;
|
|
19
19
|
}, function (_a) {
|
|
@@ -26,11 +26,20 @@ var S_ContextMenu = styled_components_1.default.ul(templateObject_1 || (template
|
|
|
26
26
|
var theme = _a.theme;
|
|
27
27
|
return theme.spacing.spacingB;
|
|
28
28
|
}, function (_a) {
|
|
29
|
-
var autoWidth = _a.autoWidth;
|
|
30
|
-
|
|
29
|
+
var autoWidth = _a.autoWidth, customWidth = _a.customWidth;
|
|
30
|
+
if (autoWidth) {
|
|
31
|
+
return 'inherit';
|
|
32
|
+
}
|
|
33
|
+
if (customWidth) {
|
|
34
|
+
return 'auto';
|
|
35
|
+
}
|
|
36
|
+
return 'max-content';
|
|
31
37
|
}, function (_a) {
|
|
32
38
|
var maxHeight = _a.maxHeight;
|
|
33
39
|
return (maxHeight ? maxHeight + "px" : 'none');
|
|
40
|
+
}, function (_a) {
|
|
41
|
+
var customWidth = _a.customWidth;
|
|
42
|
+
return customWidth && "width: " + customWidth + ";min-width: " + customWidth + ";";
|
|
34
43
|
});
|
|
35
44
|
exports.default = ContextMenu;
|
|
36
45
|
var templateObject_1;
|
|
@@ -53,17 +53,17 @@ function ContextMenuItem(_a) {
|
|
|
53
53
|
textColorTheme = 'sysTextTertiary';
|
|
54
54
|
}
|
|
55
55
|
return (react_1.default.createElement(S_ContextMenuItem, { size: size, onClick: handleClick, selected: isSelected, disabled: state === 'disabled' },
|
|
56
|
-
react_1.default.createElement(TextLabel_1.TextLabel, { text: (option === null || option === void 0 ? void 0 : option.text) || text, styleTheme: "form2Regular", singleLineMode: "use", colorTheme: textColorTheme })));
|
|
56
|
+
react_1.default.createElement(TextLabel_1.TextLabel, { text: (option === null || option === void 0 ? void 0 : option.text) || text, styleTheme: "form2Regular", singleLineMode: "use", colorTheme: textColorTheme, ellipsisMode: "use", lineLimit: 1, wordBreak: "break_all" })));
|
|
57
57
|
}
|
|
58
|
-
var large = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n height: 48px;\n padding: 0 ", ";\n"], ["\n height: 48px;\n padding: 0 ", ";\n"])), function (_a) {
|
|
58
|
+
var large = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n height: 48px;\n padding: 0 ", ";\n\n & > div {\n height: 48px;\n line-height: 48px;\n }\n"], ["\n height: 48px;\n padding: 0 ", ";\n\n & > div {\n height: 48px;\n line-height: 48px;\n }\n"])), function (_a) {
|
|
59
59
|
var theme = _a.theme;
|
|
60
60
|
return theme.spacing.spacingE;
|
|
61
61
|
});
|
|
62
|
-
var medium = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n height: 40px;\n padding: 0 ", ";\n"], ["\n height: 40px;\n padding: 0 ", ";\n"])), function (_a) {
|
|
62
|
+
var medium = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n height: 40px;\n padding: 0 ", ";\n\n & > div {\n height: 40px;\n line-height: 40px;\n }\n"], ["\n height: 40px;\n padding: 0 ", ";\n\n & > div {\n height: 40px;\n line-height: 40px;\n }\n"])), function (_a) {
|
|
63
63
|
var theme = _a.theme;
|
|
64
64
|
return theme.spacing.spacingD;
|
|
65
65
|
});
|
|
66
|
-
var small = (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n height: 32px;\n padding: 0 ", ";\n"], ["\n height: 32px;\n padding: 0 ", ";\n"])), function (_a) {
|
|
66
|
+
var small = (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n height: 32px;\n padding: 0 ", ";\n\n & > div {\n height: 32px;\n line-height: 32px;\n }\n"], ["\n height: 32px;\n padding: 0 ", ";\n\n & > div {\n height: 32px;\n line-height: 32px;\n }\n"])), function (_a) {
|
|
67
67
|
var theme = _a.theme;
|
|
68
68
|
return theme.spacing.spacingD;
|
|
69
69
|
});
|
|
@@ -11,11 +11,11 @@ declare type Props = {
|
|
|
11
11
|
hintText?: TFunctionResult;
|
|
12
12
|
maxHeightItemNumber?: number;
|
|
13
13
|
responsiveMode?: 'none' | 'use';
|
|
14
|
-
selectionMode?: 'single' | 'multi';
|
|
15
14
|
size?: 'large' | 'small';
|
|
16
15
|
state?: 'normal' | 'read_only' | 'disabled';
|
|
17
16
|
valueArray: DropDownValues[];
|
|
17
|
+
customWidth?: string;
|
|
18
18
|
onChange?: (option: PDSValueOption) => void;
|
|
19
19
|
};
|
|
20
|
-
declare function Dropdown({ colorTheme, value, defaultValue, hintText, maxHeightItemNumber, responsiveMode,
|
|
20
|
+
declare function Dropdown({ colorTheme, value, defaultValue, hintText, maxHeightItemNumber, responsiveMode, size, state, valueArray, customWidth, onChange }: Props): JSX.Element;
|
|
21
21
|
export default Dropdown;
|
|
@@ -31,9 +31,13 @@ var ContextMenuItem_1 = require("../ContextMenuItem");
|
|
|
31
31
|
var TextLabel_1 = require("../TextLabel");
|
|
32
32
|
// TODO: selectionMode의 multi 기능 구현 추가 필요
|
|
33
33
|
function Dropdown(_a) {
|
|
34
|
-
var _b = _a.colorTheme, colorTheme = _b === void 0 ? 'none' : _b, value = _a.value, defaultValue = _a.defaultValue, hintText = _a.hintText, _c = _a.maxHeightItemNumber, maxHeightItemNumber = _c === void 0 ? 5 : _c, _d = _a.responsiveMode, responsiveMode = _d === void 0 ? 'none' : _d,
|
|
35
|
-
|
|
36
|
-
|
|
34
|
+
var _b = _a.colorTheme, colorTheme = _b === void 0 ? 'none' : _b, value = _a.value, defaultValue = _a.defaultValue, hintText = _a.hintText, _c = _a.maxHeightItemNumber, maxHeightItemNumber = _c === void 0 ? 5 : _c, _d = _a.responsiveMode, responsiveMode = _d === void 0 ? 'none' : _d,
|
|
35
|
+
// selectionMode = 'single',
|
|
36
|
+
_e = _a.size,
|
|
37
|
+
// selectionMode = 'single',
|
|
38
|
+
size = _e === void 0 ? 'large' : _e, _f = _a.state, state = _f === void 0 ? 'normal' : _f, valueArray = _a.valueArray, customWidth = _a.customWidth, onChange = _a.onChange;
|
|
39
|
+
var _g = (0, react_1.useState)(false), isFocused = _g[0], setIsFocused = _g[1];
|
|
40
|
+
var _h = (0, react_1.useState)(defaultValue), selectedValue = _h[0], setSelectedValue = _h[1];
|
|
37
41
|
(0, react_1.useEffect)(function () {
|
|
38
42
|
if (defaultValue) {
|
|
39
43
|
setSelectedValue(defaultValue);
|
|
@@ -144,38 +148,48 @@ function Dropdown(_a) {
|
|
|
144
148
|
var LARGE_HEIGHT = 48;
|
|
145
149
|
return LARGE_HEIGHT * maxHeightItemNumber;
|
|
146
150
|
}, [size, maxHeightItemNumber]);
|
|
147
|
-
return (react_1.default.createElement(S_Dropdown, { className: "container", size: size, tabIndex: 0, onBlur: handleBlur, responsiveMode: responsiveMode },
|
|
148
|
-
react_1.default.createElement(S_Select, { size: size, onClick: handleClick, isFocused: isFocused, state: state, colorTheme: colorTheme, responsiveMode: responsiveMode },
|
|
149
|
-
react_1.default.createElement(S_TextLabel,
|
|
150
|
-
react_1.default.createElement(TextLabel_1.TextLabel, { text: (selectedValue === null || selectedValue === void 0 ? void 0 : selectedValue.text) || hintText, styleTheme: "form2Regular", singleLineMode: "use", colorTheme: getTextColorTheme(), colorOverride: getTextColorOverride() })),
|
|
151
|
+
return (react_1.default.createElement(S_Dropdown, { className: "container", size: size, tabIndex: 0, onBlur: handleBlur, responsiveMode: responsiveMode, customWidth: customWidth },
|
|
152
|
+
react_1.default.createElement(S_Select, { size: size, onClick: handleClick, isFocused: isFocused, state: state, colorTheme: colorTheme, responsiveMode: responsiveMode, customWidth: customWidth },
|
|
153
|
+
react_1.default.createElement(S_TextLabel, { size: size },
|
|
154
|
+
react_1.default.createElement(TextLabel_1.TextLabel, { text: (selectedValue === null || selectedValue === void 0 ? void 0 : selectedValue.text) || hintText, styleTheme: "form2Regular", singleLineMode: "use", colorTheme: getTextColorTheme(), colorOverride: getTextColorOverride(), ellipsisMode: "use", lineLimit: 1, wordBreak: "break_all" })),
|
|
151
155
|
react_1.default.createElement(hybrid_1.Icon, { size: 16, fillType: "line", iconName: isFocused ? 'ic_arrow_up' : 'ic_arrow_down', colorKey: getIconColorKey() }),
|
|
152
156
|
react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_d", spacingType: "width" })),
|
|
153
157
|
isFocused && (react_1.default.createElement(S_ContextMenuWrapper, null,
|
|
154
|
-
react_1.default.createElement(ContextMenu_1.ContextMenu, { autoWidthMode: "use", maxHeight: maxHeight }, valueArray.map(function (el) { return (react_1.default.createElement(react_1.Fragment, { key: el.value },
|
|
158
|
+
react_1.default.createElement(ContextMenu_1.ContextMenu, { autoWidthMode: "use", maxHeight: maxHeight, customWidth: customWidth }, valueArray.map(function (el) { return (react_1.default.createElement(react_1.Fragment, { key: el.value },
|
|
155
159
|
react_1.default.createElement(ContextMenuItem_1.ContextMenuItem, { option: el, size: size, isSelected: (selectedValue === null || selectedValue === void 0 ? void 0 : selectedValue.value) === el.value, onClick: handleClickOption, state: el.state }))); }))))));
|
|
156
160
|
}
|
|
157
|
-
var S_TextLabel = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n flex: 1;\n padding-left: ", ";\n padding-right: ", ";\n"], ["\n flex: 1;\n padding-left: ", ";\n padding-right: ", ";\n"])), function (_a) {
|
|
161
|
+
var S_TextLabel = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n flex: 1;\n padding-left: ", ";\n padding-right: ", ";\n\n ", ";\n"], ["\n flex: 1;\n padding-left: ", ";\n padding-right: ", ";\n\n ", ";\n"])), function (_a) {
|
|
158
162
|
var theme = _a.theme;
|
|
159
163
|
return theme.spacing.spacingD;
|
|
160
164
|
}, function (_a) {
|
|
161
165
|
var theme = _a.theme;
|
|
162
166
|
return theme.spacing.spacingB;
|
|
167
|
+
}, function (_a) {
|
|
168
|
+
var size = _a.size;
|
|
169
|
+
return size &&
|
|
170
|
+
{
|
|
171
|
+
large: large,
|
|
172
|
+
small: small
|
|
173
|
+
}[size];
|
|
163
174
|
});
|
|
164
|
-
var large = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n height: 48px;\n width: ", ";\n"], ["\n height: 48px;\n width: ", ";\n"])), function (_a) {
|
|
175
|
+
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) {
|
|
165
176
|
var responsiveMode = _a.responsiveMode;
|
|
166
177
|
return (responsiveMode === 'use' ? '100%' : '432px');
|
|
167
178
|
});
|
|
168
|
-
var small = (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n border-radius: 10px;\n height: 32px;\n width: ", ";\n"], ["\n border-radius: 10px;\n height: 32px;\n width: ", ";\n"])), function (_a) {
|
|
179
|
+
var small = (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __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) {
|
|
169
180
|
var responsiveMode = _a.responsiveMode;
|
|
170
181
|
return (responsiveMode === 'use' ? '100%' : '188px');
|
|
171
182
|
});
|
|
172
|
-
var S_Dropdown = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n display: inline-block;\n outline: none;\n position: relative;\n\n ", ";\n"], ["\n display: inline-block;\n outline: none;\n position: relative;\n\n ", ";\n"])), function (_a) {
|
|
183
|
+
var S_Dropdown = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __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) {
|
|
173
184
|
var size = _a.size;
|
|
174
185
|
return size &&
|
|
175
186
|
{
|
|
176
187
|
large: large,
|
|
177
188
|
small: small
|
|
178
189
|
}[size];
|
|
190
|
+
}, function (_a) {
|
|
191
|
+
var customWidth = _a.customWidth;
|
|
192
|
+
return customWidth && "width: " + customWidth + ";";
|
|
179
193
|
});
|
|
180
194
|
var colorThemeBackgroundReadOnly = (0, styled_components_1.css)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n ", ";\n"], ["\n ", ";\n"])), function (_a) {
|
|
181
195
|
var colorTheme = _a.colorTheme, theme = _a.theme;
|
|
@@ -241,7 +255,7 @@ var borderColor = (0, styled_components_1.css)(templateObject_10 || (templateObj
|
|
|
241
255
|
return theme.ui_cpnt_dropdown_border_normal;
|
|
242
256
|
}
|
|
243
257
|
});
|
|
244
|
-
var S_Select = styled_components_1.default.div(templateObject_11 || (templateObject_11 = __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\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\n ", ";\n"])), function (_a) {
|
|
258
|
+
var S_Select = styled_components_1.default.div(templateObject_11 || (templateObject_11 = __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\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\n ", ";\n\n ", "\n"])), function (_a) {
|
|
245
259
|
var state = _a.state;
|
|
246
260
|
switch (state) {
|
|
247
261
|
case 'disabled':
|
|
@@ -268,6 +282,9 @@ var S_Select = styled_components_1.default.div(templateObject_11 || (templateObj
|
|
|
268
282
|
large: large,
|
|
269
283
|
small: small
|
|
270
284
|
}[size];
|
|
285
|
+
}, function (_a) {
|
|
286
|
+
var customWidth = _a.customWidth;
|
|
287
|
+
return customWidth && "width: " + customWidth + ";";
|
|
271
288
|
});
|
|
272
289
|
var S_ContextMenuWrapper = styled_components_1.default.div(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n display: block;\n margin-top: ", ";\n position: absolute;\n width: inherit;\n"], ["\n display: block;\n margin-top: ", ";\n position: absolute;\n width: inherit;\n"])), function (_a) {
|
|
273
290
|
var theme = _a.theme;
|
|
@@ -117,12 +117,12 @@ function MainButton(_a) {
|
|
|
117
117
|
size !== 'xsmall' && iconMode === 'left' && (react_1.default.createElement(react_1.default.Fragment, null,
|
|
118
118
|
react_1.default.createElement(hybrid_1.Icon, { iconName: iconName, size: size === 'large' || size === 'rlarge' ? 20 : 16, colorKey: iconColor(), fillType: iconFillType }),
|
|
119
119
|
react_1.default.createElement(hybrid_1.Spacing, { size: size === 'large' || size === 'rlarge' ? 'spacing_b' : 'spacing_a', spacingType: "width" }))),
|
|
120
|
-
react_1.default.createElement(TextLabel_1.TextLabel, { text: text, styleTheme: textStyle[size], singleLineMode: "use", colorTheme: state === 'disabled' ? 'sysTextTertiary' : textColor(), colorOverride: selectTextThemeColor() }),
|
|
120
|
+
react_1.default.createElement(TextLabel_1.TextLabel, { text: text, styleTheme: textStyle[size], singleLineMode: "use", colorTheme: state === 'disabled' ? 'sysTextTertiary' : textColor(), colorOverride: selectTextThemeColor(), ellipsisMode: "use", lineLimit: 1, wordBreak: "break_all" }),
|
|
121
121
|
size !== 'xsmall' && iconMode === 'right' && (react_1.default.createElement(react_1.default.Fragment, null,
|
|
122
122
|
react_1.default.createElement(hybrid_1.Spacing, { size: size === 'large' || size === 'rlarge' ? 'spacing_b' : 'spacing_a', spacingType: "width" }),
|
|
123
123
|
react_1.default.createElement(hybrid_1.Icon, { iconName: iconName, size: size === 'large' || size === 'rlarge' ? 20 : 16, colorKey: iconColor(), fillType: iconFillType })))));
|
|
124
124
|
}
|
|
125
|
-
var large = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n height: 48px;\n min-width: 96px;\n padding: 0 ", ";\n ", "\n ", ";\n"], ["\n height: 48px;\n min-width: 96px;\n padding: 0 ", ";\n ", "\n ", ";\n"])), function (_a) {
|
|
125
|
+
var large = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n height: 48px;\n min-width: 96px;\n padding: 0 ", ";\n ", "\n ", ";\n\n & > div {\n height: 48px;\n line-height: 48px;\n }\n"], ["\n height: 48px;\n min-width: 96px;\n padding: 0 ", ";\n ", "\n ", ";\n\n & > div {\n height: 48px;\n line-height: 48px;\n }\n"])), function (_a) {
|
|
126
126
|
var theme = _a.theme;
|
|
127
127
|
return theme.spacing.spacingE;
|
|
128
128
|
}, function (_a) {
|
|
@@ -132,21 +132,21 @@ var large = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 =
|
|
|
132
132
|
var size = _a.size;
|
|
133
133
|
return size === 'rlarge' && 'width: 100%';
|
|
134
134
|
});
|
|
135
|
-
var medium = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n height: 40px;\n min-width: 64px;\n padding: 0 ", ";\n ", "\n"], ["\n height: 40px;\n min-width: 64px;\n padding: 0 ", ";\n ", "\n"])), function (_a) {
|
|
135
|
+
var medium = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n height: 40px;\n min-width: 64px;\n padding: 0 ", ";\n ", "\n\n & > div {\n height: 40px;\n line-height: 40px;\n }\n"], ["\n height: 40px;\n min-width: 64px;\n padding: 0 ", ";\n ", "\n\n & > div {\n height: 40px;\n line-height: 40px;\n }\n"])), function (_a) {
|
|
136
136
|
var theme = _a.theme;
|
|
137
137
|
return theme.spacing.spacingE;
|
|
138
138
|
}, function (_a) {
|
|
139
139
|
var shapeType = _a.shapeType;
|
|
140
140
|
return shapeType === 'round' && 'border-radius: 14px;';
|
|
141
141
|
});
|
|
142
|
-
var small = (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n height: 32px;\n min-width: 48px;\n padding: 0 ", ";\n ", "\n"], ["\n height: 32px;\n min-width: 48px;\n padding: 0 ", ";\n ", "\n"])), function (_a) {
|
|
142
|
+
var small = (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n height: 32px;\n min-width: 48px;\n padding: 0 ", ";\n ", "\n\n & > div {\n height: 32px;\n line-height: 32px;\n }\n"], ["\n height: 32px;\n min-width: 48px;\n padding: 0 ", ";\n ", "\n\n & > div {\n height: 32px;\n line-height: 32px;\n }\n"])), function (_a) {
|
|
143
143
|
var theme = _a.theme;
|
|
144
144
|
return theme.spacing.spacingD;
|
|
145
145
|
}, function (_a) {
|
|
146
146
|
var shapeType = _a.shapeType;
|
|
147
147
|
return shapeType === 'round' && 'border-radius: 10px;';
|
|
148
148
|
});
|
|
149
|
-
var xsmall = (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n height: 24px;\n min-width: 48px;\n padding: 0 ", ";\n ", "\n"], ["\n height: 24px;\n min-width: 48px;\n padding: 0 ", ";\n ", "\n"])), function (_a) {
|
|
149
|
+
var xsmall = (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n height: 24px;\n min-width: 48px;\n padding: 0 ", ";\n ", "\n\n & > div {\n height: 24px;\n line-height: 24px;\n }\n"], ["\n height: 24px;\n min-width: 48px;\n padding: 0 ", ";\n ", "\n\n & > div {\n height: 24px;\n line-height: 24px;\n }\n"])), function (_a) {
|
|
150
150
|
var theme = _a.theme;
|
|
151
151
|
return theme.spacing.spacingD;
|
|
152
152
|
}, function (_a) {
|
|
@@ -12,8 +12,9 @@ declare type SelectProps = {
|
|
|
12
12
|
size?: 'large' | 'medium' | 'small' | 'rlarge';
|
|
13
13
|
responsiveMode?: 'none' | 'use';
|
|
14
14
|
state?: 'normal' | 'read_only' | 'disabled';
|
|
15
|
-
onChange?: (e: React.ChangeEvent<HTMLSelectElement>) => void;
|
|
16
15
|
colorTheme?: 'none' | 'dark';
|
|
16
|
+
customWidth?: string;
|
|
17
|
+
onChange?: (e: React.ChangeEvent<HTMLSelectElement>) => void;
|
|
17
18
|
};
|
|
18
|
-
declare function Select({ hintText, defaultValue, value, valueArray, size, responsiveMode, state,
|
|
19
|
+
declare function Select({ hintText, defaultValue, value, valueArray, size, responsiveMode, state, colorTheme, customWidth, onChange }: SelectProps): JSX.Element;
|
|
19
20
|
export default Select;
|
|
@@ -32,7 +32,7 @@ var hybrid_1 = require("../../../hybrid");
|
|
|
32
32
|
var HINT = 'HINT_VALUE';
|
|
33
33
|
function Select(_a) {
|
|
34
34
|
var _b;
|
|
35
|
-
var hintText = _a.hintText, defaultValue = _a.defaultValue, value = _a.value, valueArray = _a.valueArray, _c = _a.size, size = _c === void 0 ? 'large' : _c, _d = _a.responsiveMode, responsiveMode = _d === void 0 ? 'none' : _d, _e = _a.state, state = _e === void 0 ? 'normal' : _e,
|
|
35
|
+
var hintText = _a.hintText, defaultValue = _a.defaultValue, value = _a.value, valueArray = _a.valueArray, _c = _a.size, size = _c === void 0 ? 'large' : _c, _d = _a.responsiveMode, responsiveMode = _d === void 0 ? 'none' : _d, _e = _a.state, state = _e === void 0 ? 'normal' : _e, _f = _a.colorTheme, colorTheme = _f === void 0 ? 'none' : _f, customWidth = _a.customWidth, onChange = _a.onChange;
|
|
36
36
|
var handleChange = function (e) {
|
|
37
37
|
if (onChange) {
|
|
38
38
|
onChange(e);
|
|
@@ -50,10 +50,10 @@ function Select(_a) {
|
|
|
50
50
|
}
|
|
51
51
|
return 'ui_cpnt_select_icon_01';
|
|
52
52
|
};
|
|
53
|
-
return (react_1.default.createElement(S_Box, { size: size, responsiveMode: responsiveMode, tabIndex: 0 },
|
|
53
|
+
return (react_1.default.createElement(S_Box, { size: size, responsiveMode: responsiveMode, tabIndex: 0, customWidth: customWidth },
|
|
54
54
|
react_1.default.createElement(S_Icon_Wrapper, { state: state },
|
|
55
55
|
react_1.default.createElement(hybrid_1.Icon, { size: 16, fillType: "line", iconName: "ic_arrow_down", colorKey: getIconColorKey() })),
|
|
56
|
-
react_1.default.createElement(S_Select, { disabled: state === 'disabled' || state === 'read_only', state: state, colorTheme: colorTheme, onChange: handleChange, defaultValue: (_b = defaultValue === null || defaultValue === void 0 ? void 0 : defaultValue.value) !== null && _b !== void 0 ? _b : HINT, value: value },
|
|
56
|
+
react_1.default.createElement(S_Select, { disabled: state === 'disabled' || state === 'read_only', state: state, colorTheme: colorTheme, onChange: handleChange, defaultValue: (_b = defaultValue === null || defaultValue === void 0 ? void 0 : defaultValue.value) !== null && _b !== void 0 ? _b : HINT, value: value || undefined },
|
|
57
57
|
hintText && (react_1.default.createElement("option", { disabled: true, value: HINT }, hintText)),
|
|
58
58
|
valueArray.map(function (el) { return (react_1.default.createElement("option", { key: el.value, value: el.value }, el.text)); }))));
|
|
59
59
|
}
|
|
@@ -88,7 +88,7 @@ var dark = (0, styled_components_1.css)(templateObject_5 || (templateObject_5 =
|
|
|
88
88
|
var theme = _a.theme;
|
|
89
89
|
return theme.ui_cpnt_select_text_darktheme_enabled;
|
|
90
90
|
});
|
|
91
|
-
var S_Box = styled_components_1.default.div(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n position: relative;\n z-index: 0;\n\n ", "\n ", ";\n"], ["\n position: relative;\n z-index: 0;\n\n ", "\n ", ";\n"])), function (_a) {
|
|
91
|
+
var S_Box = styled_components_1.default.div(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n position: relative;\n z-index: 0;\n\n ", "\n ", ";\n ", "\n"], ["\n position: relative;\n z-index: 0;\n\n ", "\n ", ";\n ", "\n"])), function (_a) {
|
|
92
92
|
var size = _a.size;
|
|
93
93
|
return size &&
|
|
94
94
|
{
|
|
@@ -100,12 +100,15 @@ var S_Box = styled_components_1.default.div(templateObject_6 || (templateObject_
|
|
|
100
100
|
}, function (_a) {
|
|
101
101
|
var responsiveMode = _a.responsiveMode;
|
|
102
102
|
return responsiveMode === 'use' && 'width: 100%';
|
|
103
|
+
}, function (_a) {
|
|
104
|
+
var customWidth = _a.customWidth;
|
|
105
|
+
return customWidth && "width: " + customWidth + ";";
|
|
103
106
|
});
|
|
104
107
|
var S_Icon_Wrapper = styled_components_1.default.div(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n height: 16px;\n position: absolute;\n right: ", ";\n top: 50%;\n transform: translateY(-50%);\n width: 16px;\n"], ["\n align-items: center;\n display: flex;\n height: 16px;\n position: absolute;\n right: ", ";\n top: 50%;\n transform: translateY(-50%);\n width: 16px;\n"])), function (_a) {
|
|
105
108
|
var theme = _a.theme;
|
|
106
109
|
return theme.spacing.spacingD;
|
|
107
110
|
});
|
|
108
|
-
var S_Select = styled_components_1.default.select(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n appearance: none;\n background-color: ", ";\n border: 2px solid ", ";\n border-radius: ", ";\n box-sizing: border-box;\n color: ", ";\n font-family: inherit;\n font-size: ", ";\n height: 100%;\n padding-left: ", ";\n width: 100%;\n\n :disabled {\n background-color: ", ";\n border: 2px solid ", ";\n color: ", ";\n opacity: 1;\n }\n\n :focus {\n border: 2px solid ", " !important;\n color: ", ";\n outline: 0 !important;\n outline-offset: 0 !important;\n }\n\n ", "\n"], ["\n appearance: none;\n background-color: ", ";\n border: 2px solid ", ";\n border-radius: ", ";\n box-sizing: border-box;\n color: ", ";\n font-family: inherit;\n font-size: ", ";\n height: 100%;\n padding-left: ", ";\n width: 100%;\n\n :disabled {\n background-color: ", ";\n border: 2px solid ", ";\n color: ", ";\n opacity: 1;\n }\n\n :focus {\n border: 2px solid ", " !important;\n color: ", ";\n outline: 0 !important;\n outline-offset: 0 !important;\n }\n\n ", "\n"])), function (_a) {
|
|
111
|
+
var S_Select = styled_components_1.default.select(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n appearance: none;\n background-color: ", ";\n border: 2px solid ", ";\n border-radius: ", ";\n box-sizing: border-box;\n color: ", ";\n font-family: inherit;\n font-size: ", ";\n height: 100%;\n padding-left: ", ";\n padding-right: ", ";\n width: 100%;\n -webkit-box-orient: vertical;\n display: -webkit-box;\n -webkit-line-clamp: 1;\n overflow: hidden;\n text-overflow: ellipsis;\n word-break: break-all;\n\n :disabled {\n background-color: ", ";\n border: 2px solid ", ";\n color: ", ";\n opacity: 1;\n }\n\n :focus {\n border: 2px solid ", " !important;\n color: ", ";\n outline: 0 !important;\n outline-offset: 0 !important;\n }\n\n ", "\n"], ["\n appearance: none;\n background-color: ", ";\n border: 2px solid ", ";\n border-radius: ", ";\n box-sizing: border-box;\n color: ", ";\n font-family: inherit;\n font-size: ", ";\n height: 100%;\n padding-left: ", ";\n padding-right: ", ";\n width: 100%;\n -webkit-box-orient: vertical;\n display: -webkit-box;\n -webkit-line-clamp: 1;\n overflow: hidden;\n text-overflow: ellipsis;\n word-break: break-all;\n\n :disabled {\n background-color: ", ";\n border: 2px solid ", ";\n color: ", ";\n opacity: 1;\n }\n\n :focus {\n border: 2px solid ", " !important;\n color: ", ";\n outline: 0 !important;\n outline-offset: 0 !important;\n }\n\n ", "\n"])), function (_a) {
|
|
109
112
|
var theme = _a.theme;
|
|
110
113
|
return theme.ui_cpnt_select_base_normal;
|
|
111
114
|
}, function (_a) {
|
|
@@ -123,6 +126,9 @@ var S_Select = styled_components_1.default.select(templateObject_8 || (templateO
|
|
|
123
126
|
}, function (_a) {
|
|
124
127
|
var theme = _a.theme;
|
|
125
128
|
return theme.spacing.spacingD;
|
|
129
|
+
}, function (_a) {
|
|
130
|
+
var theme = _a.theme;
|
|
131
|
+
return theme.spacing.spacingF;
|
|
126
132
|
}, function (_a) {
|
|
127
133
|
var theme = _a.theme;
|
|
128
134
|
return theme.ui_cpnt_select_base_disabled;
|
|
@@ -37,11 +37,11 @@ function StatusBlock(_a) {
|
|
|
37
37
|
small: 'body2Bold'
|
|
38
38
|
};
|
|
39
39
|
return (react_1.default.createElement(S_StatusBlock, { size: size, state: state, "$width": width },
|
|
40
|
-
react_1.default.createElement(TextLabel_1.TextLabel, { text: text, styleTheme: textLabelStyleThemeObj[size], textAlign: "center", singleLineMode: "use", colorTheme: "sysTextWhite" })));
|
|
40
|
+
react_1.default.createElement(TextLabel_1.TextLabel, { text: text, styleTheme: textLabelStyleThemeObj[size], textAlign: "center", singleLineMode: "use", colorTheme: "sysTextWhite", ellipsisMode: "use", lineLimit: 1, wordBreak: "break_all" })));
|
|
41
41
|
}
|
|
42
|
-
var large = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n border-radius: 14px;\n height: 48px;\n"], ["\n border-radius: 14px;\n height: 48px;\n"])));
|
|
43
|
-
var medium = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n border-radius: 14px;\n height: 40px;\n"], ["\n border-radius: 14px;\n height: 40px;\n"])));
|
|
44
|
-
var small = (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n border-radius: 10px;\n height: 32px;\n"], ["\n border-radius: 10px;\n height: 32px;\n"])));
|
|
42
|
+
var large = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n border-radius: 14px;\n height: 48px;\n\n & > div {\n height: 48px;\n line-height: 48px;\n }\n"], ["\n border-radius: 14px;\n height: 48px;\n\n & > div {\n height: 48px;\n line-height: 48px;\n }\n"])));
|
|
43
|
+
var medium = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n border-radius: 14px;\n height: 40px;\n\n & > div {\n height: 40px;\n line-height: 40px;\n }\n"], ["\n border-radius: 14px;\n height: 40px;\n\n & > div {\n height: 40px;\n line-height: 40px;\n }\n"])));
|
|
44
|
+
var small = (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n border-radius: 10px;\n height: 32px;\n\n & > div {\n height: 32px;\n line-height: 32px;\n }\n"], ["\n border-radius: 10px;\n height: 32px;\n\n & > div {\n height: 32px;\n line-height: 32px;\n }\n"])));
|
|
45
45
|
var basic = (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n background-color: ", ";\n"], ["\n background-color: ", ";\n"])), function (_a) {
|
|
46
46
|
var theme = _a.theme;
|
|
47
47
|
return theme.ui_cpnt_statusblock_basic;
|