pds-dev-kit-web-test 0.0.7 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +4 -4
- package/dist/index.js +5 -3
- package/dist/src/common/assets/icons/line/Coins.d.ts +4 -0
- package/dist/src/common/assets/icons/line/Coins.js +34 -0
- package/dist/src/common/assets/icons/line/Home.d.ts +4 -0
- package/dist/src/common/assets/icons/line/Home.js +36 -0
- package/dist/src/common/assets/icons/line/PostPaperPlane.d.ts +4 -0
- package/dist/src/common/assets/icons/line/PostPaperPlane.js +36 -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/styles/colorSet/PaletteColor_Dark.json +2 -1
- package/dist/src/common/styles/colorSet/PaletteColor_light.json +2 -1
- package/dist/src/common/styles/colorSet/UIColor.json +16 -1
- package/dist/src/common/styles/colorSet/index.d.ts +196 -179
- package/dist/src/common/styles/colorSet/index.js +3 -3
- package/dist/src/common/styles/colorSet/ui-type.d.ts +15 -0
- package/dist/src/common/styles/theme.js +22 -22
- package/dist/src/desktop/common/components/TextFieldBase/TextFieldBase.d.ts +2 -1
- package/dist/src/desktop/common/components/TextFieldBase/TextFieldBase.js +6 -6
- package/dist/src/desktop/components/AdminList/AdminList.d.ts +17 -11
- package/dist/src/desktop/components/AdminList/AdminList.js +5 -28
- 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/AdminListItem/AdminListItem.d.ts +2 -2
- package/dist/src/desktop/components/BasicChatListItem/BasicChatListItem.js +15 -15
- package/dist/src/desktop/components/ChatBubbleListItem/ChatBubble.d.ts +8 -0
- package/dist/src/desktop/components/ChatBubbleListItem/ChatBubble.js +76 -0
- package/dist/src/desktop/components/ChatBubbleListItem/ChatBubbleListItem.d.ts +17 -0
- package/dist/src/desktop/components/ChatBubbleListItem/ChatBubbleListItem.js +160 -0
- package/dist/src/desktop/components/ChatBubbleListItem/Popup.d.ts +19 -0
- package/dist/src/desktop/components/ChatBubbleListItem/Popup.js +238 -0
- package/dist/src/desktop/components/ChatBubbleListItem/index.d.ts +1 -0
- package/dist/src/desktop/components/ChatBubbleListItem/index.js +8 -0
- package/dist/src/desktop/components/ChatList/Body.d.ts +4 -4
- package/dist/src/desktop/components/ChatList/Body.js +38 -19
- package/dist/src/desktop/components/ChatList/ChatList.d.ts +22 -1
- package/dist/src/desktop/components/ChatList/ChatList.js +20 -8
- package/dist/src/desktop/components/ChatList/ChatTextField.d.ts +22 -4
- package/dist/src/desktop/components/ChatList/ChatTextField.js +24 -6
- package/dist/src/desktop/components/ChatList/Footer.d.ts +21 -3
- package/dist/src/desktop/components/ChatList/Footer.js +2 -2
- package/dist/src/desktop/components/ChatList/Header.d.ts +2 -2
- package/dist/src/desktop/components/ChatList/Header.js +6 -3
- package/dist/src/desktop/components/ChatList/useAutoScrollToBottom.js +7 -2
- package/dist/src/desktop/components/DesktopTabBar/DesktopTabBar.js +41 -47
- package/dist/src/desktop/components/Dropdown/Dropdown.d.ts +1 -1
- package/dist/src/desktop/components/Dropdown/Dropdown.js +23 -8
- package/dist/src/desktop/components/DynamicDesktopNavBar/components/ContextMenuNavs/ContextMenuItemNav.js +1 -1
- package/dist/src/desktop/components/FilterBar/FilterBar.js +1 -1
- package/dist/src/desktop/components/TextField/TextField.d.ts +2 -1
- package/dist/src/desktop/components/TextField/TextField.js +7 -7
- package/dist/src/desktop/components/UserDesktopNavBar/UserDesktopNavBar.js +4 -1
- package/dist/src/desktop/components/index.d.ts +2 -1
- package/dist/src/desktop/components/index.js +3 -1
- package/dist/src/desktop/index.d.ts +2 -2
- package/dist/src/desktop/index.js +3 -2
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/ContentsContainer.d.ts +1 -1
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/ContentsContainer.js +5 -4
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTN.d.ts +3 -2
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTN.js +2 -2
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTQ.js +1 -1
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTU.d.ts +13 -0
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTU.js +96 -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/ContainersBox/ContainersBox.d.ts +1 -1
- package/dist/src/desktop/layout/LayoutWT/ContainersBox/ContainersBox.js +8 -4
- package/dist/src/desktop/panels/DesktopBasicModal/DesktopBasicModal.js +7 -4
- package/dist/src/mobile/common/components/TextFieldBase/TextFieldBase.d.ts +2 -1
- package/dist/src/mobile/common/components/TextFieldBase/TextFieldBase.js +6 -6
- package/dist/src/mobile/components/BasicChatListItem/BasicChatListItem.js +15 -15
- package/dist/src/mobile/components/ChatBubbleListItem/ChatBubble.d.ts +8 -0
- package/dist/src/mobile/components/ChatBubbleListItem/ChatBubble.js +76 -0
- package/dist/src/mobile/components/ChatBubbleListItem/ChatBubbleListItem.d.ts +17 -0
- package/dist/src/mobile/components/ChatBubbleListItem/ChatBubbleListItem.js +160 -0
- package/dist/src/mobile/components/ChatBubbleListItem/Popup.d.ts +19 -0
- package/dist/src/mobile/components/ChatBubbleListItem/Popup.js +238 -0
- package/dist/src/mobile/components/ChatBubbleListItem/index.d.ts +1 -0
- package/dist/src/mobile/components/ChatBubbleListItem/index.js +8 -0
- package/dist/src/mobile/components/ChatList/Body.d.ts +4 -4
- package/dist/src/mobile/components/ChatList/Body.js +47 -32
- package/dist/src/mobile/components/ChatList/ChatList.d.ts +22 -1
- package/dist/src/mobile/components/ChatList/ChatList.js +20 -8
- package/dist/src/mobile/components/ChatList/ChatTextField.d.ts +22 -4
- package/dist/src/mobile/components/ChatList/ChatTextField.js +24 -6
- package/dist/src/mobile/components/ChatList/Footer.d.ts +21 -3
- package/dist/src/mobile/components/ChatList/Footer.js +2 -2
- package/dist/src/mobile/components/ChatList/Header.d.ts +2 -2
- package/dist/src/mobile/components/ChatList/Header.js +6 -3
- package/dist/src/mobile/components/ChatList/useAutoScrollToBottom.js +7 -2
- package/dist/src/mobile/components/Dropdown/Dropdown.d.ts +1 -1
- package/dist/src/mobile/components/Dropdown/Dropdown.js +23 -8
- package/dist/src/mobile/components/MobileHeaderBar/MobileHeaderBar.d.ts +2 -1
- package/dist/src/mobile/components/MobileHeaderBar/MobileHeaderBar.js +23 -13
- package/dist/src/mobile/components/TextField/TextField.d.ts +2 -1
- package/dist/src/mobile/components/TextField/TextField.js +7 -7
- package/dist/src/mobile/components/index.d.ts +2 -1
- package/dist/src/mobile/components/index.js +3 -1
- package/dist/src/mobile/index.d.ts +2 -2
- package/dist/src/mobile/index.js +2 -1
- package/package.json +1 -1
- package/release-note.md +3 -2
- package/dist/src/mobile/components/ChatList/useTimeout.d.ts +0 -6
- package/dist/src/mobile/components/ChatList/useTimeout.js +0 -11
|
@@ -11,9 +11,9 @@ var react_1 = __importDefault(require("react"));
|
|
|
11
11
|
var styled_components_1 = __importDefault(require("styled-components"));
|
|
12
12
|
var ChatTextField_1 = __importDefault(require("./ChatTextField"));
|
|
13
13
|
function Footer(_a) {
|
|
14
|
-
var footerChildren = _a.footerChildren, textFieldDefaultText = _a.textFieldDefaultText, textFieldHintText = _a.textFieldHintText, textFieldState = _a.textFieldState, textFieldMaxLength = _a.textFieldMaxLength, isSubmitBtnActive = _a.isSubmitBtnActive;
|
|
14
|
+
var footerChildren = _a.footerChildren, textFieldDefaultText = _a.textFieldDefaultText, textFieldHintText = _a.textFieldHintText, textFieldState = _a.textFieldState, textFieldMaxLength = _a.textFieldMaxLength, submitIBtnIconName = _a.submitIBtnIconName, submitIBtnIconFillType = _a.submitIBtnIconFillType, isSubmitBtnActive = _a.isSubmitBtnActive, footerIBtn1State = _a.footerIBtn1State, footerIBtn1IconName = _a.footerIBtn1IconName, footerIBtn1IconFillType = _a.footerIBtn1IconFillType, footerIBtn1Type = _a.footerIBtn1Type, onClickFooterIBtn1 = _a.onClickFooterIBtn1, footerIBtn2State = _a.footerIBtn2State, footerIBtn2IconName = _a.footerIBtn2IconName, footerIBtn2IconFillType = _a.footerIBtn2IconFillType, footerIBtn2Type = _a.footerIBtn2Type, onClickFooterIBtn2 = _a.onClickFooterIBtn2, footerIBtn3State = _a.footerIBtn3State, footerIBtn3IconName = _a.footerIBtn3IconName, footerIBtn3IconFillType = _a.footerIBtn3IconFillType, footerIBtn3Type = _a.footerIBtn3Type, footerIBtn3Accept = _a.footerIBtn3Accept, onClickFooterIBtn3 = _a.onClickFooterIBtn3;
|
|
15
15
|
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
16
|
-
react_1.default.createElement(ChatTextField_1.default, { textFieldDefaultText: textFieldDefaultText, textFieldHintText: textFieldHintText, textFieldState: textFieldState, textFieldMaxLength: textFieldMaxLength, isSubmitBtnActive: isSubmitBtnActive }),
|
|
16
|
+
react_1.default.createElement(ChatTextField_1.default, { textFieldDefaultText: textFieldDefaultText, textFieldHintText: textFieldHintText, textFieldState: textFieldState, textFieldMaxLength: textFieldMaxLength, isSubmitBtnActive: isSubmitBtnActive, submitIBtnIconName: submitIBtnIconName, submitIBtnIconFillType: submitIBtnIconFillType, footerIBtn1State: footerIBtn1State, footerIBtn1IconName: footerIBtn1IconName, footerIBtn1IconFillType: footerIBtn1IconFillType, footerIBtn1Type: footerIBtn1Type, onClickFooterIBtn1: onClickFooterIBtn1, footerIBtn2State: footerIBtn2State, footerIBtn2IconName: footerIBtn2IconName, footerIBtn2IconFillType: footerIBtn2IconFillType, footerIBtn2Type: footerIBtn2Type, onClickFooterIBtn2: onClickFooterIBtn2, footerIBtn3State: footerIBtn3State, footerIBtn3IconName: footerIBtn3IconName, footerIBtn3IconFillType: footerIBtn3IconFillType, footerIBtn3Type: footerIBtn3Type, footerIBtn3Accept: footerIBtn3Accept, onClickFooterIBtn3: onClickFooterIBtn3 }),
|
|
17
17
|
react_1.default.createElement(S_FooterChildrenWrapper, null, footerChildren)));
|
|
18
18
|
}
|
|
19
19
|
var S_FooterChildrenWrapper = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n padding-left: ", ";\n padding-right: ", ";\n"], ["\n padding-left: ", ";\n padding-right: ", ";\n"])), function (_a) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { Props as ChatListProps } from './ChatList';
|
|
3
|
-
declare type Props = Required<Pick<ChatListProps, 'styleTheme'>> & Pick<ChatListProps, 'titleText' | 'captionText' | 'headerDisplayType' | 'headerIBtn1IconName' | 'headerIBtn1IconFillType' | 'onClickHeaderIBtn1'>;
|
|
4
|
-
declare function Header({ styleTheme, titleText, captionText, headerDisplayType, headerIBtn1IconName, headerIBtn1IconFillType, onClickHeaderIBtn1 }: Props): JSX.Element;
|
|
3
|
+
declare type Props = Required<Pick<ChatListProps, 'styleTheme'>> & Pick<ChatListProps, 'titleText' | 'descText' | 'captionText' | 'titleStyleTheme' | 'headerDisplayType' | 'headerIBtn1IconName' | 'headerIBtn1IconFillType' | 'onClickHeaderIBtn1'>;
|
|
4
|
+
declare function Header({ styleTheme, titleText, descText, captionText, titleStyleTheme, headerDisplayType, headerIBtn1IconName, headerIBtn1IconFillType, onClickHeaderIBtn1 }: Props): JSX.Element;
|
|
5
5
|
export default Header;
|
|
@@ -23,13 +23,16 @@ var iconColors = {
|
|
|
23
23
|
transparent: 'ui_cpnt_button_icon_white'
|
|
24
24
|
};
|
|
25
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;
|
|
26
|
+
var styleTheme = _a.styleTheme, titleText = _a.titleText, descText = _a.descText, captionText = _a.captionText, titleStyleTheme = _a.titleStyleTheme, headerDisplayType = _a.headerDisplayType, headerIBtn1IconName = _a.headerIBtn1IconName, headerIBtn1IconFillType = _a.headerIBtn1IconFillType, onClickHeaderIBtn1 = _a.onClickHeaderIBtn1;
|
|
27
27
|
return (react_1.default.createElement(S_HeaderContentWrapper, null,
|
|
28
28
|
react_1.default.createElement(S_HeaderLeftBox, null,
|
|
29
|
-
titleText && (react_1.default.createElement(TextLabel_1.TextLabel, { text: titleText, styleTheme:
|
|
29
|
+
titleText && (react_1.default.createElement(TextLabel_1.TextLabel, { text: titleText, styleTheme: titleStyleTheme, colorTheme: titleTextColors[styleTheme], wordBreak: "break_all" })),
|
|
30
|
+
descText && (react_1.default.createElement(react_1.default.Fragment, null,
|
|
31
|
+
react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_c" }),
|
|
32
|
+
react_1.default.createElement(TextLabel_1.TextLabel, { text: descText, styleTheme: "body2Regular", colorTheme: "sysTextSecondary", colorOverride: styleTheme === 'translucent' ? 'ui_cpnt_list_text_caption_02' : undefined, wordBreak: "break_all" }))),
|
|
30
33
|
captionText && (react_1.default.createElement(react_1.default.Fragment, null,
|
|
31
34
|
react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_a" }),
|
|
32
|
-
react_1.default.createElement(TextLabel_1.TextLabel, { text: captionText, styleTheme: "caption1Regular", colorTheme: "
|
|
35
|
+
react_1.default.createElement(TextLabel_1.TextLabel, { text: captionText, styleTheme: "caption1Regular", colorTheme: "sysTextTertiary", colorOverride: styleTheme === 'translucent' ? 'ui_cpnt_list_text_caption_03' : undefined, wordBreak: "break_all" })))),
|
|
33
36
|
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
37
|
}
|
|
35
38
|
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) {
|
|
@@ -32,11 +32,16 @@ function useAutoScrollToBottom(_a) {
|
|
|
32
32
|
(0, react_1.useEffect)(function () {
|
|
33
33
|
if (scrollRef.current) {
|
|
34
34
|
scrollRef.current.scrollIntoView({ behavior: behavior });
|
|
35
|
+
// NOTE: 스크롤을 빠르게 하는 중에 scrollIntoView시 스크롤 영역만큼 렌더가 안되는 이슈에 대한 임시조치
|
|
36
|
+
setTimeout(function () {
|
|
37
|
+
var _a;
|
|
38
|
+
(_a = scrollRef === null || scrollRef === void 0 ? void 0 : scrollRef.current) === null || _a === void 0 ? void 0 : _a.scrollIntoView({ behavior: behavior });
|
|
39
|
+
}, 100);
|
|
35
40
|
}
|
|
36
41
|
}, [scrollTrigger]);
|
|
37
|
-
|
|
42
|
+
var triggerScrollToBottom = (0, react_1.useCallback)(function () {
|
|
38
43
|
setScrollTrigger(function (prev) { return !prev; });
|
|
39
|
-
}
|
|
44
|
+
}, []);
|
|
40
45
|
function EndOfList() {
|
|
41
46
|
return react_1.default.createElement("li", { style: { listStyle: 'none', height: heightOfEndOfList + "px" }, ref: scrollRef });
|
|
42
47
|
}
|
|
@@ -7,7 +7,7 @@ declare type DropDownValues = PDSValueOption & {
|
|
|
7
7
|
declare type Props = {
|
|
8
8
|
colorTheme?: 'none' | 'dark' | 'white';
|
|
9
9
|
defaultValue?: PDSValueOption;
|
|
10
|
-
value?: PDSValueOption;
|
|
10
|
+
value?: PDSValueOption | null;
|
|
11
11
|
hintText?: TFunctionResult;
|
|
12
12
|
maxHeightItemNumber?: number;
|
|
13
13
|
responsiveMode?: 'none' | 'use';
|
|
@@ -37,17 +37,32 @@ function Dropdown(_a) {
|
|
|
37
37
|
// selectionMode = 'single',
|
|
38
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
39
|
var _g = (0, react_1.useState)(false), isFocused = _g[0], setIsFocused = _g[1];
|
|
40
|
-
var _h = (0, react_1.useState)(
|
|
40
|
+
var _h = (0, react_1.useState)(null), selectedValue = _h[0], setSelectedValue = _h[1];
|
|
41
|
+
/**
|
|
42
|
+
* @when value 프롭의 값에 따라
|
|
43
|
+
* @expected 값이 null일 때 드롭다운을 초기화하고, 값이 있다면 해당 값으로 설정해줍니다.
|
|
44
|
+
* @clear -
|
|
45
|
+
*/
|
|
41
46
|
(0, react_1.useEffect)(function () {
|
|
42
|
-
if (
|
|
43
|
-
setSelectedValue(
|
|
47
|
+
if (value === null) {
|
|
48
|
+
setSelectedValue(null);
|
|
49
|
+
return;
|
|
44
50
|
}
|
|
45
|
-
|
|
46
|
-
(0, react_1.useEffect)(function () {
|
|
47
|
-
if (value) {
|
|
51
|
+
if (value !== undefined) {
|
|
48
52
|
setSelectedValue(value);
|
|
49
53
|
}
|
|
50
54
|
}, [value]);
|
|
55
|
+
/**
|
|
56
|
+
* @when defaultValue 프롭에 값이 있을 시
|
|
57
|
+
* @expected Dropdown의 초기값을 설정해줍니다.
|
|
58
|
+
* @clear -
|
|
59
|
+
*/
|
|
60
|
+
(0, react_1.useEffect)(function () {
|
|
61
|
+
if (!defaultValue) {
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
64
|
+
setSelectedValue(defaultValue);
|
|
65
|
+
}, [defaultValue]);
|
|
51
66
|
var handleClick = function () {
|
|
52
67
|
if (state === 'disabled' || state === 'read_only') {
|
|
53
68
|
return;
|
|
@@ -61,7 +76,7 @@ function Dropdown(_a) {
|
|
|
61
76
|
};
|
|
62
77
|
var handleClickOption = function (option) {
|
|
63
78
|
setIsFocused(false);
|
|
64
|
-
if (
|
|
79
|
+
if (value === undefined) {
|
|
65
80
|
setSelectedValue(option);
|
|
66
81
|
}
|
|
67
82
|
if (onChange) {
|
|
@@ -150,7 +165,7 @@ function Dropdown(_a) {
|
|
|
150
165
|
}, [size, maxHeightItemNumber]);
|
|
151
166
|
return (react_1.default.createElement(S_Dropdown, { className: "container", size: size, tabIndex: 0, onBlur: handleBlur, responsiveMode: responsiveMode, customWidth: customWidth },
|
|
152
167
|
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 },
|
|
168
|
+
react_1.default.createElement(S_TextLabel, { size: size, responsiveMode: responsiveMode },
|
|
154
169
|
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" })),
|
|
155
170
|
react_1.default.createElement(hybrid_1.Icon, { size: 16, fillType: "line", iconName: isFocused ? 'ic_arrow_up' : 'ic_arrow_down', colorKey: getIconColorKey() }),
|
|
156
171
|
react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_d", spacingType: "width" })),
|
|
@@ -3,6 +3,7 @@ import { FillIconNameKeys, LineIconNameKeys, PDSTextType, UiColors } from '../..
|
|
|
3
3
|
declare type Props = {
|
|
4
4
|
titleType?: 'text' | 'profile' | 'image';
|
|
5
5
|
titleText?: PDSTextType;
|
|
6
|
+
captionText?: PDSTextType;
|
|
6
7
|
leftBtnMode?: 'none' | 'back' | 'menu' | 'close';
|
|
7
8
|
displayType?: 'none' | 'ibtn_amount1' | 'ibtn_amount2';
|
|
8
9
|
iBtn1IconName?: FillIconNameKeys | LineIconNameKeys;
|
|
@@ -21,5 +22,5 @@ declare type Props = {
|
|
|
21
22
|
onClickIBtn1?: () => void;
|
|
22
23
|
onClickIBtn2?: () => void;
|
|
23
24
|
};
|
|
24
|
-
declare function MobileHeaderBar({ titleType, titleText, leftBtnMode, displayType, iBtn1IconName, iBtn1IconFillType, iBtn1IconColorKey, iBtn2IconName, iBtn2IconFillType, iBtn2IconColorKey, dividerMode, imageSrc, iBtn1State, iBtn1Type, iBtn2State, iBtn2Type, onClickLeftBtn, onClickIBtn1, onClickIBtn2 }: Props): JSX.Element;
|
|
25
|
+
declare function MobileHeaderBar({ titleType, titleText, captionText, leftBtnMode, displayType, iBtn1IconName, iBtn1IconFillType, iBtn1IconColorKey, iBtn2IconName, iBtn2IconFillType, iBtn2IconColorKey, dividerMode, imageSrc, iBtn1State, iBtn1Type, iBtn2State, iBtn2Type, onClickLeftBtn, onClickIBtn1, onClickIBtn2 }: Props): JSX.Element;
|
|
25
26
|
export default MobileHeaderBar;
|
|
@@ -13,7 +13,7 @@ var hybrid_1 = require("../../../hybrid");
|
|
|
13
13
|
var IconButton_1 = require("../IconButton");
|
|
14
14
|
var TextLabel_1 = require("../TextLabel");
|
|
15
15
|
function MobileHeaderBar(_a) {
|
|
16
|
-
var _b = _a.titleType, titleType = _b === void 0 ? 'text' : _b, titleText = _a.titleText, _c = _a.leftBtnMode, leftBtnMode = _c === void 0 ? 'back' : _c, _d = _a.displayType, displayType = _d === void 0 ? 'none' : _d, iBtn1IconName = _a.iBtn1IconName, _e = _a.iBtn1IconFillType, iBtn1IconFillType = _e === void 0 ? 'line' : _e, _f = _a.iBtn1IconColorKey, iBtn1IconColorKey = _f === void 0 ? 'ui_cpnt_button_icon_enabled' : _f, iBtn2IconName = _a.iBtn2IconName, _g = _a.iBtn2IconFillType, iBtn2IconFillType = _g === void 0 ? 'line' : _g, _h = _a.iBtn2IconColorKey, iBtn2IconColorKey = _h === void 0 ? 'ui_cpnt_button_icon_enabled' : _h, _j = _a.dividerMode, dividerMode = _j === void 0 ? 'none' : _j, imageSrc = _a.imageSrc, _k = _a.iBtn1State, iBtn1State = _k === void 0 ? 'normal' : _k, _l = _a.iBtn1Type, iBtn1Type = _l === void 0 ? 'button' : _l, _m = _a.iBtn2State, iBtn2State = _m === void 0 ? 'normal' : _m, _o = _a.iBtn2Type, iBtn2Type = _o === void 0 ? 'button' : _o, onClickLeftBtn = _a.onClickLeftBtn, onClickIBtn1 = _a.onClickIBtn1, onClickIBtn2 = _a.onClickIBtn2;
|
|
16
|
+
var _b = _a.titleType, titleType = _b === void 0 ? 'text' : _b, titleText = _a.titleText, captionText = _a.captionText, _c = _a.leftBtnMode, leftBtnMode = _c === void 0 ? 'back' : _c, _d = _a.displayType, displayType = _d === void 0 ? 'none' : _d, iBtn1IconName = _a.iBtn1IconName, _e = _a.iBtn1IconFillType, iBtn1IconFillType = _e === void 0 ? 'line' : _e, _f = _a.iBtn1IconColorKey, iBtn1IconColorKey = _f === void 0 ? 'ui_cpnt_button_icon_enabled' : _f, iBtn2IconName = _a.iBtn2IconName, _g = _a.iBtn2IconFillType, iBtn2IconFillType = _g === void 0 ? 'line' : _g, _h = _a.iBtn2IconColorKey, iBtn2IconColorKey = _h === void 0 ? 'ui_cpnt_button_icon_enabled' : _h, _j = _a.dividerMode, dividerMode = _j === void 0 ? 'none' : _j, imageSrc = _a.imageSrc, _k = _a.iBtn1State, iBtn1State = _k === void 0 ? 'normal' : _k, _l = _a.iBtn1Type, iBtn1Type = _l === void 0 ? 'button' : _l, _m = _a.iBtn2State, iBtn2State = _m === void 0 ? 'normal' : _m, _o = _a.iBtn2Type, iBtn2Type = _o === void 0 ? 'button' : _o, onClickLeftBtn = _a.onClickLeftBtn, onClickIBtn1 = _a.onClickIBtn1, onClickIBtn2 = _a.onClickIBtn2;
|
|
17
17
|
var handleClickLeftBtn = function () {
|
|
18
18
|
if (onClickLeftBtn) {
|
|
19
19
|
onClickLeftBtn();
|
|
@@ -52,14 +52,22 @@ function MobileHeaderBar(_a) {
|
|
|
52
52
|
var title = function () {
|
|
53
53
|
switch (titleType) {
|
|
54
54
|
case 'text': {
|
|
55
|
-
|
|
55
|
+
if (captionText) {
|
|
56
|
+
return (react_1.default.createElement(S_CaptionTextBox, null,
|
|
57
|
+
react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_a", spacingType: "height" }),
|
|
58
|
+
react_1.default.createElement(TextLabel_1.TextLabel, { text: titleText, colorTheme: "sysTextPrimary", styleTheme: "body2Bold", singleLineMode: "use", textAlign: "center", wordBreak: "break_all", ellipsisMode: "use", lineLimit: 1 }),
|
|
59
|
+
react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_b", spacingType: "height" }),
|
|
60
|
+
react_1.default.createElement(TextLabel_1.TextLabel, { text: captionText, colorTheme: "sysTextTertiary", styleTheme: "caption2Regular", singleLineMode: "use", textAlign: "center", wordBreak: "break_all", ellipsisMode: "use", lineLimit: 1 })));
|
|
61
|
+
}
|
|
62
|
+
return (react_1.default.createElement(S_TextTypeBox, null,
|
|
63
|
+
react_1.default.createElement(TextLabel_1.TextLabel, { text: titleText, colorTheme: "sysTextPrimary", styleTheme: "body2Bold", singleLineMode: "use", textAlign: "center", wordBreak: "break_all", ellipsisMode: "use", lineLimit: 1 })));
|
|
56
64
|
}
|
|
57
65
|
case 'profile': {
|
|
58
66
|
return (react_1.default.createElement(S_ProfileWrapper, null,
|
|
59
67
|
react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_b" }),
|
|
60
68
|
react_1.default.createElement(hybrid_1.ImageView, { src: imageSrc, shapeType: "circular", width: 40, ratio: "1_1", scaleType: "cover", borderMode: "use" }),
|
|
61
69
|
react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_a" }),
|
|
62
|
-
react_1.default.createElement(TextLabel_1.TextLabel, { text: titleText, colorTheme: "sysTextPrimary", styleTheme: "caption1Regular", singleLineMode: "use" }),
|
|
70
|
+
react_1.default.createElement(TextLabel_1.TextLabel, { text: titleText, colorTheme: "sysTextPrimary", styleTheme: "caption1Regular", singleLineMode: "use", wordBreak: "break_all", ellipsisMode: "use", lineLimit: 1 }),
|
|
63
71
|
react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_d" })));
|
|
64
72
|
}
|
|
65
73
|
case 'image': {
|
|
@@ -75,19 +83,19 @@ function MobileHeaderBar(_a) {
|
|
|
75
83
|
displayType === 'ibtn_amount2' && iBtn2IconName && (react_1.default.createElement(IconButton_1.IconButton, { iconSize: 24, baseSize: "large", iconName: iBtn2IconName, fillType: "fill", onClick: handleClickIBtn2, iconFillType: iBtn2IconFillType, iconColorKey: iBtn2IconColorKey, baseColorKey: "ui_cpnt_button_fill_base_transparent", type: iBtn2Type, state: iBtn2State })),
|
|
76
84
|
(displayType === 'ibtn_amount1' || displayType === 'ibtn_amount2') && iBtn1IconName && (react_1.default.createElement(IconButton_1.IconButton, { iconSize: 24, baseSize: "large", iconName: iBtn1IconName, fillType: "fill", onClick: handleClickIBtn1, iconFillType: iBtn1IconFillType, iconColorKey: iBtn1IconColorKey, baseColorKey: "ui_cpnt_button_fill_base_transparent", type: iBtn1Type, state: iBtn1State }))));
|
|
77
85
|
};
|
|
78
|
-
return (react_1.default.createElement(S_MobileHeaderBar, { hasBorder: dividerMode === 'solid', expand: titleType === 'profile' },
|
|
86
|
+
return (react_1.default.createElement(S_MobileHeaderBar, { hasBorder: dividerMode === 'solid', hasCaptionText: (captionText === null || captionText === void 0 ? void 0 : captionText.toString) ? true : false, expand: titleType === 'profile' },
|
|
79
87
|
react_1.default.createElement(S_ButtonWrapper, null,
|
|
80
|
-
titleType === 'profile' && react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_a" }),
|
|
88
|
+
(titleType === 'profile' || captionText) && react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_a" }),
|
|
81
89
|
leftIcon()),
|
|
82
90
|
displayType === 'ibtn_amount2' && react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_g", spacingType: "width" }),
|
|
83
91
|
react_1.default.createElement(S_Title, null, title()),
|
|
84
92
|
react_1.default.createElement(S_ButtonWrapper, null,
|
|
85
|
-
titleType === 'profile' && react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_a" }),
|
|
93
|
+
(titleType === 'profile' || captionText) && react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_a" }),
|
|
86
94
|
iBtn())));
|
|
87
95
|
}
|
|
88
96
|
var S_MobileHeaderBar = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n align-items: ", ";\n background-color: ", ";\n border-bottom: ", ";\n box-sizing: border-box;\n display: flex;\n height: ", ";\n justify-content: space-between;\n padding: 0 ", ";\n"], ["\n align-items: ", ";\n background-color: ", ";\n border-bottom: ", ";\n box-sizing: border-box;\n display: flex;\n height: ", ";\n justify-content: space-between;\n padding: 0 ", ";\n"])), function (_a) {
|
|
89
|
-
var expand = _a.expand;
|
|
90
|
-
return
|
|
97
|
+
var expand = _a.expand, hasCaptionText = _a.hasCaptionText;
|
|
98
|
+
return expand || hasCaptionText ? 'flex-start' : 'center';
|
|
91
99
|
}, function (_a) {
|
|
92
100
|
var theme = _a.theme;
|
|
93
101
|
return theme.ui_cpnt_headerbar_base_area;
|
|
@@ -95,8 +103,8 @@ var S_MobileHeaderBar = styled_components_1.default.div(templateObject_1 || (tem
|
|
|
95
103
|
var hasBorder = _a.hasBorder, theme = _a.theme;
|
|
96
104
|
return hasBorder && "1px solid " + theme.ui_cpnt_divider;
|
|
97
105
|
}, function (_a) {
|
|
98
|
-
var expand = _a.expand;
|
|
99
|
-
return (expand ? 'auto' : '56px');
|
|
106
|
+
var expand = _a.expand, hasCaptionText = _a.hasCaptionText;
|
|
107
|
+
return (expand || hasCaptionText ? 'auto' : '56px');
|
|
100
108
|
}, function (_a) {
|
|
101
109
|
var theme = _a.theme;
|
|
102
110
|
return theme.spacing.spacingB;
|
|
@@ -107,7 +115,9 @@ var S_Title = styled_components_1.default.div(templateObject_3 || (templateObjec
|
|
|
107
115
|
return theme.spacing.spacingD;
|
|
108
116
|
});
|
|
109
117
|
var S_ProfileWrapper = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n flex-direction: column;\n justify-content: center;\n"], ["\n align-items: center;\n display: flex;\n flex-direction: column;\n justify-content: center;\n"])));
|
|
110
|
-
var
|
|
111
|
-
var
|
|
118
|
+
var S_CaptionTextBox = styled_components_1.default.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n flex-direction: column;\n justify-content: center;\n height: 72px;\n"], ["\n align-items: center;\n display: flex;\n flex-direction: column;\n justify-content: center;\n height: 72px;\n"])));
|
|
119
|
+
var S_TextTypeBox = styled_components_1.default.div(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n"], ["\n display: flex;\n flex-direction: column;\n justify-content: center;\n"])));
|
|
120
|
+
var S_IBtnBox = styled_components_1.default.div(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n"], ["\n align-items: center;\n display: flex;\n"])));
|
|
121
|
+
var S_LeftButtonBox = styled_components_1.default.div(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n"], ["\n display: flex;\n flex-direction: column;\n"])));
|
|
112
122
|
exports.default = MobileHeaderBar;
|
|
113
|
-
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6;
|
|
123
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8;
|
|
@@ -28,6 +28,7 @@ export declare type TextFieldProps = {
|
|
|
28
28
|
maxLength?: number;
|
|
29
29
|
min?: number;
|
|
30
30
|
customWidth?: string;
|
|
31
|
+
autoComplete?: string;
|
|
31
32
|
onBlur?: (e: React.FocusEvent<HTMLInputElement> | React.FocusEvent<HTMLTextAreaElement>) => void;
|
|
32
33
|
onChange?: (e: React.ChangeEvent<HTMLInputElement> | React.ChangeEvent<HTMLTextAreaElement>) => void;
|
|
33
34
|
onClickIBtn1?: () => void;
|
|
@@ -36,5 +37,5 @@ export declare type TextFieldProps = {
|
|
|
36
37
|
onKeyUp?: (e: React.KeyboardEvent<HTMLInputElement> | React.KeyboardEvent<HTMLTextAreaElement>) => void;
|
|
37
38
|
onTarget?: () => void;
|
|
38
39
|
};
|
|
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;
|
|
40
|
+
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, autoComplete, onBlur, onChange, onClickIBtn1, onClickIBtn2, onFocus, onKeyUp, onTarget }: TextFieldProps): JSX.Element;
|
|
40
41
|
export default TextField;
|
|
@@ -31,7 +31,7 @@ var components_1 = require("../../common/components");
|
|
|
31
31
|
var IconButton_1 = require("../IconButton");
|
|
32
32
|
function TextField(_a) {
|
|
33
33
|
var _b;
|
|
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;
|
|
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, _r = _a.autoComplete, autoComplete = _r === void 0 ? 'on' : _r, onBlur = _a.onBlur, onChange = _a.onChange, onClickIBtn1 = _a.onClickIBtn1, onClickIBtn2 = _a.onClickIBtn2, onFocus = _a.onFocus, onKeyUp = _a.onKeyUp, onTarget = _a.onTarget;
|
|
35
35
|
var iconThemeColorNoneObj = {
|
|
36
36
|
normal: 'ui_cpnt_button_icon_default',
|
|
37
37
|
read_only: 'ui_cpnt_button_icon_default',
|
|
@@ -42,9 +42,9 @@ function TextField(_a) {
|
|
|
42
42
|
read_only: 'ui_cpnt_textfield_icon_darktheme_default',
|
|
43
43
|
disabled: 'ui_cpnt_textfield_icon_darktheme_disabled'
|
|
44
44
|
};
|
|
45
|
-
var
|
|
46
|
-
var
|
|
47
|
-
var
|
|
45
|
+
var _s = (0, react_1.useState)(false), isFocused = _s[0], setIsFocused = _s[1];
|
|
46
|
+
var _t = (0, react_hook_form_1.useFormContext)(), register = _t.register, trigger = _t.trigger, errors = _t.formState.errors;
|
|
47
|
+
var _u = register(name, validation), validateOnChange = _u.onChange, validateOnBlur = _u.onBlur;
|
|
48
48
|
var isError = Object.keys(errors).some(function (error) { return error === name; });
|
|
49
49
|
var handleClickIBtn1 = function () {
|
|
50
50
|
if (onClickIBtn1) {
|
|
@@ -94,14 +94,14 @@ function TextField(_a) {
|
|
|
94
94
|
}
|
|
95
95
|
var S_TextField = function () {
|
|
96
96
|
if (textLineType === 'multi') {
|
|
97
|
-
return (react_1.default.createElement(components_1.TextFieldBase, { name: name, hintText: hintText, defaultText: defaultText, validation: validation, textLineType: "multi", multiRows: multiRows, state: state, colorTheme: colorTheme, maxLength: maxLength, textSize: "form2", textWeight: "normal", onFocus: handleFocus, onTarget: handleTarget, onChange: handleChange, onBlur: handleBlur, onKeyUp: handleKeyUp }));
|
|
97
|
+
return (react_1.default.createElement(components_1.TextFieldBase, { name: name, hintText: hintText, defaultText: defaultText, validation: validation, textLineType: "multi", multiRows: multiRows, state: state, colorTheme: colorTheme, maxLength: maxLength, textSize: "form2", textWeight: "normal", autoComplete: autoComplete, onFocus: handleFocus, onTarget: handleTarget, onChange: handleChange, onBlur: handleBlur, onKeyUp: handleKeyUp }));
|
|
98
98
|
}
|
|
99
99
|
if (textLineType === 'auto') {
|
|
100
|
-
return (react_1.default.createElement(components_1.TextFieldBase, { name: name, hintText: hintText, defaultText: defaultText, validation: validation, textLineType: "auto", autoMinRows: autoMinRows, autoMaxRows: autoMaxRows, state: state, colorTheme: colorTheme, maxLength: maxLength, textSize: "form2", textWeight: "normal", onFocus: handleFocus, onTarget: handleTarget, onChange: handleChange, onBlur: handleBlur, onKeyUp: handleKeyUp }));
|
|
100
|
+
return (react_1.default.createElement(components_1.TextFieldBase, { name: name, hintText: hintText, defaultText: defaultText, validation: validation, textLineType: "auto", autoMinRows: autoMinRows, autoMaxRows: autoMaxRows, state: state, colorTheme: colorTheme, maxLength: maxLength, textSize: "form2", textWeight: "normal", autoComplete: autoComplete, onFocus: handleFocus, onTarget: handleTarget, onChange: handleChange, onBlur: handleBlur, onKeyUp: handleKeyUp }));
|
|
101
101
|
}
|
|
102
102
|
if (textLineType === 'single') {
|
|
103
103
|
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
104
|
-
react_1.default.createElement(components_1.TextFieldBase, { name: name, hintText: hintText, defaultText: defaultText, validation: validation, preventBlankMode: preventBlankMode, enterSubmitMode: enterSubmitMode, textLineType: "single", inputType: inputType, state: state, colorTheme: colorTheme, min: min, max: max, maxLength: maxLength, textSize: "form2", textWeight: "normal", deleteIconMode: "use", deleteIconSize: size === 'large' || size === 'rlarge' ? 20 : 16, isFocused: isFocused, onFocus: handleFocus, onTarget: handleTarget, onChange: handleChange, onBlur: handleBlur, onKeyUp: handleKeyUp }),
|
|
104
|
+
react_1.default.createElement(components_1.TextFieldBase, { name: name, hintText: hintText, defaultText: defaultText, validation: validation, preventBlankMode: preventBlankMode, enterSubmitMode: enterSubmitMode, textLineType: "single", inputType: inputType, state: state, colorTheme: colorTheme, min: min, max: max, maxLength: maxLength, textSize: "form2", textWeight: "normal", deleteIconMode: "use", deleteIconSize: size === 'large' || size === 'rlarge' ? 20 : 16, isFocused: isFocused, autoComplete: autoComplete, onFocus: handleFocus, onTarget: handleTarget, onChange: handleChange, onBlur: handleBlur, onKeyUp: handleKeyUp }),
|
|
105
105
|
react_1.default.createElement(S_IconBox, null,
|
|
106
106
|
iBtn2IconName && (react_1.default.createElement(IconButton_1.IconButton, { iconName: iBtn2IconName, baseSize: "small", shapeType: "rectangle", baseColorKey: "ui_cpnt_button_fill_base_transparent", iconSize: size === 'large' || size === 'rlarge' ? 20 : 16, iconColorKey: colorTheme &&
|
|
107
107
|
{
|
|
@@ -6,6 +6,7 @@ import { BlogTextField } from './BlogTextField';
|
|
|
6
6
|
import { BodyTextGroup } from './BodyTextGroup';
|
|
7
7
|
import { Card } from './Card';
|
|
8
8
|
import { CardList } from './CardList';
|
|
9
|
+
import { ChatBubbleListItem } from './ChatBubbleListItem';
|
|
9
10
|
import { ChatList } from './ChatList';
|
|
10
11
|
import { Checkbox } from './Checkbox';
|
|
11
12
|
import { Chip } from './Chip';
|
|
@@ -29,4 +30,4 @@ import { TextLabel } from './TextLabel';
|
|
|
29
30
|
import { UploadIconButton } from './UploadIconButton';
|
|
30
31
|
import { UploadMainButton } from './UploadMainButton';
|
|
31
32
|
import { UploadTextButton } from './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 };
|
|
33
|
+
export { BasicChatListItem, BasicFormGroup, BasicList, BasicListItem, BlogTextField, BodyTextGroup, Card, CardList, ChatBubbleListItem, 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,6 @@
|
|
|
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.ChatList = exports.CardList = exports.Card = exports.BodyTextGroup = exports.BlogTextField = exports.BasicListItem = exports.BasicList = exports.BasicFormGroup = exports.BasicChatListItem = 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.ChatBubbleListItem = exports.CardList = exports.Card = exports.BodyTextGroup = exports.BlogTextField = exports.BasicListItem = exports.BasicList = exports.BasicFormGroup = exports.BasicChatListItem = void 0;
|
|
4
4
|
var BasicChatListItem_1 = require("./BasicChatListItem");
|
|
5
5
|
Object.defineProperty(exports, "BasicChatListItem", { enumerable: true, get: function () { return BasicChatListItem_1.BasicChatListItem; } });
|
|
6
6
|
var BasicFormGroup_1 = require("./BasicFormGroup");
|
|
@@ -17,6 +17,8 @@ var Card_1 = require("./Card");
|
|
|
17
17
|
Object.defineProperty(exports, "Card", { enumerable: true, get: function () { return Card_1.Card; } });
|
|
18
18
|
var CardList_1 = require("./CardList");
|
|
19
19
|
Object.defineProperty(exports, "CardList", { enumerable: true, get: function () { return CardList_1.CardList; } });
|
|
20
|
+
var ChatBubbleListItem_1 = require("./ChatBubbleListItem");
|
|
21
|
+
Object.defineProperty(exports, "ChatBubbleListItem", { enumerable: true, get: function () { return ChatBubbleListItem_1.ChatBubbleListItem; } });
|
|
20
22
|
var ChatList_1 = require("./ChatList");
|
|
21
23
|
Object.defineProperty(exports, "ChatList", { enumerable: true, get: function () { return ChatList_1.ChatList; } });
|
|
22
24
|
var Checkbox_1 = require("./Checkbox");
|
|
@@ -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 { 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 };
|
|
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, ChatBubbleListItem as M_ChatBubbleListItem, 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_ChatBubbleListItem, 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 };
|
package/dist/src/mobile/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* eslint-disable import/order */
|
|
3
3
|
/* eslint-disable import/first */
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.M_MobileBasicModal = exports.M_UploadTextButton = exports.M_UploadMainButton = exports.M_UploadIconButton = exports.M_TextLabel = exports.M_TextField = exports.M_TextButton = exports.M_StatusBlock = exports.M_Select = exports.M_ReactionButton = exports.M_Radio = exports.M_MobileTabBar = exports.M_MobileHeaderBar = exports.M_MobileAlertDialog = exports.M_MainButton = exports.M_ImageSlide = exports.M_IconButton = exports.M_HorizontalFormGroup = exports.M_Dropdown = exports.M_ContextMenuItem = exports.M_ContextMenu = exports.M_Chip = exports.M_Checkbox = exports.M_ChatList = exports.M_CardList = exports.M_Card = exports.M_BodyTextGroup = exports.M_BlogTextField = exports.M_BasicListItem = exports.M_BasicList = exports.M_BasicFormGroup = exports.M_BasicChatListItem = exports.MSContainersBox = exports.MSNavigationContainer = exports.LayoutMS = exports.MPContainersBox = exports.MPTabContainer = exports.MPNavigationContainer = exports.LayoutMP = exports.MMContainersBox = exports.MMNavigationContainer = exports.LayoutMM = exports.MFContainersBox = exports.LayoutMF = void 0;
|
|
5
|
+
exports.M_MobileBasicModal = exports.M_UploadTextButton = exports.M_UploadMainButton = exports.M_UploadIconButton = exports.M_TextLabel = exports.M_TextField = exports.M_TextButton = exports.M_StatusBlock = exports.M_Select = exports.M_ReactionButton = exports.M_Radio = exports.M_MobileTabBar = exports.M_MobileHeaderBar = exports.M_MobileAlertDialog = exports.M_MainButton = exports.M_ImageSlide = exports.M_IconButton = exports.M_HorizontalFormGroup = exports.M_Dropdown = exports.M_ContextMenuItem = exports.M_ContextMenu = exports.M_Chip = exports.M_Checkbox = exports.M_ChatList = exports.M_ChatBubbleListItem = exports.M_CardList = exports.M_Card = exports.M_BodyTextGroup = exports.M_BlogTextField = exports.M_BasicListItem = exports.M_BasicList = exports.M_BasicFormGroup = exports.M_BasicChatListItem = exports.MSContainersBox = exports.MSNavigationContainer = exports.LayoutMS = exports.MPContainersBox = exports.MPTabContainer = exports.MPNavigationContainer = exports.LayoutMP = exports.MMContainersBox = exports.MMNavigationContainer = exports.LayoutMM = exports.MFContainersBox = exports.LayoutMF = void 0;
|
|
6
6
|
// layoutMF
|
|
7
7
|
var LayoutMF_1 = require("./layout/LayoutMF");
|
|
8
8
|
Object.defineProperty(exports, "LayoutMF", { enumerable: true, get: function () { return LayoutMF_1.LayoutMF; } });
|
|
@@ -40,6 +40,7 @@ Object.defineProperty(exports, "M_BlogTextField", { enumerable: true, get: funct
|
|
|
40
40
|
Object.defineProperty(exports, "M_BodyTextGroup", { enumerable: true, get: function () { return components_1.BodyTextGroup; } });
|
|
41
41
|
Object.defineProperty(exports, "M_Card", { enumerable: true, get: function () { return components_1.Card; } });
|
|
42
42
|
Object.defineProperty(exports, "M_CardList", { enumerable: true, get: function () { return components_1.CardList; } });
|
|
43
|
+
Object.defineProperty(exports, "M_ChatBubbleListItem", { enumerable: true, get: function () { return components_1.ChatBubbleListItem; } });
|
|
43
44
|
Object.defineProperty(exports, "M_ChatList", { enumerable: true, get: function () { return components_1.ChatList; } });
|
|
44
45
|
Object.defineProperty(exports, "M_Checkbox", { enumerable: true, get: function () { return components_1.Checkbox; } });
|
|
45
46
|
Object.defineProperty(exports, "M_Chip", { enumerable: true, get: function () { return components_1.Chip; } });
|
package/package.json
CHANGED
package/release-note.md
CHANGED
|
@@ -1,11 +0,0 @@
|
|
|
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;
|