pds-dev-kit-web 1.9.0-beta.7 → 1.9.0-beta.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/desktop/components/ChatBubbleListItem/ChatBubble.d.ts +1 -1
- package/dist/src/desktop/components/ChatBubbleListItem/ChatBubble.js +5 -4
- package/dist/src/desktop/components/ChatBubbleListItem/ChatBubbleListItem.d.ts +4 -3
- package/dist/src/desktop/components/ChatBubbleListItem/ChatBubbleListItem.js +88 -57
- package/dist/src/desktop/components/TextLabel/TextLabel.d.ts +2 -2
- package/dist/src/desktop/components/TextLabel/TextLabel.js +26 -21
- package/dist/src/mobile/components/ChatBubbleListItem/ChatBubble.d.ts +1 -1
- package/dist/src/mobile/components/ChatBubbleListItem/ChatBubble.js +5 -4
- package/dist/src/mobile/components/ChatBubbleListItem/ChatBubbleListItem.d.ts +4 -3
- package/dist/src/mobile/components/ChatBubbleListItem/ChatBubbleListItem.js +88 -57
- package/dist/src/mobile/components/TextLabel/TextLabel.d.ts +2 -2
- package/dist/src/mobile/components/TextLabel/TextLabel.js +21 -16
- package/dist/src/sub/DynamicLayout/components/EditModeSectionMatcher/SectionBox.js +6 -1
- package/package.json +1 -1
- package/release-note.md +2 -3
- package/dist/storybook-static/0.47127a3a.iframe.bundle.d.ts +0 -3
- package/dist/storybook-static/0.47127a3a.iframe.bundle.js +0 -330
- package/dist/storybook-static/4.27d0b6b3.iframe.bundle.d.ts +0 -18
- package/dist/storybook-static/4.27d0b6b3.iframe.bundle.js +0 -574
- package/dist/storybook-static/5.ccee87a9.iframe.bundle.d.ts +0 -3
- package/dist/storybook-static/5.ccee87a9.iframe.bundle.js +0 -254
- package/dist/storybook-static/6.935fc424.iframe.bundle.d.ts +0 -2
- package/dist/storybook-static/6.935fc424.iframe.bundle.js +0 -559
- package/dist/storybook-static/7.9097368c.iframe.bundle.d.ts +0 -0
- package/dist/storybook-static/7.9097368c.iframe.bundle.js +0 -8
- package/dist/storybook-static/main.6d823b88.iframe.bundle.d.ts +0 -3008
- package/dist/storybook-static/main.6d823b88.iframe.bundle.js +0 -16994
- package/dist/storybook-static/runtime~main.98015d18.iframe.bundle.d.ts +0 -1
- package/dist/storybook-static/runtime~main.98015d18.iframe.bundle.js +0 -34
- package/dist/storybook-static/vendors~main.3af2bf31.iframe.bundle.d.ts +0 -2
- package/dist/storybook-static/vendors~main.3af2bf31.iframe.bundle.js +0 -22265
|
@@ -35,28 +35,25 @@ var IconButton_1 = require("../IconButton");
|
|
|
35
35
|
var TextLabel_1 = require("../TextLabel");
|
|
36
36
|
var ChatBubble_1 = __importDefault(require("./ChatBubble"));
|
|
37
37
|
var Popup_1 = require("./Popup");
|
|
38
|
-
var
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
38
|
+
var chatBubbleTailType = {
|
|
39
|
+
other_avatar_impact: 'left_top',
|
|
40
|
+
other_avatar: 'left_top',
|
|
41
|
+
other_avatar_sub: 'none',
|
|
42
|
+
other: 'left_top',
|
|
43
|
+
other_sub: 'none',
|
|
44
|
+
me: 'right_top',
|
|
45
|
+
me_sub: 'none'
|
|
45
46
|
};
|
|
46
|
-
var
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
my_tail: 'right_top',
|
|
52
|
-
my: 'none'
|
|
47
|
+
var profileImageBorderColorTheme = {
|
|
48
|
+
grey: 'ui_avatar_border',
|
|
49
|
+
brand_primary: 'ui_avatar_border_brandprimary',
|
|
50
|
+
translucent_white: 'ui_avatar_border_translucent_white',
|
|
51
|
+
translucent_black: 'ui_avatar_border_translucent_black'
|
|
53
52
|
};
|
|
54
53
|
function ChatBubbleListItem(_a) {
|
|
55
|
-
var titleText = _a.titleText, _b = _a.
|
|
56
|
-
var
|
|
57
|
-
var
|
|
58
|
-
var isTail = styleTheme.includes('tail');
|
|
59
|
-
var _g = (0, react_1.useState)(false), isContextMenuOpen = _g[0], setIsContextMenuOpen = _g[1];
|
|
54
|
+
var titleText = _a.titleText, imageSrc = _a.imageSrc, _b = _a.hoverMode, hoverMode = _b === void 0 ? 'use' : _b, styleTheme = _a.styleTheme, _c = _a.colorTheme, colorTheme = _c === void 0 ? 'grey' : _c, _d = _a.timeMode, timeMode = _d === void 0 ? 'use' : _d, timeText = _a.timeText, contextMenuOptionArray = _a.contextMenuOptionArray, _e = _a.contextMenuState, contextMenuState = _e === void 0 ? 'normal' : _e, children = _a.children, onClickContextMenuItem = _a.onClickContextMenuItem;
|
|
55
|
+
var isMe = styleTheme.includes('me');
|
|
56
|
+
var _f = (0, react_1.useState)(false), isContextMenuOpen = _f[0], setIsContextMenuOpen = _f[1];
|
|
60
57
|
var contextMenuRef = (0, react_1.useRef)(null);
|
|
61
58
|
var chatBody = document.querySelector('#chatMessageBox');
|
|
62
59
|
var rect = chatBody === null || chatBody === void 0 ? void 0 : chatBody.getBoundingClientRect();
|
|
@@ -82,24 +79,65 @@ function ChatBubbleListItem(_a) {
|
|
|
82
79
|
}
|
|
83
80
|
setIsContextMenuOpen(false);
|
|
84
81
|
};
|
|
82
|
+
var isShowProfileImage = function () {
|
|
83
|
+
if (styleTheme === 'other_avatar_impact' || styleTheme === 'other_avatar') {
|
|
84
|
+
return true;
|
|
85
|
+
}
|
|
86
|
+
return false;
|
|
87
|
+
};
|
|
88
|
+
var isShowTitleText = function () {
|
|
89
|
+
if (styleTheme === 'other_avatar_impact' ||
|
|
90
|
+
styleTheme === 'other_avatar' ||
|
|
91
|
+
styleTheme === 'other') {
|
|
92
|
+
return true;
|
|
93
|
+
}
|
|
94
|
+
return false;
|
|
95
|
+
};
|
|
96
|
+
var checkTextColorTheme = function () {
|
|
97
|
+
switch (colorTheme) {
|
|
98
|
+
case 'grey': {
|
|
99
|
+
return 'sysTextPrimary';
|
|
100
|
+
}
|
|
101
|
+
case 'brand_primary': {
|
|
102
|
+
return 'usrTextBrandPrimary';
|
|
103
|
+
}
|
|
104
|
+
case 'translucent_white': {
|
|
105
|
+
return 'sysTextBlack';
|
|
106
|
+
}
|
|
107
|
+
case 'translucent_black': {
|
|
108
|
+
return 'sysTextWhite';
|
|
109
|
+
}
|
|
110
|
+
default: {
|
|
111
|
+
return 'sysTextPrimary';
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
};
|
|
115
|
+
var isLeftSpacingChecker = function () {
|
|
116
|
+
if (styleTheme === 'other_avatar_impact' ||
|
|
117
|
+
styleTheme === 'other_avatar' ||
|
|
118
|
+
styleTheme === 'other_avatar_sub') {
|
|
119
|
+
return true;
|
|
120
|
+
}
|
|
121
|
+
return false;
|
|
122
|
+
};
|
|
85
123
|
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
86
|
-
react_1.default.createElement(S_ChatBubbleListItem, { "x-pds-name": "ChatBubbleListItem", "x-pds-element-type": "component", "x-pds-device-type": "mobile",
|
|
87
|
-
|
|
88
|
-
react_1.default.createElement(hybrid_1.ImageView, { shapeType: "circular", ratio: "1_1", scaleType: "cover", src: imageSrc, width:
|
|
124
|
+
react_1.default.createElement(S_ChatBubbleListItem, { "x-pds-name": "ChatBubbleListItem", "x-pds-element-type": "component", "x-pds-device-type": "mobile", isMe: isMe },
|
|
125
|
+
isLeftSpacingChecker() ? (react_1.default.createElement(react_1.default.Fragment, null, isShowProfileImage() ? (react_1.default.createElement(S_ImageViewWrapper, { isOtherAvatarImpact: styleTheme === 'other_avatar_impact', colorTheme: colorTheme },
|
|
126
|
+
react_1.default.createElement(hybrid_1.ImageView, { shapeType: "circular", ratio: "1_1", scaleType: "cover", src: imageSrc, width: styleTheme === 'other_avatar_impact' ? 36 : 38 }))) : (react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_g", spacingType: "width" })))) : (react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_a", spacingType: "width" })),
|
|
89
127
|
react_1.default.createElement(S_RightBox, null,
|
|
90
|
-
|
|
91
|
-
react_1.default.createElement(TextLabel_1.TextLabel, { text: titleText, styleTheme: "caption1Bold", colorTheme:
|
|
128
|
+
isShowTitleText() && (react_1.default.createElement(react_1.default.Fragment, null,
|
|
129
|
+
react_1.default.createElement(TextLabel_1.TextLabel, { text: titleText, styleTheme: "caption1Bold", colorTheme: colorTheme && checkTextColorTheme() }),
|
|
92
130
|
react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_b" }))),
|
|
93
131
|
react_1.default.createElement(S_ChatBubbleBox, null,
|
|
94
|
-
react_1.default.createElement(S_ChatBubbleWrapper, {
|
|
95
|
-
timeMode === 'use' && timeText &&
|
|
132
|
+
react_1.default.createElement(S_ChatBubbleWrapper, { isMe: isMe },
|
|
133
|
+
timeMode === 'use' && timeText && isMe && (react_1.default.createElement(S_TimeWrapper, null,
|
|
96
134
|
react_1.default.createElement(TextLabel_1.TextLabel, { text: timeText, styleTheme: "caption2Regular", colorTheme: "sysTextTertiary", singleLineMode: "use" }),
|
|
97
135
|
react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_a", spacingType: "width" }))),
|
|
98
|
-
react_1.default.createElement(ChatBubble_1.default, { colorTheme:
|
|
99
|
-
timeMode === 'use' && timeText && !
|
|
136
|
+
react_1.default.createElement(ChatBubble_1.default, { colorTheme: colorTheme, tailType: chatBubbleTailType[styleTheme] }, children),
|
|
137
|
+
timeMode === 'use' && timeText && !isMe && (react_1.default.createElement(S_TimeWrapper, null,
|
|
100
138
|
react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_a", spacingType: "width" }),
|
|
101
139
|
react_1.default.createElement(TextLabel_1.TextLabel, { text: timeText, styleTheme: "caption2Regular", colorTheme: "sysTextTertiary", singleLineMode: "use" })))),
|
|
102
|
-
hoverMode === 'use' && !
|
|
140
|
+
hoverMode === 'use' && !isMe && (react_1.default.createElement(S_SeeMoreButton, { isContextMenuOpen: isContextMenuOpen, hoverMode: hoverMode, ref: contextMenuRef },
|
|
103
141
|
react_1.default.createElement(IconButton_1.IconButton, { fillType: "fill", baseSize: "xsmall", iconFillType: "fill", iconSize: 20, iconName: "ic_more", baseColorKey: "ui_cpnt_button_fill_base_transparent", iconColorKey: "ui_cpnt_button_icon_enabled", onClick: handleMoreButtonClick }))))),
|
|
104
142
|
react_1.default.createElement(Popup_1.PopupProvider, null,
|
|
105
143
|
react_1.default.createElement(Popup_1.Popup, { targetRef: contextMenuRef, isOpen: isContextMenuOpen, placement: "v-auto", wrapperHeight: rect === null || rect === void 0 ? void 0 : rect.height, onClickOutside: function () { return setIsContextMenuOpen(false); } },
|
|
@@ -109,41 +147,34 @@ var MyChatBubbleListItem = (0, styled_components_1.css)(templateObject_1 || (tem
|
|
|
109
147
|
var theme = _a.theme;
|
|
110
148
|
return theme.spacing.spacingA;
|
|
111
149
|
});
|
|
112
|
-
var
|
|
113
|
-
var
|
|
114
|
-
return
|
|
150
|
+
var S_ChatBubbleListItem = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: flex;\n height: fit-content;\n max-width: 100%;\n\n ", ";\n"], ["\n display: flex;\n height: fit-content;\n max-width: 100%;\n\n ", ";\n"])), function (_a) {
|
|
151
|
+
var isMe = _a.isMe;
|
|
152
|
+
return isMe && MyChatBubbleListItem;
|
|
115
153
|
});
|
|
116
|
-
var
|
|
117
|
-
var
|
|
118
|
-
return
|
|
119
|
-
}, function (_a) {
|
|
120
|
-
var imageMode = _a.imageMode;
|
|
121
|
-
return imageMode === 'none' && NoImageChatBubbleListItem;
|
|
154
|
+
var ImageViewBrandPrimary = (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n border: 2px solid\n ", ";\n"], ["\n border: 2px solid\n ", ";\n"])), function (_a) {
|
|
155
|
+
var colorTheme = _a.colorTheme, theme = _a.theme;
|
|
156
|
+
return colorTheme && theme[profileImageBorderColorTheme[colorTheme]];
|
|
122
157
|
});
|
|
123
|
-
var
|
|
124
|
-
var theme = _a.theme;
|
|
125
|
-
return theme
|
|
126
|
-
});
|
|
127
|
-
var ImageViewDefault = (0, styled_components_1.css)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n border: 1px solid ", ";\n"], ["\n border: 1px solid ", ";\n"])), function (_a) {
|
|
128
|
-
var theme = _a.theme;
|
|
129
|
-
return theme.ui_profile_image_border;
|
|
158
|
+
var ImageViewDefault = (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n border: 1px solid\n ", ";\n"], ["\n border: 1px solid\n ", ";\n"])), function (_a) {
|
|
159
|
+
var colorTheme = _a.colorTheme, theme = _a.theme;
|
|
160
|
+
return colorTheme && theme[profileImageBorderColorTheme[colorTheme]];
|
|
130
161
|
});
|
|
131
|
-
var S_ImageViewWrapper = styled_components_1.default.div(
|
|
162
|
+
var S_ImageViewWrapper = styled_components_1.default.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n box-sizing: border-box;\n border-radius: 50%;\n height: fit-content;\n min-width: fit-content;\n width: fit-content;\n margin-right: ", ";\n position: relative;\n\n ", ";\n"], ["\n box-sizing: border-box;\n border-radius: 50%;\n height: fit-content;\n min-width: fit-content;\n width: fit-content;\n margin-right: ", ";\n position: relative;\n\n ", ";\n"])), function (_a) {
|
|
132
163
|
var theme = _a.theme;
|
|
133
164
|
return theme.spacing.spacingB;
|
|
134
165
|
}, function (_a) {
|
|
135
|
-
var
|
|
136
|
-
return (
|
|
166
|
+
var isOtherAvatarImpact = _a.isOtherAvatarImpact;
|
|
167
|
+
return (isOtherAvatarImpact ? ImageViewBrandPrimary : ImageViewDefault);
|
|
137
168
|
});
|
|
138
|
-
var S_RightBox = styled_components_1.default.div(
|
|
139
|
-
var S_ChatBubbleBox = styled_components_1.default.div(
|
|
140
|
-
var MyChatBubble = (0, styled_components_1.css)(
|
|
141
|
-
var S_ChatBubbleWrapper = styled_components_1.default.div(
|
|
142
|
-
var
|
|
143
|
-
return
|
|
169
|
+
var S_RightBox = styled_components_1.default.div(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n flex: 1;\n"], ["\n flex: 1;\n"])));
|
|
170
|
+
var S_ChatBubbleBox = styled_components_1.default.div(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n display: flex;\n justify-content: space-between;\n"], ["\n display: flex;\n justify-content: space-between;\n"])));
|
|
171
|
+
var MyChatBubble = (0, styled_components_1.css)(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n justify-content: flex-end;\n"], ["\n justify-content: flex-end;\n"])));
|
|
172
|
+
var S_ChatBubbleWrapper = styled_components_1.default.div(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n flex: 1;\n display: flex;\n\n ", ";\n"], ["\n flex: 1;\n display: flex;\n\n ", ";\n"])), function (_a) {
|
|
173
|
+
var isMe = _a.isMe;
|
|
174
|
+
return isMe && MyChatBubble;
|
|
144
175
|
});
|
|
145
|
-
var S_TimeWrapper = styled_components_1.default.div(
|
|
146
|
-
var S_SeeMoreButton = styled_components_1.default.div(
|
|
176
|
+
var S_TimeWrapper = styled_components_1.default.div(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n align-self: flex-end;\n display: flex;\n"], ["\n align-self: flex-end;\n display: flex;\n"])));
|
|
177
|
+
var S_SeeMoreButton = styled_components_1.default.div(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n box-sizing: border-box;\n display: flex;\n width: 48px;\n height: 24px;\n min-width: 48px;\n padding-right: ", ";\n margin-top: ", ";\n position: relative;\n opacity: ", ";\n justify-content: right;\n\n ", ":hover & {\n opacity: ", ";\n }\n"], ["\n box-sizing: border-box;\n display: flex;\n width: 48px;\n height: 24px;\n min-width: 48px;\n padding-right: ", ";\n margin-top: ", ";\n position: relative;\n opacity: ", ";\n justify-content: right;\n\n ", ":hover & {\n opacity: ", ";\n }\n"])), function (_a) {
|
|
147
178
|
var theme = _a.theme;
|
|
148
179
|
return theme.spacing.spacingB;
|
|
149
180
|
}, function (_a) {
|
|
@@ -157,4 +188,4 @@ var S_SeeMoreButton = styled_components_1.default.div(templateObject_12 || (temp
|
|
|
157
188
|
return hoverMode === 'use' && '1';
|
|
158
189
|
});
|
|
159
190
|
exports.default = ChatBubbleListItem;
|
|
160
|
-
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11
|
|
191
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11;
|
|
@@ -5,7 +5,7 @@ export declare type TextLabelProps = {
|
|
|
5
5
|
textAlign?: 'left' | 'center' | 'right';
|
|
6
6
|
styleTheme?: 'displayBold' | 'wizardPageTitleBold' | 'headingBold' | 'leadParaBold' | 'leadParaRegular' | 'subTitleBold' | 'subTitleRegular' | 'body1Bold' | 'body1Regular' | 'body2Bold' | 'body2Regular' | 'caption1Bold' | 'caption1Regular' | 'caption2Bold' | 'caption2Regular' | 'form1Regular' | 'form2Regular' | 'blog1Regular';
|
|
7
7
|
colorOverride?: UiColors;
|
|
8
|
-
colorTheme?: 'sysTextPrimary' | 'sysTextSecondary' | 'sysTextTertiary' | 'sysTextWhite' | 'sysTextError' | 'sysTextWarning' | 'sysTextBrandPrimary' | 'sysTextBrandSeconVariant' | 'usrTextBrandPrimary' | 'usrTextBrandSeconVariant' | 'usrTextBrandOnPrimary';
|
|
8
|
+
colorTheme?: 'sysTextPrimary' | 'sysTextSecondary' | 'sysTextTertiary' | 'sysTextWhite' | 'sysTextBlack' | 'sysTextError' | 'sysTextWarning' | 'sysTextBrandPrimary' | 'sysTextBrandSeconVariant' | 'usrTextBrandPrimary' | 'usrTextBrandSeconVariant' | 'usrTextBrandOnPrimary';
|
|
9
9
|
singleLineMode?: 'none' | 'use';
|
|
10
10
|
ellipsisMode?: 'none' | 'use';
|
|
11
11
|
lineLimit?: number;
|
|
@@ -22,7 +22,7 @@ export declare type TextStyleProps = {
|
|
|
22
22
|
textAlign?: 'left' | 'center' | 'right';
|
|
23
23
|
styleTheme?: 'displayBold' | 'wizardPageTitleBold' | 'headingBold' | 'leadParaBold' | 'leadParaRegular' | 'subTitleBold' | 'subTitleRegular' | 'body1Bold' | 'body1Regular' | 'body2Bold' | 'body2Regular' | 'caption1Bold' | 'caption1Regular' | 'caption2Bold' | 'caption2Regular' | 'form1Regular' | 'form2Regular' | 'blog1Regular';
|
|
24
24
|
colorOverride?: UiColors;
|
|
25
|
-
colorTheme?: 'sysTextPrimary' | 'sysTextSecondary' | 'sysTextTertiary' | 'sysTextWhite' | 'sysTextError' | 'sysTextWarning' | 'sysTextBrandPrimary' | 'sysTextBrandSeconVariant' | 'usrTextBrandPrimary' | 'usrTextBrandSeconVariant' | 'usrTextBrandOnPrimary';
|
|
25
|
+
colorTheme?: 'sysTextPrimary' | 'sysTextSecondary' | 'sysTextTertiary' | 'sysTextWhite' | 'sysTextBlack' | 'sysTextError' | 'sysTextWarning' | 'sysTextBrandPrimary' | 'sysTextBrandSeconVariant' | 'usrTextBrandPrimary' | 'usrTextBrandSeconVariant' | 'usrTextBrandOnPrimary';
|
|
26
26
|
singleLineMode?: 'none' | 'use';
|
|
27
27
|
ellipsisMode?: 'none' | 'use';
|
|
28
28
|
lineLimit?: number;
|
|
@@ -233,52 +233,56 @@ var sysTextWhite = (0, styled_components_1.css)(templateObject_22 || (templateOb
|
|
|
233
233
|
var theme = _a.theme;
|
|
234
234
|
return theme.ui_cpnt_textlabel_sys_white;
|
|
235
235
|
});
|
|
236
|
-
var
|
|
236
|
+
var sysTextBlack = (0, styled_components_1.css)(templateObject_23 || (templateObject_23 = __makeTemplateObject(["\n color: ", ";\n"], ["\n color: ", ";\n"])), function (_a) {
|
|
237
|
+
var theme = _a.theme;
|
|
238
|
+
return theme.ui_cpnt_textlabel_sys_black;
|
|
239
|
+
});
|
|
240
|
+
var sysTextError = (0, styled_components_1.css)(templateObject_24 || (templateObject_24 = __makeTemplateObject(["\n color: ", ";\n"], ["\n color: ", ";\n"])), function (_a) {
|
|
237
241
|
var theme = _a.theme;
|
|
238
242
|
return theme.ui_cpnt_textlabel_sys_error;
|
|
239
243
|
});
|
|
240
|
-
var sysTextWarning = (0, styled_components_1.css)(
|
|
244
|
+
var sysTextWarning = (0, styled_components_1.css)(templateObject_25 || (templateObject_25 = __makeTemplateObject(["\n color: ", ";\n"], ["\n color: ", ";\n"])), function (_a) {
|
|
241
245
|
var theme = _a.theme;
|
|
242
246
|
return theme.ui_cpnt_textlabel_sys_warning;
|
|
243
247
|
});
|
|
244
|
-
var sysTextBrandPrimary = (0, styled_components_1.css)(
|
|
248
|
+
var sysTextBrandPrimary = (0, styled_components_1.css)(templateObject_26 || (templateObject_26 = __makeTemplateObject(["\n color: ", ";\n"], ["\n color: ", ";\n"])), function (_a) {
|
|
245
249
|
var theme = _a.theme;
|
|
246
250
|
return theme.ui_cpnt_textlabel_sys_brandprimary;
|
|
247
251
|
});
|
|
248
|
-
var sysTextBrandSeconVariant = (0, styled_components_1.css)(
|
|
252
|
+
var sysTextBrandSeconVariant = (0, styled_components_1.css)(templateObject_27 || (templateObject_27 = __makeTemplateObject(["\n color: ", ";\n"], ["\n color: ", ";\n"])), function (_a) {
|
|
249
253
|
var theme = _a.theme;
|
|
250
254
|
return theme.ui_cpnt_textlabel_sys_brandseconvariant;
|
|
251
255
|
});
|
|
252
|
-
var usrTextBrandPrimary = (0, styled_components_1.css)(
|
|
256
|
+
var usrTextBrandPrimary = (0, styled_components_1.css)(templateObject_28 || (templateObject_28 = __makeTemplateObject(["\n color: ", ";\n"], ["\n color: ", ";\n"])), function (_a) {
|
|
253
257
|
var theme = _a.theme;
|
|
254
258
|
return theme.ui_cpnt_textlabel_usr_brandprimary;
|
|
255
259
|
});
|
|
256
|
-
var usrTextBrandSeconVariant = (0, styled_components_1.css)(
|
|
260
|
+
var usrTextBrandSeconVariant = (0, styled_components_1.css)(templateObject_29 || (templateObject_29 = __makeTemplateObject(["\n color: ", ";\n"], ["\n color: ", ";\n"])), function (_a) {
|
|
257
261
|
var theme = _a.theme;
|
|
258
262
|
return theme.ui_cpnt_textlabel_usr_brandseconvariant;
|
|
259
263
|
});
|
|
260
|
-
var usrTextBrandOnPrimary = (0, styled_components_1.css)(
|
|
264
|
+
var usrTextBrandOnPrimary = (0, styled_components_1.css)(templateObject_30 || (templateObject_30 = __makeTemplateObject(["\n color: ", ";\n"], ["\n color: ", ";\n"])), function (_a) {
|
|
261
265
|
var theme = _a.theme;
|
|
262
266
|
return theme.ui_cpnt_textlabel_usr_brandonprimary;
|
|
263
267
|
});
|
|
264
|
-
var customFontStyle = (0, styled_components_1.css)(
|
|
268
|
+
var customFontStyle = (0, styled_components_1.css)(templateObject_31 || (templateObject_31 = __makeTemplateObject(["\n font-size: ", ";\n line-height: 1.5;\n font-weight: ", ";\n"], ["\n font-size: ", ";\n line-height: 1.5;\n font-weight: ", ";\n"])), function (_a) {
|
|
265
269
|
var customFontSize = _a.customFontSize;
|
|
266
270
|
return customFontSize;
|
|
267
271
|
}, function (_a) {
|
|
268
272
|
var theme = _a.theme, customFontWeight = _a.customFontWeight;
|
|
269
273
|
return customFontWeight === 'bold' ? theme.fontWeight.bold : theme.fontWeight.normal;
|
|
270
274
|
});
|
|
271
|
-
var colorOverrideStyle = (0, styled_components_1.css)(
|
|
275
|
+
var colorOverrideStyle = (0, styled_components_1.css)(templateObject_32 || (templateObject_32 = __makeTemplateObject(["\n color: ", ";\n"], ["\n color: ", ";\n"])), function (_a) {
|
|
272
276
|
var colorOverride = _a.colorOverride, theme = _a.theme;
|
|
273
277
|
return colorOverride && theme[colorOverride];
|
|
274
278
|
});
|
|
275
|
-
var ellipsisStyle = (0, styled_components_1.css)(
|
|
279
|
+
var ellipsisStyle = (0, styled_components_1.css)(templateObject_33 || (templateObject_33 = __makeTemplateObject(["\n -webkit-box-orient: vertical;\n display: -webkit-box;\n -webkit-line-clamp: ", ";\n overflow: hidden;\n text-overflow: ellipsis;\n"], ["\n -webkit-box-orient: vertical;\n display: -webkit-box;\n -webkit-line-clamp: ", ";\n overflow: hidden;\n text-overflow: ellipsis;\n"])), function (_a) {
|
|
276
280
|
var lineLimit = _a.lineLimit;
|
|
277
281
|
return lineLimit;
|
|
278
282
|
});
|
|
279
|
-
var userSelectModeStyle = (0, styled_components_1.css)(
|
|
280
|
-
var bulletPointModeStyle = (0, styled_components_1.css)(
|
|
281
|
-
var S_TextLabel = styled_components_1.default.div(
|
|
283
|
+
var userSelectModeStyle = (0, styled_components_1.css)(templateObject_34 || (templateObject_34 = __makeTemplateObject(["\n -ms-user-select: none;\n -moz-user-select: -moz-none;\n -khtml-user-select: none;\n -webkit-user-select: none;\n user-select: none;\n"], ["\n -ms-user-select: none;\n -moz-user-select: -moz-none;\n -khtml-user-select: none;\n -webkit-user-select: none;\n user-select: none;\n"])));
|
|
284
|
+
var bulletPointModeStyle = (0, styled_components_1.css)(templateObject_35 || (templateObject_35 = __makeTemplateObject(["\n padding-left: 16px;\n ::before {\n content: '\u2022';\n position: absolute;\n left: 0;\n width: 16px;\n }\n"], ["\n padding-left: 16px;\n ::before {\n content: '\u2022';\n position: absolute;\n left: 0;\n width: 16px;\n }\n"])));
|
|
285
|
+
var S_TextLabel = styled_components_1.default.div(templateObject_36 || (templateObject_36 = __makeTemplateObject(["\n box-sizing: border-box;\n text-align: ", ";\n white-space: pre-wrap;\n word-break: ", ";\n overflow-wrap: break-word;\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n"], ["\n box-sizing: border-box;\n text-align: ", ";\n white-space: pre-wrap;\n word-break: ", ";\n overflow-wrap: break-word;\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n"])), function (_a) {
|
|
282
286
|
var textAlign = _a.textAlign;
|
|
283
287
|
return textAlign;
|
|
284
288
|
}, function (_a) {
|
|
@@ -324,6 +328,7 @@ var S_TextLabel = styled_components_1.default.div(templateObject_35 || (template
|
|
|
324
328
|
sysTextSecondary: sysTextSecondary,
|
|
325
329
|
sysTextTertiary: sysTextTertiary,
|
|
326
330
|
sysTextWhite: sysTextWhite,
|
|
331
|
+
sysTextBlack: sysTextBlack,
|
|
327
332
|
sysTextError: sysTextError,
|
|
328
333
|
sysTextWarning: sysTextWarning,
|
|
329
334
|
sysTextBrandPrimary: sysTextBrandPrimary,
|
|
@@ -360,7 +365,7 @@ var S_TextLabel = styled_components_1.default.div(templateObject_35 || (template
|
|
|
360
365
|
var bulletPointMode = _a.bulletPointMode;
|
|
361
366
|
return bulletPointMode === 'use' && bulletPointModeStyle;
|
|
362
367
|
});
|
|
363
|
-
var S_AfterTextBox = styled_components_1.default.div(
|
|
368
|
+
var S_AfterTextBox = styled_components_1.default.div(templateObject_37 || (templateObject_37 = __makeTemplateObject(["\n display: inline-block;\n margin-left: ", ";\n position: relative;\n\n ", ";\n"], ["\n display: inline-block;\n margin-left: ", ";\n position: relative;\n\n ", ";\n"])), function (_a) {
|
|
364
369
|
var theme = _a.theme;
|
|
365
370
|
return theme.spacing.spacingA;
|
|
366
371
|
}, function (_a) {
|
|
@@ -376,6 +381,6 @@ var S_AfterTextBox = styled_components_1.default.div(templateObject_36 || (templ
|
|
|
376
381
|
return 'vertical-align: middle';
|
|
377
382
|
}
|
|
378
383
|
});
|
|
379
|
-
var S_IconWrapper = styled_components_1.default.div(
|
|
384
|
+
var S_IconWrapper = styled_components_1.default.div(templateObject_38 || (templateObject_38 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n height: 100%;\n justify-content: center;\n width: 16px;\n height: 16px;\n"], ["\n align-items: center;\n display: flex;\n height: 100%;\n justify-content: center;\n width: 16px;\n height: 16px;\n"])));
|
|
380
385
|
exports.default = TextLabel;
|
|
381
|
-
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15, templateObject_16, templateObject_17, templateObject_18, templateObject_19, templateObject_20, templateObject_21, templateObject_22, templateObject_23, templateObject_24, templateObject_25, templateObject_26, templateObject_27, templateObject_28, templateObject_29, templateObject_30, templateObject_31, templateObject_32, templateObject_33, templateObject_34, templateObject_35, templateObject_36, templateObject_37;
|
|
386
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15, templateObject_16, templateObject_17, templateObject_18, templateObject_19, templateObject_20, templateObject_21, templateObject_22, templateObject_23, templateObject_24, templateObject_25, templateObject_26, templateObject_27, templateObject_28, templateObject_29, templateObject_30, templateObject_31, templateObject_32, templateObject_33, templateObject_34, templateObject_35, templateObject_36, templateObject_37, templateObject_38;
|
|
@@ -61,7 +61,9 @@ function SectionBox(_a) {
|
|
|
61
61
|
}
|
|
62
62
|
if (sectionRef.current.getBoundingClientRect().height === 0) {
|
|
63
63
|
setHasNoChild(true);
|
|
64
|
+
return;
|
|
64
65
|
}
|
|
66
|
+
setHasNoChild(false);
|
|
65
67
|
}, [isEditing, children]);
|
|
66
68
|
var onMouseEnter = function () {
|
|
67
69
|
setIsHover(true);
|
|
@@ -87,9 +89,12 @@ var TopRightAbsoluteBox = styled_components_1.default.div(templateObject_1 || (t
|
|
|
87
89
|
return theme.ui_editor_preview_editing;
|
|
88
90
|
});
|
|
89
91
|
var S_SectionBox = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n position: relative;\n"], ["\n position: relative;\n"])));
|
|
90
|
-
var DimmedEditOverlay = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n position: absolute;\n background-color: ", ";\n opacity: 0;\n z-index: 10;\n top: 0;\n right: 0;\n left: 0;\n bottom: 0;\n cursor: pointer;\n display: flex;\n justify-content: center;\n align-items: center;\n transition: opacity 0.2s ease-out;\n\n &:hover {\n opacity:
|
|
92
|
+
var DimmedEditOverlay = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n position: absolute;\n background-color: ", ";\n opacity: 0;\n z-index: 10;\n top: 0;\n right: 0;\n left: 0;\n bottom: 0;\n cursor: pointer;\n display: flex;\n justify-content: center;\n align-items: center;\n transition: opacity 0.2s ease-out;\n\n &:hover {\n opacity: ", ";\n }\n\n animation: ", ";\n\n @keyframes fadeOut {\n 0% {\n opacity: 1;\n }\n\n 50% {\n opacity: 0.6;\n }\n\n 100% {\n opacity: 0;\n }\n }\n"], ["\n position: absolute;\n background-color: ", ";\n opacity: 0;\n z-index: 10;\n top: 0;\n right: 0;\n left: 0;\n bottom: 0;\n cursor: pointer;\n display: flex;\n justify-content: center;\n align-items: center;\n transition: opacity 0.2s ease-out;\n\n &:hover {\n opacity: ", ";\n }\n\n animation: ", ";\n\n @keyframes fadeOut {\n 0% {\n opacity: 1;\n }\n\n 50% {\n opacity: 0.6;\n }\n\n 100% {\n opacity: 0;\n }\n }\n"])), function (_a) {
|
|
91
93
|
var theme = _a.theme;
|
|
92
94
|
return theme.ui_pages_section_dimmed;
|
|
95
|
+
}, function (_a) {
|
|
96
|
+
var fadeOut = _a.fadeOut;
|
|
97
|
+
return (fadeOut ? 0 : 1);
|
|
93
98
|
}, function (_a) {
|
|
94
99
|
var fadeOut = _a.fadeOut;
|
|
95
100
|
return fadeOut && 'fadeOut 0.2s ease-out';
|
package/package.json
CHANGED
package/release-note.md
CHANGED