beem-component 1.8.1 → 1.8.3
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/.babelrc +17 -0
- package/.eslintrc +16 -27
- package/.prettierrc +3 -2
- package/dist/components/Accordion/Accordion.js +14 -8
- package/dist/components/Avatars/avatars.js +3 -3
- package/dist/components/BannerCard/bannerCards.js +8 -6
- package/dist/components/ButtonGroup/buttonGroup.js +37 -0
- package/dist/components/Buttons/buttonAlertIcons.js +3 -3
- package/dist/components/Buttons/buttonDropdown copy.js +51 -50
- package/dist/components/Buttons/buttonDropdown.js +2 -2
- package/dist/components/Buttons/buttonIconsOnly.js +6 -4
- package/dist/components/Buttons/buttons.js +12 -6
- package/dist/components/Cards/cards.js +12 -6
- package/dist/components/ChatComponents/ChatBody/FeedPostComments.js +15 -7
- package/dist/components/ChatComponents/ChatBody/chatBody.js +33 -13
- package/dist/components/ChatComponents/ChatBody/sessionDetails.js +3 -3
- package/dist/components/ChatComponents/ChatBody/sessionTimeline.js +6 -4
- package/dist/components/ChatComponents/ChatHeader/chatHeader.js +3 -3
- package/dist/components/ChatComponents/ColorPicker/colorPicker.js +3 -3
- package/dist/components/ChatComponents/ContactCards/contactCards.js +14 -8
- package/dist/components/ChatComponents/FormAccordion/FormAccordion.js +12 -6
- package/dist/components/ChatComponents/InfoTab/infoTab.js +9 -5
- package/dist/components/ChatComponents/LabelAccordion/LabelAccordion.js +3 -3
- package/dist/components/ChatComponents/NoteAccordion/NoteAccordion.js +9 -5
- package/dist/components/Chats/chat.js +47 -29
- package/dist/components/Chats/chatInput.js +16 -8
- package/dist/components/Chats/chatwrapper.js +18 -8
- package/dist/components/Checkbox/checkboxToggler.js +12 -6
- package/dist/components/Checkbox/checkboxToggler.stories.js +2 -2
- package/dist/components/InputDatePicker.js +53 -0
- package/dist/components/Jumbotron/Jumbotron.js +35 -0
- package/dist/components/Jumbotron/Jumbotron.stories.js +32 -0
- package/dist/components/Lists/listBox.js +3 -3
- package/dist/components/Lists/listBox.stories.js +2 -2
- package/dist/components/Lists/listheader.js +3 -3
- package/dist/components/Lists/rowLabels.js +12 -6
- package/dist/components/Lists/rowLabels.stories.js +4 -1
- package/dist/components/Loader/loader.js +3 -3
- package/dist/components/MainWrapper/index.js +3 -3
- package/dist/components/MessageCounter/messageCounter.js +3 -3
- package/dist/components/Modals/modal.js +33 -21
- package/dist/components/Modals/modals.stories.js +2 -2
- package/dist/components/NoteBar/noteBar.js +5 -5
- package/dist/components/PaymentBox/paymentBox.js +12 -6
- package/dist/components/PerformanceIndicator/performanceIndicator.js +3 -3
- package/dist/components/Pills/pills.js +5 -5
- package/dist/components/ProfileIcon/ProfileIcon.js +12 -6
- package/dist/components/ProgressBar/progressbar.js +12 -6
- package/dist/components/ProgressRing/progressRing.js +14 -8
- package/dist/components/RouteLink/link.js +3 -3
- package/dist/components/ScrollBar/scrollBar.js +9 -5
- package/dist/components/SuperFluid/Content/index.js +3 -3
- package/dist/components/SuperFluid/ContentTitle.js/index.js +12 -6
- package/dist/components/SuperFluid/SegmentCard/index.js +20 -8
- package/dist/components/Tabs/tabs.js +3 -3
- package/dist/components/Tags/tags.js +5 -5
- package/dist/components/chatHeader.js +15 -7
- package/dist/components/checkbox.js +15 -7
- package/dist/components/contacts.js +33 -13
- package/dist/components/dropdown.js +25 -13
- package/dist/components/dropdownButton.js +9 -5
- package/dist/components/dropdownItems.js +22 -10
- package/dist/components/examples/App.js +8 -8
- package/dist/components/examples/chatBodyExample.js +1 -1
- package/dist/components/examples/selectExample.js +5 -5
- package/dist/components/globalStyles.js +1 -3
- package/dist/components/index.js +14 -0
- package/dist/components/input.js +9 -5
- package/dist/components/logo.js +3 -3
- package/dist/components/navbar.js +23 -9
- package/dist/components/search.js +17 -12
- package/dist/components/shadow.js +1 -1
- package/dist/components/wrapper.js +6 -4
- package/package.json +31 -16
- package/src/App.js +35 -253
- package/src/examples/AlertIcons.js +10 -5
- package/src/examples/Avatars.js +3 -2
- package/src/examples/Buttons.js +7 -10
- package/src/examples/Chat.js +9 -9
- package/src/examples/Input.js +79 -70
- package/src/examples/Logo.js +2 -2
- package/src/examples/Navbar.js +12 -12
- package/src/examples/Search.js +3 -2
- package/src/examples/SideBar.js +11 -11
- package/src/examples/Tags.js +3 -3
- package/src/lib/components/ButtonGroup/buttonGroup.js +38 -0
- package/src/lib/components/Buttons/buttonDropdown copy.js +51 -54
- package/src/lib/components/Buttons/buttonDropdown.js +6 -6
- package/src/lib/components/Chats/chat.js +23 -23
- package/src/lib/components/Chats/chatInput.js +8 -8
- package/src/lib/components/Chats/chatwrapper.js +2 -2
- package/src/lib/components/Checkbox/checkboxToggler.stories.js +0 -1
- package/src/lib/components/InputDatePicker.js +45 -0
- package/src/lib/components/Jumbotron/Jumbotron.js +54 -0
- package/src/lib/components/Jumbotron/Jumbotron.stories.js +31 -0
- package/src/lib/components/chatHeader.js +8 -3
- package/src/lib/components/contacts.js +3 -3
- package/src/lib/components/dropdown.js +7 -7
- package/src/lib/components/dropdownItems.js +6 -6
- package/src/lib/components/examples/App.js +53 -43
- package/src/lib/components/examples/InfoAccordion.js +6 -5
- package/src/lib/components/examples/chatBodyExample.js +5 -5
- package/src/lib/components/examples/selectExample.js +7 -7
- package/src/lib/components/index-copy.js +49 -49
- package/src/lib/components/index.js +4 -0
- package/src/lib/components/logo.js +2 -2
- package/src/lib/components/navbar.js +5 -5
- package/src/lib/components/search.js +10 -11
- package/src/lib/components/shadow.js +1 -1
- package/src/lib/components/wrapper.js +1 -2
- package/babel.config.js +0 -11
|
@@ -8,13 +8,13 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
8
8
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
9
|
var _colors = require("../../colors");
|
|
10
10
|
var _excluded = ["story", "state", "status", "image"];
|
|
11
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
|
|
12
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
12
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
14
13
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
15
14
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
var BmFeedPost = _styledComponents.default.div.withConfig({
|
|
16
|
+
displayName: "FeedPostComments__BmFeedPost"
|
|
17
|
+
})(["display:inline-block;flex-direction:column;padding:0.5rem;width:", ";max-width:", ";margin-left:", ";background-color:", ";border:0.071rem solid ", ";border-radius:0.25rem;max-height:", ";height:", ";"], function (_ref) {
|
|
18
18
|
var image = _ref.image;
|
|
19
19
|
if (image) return '15vw';
|
|
20
20
|
return '20vw';
|
|
@@ -45,7 +45,9 @@ var BmFeedPost = _styledComponents.default.div(_templateObject || (_templateObje
|
|
|
45
45
|
if (image) return '10vw';
|
|
46
46
|
return '100%';
|
|
47
47
|
});
|
|
48
|
-
var MainContent = _styledComponents.default.div(
|
|
48
|
+
var MainContent = _styledComponents.default.div.withConfig({
|
|
49
|
+
displayName: "FeedPostComments__MainContent"
|
|
50
|
+
})(["display:flex;flex-direction:row;border-left:", ";background-color:", ";max-height:80%;height:80%;"], function (_ref7) {
|
|
49
51
|
var status = _ref7.status;
|
|
50
52
|
if (status) {
|
|
51
53
|
if (status === 'comment') return "0.143rem solid ".concat(_colors.BmSecondaryGreen);
|
|
@@ -60,7 +62,9 @@ var MainContent = _styledComponents.default.div(_templateObject2 || (_templateOb
|
|
|
60
62
|
}
|
|
61
63
|
return "".concat(_colors.BmTransparentBg30);
|
|
62
64
|
});
|
|
63
|
-
var Content = _styledComponents.default.div
|
|
65
|
+
var Content = _styledComponents.default.div.withConfig({
|
|
66
|
+
displayName: "FeedPostComments__Content"
|
|
67
|
+
})(["display:flex;flex-direction:column;color:", ";word-break:break-word;> *{margin-bottom:0.5rem;word-break:break-word;}width:", ";max-width:", ";padding:0.5rem;"], function (_ref9) {
|
|
64
68
|
var state = _ref9.state;
|
|
65
69
|
if (state && state === 'inbound') return "".concat(_colors.BmPrimaryBlack);
|
|
66
70
|
if (state && state === 'outbound') return "".concat(_colors.BmPrimaryWhite);
|
|
@@ -74,8 +78,12 @@ var Content = _styledComponents.default.div(_templateObject3 || (_templateObject
|
|
|
74
78
|
if (image) return '75%';
|
|
75
79
|
return '100%';
|
|
76
80
|
});
|
|
77
|
-
var Image = _styledComponents.default.img(
|
|
78
|
-
|
|
81
|
+
var Image = _styledComponents.default.img.withConfig({
|
|
82
|
+
displayName: "FeedPostComments__Image"
|
|
83
|
+
})(["max-width:25%;width:25%;"]);
|
|
84
|
+
BmFeedPost.Footer = _styledComponents.default.div.withConfig({
|
|
85
|
+
displayName: "FeedPostComments__Footer"
|
|
86
|
+
})(["display:flex;flex-direction:row;word-break:break-word;> *{word-break:break-word !important;}align-items:center;margin-top:0.5rem;max-height:20%;height:20%;color:", ";"], function (_ref12) {
|
|
79
87
|
var state = _ref12.state;
|
|
80
88
|
if (state && state === 'inbound') return "".concat(_colors.BmPrimaryBlack);
|
|
81
89
|
if (state && state === 'outbound') return "".concat(_colors.BmPrimaryWhite);
|
|
@@ -19,16 +19,20 @@ var _FeedPostComments = require("./FeedPostComments");
|
|
|
19
19
|
var _excluded = ["state", "file", "src", "fileName", "onDownload", "link"],
|
|
20
20
|
_excluded2 = ["state", "src", "fileName"],
|
|
21
21
|
_excluded3 = ["children", "state", "displayTime", "status", "session", "src", "file", "fileName", "sessionDetails", "sessionTimeline", "feedPostComments", "agentName"];
|
|
22
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11;
|
|
23
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
24
23
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
25
24
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
26
25
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
var BmChat = _styledComponents.default.div.withConfig({
|
|
27
|
+
displayName: "chatBody__BmChat"
|
|
28
|
+
})(["display:flex;flex-direction:column;height:100%;", ""], '' /* border: 0.071rem solid ${BmGrey400}; */);
|
|
29
29
|
|
|
30
|
-
BmChat.Body = _styledComponents.default.div(
|
|
31
|
-
|
|
30
|
+
BmChat.Body = _styledComponents.default.div.withConfig({
|
|
31
|
+
displayName: "chatBody__Body"
|
|
32
|
+
})(["display:flex;flex-direction:column-reverse;padding:0rem 1rem;flex-grow:1;overflow:auto;height:100%;"]);
|
|
33
|
+
var Details = _styledComponents.default.div.withConfig({
|
|
34
|
+
displayName: "chatBody__Details"
|
|
35
|
+
})(["display:flex;justify-content:", ";> *:not(:last-child){margin-right:1rem;margin-bottom:0.5rem;}overflow-wrap:break-word !important;word-wrap:break-word !important;margin:0rem;flex-grow:1;", ""], function (_ref) {
|
|
32
36
|
var state = _ref.state;
|
|
33
37
|
if (state === 'inbound') {
|
|
34
38
|
return 'flex-start';
|
|
@@ -39,8 +43,12 @@ var Details = _styledComponents.default.div(_templateObject3 || (_templateObject
|
|
|
39
43
|
return 'row';
|
|
40
44
|
}, '' /* border: 1px solid red; */);
|
|
41
45
|
|
|
42
|
-
var MessageDetails = _styledComponents.default.div(
|
|
43
|
-
|
|
46
|
+
var MessageDetails = _styledComponents.default.div.withConfig({
|
|
47
|
+
displayName: "chatBody__MessageDetails"
|
|
48
|
+
})(["display:flex;flex-direction:column;max-width:70%;> *{margin-top:0.5rem;margin-bottom:0.5rem;}"]);
|
|
49
|
+
var Messages = _styledComponents.default.div.withConfig({
|
|
50
|
+
displayName: "chatBody__Messages"
|
|
51
|
+
})(["display:flex;flex-direction:row;align-items:center;padding:0.5rem;background:", ";color:", ";border-radius:", ";border:0.071rem solid ", ";word-break:break-word;margin:0rem;"], function (_ref2) {
|
|
44
52
|
var state = _ref2.state;
|
|
45
53
|
if (state) {
|
|
46
54
|
if (state === 'inbound') return "".concat(_colors.BmPrimaryWhite);
|
|
@@ -62,7 +70,9 @@ var Messages = _styledComponents.default.div(_templateObject5 || (_templateObjec
|
|
|
62
70
|
}
|
|
63
71
|
return "".concat(_colors.BmPrimaryWhite);
|
|
64
72
|
}, _colors.BmGrey200);
|
|
65
|
-
var MessagesSubDetails = _styledComponents.default.div
|
|
73
|
+
var MessagesSubDetails = _styledComponents.default.div.withConfig({
|
|
74
|
+
displayName: "chatBody__MessagesSubDetails"
|
|
75
|
+
})(["display:flex;flex-direction:row;align-items:center;> *:not(:last-child){margin-right:0.5rem;}margin-left:", ";margin-top:0.5rem;"], function (_ref5) {
|
|
66
76
|
var state = _ref5.state;
|
|
67
77
|
if (state) {
|
|
68
78
|
if (state === 'inbound') return '0px';
|
|
@@ -101,7 +111,9 @@ var handleState = function handleState(_ref6) {
|
|
|
101
111
|
};
|
|
102
112
|
|
|
103
113
|
// Start of File Attachment
|
|
104
|
-
var FileAttachmentWrapper = _styledComponents.default.div
|
|
114
|
+
var FileAttachmentWrapper = _styledComponents.default.div.withConfig({
|
|
115
|
+
displayName: "chatBody__FileAttachmentWrapper"
|
|
116
|
+
})(["display:flex;cursor:pointer;flex-direction:row;padding:1rem;background:", ";color:", ";border-radius:", ";border:0.071rem solid ", ";> *{&:last-child{margin-left:auto;}:not(:last-child){margin-right:0.5rem;}}&&& > *{align-items:center;color:", ";}", " ", ""], function (_ref7) {
|
|
105
117
|
var state = _ref7.state;
|
|
106
118
|
if (state) {
|
|
107
119
|
if (state === 'inbound') return "".concat(_colors.BmPrimaryWhite);
|
|
@@ -151,7 +163,9 @@ var BmFileAttachment = function BmFileAttachment(_ref11) {
|
|
|
151
163
|
})));
|
|
152
164
|
};
|
|
153
165
|
// Start of Component for Images
|
|
154
|
-
var BmImageWrapper = _styledComponents.default.div
|
|
166
|
+
var BmImageWrapper = _styledComponents.default.div.withConfig({
|
|
167
|
+
displayName: "chatBody__BmImageWrapper"
|
|
168
|
+
})(["display:flex;flex-direction:column;color:", ";border-radius:", ";border:0.071rem solid ", ";"], function (_ref12) {
|
|
155
169
|
var state = _ref12.state;
|
|
156
170
|
if (state) {
|
|
157
171
|
if (state === 'inbound') return "".concat(_colors.BmPrimaryBlack);
|
|
@@ -167,7 +181,9 @@ var BmImageWrapper = _styledComponents.default.div(_templateObject8 || (_templat
|
|
|
167
181
|
return "".concat(_colors.BmPrimaryWhite);
|
|
168
182
|
}, _colors.BmGrey200);
|
|
169
183
|
exports.BmImageWrapper = BmImageWrapper;
|
|
170
|
-
var BmImage = _styledComponents.default.img(
|
|
184
|
+
var BmImage = _styledComponents.default.img.withConfig({
|
|
185
|
+
displayName: "chatBody__BmImage"
|
|
186
|
+
})(["", " width:100%;object-fit:cover;flex-grow:1;"], '' /* Fix width */);
|
|
171
187
|
exports.BmImage = BmImage;
|
|
172
188
|
var BmImageChat = function BmImageChat(_ref14) {
|
|
173
189
|
var state = _ref14.state,
|
|
@@ -186,7 +202,9 @@ var BmImageChat = function BmImageChat(_ref14) {
|
|
|
186
202
|
}, rest))));
|
|
187
203
|
};
|
|
188
204
|
exports.BmImageChat = BmImageChat;
|
|
189
|
-
var MessageState = _styledComponents.default.div(
|
|
205
|
+
var MessageState = _styledComponents.default.div.withConfig({
|
|
206
|
+
displayName: "chatBody__MessageState"
|
|
207
|
+
})(["@media all and (max-width:960px){display:none;}"]);
|
|
190
208
|
|
|
191
209
|
// End of Component for Images
|
|
192
210
|
exports.MessageState = MessageState;
|
|
@@ -246,6 +264,8 @@ BmChat.Details = function (_ref15) {
|
|
|
246
264
|
message: sessionDetails.message
|
|
247
265
|
}, rest)));
|
|
248
266
|
};
|
|
249
|
-
BmChat.Footer = _styledComponents.default.div
|
|
267
|
+
BmChat.Footer = _styledComponents.default.div.withConfig({
|
|
268
|
+
displayName: "chatBody__Footer"
|
|
269
|
+
})(["display:flex;flex-direction:column;padding:0.5rem 0.5rem;> *:not(:last-child){margin-bottom:0.5rem;}"]);
|
|
250
270
|
var _default = BmChat;
|
|
251
271
|
exports.default = _default;
|
|
@@ -8,13 +8,13 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
8
8
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
9
|
var _colors = require("../../colors");
|
|
10
10
|
var _excluded = ["message", "time"];
|
|
11
|
-
var _templateObject;
|
|
12
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
12
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
14
13
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
15
14
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
var SessionDetailsWrapper = _styledComponents.default.div.withConfig({
|
|
16
|
+
displayName: "sessionDetails__SessionDetailsWrapper"
|
|
17
|
+
})(["display:flex;flex-direction:row;justify-content:space-between;align-items:center;text-align:center;border-bottom:0.071rem solid ", ";margin:1rem 0.5rem;"], _colors.BmGrey200);
|
|
18
18
|
var SessionDetails = function SessionDetails(_ref) {
|
|
19
19
|
var message = _ref.message,
|
|
20
20
|
time = _ref.time,
|
|
@@ -8,14 +8,16 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
8
8
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
9
|
var _colors = require("../../colors");
|
|
10
10
|
var _excluded = ["message", "time"];
|
|
11
|
-
var _templateObject, _templateObject2;
|
|
12
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
12
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
14
13
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
15
14
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
var SessionTimelineWrapper = _styledComponents.default.div.withConfig({
|
|
16
|
+
displayName: "sessionTimeline__SessionTimelineWrapper"
|
|
17
|
+
})(["display:flex;flex-direction:row;justify-content:center;align-items:center;text-align:center;margin-bottom:0.5rem;margin-top:0.5rem;"]);
|
|
18
|
+
var container = _styledComponents.default.div.withConfig({
|
|
19
|
+
displayName: "sessionTimeline__container"
|
|
20
|
+
})(["border-radius:0.714rem 0.714rem 0.714rem 0.714rem;border:0.071rem solid ", ";padding:0.5rem;background-color:", ";"], _colors.BmBgGreyBlue, _colors.BmSecondaryBlue12);
|
|
19
21
|
SessionTimelineWrapper.Container = container;
|
|
20
22
|
var SessionTimeline = function SessionTimeline(_ref) {
|
|
21
23
|
var message = _ref.message,
|
|
@@ -5,10 +5,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.BmChatHeader = void 0;
|
|
7
7
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
8
|
-
var _templateObject;
|
|
9
8
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
|
-
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
11
9
|
// import { BmGrey400 } from "../colors";
|
|
12
10
|
|
|
13
|
-
var BmChatHeader = _styledComponents.default.div(
|
|
11
|
+
var BmChatHeader = _styledComponents.default.div.withConfig({
|
|
12
|
+
displayName: "chatHeader__BmChatHeader"
|
|
13
|
+
})(["display:flex;flex-direction:row;align-items:center;", " padding:1rem;> *:not(:last-child){margin-right:0.5rem;}"], '' /* border: 0.071rem solid ${BmGrey400}; */);
|
|
14
14
|
exports.BmChatHeader = BmChatHeader;
|
|
@@ -5,10 +5,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.BmColorPicker = void 0;
|
|
7
7
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
8
|
-
var _templateObject;
|
|
9
8
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
var BmColorPicker = _styledComponents.default.div.withConfig({
|
|
10
|
+
displayName: "colorPicker__BmColorPicker"
|
|
11
|
+
})(["width:1.429rem;height:1.429rem;border-radius:50%;background:", ";> *:not(:last-child){margin-right:0.5rem;}"], function (props) {
|
|
12
12
|
return props.color ? props.color : 'green';
|
|
13
13
|
});
|
|
14
14
|
exports.BmColorPicker = BmColorPicker;
|
|
@@ -6,17 +6,23 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
8
8
|
var _colors = require("../../colors");
|
|
9
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
10
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
var BmContactCard = _styledComponents.default.div.withConfig({
|
|
11
|
+
displayName: "contactCards__BmContactCard"
|
|
12
|
+
})(["display:flex;flex-direction:row;justify-content:space-between;> *:not(:last-child){margin-right:1rem;}&:hover{background:", ";}", " cursor:pointer;padding:1rem 1.5rem;"], _colors.BmSecondaryBlue12, function (_ref) {
|
|
13
13
|
var active = _ref.active;
|
|
14
14
|
return active && " \n background: ".concat(_colors.BmSecondaryBlue12, ";\n ");
|
|
15
15
|
});
|
|
16
|
-
BmContactCard.Profile = _styledComponents.default.div(
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
16
|
+
BmContactCard.Profile = _styledComponents.default.div.withConfig({
|
|
17
|
+
displayName: "contactCards__Profile"
|
|
18
|
+
})(["display:flex;flex-direction:column;justify-content:space-between;align-items:center;"]);
|
|
19
|
+
BmContactCard.Details = _styledComponents.default.div.withConfig({
|
|
20
|
+
displayName: "contactCards__Details"
|
|
21
|
+
})(["display:flex;flex-direction:column;flex-grow:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;> *:not(:last-child){margin-bottom:0.5rem;}"]);
|
|
22
|
+
BmContactCard.SubDetails = _styledComponents.default.div.withConfig({
|
|
23
|
+
displayName: "contactCards__SubDetails"
|
|
24
|
+
})(["display:flex;flex-direction:row;justify-content:space-between;> *{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;align-items:flex-start;}", " ", ""], '' /* TODO */, '' /* > :last-child {
|
|
25
|
+
margin-left: auto;
|
|
26
|
+
} */);
|
|
21
27
|
var _default = BmContactCard;
|
|
22
28
|
exports.default = _default;
|
|
@@ -5,12 +5,18 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
8
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
9
8
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
BmChatForm.
|
|
14
|
-
|
|
9
|
+
var BmChatForm = _styledComponents.default.div.withConfig({
|
|
10
|
+
displayName: "FormAccordion__BmChatForm"
|
|
11
|
+
})(["display:flex;flex-direction:column;padding:0rem 0.5rem;justify-content:space-between;> *:not(:last-child){margin-bottom:0.5rem;}"]);
|
|
12
|
+
BmChatForm.Group = _styledComponents.default.div.withConfig({
|
|
13
|
+
displayName: "FormAccordion__Group"
|
|
14
|
+
})(["display:flex;flex-direction:row;align-items:center;justify-content:space-between;"]);
|
|
15
|
+
BmChatForm.Label = _styledComponents.default.div.withConfig({
|
|
16
|
+
displayName: "FormAccordion__Label"
|
|
17
|
+
})(["margin:0rem;text-align:left;width:50%;overflow:hidden;text-overflow:ellipsis;"]);
|
|
18
|
+
BmChatForm.Input = _styledComponents.default.input.withConfig({
|
|
19
|
+
displayName: "FormAccordion__Input"
|
|
20
|
+
})(["text-align:right;width:50%;overflow:hidden;text-overflow:ellipsis;border:none;&:visited,&:active,&:hover,&:focus{outline:none !important;text-decoration:none;}background:transparent;"]);
|
|
15
21
|
var _default = BmChatForm;
|
|
16
22
|
exports.default = _default;
|
|
@@ -5,12 +5,16 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
8
|
-
var _templateObject, _templateObject2, _templateObject3;
|
|
9
8
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
var BmInfoTab = _styledComponents.default.div.withConfig({
|
|
10
|
+
displayName: "infoTab__BmInfoTab"
|
|
11
|
+
})(["display:flex;flex-direction:column;padding:1.5rem;", " > *:not(:last-child){margin-bottom:1rem;}"], '' /* border: 0.071rem solid ${BmGrey400}; */);
|
|
12
12
|
|
|
13
|
-
BmInfoTab.Content = _styledComponents.default.div(
|
|
14
|
-
|
|
13
|
+
BmInfoTab.Content = _styledComponents.default.div.withConfig({
|
|
14
|
+
displayName: "infoTab__Content"
|
|
15
|
+
})(["display:flex;flex-direction:row;justify-content:space-between;"]);
|
|
16
|
+
BmInfoTab.Tabs = _styledComponents.default.div.withConfig({
|
|
17
|
+
displayName: "infoTab__Tabs"
|
|
18
|
+
})(["display:flex;flex-direction:column;> *:not(:first-child){margin-top:0.5rem;}"]);
|
|
15
19
|
var _default = BmInfoTab;
|
|
16
20
|
exports.default = _default;
|
|
@@ -5,9 +5,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
8
|
-
var _templateObject;
|
|
9
8
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
var BmChatLabels = _styledComponents.default.div.withConfig({
|
|
10
|
+
displayName: "LabelAccordion__BmChatLabels"
|
|
11
|
+
})(["display:flex;flex-direction:column;padding:0rem 0.5rem;> *:not(:last-child){margin-bottom:1rem;}> *{display:flex;flex-direction:row;justify-content:space-between;width:100%;}"]);
|
|
12
12
|
var _default = BmChatLabels;
|
|
13
13
|
exports.default = _default;
|
|
@@ -6,11 +6,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
8
8
|
var _colors = require("../../colors");
|
|
9
|
-
var _templateObject, _templateObject2, _templateObject3;
|
|
10
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
BmChatNotes.
|
|
10
|
+
var BmChatNotes = _styledComponents.default.div.withConfig({
|
|
11
|
+
displayName: "NoteAccordion__BmChatNotes"
|
|
12
|
+
})(["display:flex;flex-direction:column;padding:0rem 0.5rem;> *:not(:last-child){margin-bottom:0.5rem;}"]);
|
|
13
|
+
BmChatNotes.Input = _styledComponents.default.input.withConfig({
|
|
14
|
+
displayName: "NoteAccordion__Input"
|
|
15
|
+
})(["padding:1rem 1.5rem;display:flex;flex-grow:1;background:", ";border:none !important;&:visited,&:active,&:hover,&:focus{outline:none !important;text-decoration:none !important;}width:100%;"], _colors.BmGrey100);
|
|
16
|
+
BmChatNotes.Details = _styledComponents.default.div.withConfig({
|
|
17
|
+
displayName: "NoteAccordion__Details"
|
|
18
|
+
})(["display:flex;flex-direction:column;padding:0.5rem 1rem;border:1px solid ", ";border-radius:0.25rem;> *:not(:last-child){margin-bottom:0.5rem;}> *{display:flex;flex-direction:row;justify-content:space-between;}"], _colors.BmGrey200);
|
|
15
19
|
var _default = BmChatNotes;
|
|
16
20
|
exports.default = _default;
|
|
@@ -12,33 +12,39 @@ var _iconStyles = require("../iconStyles");
|
|
|
12
12
|
var _excluded = ["children", "displayTime", "type", "size", "color", "status"],
|
|
13
13
|
_excluded2 = ["children", "displayTime", "type"],
|
|
14
14
|
_excluded3 = ["children", "displayTime", "type"];
|
|
15
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10;
|
|
16
15
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
16
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
18
17
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
19
18
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
var BmChatWrapper = _styledComponents.default.div.withConfig({
|
|
20
|
+
displayName: "chat__BmChatWrapper"
|
|
21
|
+
})(["display:flex;flex-direction:row;align-items:center;padding:1.143rem;background:", ";border:0.071rem solid ", ";border-radius:0.25rem 0.21875rem 0.21875rem 0rem;max-width:50%;overflow-wrap:break-word !important;word-wrap:break-word !important;margin:0rem;"], function (_ref) {
|
|
22
22
|
var type = _ref.type;
|
|
23
23
|
if (type) {
|
|
24
|
-
if (type ===
|
|
25
|
-
if (type ===
|
|
24
|
+
if (type === 'inbound') return "".concat(_colors.BmPrimaryWhite);
|
|
25
|
+
if (type === 'outbound') return "".concat(_colors.BmPrimaryBlue);
|
|
26
26
|
}
|
|
27
27
|
return "".concat(_colors.BmPrimaryWhite);
|
|
28
28
|
}, _colors.BmGrey400);
|
|
29
29
|
exports.BmChatWrapper = BmChatWrapper;
|
|
30
|
-
var BmChatText = _styledComponents.default.p(
|
|
30
|
+
var BmChatText = _styledComponents.default.p.withConfig({
|
|
31
|
+
displayName: "chat__BmChatText"
|
|
32
|
+
})(["overflow-wrap:break-word;word-wrap:break-word;max-width:100%;color:", ";"], function (_ref2) {
|
|
31
33
|
var type = _ref2.type;
|
|
32
34
|
if (type) {
|
|
33
|
-
if (type ===
|
|
34
|
-
if (type ===
|
|
35
|
+
if (type === 'inbound') return "".concat(_colors.BmPrimaryBlack);
|
|
36
|
+
if (type === 'outbound') return "".concat(_colors.BmPrimaryWhite);
|
|
35
37
|
}
|
|
36
38
|
return "".concat(_colors.BmPrimaryBlack);
|
|
37
39
|
});
|
|
38
40
|
exports.BmChatText = BmChatText;
|
|
39
|
-
var BmDisplayTime = _styledComponents.default.p(
|
|
41
|
+
var BmDisplayTime = _styledComponents.default.p.withConfig({
|
|
42
|
+
displayName: "chat__BmDisplayTime"
|
|
43
|
+
})(["color:", ";padding-top:0.571rem !important;padding-bottom:1.143rem;"], _colors.BmPrimaryBlack);
|
|
40
44
|
exports.BmDisplayTime = BmDisplayTime;
|
|
41
|
-
var BmDisplay = _styledComponents.default.div(
|
|
45
|
+
var BmDisplay = _styledComponents.default.div.withConfig({
|
|
46
|
+
displayName: "chat__BmDisplay"
|
|
47
|
+
})(["display:flex;flex-direction:row;justify-content:space-between;align-items:center;", "{margin-left:0.5rem;}"], BmDisplayTime);
|
|
42
48
|
exports.BmDisplay = BmDisplay;
|
|
43
49
|
var BmUserChat = function BmUserChat(_ref3) {
|
|
44
50
|
var children = _ref3.children,
|
|
@@ -52,42 +58,48 @@ var BmUserChat = function BmUserChat(_ref3) {
|
|
|
52
58
|
type: type
|
|
53
59
|
}), /*#__PURE__*/_react.default.createElement(BmChatText, _extends({}, rest, {
|
|
54
60
|
type: type
|
|
55
|
-
}), children)), /*#__PURE__*/_react.default.createElement(BmDisplay, null, type ===
|
|
61
|
+
}), children)), /*#__PURE__*/_react.default.createElement(BmDisplay, null, type === 'outbound' && status === 'sent' && /*#__PURE__*/_react.default.createElement(_iconStyles.BmIcons, {
|
|
56
62
|
icon: /*#__PURE__*/_react.default.createElement(_icons.DoneAll, null),
|
|
57
|
-
size: size ||
|
|
63
|
+
size: size || 'small',
|
|
58
64
|
color: color || "".concat(_colors.BmSecondaryGreen)
|
|
59
|
-
}), type ===
|
|
65
|
+
}), type === 'outbound' && status === 'failed' && /*#__PURE__*/_react.default.createElement(_iconStyles.BmIcons, {
|
|
60
66
|
icon: /*#__PURE__*/_react.default.createElement(_icons.Done, null),
|
|
61
|
-
size: size ||
|
|
67
|
+
size: size || 'small',
|
|
62
68
|
color: color || "".concat(_colors.BmPrimaryBlack)
|
|
63
69
|
}), displayTime && /*#__PURE__*/_react.default.createElement(BmDisplayTime, rest, displayTime)));
|
|
64
70
|
};
|
|
65
71
|
|
|
66
|
-
//File Attachments
|
|
72
|
+
// File Attachments
|
|
67
73
|
exports.BmUserChat = BmUserChat;
|
|
68
|
-
var BmFileWrapper = _styledComponents.default.div
|
|
74
|
+
var BmFileWrapper = _styledComponents.default.div.withConfig({
|
|
75
|
+
displayName: "chat__BmFileWrapper"
|
|
76
|
+
})(["display:flex;flex-direction:row;align-items:center;padding:1.143rem;background:", ";border:0.071rem solid ", ";border-radius:3.357rem 3.357rem 3.357rem 0rem;max-width:50%;align-items:center;overflow-wrap:break-word !important;word-wrap:break-word !important;margin:0rem;"], function (_ref4) {
|
|
69
77
|
var type = _ref4.type;
|
|
70
78
|
if (type) {
|
|
71
|
-
if (type ===
|
|
72
|
-
if (type ===
|
|
79
|
+
if (type === 'inbound') return "".concat(_colors.BmPrimaryWhite);
|
|
80
|
+
if (type === 'outbound') return "".concat(_colors.BmPrimaryBlue);
|
|
73
81
|
}
|
|
74
82
|
return "".concat(_colors.BmPrimaryWhite);
|
|
75
83
|
}, _colors.BmGrey400);
|
|
76
84
|
exports.BmFileWrapper = BmFileWrapper;
|
|
77
|
-
var BmFileText = _styledComponents.default.p
|
|
85
|
+
var BmFileText = _styledComponents.default.p.withConfig({
|
|
86
|
+
displayName: "chat__BmFileText"
|
|
87
|
+
})(["overflow-wrap:break-word;word-wrap:break-word;max-width:100%;color:", ";margin:0rem 1rem 0rem 0.5rem;flex-grow:1;"], function (_ref5) {
|
|
78
88
|
var type = _ref5.type;
|
|
79
89
|
if (type) {
|
|
80
|
-
if (type ===
|
|
81
|
-
if (type ===
|
|
90
|
+
if (type === 'inbound') return "".concat(_colors.BmPrimaryBlue);
|
|
91
|
+
if (type === 'outbound') return "".concat(_colors.BmPrimaryWhite);
|
|
82
92
|
}
|
|
83
93
|
return "".concat(_colors.BmPrimaryBlue);
|
|
84
94
|
});
|
|
85
95
|
exports.BmFileText = BmFileText;
|
|
86
|
-
var FileIcons = (0, _styledComponents.default)(_iconStyles.BmIcons)(
|
|
96
|
+
var FileIcons = (0, _styledComponents.default)(_iconStyles.BmIcons).withConfig({
|
|
97
|
+
displayName: "chat__FileIcons"
|
|
98
|
+
})(["color:", ";"], function (_ref6) {
|
|
87
99
|
var type = _ref6.type;
|
|
88
100
|
if (type) {
|
|
89
|
-
if (type ===
|
|
90
|
-
if (type ===
|
|
101
|
+
if (type === 'inbound') return "".concat(_colors.BmPrimaryBlack);
|
|
102
|
+
if (type === 'outbound') return "".concat(_colors.BmPrimaryWhite);
|
|
91
103
|
}
|
|
92
104
|
return "".concat(_colors.BmPrimaryBlack);
|
|
93
105
|
});
|
|
@@ -101,20 +113,26 @@ var BmFileChat = function BmFileChat(_ref7) {
|
|
|
101
113
|
type: type
|
|
102
114
|
}, rest), /*#__PURE__*/_react.default.createElement(_iconStyles.BmIcons, {
|
|
103
115
|
icon: /*#__PURE__*/_react.default.createElement(_icons.AttachFile, null),
|
|
104
|
-
color: type ===
|
|
116
|
+
color: type === 'outbound' ? "".concat(_colors.BmPrimaryWhite) : "".concat(_colors.BmPrimaryBlue)
|
|
105
117
|
}), /*#__PURE__*/_react.default.createElement(BmFileText, {
|
|
106
118
|
type: type
|
|
107
119
|
}, children), /*#__PURE__*/_react.default.createElement(_iconStyles.BmIcons, {
|
|
108
120
|
icon: /*#__PURE__*/_react.default.createElement(_icons.GetApp, null),
|
|
109
|
-
color: type ===
|
|
121
|
+
color: type === 'outbound' ? "".concat(_colors.BmPrimaryWhite) : "".concat(_colors.BmSecondaryGrey)
|
|
110
122
|
})), displayTime && /*#__PURE__*/_react.default.createElement(BmDisplayTime, rest, displayTime));
|
|
111
123
|
};
|
|
112
124
|
exports.BmFileChat = BmFileChat;
|
|
113
|
-
var BmImageWrapper = _styledComponents.default.div(
|
|
125
|
+
var BmImageWrapper = _styledComponents.default.div.withConfig({
|
|
126
|
+
displayName: "chat__BmImageWrapper"
|
|
127
|
+
})(["background:", ";border:0.071rem solid ", ";border-radius:0.25rem 0.21875rem 0rem 0.21875rem;display:flex;flex-direction:column;max-width:50%;max-height:50%;"], _colors.BmGrey100, _colors.BmGrey400);
|
|
114
128
|
exports.BmImageWrapper = BmImageWrapper;
|
|
115
|
-
var BmImage = _styledComponents.default.img(
|
|
129
|
+
var BmImage = _styledComponents.default.img.withConfig({
|
|
130
|
+
displayName: "chat__BmImage"
|
|
131
|
+
})(["width:100%;", " object-fit:cover;flex-grow:1;"], '' /* height: 100%; */);
|
|
116
132
|
exports.BmImage = BmImage;
|
|
117
|
-
var BmImageFileName = (0, _styledComponents.default)(BmFileChat)(
|
|
133
|
+
var BmImageFileName = (0, _styledComponents.default)(BmFileChat).withConfig({
|
|
134
|
+
displayName: "chat__BmImageFileName"
|
|
135
|
+
})(["padding:0.5rem 1rem;max-width:100%;border:none;border-top:0.071rem solid ", ";border-radius:0rem;display:flex;"], _colors.BmSecondaryGrey);
|
|
118
136
|
exports.BmImageFileName = BmImageFileName;
|
|
119
137
|
var BmImageChat = function BmImageChat(_ref8) {
|
|
120
138
|
var children = _ref8.children,
|
|
@@ -6,20 +6,24 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.BmSendIconWrapper = exports.BmSend = exports.BmMessageTabInput = exports.BmMessageTab = exports.BmMessage = exports.BmAttachment = void 0;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
|
+
var _icons = require("@material-ui/icons");
|
|
9
10
|
var _colors = require("../colors");
|
|
10
11
|
var _iconStyles = require("../iconStyles");
|
|
11
|
-
var _icons = require("@material-ui/icons");
|
|
12
12
|
var _input = require("../input");
|
|
13
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
|
|
14
13
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
14
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
16
|
-
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
17
15
|
// Main wrapper
|
|
18
|
-
var BmMessageTab = _styledComponents.default.div(
|
|
16
|
+
var BmMessageTab = _styledComponents.default.div.withConfig({
|
|
17
|
+
displayName: "chatInput__BmMessageTab"
|
|
18
|
+
})(["display:flex;flex-direction:row;justify-content:center;align-items:center;", " background:", ";padding:0.786rem 1.786rem !important;"], '' /* height: 15%; */, _colors.BmGrey50);
|
|
19
19
|
exports.BmMessageTab = BmMessageTab;
|
|
20
|
-
var BmMessageTabInput = (0, _styledComponents.default)(_input.BmInputField)(
|
|
20
|
+
var BmMessageTabInput = (0, _styledComponents.default)(_input.BmInputField).withConfig({
|
|
21
|
+
displayName: "chatInput__BmMessageTabInput"
|
|
22
|
+
})(["color:", ";flex-grow:1;padding:0rem !important;border:none !important;&:visited,&:active,&:hover,&:focus{outline:none !important;text-decoration:none !important;}max-width:100%;"], _colors.BmSecondaryGrey);
|
|
21
23
|
exports.BmMessageTabInput = BmMessageTabInput;
|
|
22
|
-
var BmSendIconWrapper = _styledComponents.default.div(
|
|
24
|
+
var BmSendIconWrapper = _styledComponents.default.div.withConfig({
|
|
25
|
+
displayName: "chatInput__BmSendIconWrapper"
|
|
26
|
+
})(["padding-left:1.429rem;"]);
|
|
23
27
|
exports.BmSendIconWrapper = BmSendIconWrapper;
|
|
24
28
|
var BmSend = function BmSend(props) {
|
|
25
29
|
return /*#__PURE__*/_react.default.createElement(BmSendIconWrapper, null, /*#__PURE__*/_react.default.createElement(_iconStyles.BmEmojiIcon, _extends({
|
|
@@ -29,9 +33,13 @@ var BmSend = function BmSend(props) {
|
|
|
29
33
|
|
|
30
34
|
// Div for attachments
|
|
31
35
|
exports.BmSend = BmSend;
|
|
32
|
-
var BmAttachment = (0, _styledComponents.default)(
|
|
36
|
+
var BmAttachment = (0, _styledComponents.default)('div').withConfig({
|
|
37
|
+
displayName: "chatInput__BmAttachment"
|
|
38
|
+
})(["justify-content:center;padding-right:1.143rem !important;"]);
|
|
33
39
|
|
|
34
40
|
// Div for message input
|
|
35
41
|
exports.BmAttachment = BmAttachment;
|
|
36
|
-
var BmMessage = (0, _styledComponents.default)(
|
|
42
|
+
var BmMessage = (0, _styledComponents.default)('div').withConfig({
|
|
43
|
+
displayName: "chatInput__BmMessage"
|
|
44
|
+
})(["display:flex;flex-direction:row;align-items:center;padding:0.714rem 1.143rem !important;background:", ";border:0.071rem solid ", ";box-sizing:border-box;border-radius:0.25rem;flex-grow:1;max-width:75%;"], _colors.BmPrimaryWhite, _colors.BmGrey400);
|
|
37
45
|
exports.BmMessage = BmMessage;
|