pds-dev-kit-web-test 0.0.4 → 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/Clip.d.ts +4 -0
- package/dist/src/common/assets/icons/line/Clip.js +36 -0
- 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/Internal.d.ts +4 -0
- package/dist/src/common/assets/icons/line/Internal.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 +5 -0
- package/dist/src/common/assets/icons/line/index.js +10 -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/components/Navigations/NavLink.js +3 -1
- package/dist/src/common/components/Navigations/TextLabelNav.d.ts +2 -1
- package/dist/src/common/components/Navigations/TextLabelNav.js +3 -3
- package/dist/src/common/hooks/index.d.ts +1 -0
- package/dist/src/common/hooks/index.js +3 -1
- package/dist/src/common/hooks/useDetectOverflow.js +1 -1
- package/dist/src/common/hooks/usePrevious.d.ts +2 -0
- package/dist/src/common/hooks/usePrevious.js +11 -0
- package/dist/src/{desktop/components → common/styles}/ToneTest/ToneTest.d.ts +0 -0
- package/dist/src/{desktop/components → common/styles}/ToneTest/ToneTest.js +29 -17
- package/dist/src/{desktop/components → common/styles}/ToneTest/index.d.ts +0 -0
- package/dist/src/{desktop/components → common/styles}/ToneTest/index.js +0 -0
- package/dist/src/common/styles/colorSet/PaletteColor_Dark.json +8 -1
- package/dist/src/common/styles/colorSet/PaletteColor_light.json +8 -1
- package/dist/src/common/styles/colorSet/SemanticColor.json +2 -1
- package/dist/src/common/styles/colorSet/UIColor.json +15 -1
- package/dist/src/common/styles/colorSet/index.d.ts +31 -2
- package/dist/src/common/styles/colorSet/index.js +2 -2
- package/dist/src/common/styles/colorSet/ui-type.d.ts +14 -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/AdminListItem/AdminListItem.js +3 -3
- 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/BasicList/BasicList.d.ts +3 -3
- 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 +15 -15
- 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/DesktopAlertDialog/DesktopAlertDialog.d.ts +1 -1
- package/dist/src/desktop/components/Dropdown/Dropdown.d.ts +4 -3
- package/dist/src/desktop/components/Dropdown/Dropdown.js +40 -15
- package/dist/src/desktop/components/DynamicDesktopNavBar/DynamicDesktopNavBar.d.ts +6 -2
- package/dist/src/desktop/components/DynamicDesktopNavBar/DynamicDesktopNavBar.js +30 -9
- package/dist/src/desktop/components/DynamicDesktopNavBar/components/ContextMenuNavs/ContextMenuItemNav.js +9 -39
- package/dist/src/desktop/components/DynamicDesktopNavBar/components/IconNav.d.ts +3 -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.js +10 -3
- package/dist/src/desktop/components/DynamicDesktopNavBar/components/MenuItemNav/components/DisplayOnlyMenuItemNav.d.ts +12 -0
- package/dist/src/desktop/components/DynamicDesktopNavBar/components/MenuItemNav/components/DisplayOnlyMenuItemNav.js +31 -0
- package/dist/src/desktop/components/DynamicDesktopNavBar/components/MenuItemNav/components/InternalLinkMenuItemNav.d.ts +12 -0
- package/dist/src/desktop/components/DynamicDesktopNavBar/components/MenuItemNav/components/InternalLinkMenuItemNav.js +65 -0
- package/dist/src/desktop/components/DynamicDesktopNavBar/components/MenuItemNav/components/PAppMenuItemNav.js +8 -6
- package/dist/src/desktop/components/DynamicDesktopNavBar/components/MenuItemNav/components/WebMenuItemNav.d.ts +2 -1
- package/dist/src/desktop/components/DynamicDesktopNavBar/components/MenuItemNav/components/WebMenuItemNav.js +4 -4
- package/dist/src/desktop/components/DynamicDesktopNavBar/reducer.d.ts +16 -0
- package/dist/src/desktop/components/DynamicDesktopNavBar/reducer.js +23 -0
- package/dist/src/desktop/components/DynamicDesktopNavBar/types.d.ts +3 -1
- package/dist/src/desktop/components/EditApplyTextField/EditApplyTextField.d.ts +2 -1
- package/dist/src/desktop/components/EditApplyTextField/EditApplyTextField.js +13 -14
- package/dist/src/desktop/components/FilterBar/FilterBar.d.ts +1 -1
- package/dist/src/desktop/components/MainButton/MainButton.js +17 -5
- package/dist/src/desktop/components/Select/Select.d.ts +9 -7
- package/dist/src/desktop/components/Select/Select.js +20 -15
- 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 +12 -8
- 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/UserDesktopNavBar/UserDesktopNavBar.d.ts +1 -1
- 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/hybrid/components/Switch/Switch.js +4 -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/BasicList/BasicList.d.ts +3 -3
- 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 +15 -15
- 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 +3 -2
- package/dist/src/mobile/components/Dropdown/Dropdown.js +40 -15
- package/dist/src/mobile/components/MainButton/MainButton.js +17 -5
- package/dist/src/mobile/components/MobileAlertDialog/MobileAlertDialog.d.ts +1 -1
- package/dist/src/mobile/components/Select/Select.d.ts +9 -7
- package/dist/src/mobile/components/Select/Select.js +19 -14
- 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 +12 -8
- 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
|
@@ -31,14 +31,23 @@ 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, 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);
|
|
40
44
|
}
|
|
41
45
|
}, [defaultValue]);
|
|
46
|
+
(0, react_1.useEffect)(function () {
|
|
47
|
+
if (value) {
|
|
48
|
+
setSelectedValue(value);
|
|
49
|
+
}
|
|
50
|
+
}, [value]);
|
|
42
51
|
var handleClick = function () {
|
|
43
52
|
if (state === 'disabled' || state === 'read_only') {
|
|
44
53
|
return;
|
|
@@ -51,8 +60,10 @@ function Dropdown(_a) {
|
|
|
51
60
|
}
|
|
52
61
|
};
|
|
53
62
|
var handleClickOption = function (option) {
|
|
54
|
-
setSelectedOption(option);
|
|
55
63
|
setIsFocused(false);
|
|
64
|
+
if (!value) {
|
|
65
|
+
setSelectedValue(option);
|
|
66
|
+
}
|
|
56
67
|
if (onChange) {
|
|
57
68
|
onChange(option);
|
|
58
69
|
}
|
|
@@ -137,37 +148,48 @@ function Dropdown(_a) {
|
|
|
137
148
|
var LARGE_HEIGHT = 48;
|
|
138
149
|
return LARGE_HEIGHT * maxHeightItemNumber;
|
|
139
150
|
}, [size, maxHeightItemNumber]);
|
|
140
|
-
return (react_1.default.createElement(S_Dropdown, { className: "container", size: size, tabIndex: 0, onBlur: handleBlur, responsiveMode: responsiveMode },
|
|
141
|
-
react_1.default.createElement(S_Select, { size: size, onClick: handleClick, isFocused: isFocused, state: state, colorTheme: colorTheme, responsiveMode: responsiveMode },
|
|
142
|
-
react_1.default.createElement(S_TextLabel,
|
|
143
|
-
react_1.default.createElement(TextLabel_1.TextLabel, { text: (
|
|
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" })),
|
|
144
155
|
react_1.default.createElement(hybrid_1.Icon, { size: 16, fillType: "line", iconName: isFocused ? 'ic_arrow_up' : 'ic_arrow_down', colorKey: getIconColorKey() }),
|
|
145
156
|
react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_d", spacingType: "width" })),
|
|
146
157
|
isFocused && (react_1.default.createElement(S_ContextMenuWrapper, null,
|
|
147
|
-
react_1.default.createElement(ContextMenu_1.ContextMenu, { autoWidthMode: "use", maxHeight: maxHeight }, valueArray.map(function (el) { return (react_1.default.createElement(
|
|
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 },
|
|
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 }))); }))))));
|
|
148
160
|
}
|
|
149
|
-
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) {
|
|
150
162
|
var theme = _a.theme;
|
|
151
163
|
return theme.spacing.spacingD;
|
|
152
164
|
}, function (_a) {
|
|
153
165
|
var theme = _a.theme;
|
|
154
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];
|
|
155
174
|
});
|
|
156
|
-
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) {
|
|
157
176
|
var responsiveMode = _a.responsiveMode;
|
|
158
177
|
return (responsiveMode === 'use' ? '100%' : '432px');
|
|
159
178
|
});
|
|
160
|
-
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) {
|
|
161
180
|
var responsiveMode = _a.responsiveMode;
|
|
162
181
|
return (responsiveMode === 'use' ? '100%' : '188px');
|
|
163
182
|
});
|
|
164
|
-
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) {
|
|
165
184
|
var size = _a.size;
|
|
166
185
|
return size &&
|
|
167
186
|
{
|
|
168
187
|
large: large,
|
|
169
188
|
small: small
|
|
170
189
|
}[size];
|
|
190
|
+
}, function (_a) {
|
|
191
|
+
var customWidth = _a.customWidth;
|
|
192
|
+
return customWidth && "width: " + customWidth + ";";
|
|
171
193
|
});
|
|
172
194
|
var colorThemeBackgroundReadOnly = (0, styled_components_1.css)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n ", ";\n"], ["\n ", ";\n"])), function (_a) {
|
|
173
195
|
var colorTheme = _a.colorTheme, theme = _a.theme;
|
|
@@ -233,7 +255,7 @@ var borderColor = (0, styled_components_1.css)(templateObject_10 || (templateObj
|
|
|
233
255
|
return theme.ui_cpnt_dropdown_border_normal;
|
|
234
256
|
}
|
|
235
257
|
});
|
|
236
|
-
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) {
|
|
237
259
|
var state = _a.state;
|
|
238
260
|
switch (state) {
|
|
239
261
|
case 'disabled':
|
|
@@ -260,6 +282,9 @@ var S_Select = styled_components_1.default.div(templateObject_11 || (templateObj
|
|
|
260
282
|
large: large,
|
|
261
283
|
small: small
|
|
262
284
|
}[size];
|
|
285
|
+
}, function (_a) {
|
|
286
|
+
var customWidth = _a.customWidth;
|
|
287
|
+
return customWidth && "width: " + customWidth + ";";
|
|
263
288
|
});
|
|
264
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) {
|
|
265
290
|
var theme = _a.theme;
|
|
@@ -117,27 +117,39 @@ 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
|
|
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
|
+
var theme = _a.theme;
|
|
127
|
+
return theme.spacing.spacingE;
|
|
128
|
+
}, function (_a) {
|
|
126
129
|
var shapeType = _a.shapeType;
|
|
127
130
|
return shapeType === 'round' && 'border-radius: 14px;';
|
|
128
131
|
}, function (_a) {
|
|
129
132
|
var size = _a.size;
|
|
130
133
|
return size === 'rlarge' && 'width: 100%';
|
|
131
134
|
});
|
|
132
|
-
var medium = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n height: 40px;\n padding: 0
|
|
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
|
+
var theme = _a.theme;
|
|
137
|
+
return theme.spacing.spacingE;
|
|
138
|
+
}, function (_a) {
|
|
133
139
|
var shapeType = _a.shapeType;
|
|
134
140
|
return shapeType === 'round' && 'border-radius: 14px;';
|
|
135
141
|
});
|
|
136
|
-
var small = (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n height: 32px;\n padding: 0
|
|
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
|
+
var theme = _a.theme;
|
|
144
|
+
return theme.spacing.spacingD;
|
|
145
|
+
}, function (_a) {
|
|
137
146
|
var shapeType = _a.shapeType;
|
|
138
147
|
return shapeType === 'round' && 'border-radius: 10px;';
|
|
139
148
|
});
|
|
140
|
-
var xsmall = (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n height: 24px;\n padding: 0
|
|
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
|
+
var theme = _a.theme;
|
|
151
|
+
return theme.spacing.spacingD;
|
|
152
|
+
}, function (_a) {
|
|
141
153
|
var shapeType = _a.shapeType;
|
|
142
154
|
return shapeType === 'round' && 'border-radius: 8px;';
|
|
143
155
|
});
|
|
@@ -4,7 +4,7 @@ declare type MobileAlertDialogProps = {
|
|
|
4
4
|
iconMode?: 'none' | 'success' | 'error' | 'warning' | 'information';
|
|
5
5
|
titleText?: PDSTextType;
|
|
6
6
|
contentText: PDSTextType;
|
|
7
|
-
btnMode
|
|
7
|
+
btnMode?: 'tbtn_amount1' | 'tbtn_amount2' | 'tbtn_amount3';
|
|
8
8
|
btnStack?: 'side' | 'stack';
|
|
9
9
|
tBtn1Text?: PDSTextType;
|
|
10
10
|
tBtn2Text?: PDSTextType;
|
|
@@ -1,18 +1,20 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, { SelectHTMLAttributes } from 'react';
|
|
2
2
|
import { PDSTextType } from '../../../common';
|
|
3
|
-
declare type
|
|
3
|
+
declare type SelectOption = {
|
|
4
4
|
text: string;
|
|
5
|
-
value:
|
|
5
|
+
value: SelectHTMLAttributes<HTMLSelectElement>['value'];
|
|
6
6
|
};
|
|
7
7
|
declare type SelectProps = {
|
|
8
8
|
hintText?: PDSTextType;
|
|
9
|
-
defaultValue?:
|
|
10
|
-
|
|
9
|
+
defaultValue?: SelectOption;
|
|
10
|
+
value?: SelectOption['value'];
|
|
11
|
+
valueArray: SelectOption[];
|
|
11
12
|
size?: 'large' | 'medium' | 'small' | 'rlarge';
|
|
12
13
|
responsiveMode?: 'none' | 'use';
|
|
13
14
|
state?: 'normal' | 'read_only' | 'disabled';
|
|
14
|
-
onChange?: (e: React.ChangeEvent<HTMLSelectElement>) => void;
|
|
15
15
|
colorTheme?: 'none' | 'dark';
|
|
16
|
+
customWidth?: string;
|
|
17
|
+
onChange?: (e: React.ChangeEvent<HTMLSelectElement>) => void;
|
|
16
18
|
};
|
|
17
|
-
declare function Select({ hintText, defaultValue, valueArray, size, responsiveMode, state,
|
|
19
|
+
declare function Select({ hintText, defaultValue, value, valueArray, size, responsiveMode, state, colorTheme, customWidth, onChange }: SelectProps): JSX.Element;
|
|
18
20
|
export default Select;
|
|
@@ -22,19 +22,18 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
22
22
|
__setModuleDefault(result, mod);
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
+
};
|
|
25
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
var react_1 =
|
|
29
|
+
var react_1 = __importDefault(require("react"));
|
|
27
30
|
var styled_components_1 = __importStar(require("styled-components"));
|
|
28
31
|
var hybrid_1 = require("../../../hybrid");
|
|
32
|
+
var HINT = 'HINT_VALUE';
|
|
29
33
|
function Select(_a) {
|
|
30
|
-
var
|
|
31
|
-
var
|
|
32
|
-
var handleClick = function () {
|
|
33
|
-
state === 'normal' && setIsFocused(true);
|
|
34
|
-
};
|
|
35
|
-
var handleBlur = function () { return setIsFocused(false); };
|
|
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, _f = _a.colorTheme, colorTheme = _f === void 0 ? 'none' : _f, customWidth = _a.customWidth, onChange = _a.onChange;
|
|
36
36
|
var handleChange = function (e) {
|
|
37
|
-
setIsFocused(false);
|
|
38
37
|
if (onChange) {
|
|
39
38
|
onChange(e);
|
|
40
39
|
}
|
|
@@ -51,11 +50,11 @@ function Select(_a) {
|
|
|
51
50
|
}
|
|
52
51
|
return 'ui_cpnt_select_icon_01';
|
|
53
52
|
};
|
|
54
|
-
return (react_1.default.createElement(S_Box, { size: size, responsiveMode: responsiveMode,
|
|
53
|
+
return (react_1.default.createElement(S_Box, { size: size, responsiveMode: responsiveMode, tabIndex: 0, customWidth: customWidth },
|
|
55
54
|
react_1.default.createElement(S_Icon_Wrapper, { state: state },
|
|
56
|
-
react_1.default.createElement(hybrid_1.Icon, { size: 16, fillType: "line", iconName:
|
|
57
|
-
react_1.default.createElement(S_Select, { disabled: state === 'disabled' || state === 'read_only', defaultValue: (defaultValue === null || defaultValue === void 0 ? void 0 : defaultValue.value)
|
|
58
|
-
react_1.default.createElement("option", { disabled: true, value:
|
|
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 || undefined },
|
|
57
|
+
hintText && (react_1.default.createElement("option", { disabled: true, value: HINT }, hintText)),
|
|
59
58
|
valueArray.map(function (el) { return (react_1.default.createElement("option", { key: el.value, value: el.value }, el.text)); }))));
|
|
60
59
|
}
|
|
61
60
|
var large = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n height: 48px;\n width: 432px;\n"], ["\n height: 48px;\n width: 432px;\n"])));
|
|
@@ -89,7 +88,7 @@ var dark = (0, styled_components_1.css)(templateObject_5 || (templateObject_5 =
|
|
|
89
88
|
var theme = _a.theme;
|
|
90
89
|
return theme.ui_cpnt_select_text_darktheme_enabled;
|
|
91
90
|
});
|
|
92
|
-
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) {
|
|
93
92
|
var size = _a.size;
|
|
94
93
|
return size &&
|
|
95
94
|
{
|
|
@@ -101,12 +100,15 @@ var S_Box = styled_components_1.default.div(templateObject_6 || (templateObject_
|
|
|
101
100
|
}, function (_a) {
|
|
102
101
|
var responsiveMode = _a.responsiveMode;
|
|
103
102
|
return responsiveMode === 'use' && 'width: 100%';
|
|
103
|
+
}, function (_a) {
|
|
104
|
+
var customWidth = _a.customWidth;
|
|
105
|
+
return customWidth && "width: " + customWidth + ";";
|
|
104
106
|
});
|
|
105
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) {
|
|
106
108
|
var theme = _a.theme;
|
|
107
109
|
return theme.spacing.spacingD;
|
|
108
110
|
});
|
|
109
|
-
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) {
|
|
110
112
|
var theme = _a.theme;
|
|
111
113
|
return theme.ui_cpnt_select_base_normal;
|
|
112
114
|
}, function (_a) {
|
|
@@ -124,6 +126,9 @@ var S_Select = styled_components_1.default.select(templateObject_8 || (templateO
|
|
|
124
126
|
}, function (_a) {
|
|
125
127
|
var theme = _a.theme;
|
|
126
128
|
return theme.spacing.spacingD;
|
|
129
|
+
}, function (_a) {
|
|
130
|
+
var theme = _a.theme;
|
|
131
|
+
return theme.spacing.spacingF;
|
|
127
132
|
}, function (_a) {
|
|
128
133
|
var theme = _a.theme;
|
|
129
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;
|
|
@@ -74,13 +74,13 @@ function TextButton(_a) {
|
|
|
74
74
|
return (react_1.default.createElement(S_Button, __assign({}, rest, { size: size, responsiveMode: responsiveMode, onClick: handleClick, type: type, fontWeight: fontWeight, disabled: state === 'disabled', colorTheme: colorTheme }),
|
|
75
75
|
react_1.default.createElement(TextLabel_1.TextLabel, { text: text, styleTheme: textStyle[size], colorTheme: state === 'disabled' ? 'sysTextTertiary' : textColor[colorTheme], singleLineMode: "use" })));
|
|
76
76
|
}
|
|
77
|
-
var large = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n border-radius: 14px;\n height: 48px;\n ", ";\n"], ["\n border-radius: 14px;\n height: 48px;\n ", ";\n"])), function (_a) {
|
|
77
|
+
var large = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n border-radius: 14px;\n height: 48px;\n ", ";\n\n & > div {\n height: 48px;\n line-height: 48px;\n }\n"], ["\n border-radius: 14px;\n height: 48px;\n ", ";\n\n & > div {\n height: 48px;\n line-height: 48px;\n }\n"])), function (_a) {
|
|
78
78
|
var size = _a.size;
|
|
79
79
|
return size === 'rlarge' && 'width: 100%';
|
|
80
80
|
});
|
|
81
|
-
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"])));
|
|
82
|
-
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"])));
|
|
83
|
-
var xsmall = (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n border-radius: 8px;\n height: 24px;\n"], ["\n border-radius: 8px;\n height: 24px;\n"])));
|
|
81
|
+
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"])));
|
|
82
|
+
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"])));
|
|
83
|
+
var xsmall = (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n border-radius: 8px;\n height: 24px;\n\n & > div {\n height: 24px;\n line-height: 24px;\n }\n"], ["\n border-radius: 8px;\n height: 24px;\n\n & > div {\n height: 24px;\n line-height: 24px;\n }\n"])));
|
|
84
84
|
var S_Button = styled_components_1.default.button(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n align-items: center;\n background-color: transparent;\n border: none;\n box-sizing: border-box;\n display: flex;\n justify-content: center;\n padding-left: 8px;\n padding-right: 8px;\n\n &:active:enabled {\n background-color: ", ";\n }\n\n ", ";\n\n & > div {\n ", ";\n }\n ", ";\n"], ["\n align-items: center;\n background-color: transparent;\n border: none;\n box-sizing: border-box;\n display: flex;\n justify-content: center;\n padding-left: 8px;\n padding-right: 8px;\n\n &:active:enabled {\n background-color: ", ";\n }\n\n ", ";\n\n & > div {\n ", ";\n }\n ", ";\n"])), function (_a) {
|
|
85
85
|
var theme = _a.theme, colorTheme = _a.colorTheme;
|
|
86
86
|
return colorTheme === 'white'
|
|
@@ -27,6 +27,7 @@ export declare type TextFieldProps = {
|
|
|
27
27
|
max?: number;
|
|
28
28
|
maxLength?: number;
|
|
29
29
|
min?: number;
|
|
30
|
+
customWidth?: string;
|
|
30
31
|
onBlur?: (e: React.FocusEvent<HTMLInputElement> | React.FocusEvent<HTMLTextAreaElement>) => void;
|
|
31
32
|
onChange?: (e: React.ChangeEvent<HTMLInputElement> | React.ChangeEvent<HTMLTextAreaElement>) => void;
|
|
32
33
|
onClickIBtn1?: () => void;
|
|
@@ -35,5 +36,5 @@ export declare type TextFieldProps = {
|
|
|
35
36
|
onKeyUp?: (e: React.KeyboardEvent<HTMLInputElement> | React.KeyboardEvent<HTMLTextAreaElement>) => void;
|
|
36
37
|
onTarget?: () => void;
|
|
37
38
|
};
|
|
38
|
-
declare function TextField({ name, hintText, defaultText, validation, validationPoint, preventBlankMode, enterSubmitMode, size, responsiveMode, textLineType, multiRows, autoMinRows, autoMaxRows, inputType, state, iBtn1IconName, iBtn1IconFillType, iBtn2IconName, iBtn2IconFillType, colorTheme, max, maxLength, min, onBlur, onChange, onClickIBtn1, onClickIBtn2, onFocus, onKeyUp, onTarget }: TextFieldProps): JSX.Element;
|
|
39
|
+
declare function TextField({ name, hintText, defaultText, validation, validationPoint, preventBlankMode, enterSubmitMode, size, responsiveMode, textLineType, multiRows, autoMinRows, autoMaxRows, inputType, state, iBtn1IconName, iBtn1IconFillType, iBtn2IconName, iBtn2IconFillType, colorTheme, max, maxLength, min, customWidth, onBlur, onChange, onClickIBtn1, onClickIBtn2, onFocus, onKeyUp, onTarget }: TextFieldProps): JSX.Element;
|
|
39
40
|
export default TextField;
|
|
@@ -26,13 +26,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
26
26
|
/* eslint-disable react/jsx-no-bind */
|
|
27
27
|
var react_1 = __importStar(require("react"));
|
|
28
28
|
var react_hook_form_1 = require("react-hook-form");
|
|
29
|
-
var react_i18next_1 = require("react-i18next");
|
|
30
29
|
var styled_components_1 = __importStar(require("styled-components"));
|
|
31
30
|
var components_1 = require("../../common/components");
|
|
32
31
|
var IconButton_1 = require("../IconButton");
|
|
33
32
|
function TextField(_a) {
|
|
34
33
|
var _b;
|
|
35
|
-
var name = _a.name, hintText = _a.hintText, defaultText = _a.defaultText, validation = _a.validation, _c = _a.validationPoint, validationPoint = _c === void 0 ? 'onBlur' : _c, _d = _a.preventBlankMode, preventBlankMode = _d === void 0 ? 'none' : _d, _e = _a.enterSubmitMode, enterSubmitMode = _e === void 0 ? 'none' : _e, _f = _a.size, size = _f === void 0 ? 'large' : _f, _g = _a.responsiveMode, responsiveMode = _g === void 0 ? 'none' : _g, _h = _a.textLineType, textLineType = _h === void 0 ? 'single' : _h, _j = _a.multiRows, multiRows = _j === void 0 ? 8 : _j, _k = _a.autoMinRows, autoMinRows = _k === void 0 ? 8 : _k, autoMaxRows = _a.autoMaxRows, _l = _a.inputType, inputType = _l === void 0 ? 'text' : _l, _m = _a.state, state = _m === void 0 ? 'normal' : _m, iBtn1IconName = _a.iBtn1IconName, _o = _a.iBtn1IconFillType, iBtn1IconFillType = _o === void 0 ? 'line' : _o, iBtn2IconName = _a.iBtn2IconName, _p = _a.iBtn2IconFillType, iBtn2IconFillType = _p === void 0 ? 'line' : _p, _q = _a.colorTheme, colorTheme = _q === void 0 ? 'none' : _q, max = _a.max, maxLength = _a.maxLength, min = _a.min, onBlur = _a.onBlur, onChange = _a.onChange, onClickIBtn1 = _a.onClickIBtn1, onClickIBtn2 = _a.onClickIBtn2, onFocus = _a.onFocus, onKeyUp = _a.onKeyUp, onTarget = _a.onTarget;
|
|
34
|
+
var name = _a.name, hintText = _a.hintText, defaultText = _a.defaultText, validation = _a.validation, _c = _a.validationPoint, validationPoint = _c === void 0 ? 'onBlur' : _c, _d = _a.preventBlankMode, preventBlankMode = _d === void 0 ? 'none' : _d, _e = _a.enterSubmitMode, enterSubmitMode = _e === void 0 ? 'none' : _e, _f = _a.size, size = _f === void 0 ? 'large' : _f, _g = _a.responsiveMode, responsiveMode = _g === void 0 ? 'none' : _g, _h = _a.textLineType, textLineType = _h === void 0 ? 'single' : _h, _j = _a.multiRows, multiRows = _j === void 0 ? 8 : _j, _k = _a.autoMinRows, autoMinRows = _k === void 0 ? 8 : _k, autoMaxRows = _a.autoMaxRows, _l = _a.inputType, inputType = _l === void 0 ? 'text' : _l, _m = _a.state, state = _m === void 0 ? 'normal' : _m, iBtn1IconName = _a.iBtn1IconName, _o = _a.iBtn1IconFillType, iBtn1IconFillType = _o === void 0 ? 'line' : _o, iBtn2IconName = _a.iBtn2IconName, _p = _a.iBtn2IconFillType, iBtn2IconFillType = _p === void 0 ? 'line' : _p, _q = _a.colorTheme, colorTheme = _q === void 0 ? 'none' : _q, max = _a.max, maxLength = _a.maxLength, min = _a.min, customWidth = _a.customWidth, onBlur = _a.onBlur, onChange = _a.onChange, onClickIBtn1 = _a.onClickIBtn1, onClickIBtn2 = _a.onClickIBtn2, onFocus = _a.onFocus, onKeyUp = _a.onKeyUp, onTarget = _a.onTarget;
|
|
36
35
|
var iconThemeColorNoneObj = {
|
|
37
36
|
normal: 'ui_cpnt_button_icon_default',
|
|
38
37
|
read_only: 'ui_cpnt_button_icon_default',
|
|
@@ -43,7 +42,6 @@ function TextField(_a) {
|
|
|
43
42
|
read_only: 'ui_cpnt_textfield_icon_darktheme_default',
|
|
44
43
|
disabled: 'ui_cpnt_textfield_icon_darktheme_disabled'
|
|
45
44
|
};
|
|
46
|
-
var t = (0, react_i18next_1.useTranslation)('translation').t;
|
|
47
45
|
var _r = (0, react_1.useState)(false), isFocused = _r[0], setIsFocused = _r[1];
|
|
48
46
|
var _s = (0, react_hook_form_1.useFormContext)(), register = _s.register, trigger = _s.trigger, errors = _s.formState.errors;
|
|
49
47
|
var _t = register(name, validation), validateOnChange = _t.onChange, validateOnBlur = _t.onBlur;
|
|
@@ -117,11 +115,11 @@ function TextField(_a) {
|
|
|
117
115
|
}[colorTheme], iconFillType: iBtn1IconFillType === 'fill' ? 'fill' : 'line', state: state === 'disabled' ? 'disabled' : 'normal', onClick: handleClickIBtn1 })))));
|
|
118
116
|
}
|
|
119
117
|
};
|
|
120
|
-
return (react_1.default.createElement(S_TextFieldBox, { size: size, responsiveMode: responsiveMode },
|
|
121
|
-
react_1.default.createElement(S_TextFieldWrapper, { size: size, responsiveMode: responsiveMode, textLineType: textLineType, isFocused: isFocused, isError: isError, state: state, colorTheme: colorTheme }, S_TextField()),
|
|
122
|
-
((_b = errors[name]) === null || _b === void 0 ? void 0 : _b.message) && react_1.default.createElement(S_Error, null,
|
|
118
|
+
return (react_1.default.createElement(S_TextFieldBox, { size: size, responsiveMode: responsiveMode, customWidth: customWidth },
|
|
119
|
+
react_1.default.createElement(S_TextFieldWrapper, { size: size, responsiveMode: responsiveMode, textLineType: textLineType, isFocused: isFocused, isError: isError, state: state, colorTheme: colorTheme, customWidth: customWidth }, S_TextField()),
|
|
120
|
+
((_b = errors[name]) === null || _b === void 0 ? void 0 : _b.message) && react_1.default.createElement(S_Error, null, errors[name].message)));
|
|
123
121
|
}
|
|
124
|
-
var S_TextFieldBox = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", ";\n ", ";\n"], ["\n ", ";\n ", ";\n"])), function (_a) {
|
|
122
|
+
var S_TextFieldBox = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", ";\n ", ";\n ", "\n"], ["\n ", ";\n ", ";\n ", "\n"])), function (_a) {
|
|
125
123
|
var size = _a.size;
|
|
126
124
|
return size &&
|
|
127
125
|
{
|
|
@@ -133,6 +131,9 @@ var S_TextFieldBox = styled_components_1.default.div(templateObject_1 || (templa
|
|
|
133
131
|
}, function (_a) {
|
|
134
132
|
var responsiveMode = _a.responsiveMode;
|
|
135
133
|
return responsiveMode === 'use' && 'width: 100%';
|
|
134
|
+
}, function (_a) {
|
|
135
|
+
var customWidth = _a.customWidth;
|
|
136
|
+
return customWidth && "width: " + customWidth + ";";
|
|
136
137
|
});
|
|
137
138
|
var multi = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n height: auto;\n padding: 14px;\n"], ["\n height: auto;\n padding: 14px;\n"])));
|
|
138
139
|
var auto = (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n height: auto;\n padding-bottom: ", "px;\n padding-top: ", "px;\n"], ["\n height: auto;\n padding-bottom: ", "px;\n padding-top: ", "px;\n"])), function (_a) {
|
|
@@ -226,7 +227,7 @@ var dark_disabled = (0, styled_components_1.css)(templateObject_12 || (templateO
|
|
|
226
227
|
var theme = _a.theme;
|
|
227
228
|
return theme.ui_cpnt_textfield_border_darktheme_normal;
|
|
228
229
|
});
|
|
229
|
-
var S_TextFieldWrapper = styled_components_1.default.div(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n align-items: center;\n border-radius: 14px;\n box-sizing: border-box;\n display: flex;\n ", ";\n ", ";\n ", ";\n ", ";\n"], ["\n align-items: center;\n border-radius: 14px;\n box-sizing: border-box;\n display: flex;\n ", ";\n ", ";\n ", ";\n ", ";\n"])), function (_a) {
|
|
230
|
+
var S_TextFieldWrapper = styled_components_1.default.div(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n align-items: center;\n border-radius: 14px;\n box-sizing: border-box;\n display: flex;\n ", ";\n ", ";\n ", ";\n ", ";\n ", "\n"], ["\n align-items: center;\n border-radius: 14px;\n box-sizing: border-box;\n display: flex;\n ", ";\n ", ";\n ", ";\n ", ";\n ", "\n"])), function (_a) {
|
|
230
231
|
var size = _a.size;
|
|
231
232
|
return size &&
|
|
232
233
|
{
|
|
@@ -256,6 +257,9 @@ var S_TextFieldWrapper = styled_components_1.default.div(templateObject_13 || (t
|
|
|
256
257
|
}, function (_a) {
|
|
257
258
|
var responsiveMode = _a.responsiveMode;
|
|
258
259
|
return responsiveMode === 'use' && 'width: 100%';
|
|
260
|
+
}, function (_a) {
|
|
261
|
+
var customWidth = _a.customWidth;
|
|
262
|
+
return customWidth && "width: " + customWidth + ";";
|
|
259
263
|
});
|
|
260
264
|
var S_IconBox = styled_components_1.default.div(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n display: flex;\n"], ["\n display: flex;\n"])));
|
|
261
265
|
var S_Error = styled_components_1.default.div(templateObject_15 || (templateObject_15 = __makeTemplateObject(["\n color: ", ";\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n margin-top: ", ";\n text-align: left;\n"], ["\n color: ", ";\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n margin-top: ", ";\n text-align: left;\n"])), function (_a) {
|
|
@@ -84,12 +84,12 @@ function UploadMainButton(_a) {
|
|
|
84
84
|
size !== 'xsmall' && iconMode === 'left' && (react_1.default.createElement(react_1.default.Fragment, null,
|
|
85
85
|
react_1.default.createElement(hybrid_1.Icon, { iconName: iconName, size: size === 'large' || size === 'rlarge' ? 20 : 16, colorKey: iconColor(), fillType: iconFillType }),
|
|
86
86
|
react_1.default.createElement(hybrid_1.Spacing, { size: size === 'large' || size === 'rlarge' ? 'spacing_b' : 'spacing_a', spacingType: "width" }))),
|
|
87
|
-
react_1.default.createElement(TextLabel_1.TextLabel, { text: text, styleTheme: types_1.textStyles[size], singleLineMode: "use", colorTheme: state === 'disabled' ? 'sysTextTertiary' : textColor(), colorOverride: selectTextThemeColor() }),
|
|
87
|
+
react_1.default.createElement(TextLabel_1.TextLabel, { text: text, styleTheme: types_1.textStyles[size], singleLineMode: "use", colorTheme: state === 'disabled' ? 'sysTextTertiary' : textColor(), colorOverride: selectTextThemeColor(), ellipsisMode: "use", lineLimit: 1, wordBreak: "break_all" }),
|
|
88
88
|
size !== 'xsmall' && iconMode === 'right' && (react_1.default.createElement(react_1.default.Fragment, null,
|
|
89
89
|
react_1.default.createElement(hybrid_1.Spacing, { size: size === 'large' || size === 'rlarge' ? 'spacing_b' : 'spacing_a', spacingType: "width" }),
|
|
90
90
|
react_1.default.createElement(hybrid_1.Icon, { iconName: iconName, size: size === 'large' || size === 'rlarge' ? 20 : 16, colorKey: iconColor(), fillType: iconFillType })))));
|
|
91
91
|
}
|
|
92
|
-
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) {
|
|
92
|
+
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) {
|
|
93
93
|
var theme = _a.theme;
|
|
94
94
|
return theme.spacing.spacingE;
|
|
95
95
|
}, function (_a) {
|
|
@@ -99,21 +99,21 @@ var large = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 =
|
|
|
99
99
|
var size = _a.size;
|
|
100
100
|
return size === 'rlarge' && 'width: 100%';
|
|
101
101
|
});
|
|
102
|
-
var medium = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n height: 40px;\n padding: 0 ", ";\n ", "\n"], ["\n height: 40px;\n padding: 0 ", ";\n ", "\n"])), function (_a) {
|
|
102
|
+
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) {
|
|
103
103
|
var theme = _a.theme;
|
|
104
104
|
return theme.spacing.spacingE;
|
|
105
105
|
}, function (_a) {
|
|
106
106
|
var shapeType = _a.shapeType;
|
|
107
107
|
return shapeType === 'round' && 'border-radius: 14px;';
|
|
108
108
|
});
|
|
109
|
-
var small = (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n height: 32px;\n padding: 0 ", ";\n ", "\n"], ["\n height: 32px;\n padding: 0 ", ";\n ", "\n"])), function (_a) {
|
|
109
|
+
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) {
|
|
110
110
|
var theme = _a.theme;
|
|
111
111
|
return theme.spacing.spacingD;
|
|
112
112
|
}, function (_a) {
|
|
113
113
|
var shapeType = _a.shapeType;
|
|
114
114
|
return shapeType === 'round' && 'border-radius: 10px;';
|
|
115
115
|
});
|
|
116
|
-
var xsmall = (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n height: 24px;\n padding: 0 ", ";\n ", "\n"], ["\n height: 24px;\n padding: 0 ", ";\n ", "\n"])), function (_a) {
|
|
116
|
+
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) {
|
|
117
117
|
var theme = _a.theme;
|
|
118
118
|
return theme.spacing.spacingD;
|
|
119
119
|
}, function (_a) {
|
|
@@ -184,7 +184,7 @@ var primaryDisabled = (0, styled_components_1.css)(templateObject_13 || (templat
|
|
|
184
184
|
var theme = _a.theme;
|
|
185
185
|
return theme.ui_cpnt_button_fill_base_disabled;
|
|
186
186
|
});
|
|
187
|
-
var primary = (0, styled_components_1.css)(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n background-color: ", ";\n border: none;\n\n &:active:
|
|
187
|
+
var primary = (0, styled_components_1.css)(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n background-color: ", ";\n border: none;\n\n &:active:not([disabled]) {\n ", "\n }\n\n ", "\n"], ["\n background-color: ", ";\n border: none;\n\n &:active:not([disabled]) {\n ", "\n }\n\n ", "\n"])), function (_a) {
|
|
188
188
|
var theme = _a.theme;
|
|
189
189
|
return theme.ui_cpnt_button_fill_base_primary;
|
|
190
190
|
}, function (_a) {
|
|
@@ -198,7 +198,7 @@ var secondaryDisabled = (0, styled_components_1.css)(templateObject_15 || (templ
|
|
|
198
198
|
var theme = _a.theme;
|
|
199
199
|
return theme.ui_cpnt_button_line_base_hover;
|
|
200
200
|
});
|
|
201
|
-
var secondary = (0, styled_components_1.css)(templateObject_16 || (templateObject_16 = __makeTemplateObject(["\n background-color: ", ";\n border: none;\n\n &:active:
|
|
201
|
+
var secondary = (0, styled_components_1.css)(templateObject_16 || (templateObject_16 = __makeTemplateObject(["\n background-color: ", ";\n border: none;\n\n &:active:not([disabled]) {\n ", "\n }\n\n ", "\n"], ["\n background-color: ", ";\n border: none;\n\n &:active:not([disabled]) {\n ", "\n }\n\n ", "\n"])), function (_a) {
|
|
202
202
|
var theme = _a.theme;
|
|
203
203
|
return theme.ui_cpnt_button_line_base_hover;
|
|
204
204
|
}, function (_a) {
|
|
@@ -51,15 +51,15 @@ function UploadTextButton(_a) {
|
|
|
51
51
|
};
|
|
52
52
|
return (react_1.default.createElement(S_UploadTextButton, { size: size, responsiveMode: responsiveMode, fontWeight: fontWeight, disabled: state === 'disabled' },
|
|
53
53
|
react_1.default.createElement("input", { type: "file", hidden: true, disabled: state === 'disabled', accept: accept, multiple: multipleMode === 'use', onChange: handleClick }),
|
|
54
|
-
react_1.default.createElement(TextLabel_1.TextLabel, { text: text, styleTheme: textStyle[size], colorTheme: state === 'disabled' ? 'sysTextTertiary' : textColor[colorTheme], singleLineMode: "use" })));
|
|
54
|
+
react_1.default.createElement(TextLabel_1.TextLabel, { text: text, styleTheme: textStyle[size], colorTheme: state === 'disabled' ? 'sysTextTertiary' : textColor[colorTheme], singleLineMode: "use", ellipsisMode: "use", lineLimit: 1, wordBreak: "break_all" })));
|
|
55
55
|
}
|
|
56
|
-
var large = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n border-radius: 14px;\n height: 48px;\n width: ", ";\n"], ["\n border-radius: 14px;\n height: 48px;\n width: ", ";\n"])), function (_a) {
|
|
56
|
+
var large = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n border-radius: 14px;\n height: 48px;\n width: ", ";\n\n & > div {\n height: 48px;\n line-height: 48px;\n }\n"], ["\n border-radius: 14px;\n height: 48px;\n width: ", ";\n\n & > div {\n height: 48px;\n line-height: 48px;\n }\n"])), function (_a) {
|
|
57
57
|
var size = _a.size;
|
|
58
58
|
return size === 'rlarge' && '100%';
|
|
59
59
|
});
|
|
60
|
-
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"])));
|
|
61
|
-
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"])));
|
|
62
|
-
var xsmall = (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n border-radius: 8px;\n height: 24px;\n"], ["\n border-radius: 8px;\n height: 24px;\n"])));
|
|
60
|
+
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"])));
|
|
61
|
+
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"])));
|
|
62
|
+
var xsmall = (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n border-radius: 8px;\n height: 24px;\n\n & > div {\n height: 24px;\n line-height: 24px;\n }\n"], ["\n border-radius: 8px;\n height: 24px;\n\n & > div {\n height: 24px;\n line-height: 24px;\n }\n"])));
|
|
63
63
|
var S_UploadTextButton = styled_components_1.default.label(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n align-items: center;\n background-color: transparent;\n border: none;\n box-sizing: border-box;\n display: inline-flex;\n justify-content: center;\n padding: 0 ", ";\n\n &:active:not([disabled]) {\n background-color: ", ";\n }\n\n & > div {\n font-weight: ", ";\n }\n\n ", ";\n ", ";\n"], ["\n align-items: center;\n background-color: transparent;\n border: none;\n box-sizing: border-box;\n display: inline-flex;\n justify-content: center;\n padding: 0 ", ";\n\n &:active:not([disabled]) {\n background-color: ", ";\n }\n\n & > div {\n font-weight: ", ";\n }\n\n ", ";\n ", ";\n"])), function (_a) {
|
|
64
64
|
var theme = _a.theme;
|
|
65
65
|
return theme.spacing.spacingB;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { BasicChatListItem } from './BasicChatListItem';
|
|
1
2
|
import { BasicFormGroup } from './BasicFormGroup';
|
|
2
3
|
import { BasicList } from './BasicList';
|
|
3
4
|
import { BasicListItem } from './BasicListItem';
|
|
@@ -5,6 +6,7 @@ import { BlogTextField } from './BlogTextField';
|
|
|
5
6
|
import { BodyTextGroup } from './BodyTextGroup';
|
|
6
7
|
import { Card } from './Card';
|
|
7
8
|
import { CardList } from './CardList';
|
|
9
|
+
import { ChatList } from './ChatList';
|
|
8
10
|
import { Checkbox } from './Checkbox';
|
|
9
11
|
import { Chip } from './Chip';
|
|
10
12
|
import { ContextMenu } from './ContextMenu';
|
|
@@ -27,4 +29,4 @@ import { TextLabel } from './TextLabel';
|
|
|
27
29
|
import { UploadIconButton } from './UploadIconButton';
|
|
28
30
|
import { UploadMainButton } from './UploadMainButton';
|
|
29
31
|
import { UploadTextButton } from './UploadTextButton';
|
|
30
|
-
export { BasicFormGroup, BasicList, BasicListItem, BlogTextField, BodyTextGroup, Card, CardList, Checkbox, Chip, ContextMenu, ContextMenuItem, Dropdown, HorizontalFormGroup, IconButton, ImageSlide, MainButton, MobileAlertDialog, MobileHeaderBar, MobileTabBar, Radio, ReactionButton, Select, StatusBlock, TextButton, TextField, TextLabel, UploadIconButton, UploadMainButton, UploadTextButton };
|
|
32
|
+
export { BasicChatListItem, BasicFormGroup, BasicList, BasicListItem, BlogTextField, BodyTextGroup, Card, CardList, ChatList, Checkbox, Chip, ContextMenu, ContextMenuItem, Dropdown, HorizontalFormGroup, IconButton, ImageSlide, MainButton, MobileAlertDialog, MobileHeaderBar, MobileTabBar, Radio, ReactionButton, Select, StatusBlock, TextButton, TextField, TextLabel, UploadIconButton, UploadMainButton, UploadTextButton };
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UploadTextButton = exports.UploadMainButton = exports.UploadIconButton = exports.TextLabel = exports.TextField = exports.TextButton = exports.StatusBlock = exports.Select = exports.ReactionButton = exports.Radio = exports.MobileTabBar = exports.MobileHeaderBar = exports.MobileAlertDialog = exports.MainButton = exports.ImageSlide = exports.IconButton = exports.HorizontalFormGroup = exports.Dropdown = exports.ContextMenuItem = exports.ContextMenu = exports.Chip = exports.Checkbox = exports.CardList = exports.Card = exports.BodyTextGroup = exports.BlogTextField = exports.BasicListItem = exports.BasicList = exports.BasicFormGroup = void 0;
|
|
3
|
+
exports.UploadTextButton = exports.UploadMainButton = exports.UploadIconButton = exports.TextLabel = exports.TextField = exports.TextButton = exports.StatusBlock = exports.Select = exports.ReactionButton = exports.Radio = exports.MobileTabBar = exports.MobileHeaderBar = exports.MobileAlertDialog = exports.MainButton = exports.ImageSlide = exports.IconButton = exports.HorizontalFormGroup = exports.Dropdown = exports.ContextMenuItem = exports.ContextMenu = exports.Chip = exports.Checkbox = exports.ChatList = exports.CardList = exports.Card = exports.BodyTextGroup = exports.BlogTextField = exports.BasicListItem = exports.BasicList = exports.BasicFormGroup = exports.BasicChatListItem = void 0;
|
|
4
|
+
var BasicChatListItem_1 = require("./BasicChatListItem");
|
|
5
|
+
Object.defineProperty(exports, "BasicChatListItem", { enumerable: true, get: function () { return BasicChatListItem_1.BasicChatListItem; } });
|
|
4
6
|
var BasicFormGroup_1 = require("./BasicFormGroup");
|
|
5
7
|
Object.defineProperty(exports, "BasicFormGroup", { enumerable: true, get: function () { return BasicFormGroup_1.BasicFormGroup; } });
|
|
6
8
|
var BasicList_1 = require("./BasicList");
|
|
@@ -15,6 +17,8 @@ var Card_1 = require("./Card");
|
|
|
15
17
|
Object.defineProperty(exports, "Card", { enumerable: true, get: function () { return Card_1.Card; } });
|
|
16
18
|
var CardList_1 = require("./CardList");
|
|
17
19
|
Object.defineProperty(exports, "CardList", { enumerable: true, get: function () { return CardList_1.CardList; } });
|
|
20
|
+
var ChatList_1 = require("./ChatList");
|
|
21
|
+
Object.defineProperty(exports, "ChatList", { enumerable: true, get: function () { return ChatList_1.ChatList; } });
|
|
18
22
|
var Checkbox_1 = require("./Checkbox");
|
|
19
23
|
Object.defineProperty(exports, "Checkbox", { enumerable: true, get: function () { return Checkbox_1.Checkbox; } });
|
|
20
24
|
var Chip_1 = require("./Chip");
|
|
@@ -13,7 +13,7 @@ import { LayoutMS } from './layout/LayoutMS';
|
|
|
13
13
|
import { NavigationContainer as MSNavigationContainer } from './layout/LayoutMS/Containers';
|
|
14
14
|
import { ContainersBox as MSContainersBox } from './layout/LayoutMS/ContainersBox';
|
|
15
15
|
export { LayoutMS, MSNavigationContainer, MSContainersBox };
|
|
16
|
-
import { BasicFormGroup as M_BasicFormGroup, BasicList as M_BasicList, BasicListItem as M_BasicListItem, BlogTextField as M_BlogTextField, BodyTextGroup as M_BodyTextGroup, Card as M_Card, CardList as M_CardList, Checkbox as M_Checkbox, Chip as M_Chip, ContextMenu as M_ContextMenu, ContextMenuItem as M_ContextMenuItem, Dropdown as M_Dropdown, HorizontalFormGroup as M_HorizontalFormGroup, IconButton as M_IconButton, ImageSlide as M_ImageSlide, MainButton as M_MainButton, MobileAlertDialog as M_MobileAlertDialog, MobileHeaderBar as M_MobileHeaderBar, MobileTabBar as M_MobileTabBar, Radio as M_Radio, ReactionButton as M_ReactionButton, Select as M_Select, StatusBlock as M_StatusBlock, TextButton as M_TextButton, TextField as M_TextField, TextLabel as M_TextLabel, UploadIconButton as M_UploadIconButton, UploadMainButton as M_UploadMainButton, UploadTextButton as M_UploadTextButton } from './components';
|
|
17
|
-
export { M_BasicFormGroup, M_BasicList, M_BasicListItem, M_BlogTextField, M_BodyTextGroup, M_Card, M_CardList, M_Checkbox, M_Chip, M_ContextMenu, M_ContextMenuItem, M_Dropdown, M_HorizontalFormGroup, M_IconButton, M_ImageSlide, M_MainButton, M_MobileAlertDialog, M_MobileHeaderBar, M_MobileTabBar, M_Radio, M_ReactionButton, M_Select, M_StatusBlock, M_TextButton, M_TextField, M_TextLabel, M_UploadIconButton, M_UploadMainButton, M_UploadTextButton };
|
|
16
|
+
import { BasicChatListItem as M_BasicChatListItem, BasicFormGroup as M_BasicFormGroup, BasicList as M_BasicList, BasicListItem as M_BasicListItem, BlogTextField as M_BlogTextField, BodyTextGroup as M_BodyTextGroup, Card as M_Card, CardList as M_CardList, ChatList as M_ChatList, Checkbox as M_Checkbox, Chip as M_Chip, ContextMenu as M_ContextMenu, ContextMenuItem as M_ContextMenuItem, Dropdown as M_Dropdown, HorizontalFormGroup as M_HorizontalFormGroup, IconButton as M_IconButton, ImageSlide as M_ImageSlide, MainButton as M_MainButton, MobileAlertDialog as M_MobileAlertDialog, MobileHeaderBar as M_MobileHeaderBar, MobileTabBar as M_MobileTabBar, Radio as M_Radio, ReactionButton as M_ReactionButton, Select as M_Select, StatusBlock as M_StatusBlock, TextButton as M_TextButton, TextField as M_TextField, TextLabel as M_TextLabel, UploadIconButton as M_UploadIconButton, UploadMainButton as M_UploadMainButton, UploadTextButton as M_UploadTextButton } from './components';
|
|
17
|
+
export { M_BasicChatListItem, M_BasicFormGroup, M_BasicList, M_BasicListItem, M_BlogTextField, M_BodyTextGroup, M_Card, M_CardList, M_ChatList, M_Checkbox, M_Chip, M_ContextMenu, M_ContextMenuItem, M_Dropdown, M_HorizontalFormGroup, M_IconButton, M_ImageSlide, M_MainButton, M_MobileAlertDialog, M_MobileHeaderBar, M_MobileTabBar, M_Radio, M_ReactionButton, M_Select, M_StatusBlock, M_TextButton, M_TextField, M_TextLabel, M_UploadIconButton, M_UploadMainButton, M_UploadTextButton };
|
|
18
18
|
import { MobileBasicModal as M_MobileBasicModal } from './panels';
|
|
19
19
|
export { M_MobileBasicModal };
|