beem-component 1.1.1 → 1.1.5
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/assets/css/sidebar.css +20 -0
- package/dist/components/ChatBody/chatBody.js +6 -2
- package/dist/components/ChatHeader/chatHeader.js +1 -1
- package/dist/components/Forms/forms.js +21 -0
- package/dist/components/index.js +86 -0
- package/dist/components/input.js +0 -2
- package/package.json +1 -1
- package/src/App.js +12 -2
- package/src/Chat.js +26 -20
- package/src/ChatHeader.js +5 -2
- package/src/InfoAccordion.js +24 -0
- package/src/SideBar.js +2 -1
- package/src/lib/assets/css/sidebar.css +20 -0
- package/src/lib/components/ChatBody/chatBody.js +6 -8
- package/src/lib/components/ChatHeader/chatHeader.js +1 -4
- package/src/lib/components/Forms/forms.js +34 -0
- package/src/lib/components/index.js +38 -1
- package/src/lib/components/input.js +0 -1
|
@@ -77,4 +77,24 @@
|
|
|
77
77
|
overflow: auto;
|
|
78
78
|
width: 25%;
|
|
79
79
|
border: 1px solid #E2E2E2;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.chat-header-buttons {
|
|
83
|
+
display: flex;
|
|
84
|
+
flex-direction: row;
|
|
85
|
+
margin-left: auto;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.chat-header-buttons>*:not(:last-child) {
|
|
89
|
+
margin-right: 0.5rem;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.chat-footer {
|
|
93
|
+
display: flex;
|
|
94
|
+
flex-direction: row;
|
|
95
|
+
align-items: center;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.chat-footer>*:not(:last-child) {
|
|
99
|
+
margin-right: 0.5rem;
|
|
80
100
|
}
|
|
@@ -133,8 +133,12 @@ BmChat.Details = function (_ref6) {
|
|
|
133
133
|
}));
|
|
134
134
|
};
|
|
135
135
|
|
|
136
|
-
BmChat.Footer = _styledComponents.default.div(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction:
|
|
137
|
-
/*
|
|
136
|
+
BmChat.Footer = _styledComponents.default.div(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n ", "\n padding: 0.5rem 0.5rem;\n ", "\n ", "\n > *:not(:last-child) {\n margin-bottom: 0.5rem;\n }\n"])), ''
|
|
137
|
+
/* border-top: 0.071rem solid ${BmGrey200}; */
|
|
138
|
+
, ''
|
|
139
|
+
/* align-items: center; */
|
|
140
|
+
, ''
|
|
141
|
+
/* justify-content: center; */
|
|
138
142
|
);
|
|
139
143
|
var _default = BmChat;
|
|
140
144
|
exports.default = _default;
|
|
@@ -14,7 +14,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
14
14
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
15
15
|
|
|
16
16
|
// import { BmGrey400 } from "../colors";
|
|
17
|
-
var BmChatHeader = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: row;\n align-items: center;\n ", "\n padding: 1rem;\n > *:not(:last-child) {\n margin-right: 0.5rem;\n }\n
|
|
17
|
+
var BmChatHeader = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: row;\n align-items: center;\n ", "\n padding: 1rem;\n > *:not(:last-child) {\n margin-right: 0.5rem;\n }\n"])), ""
|
|
18
18
|
/* border: 0.071rem solid ${BmGrey400}; */
|
|
19
19
|
);
|
|
20
20
|
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
|
+
|
|
10
|
+
var _templateObject, _templateObject2, _templateObject3;
|
|
11
|
+
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
+
|
|
14
|
+
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
15
|
+
|
|
16
|
+
var BmForm = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n"])));
|
|
17
|
+
|
|
18
|
+
BmForm.Label = _styledComponents.default.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n margin: 0rem;\n text-align: left;\n width: 50%;\n overflow: hidden;\n text-overflow: ellipsis;\n"])));
|
|
19
|
+
BmForm.Input = _styledComponents.default.input(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n text-align: right;\n width: 50%;\n overflow: hidden;\n text-overflow: ellipsis;\n border: none;\n &:visited,\n &:active,\n &:hover,\n &:focus {\n outline: none !important;\n text-decoration: none;\n }\n background: transparent;\n"])));
|
|
20
|
+
var _default = BmForm;
|
|
21
|
+
exports.default = _default;
|
package/dist/components/index.js
CHANGED
|
@@ -84,6 +84,24 @@ Object.defineProperty(exports, "BmContactCard", {
|
|
|
84
84
|
return _contactCards.default;
|
|
85
85
|
}
|
|
86
86
|
});
|
|
87
|
+
Object.defineProperty(exports, "BmContent", {
|
|
88
|
+
enumerable: true,
|
|
89
|
+
get: function get() {
|
|
90
|
+
return _index.BmContent;
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
Object.defineProperty(exports, "BmContentFooter", {
|
|
94
|
+
enumerable: true,
|
|
95
|
+
get: function get() {
|
|
96
|
+
return _index2.BmContentFooter;
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
Object.defineProperty(exports, "BmContentTitle", {
|
|
100
|
+
enumerable: true,
|
|
101
|
+
get: function get() {
|
|
102
|
+
return _index2.BmContentTitle;
|
|
103
|
+
}
|
|
104
|
+
});
|
|
87
105
|
Object.defineProperty(exports, "BmCounter", {
|
|
88
106
|
enumerable: true,
|
|
89
107
|
get: function get() {
|
|
@@ -96,6 +114,24 @@ Object.defineProperty(exports, "BmEmojiIcon", {
|
|
|
96
114
|
return _iconStyles.BmEmojiIcon;
|
|
97
115
|
}
|
|
98
116
|
});
|
|
117
|
+
Object.defineProperty(exports, "BmFooterLeft", {
|
|
118
|
+
enumerable: true,
|
|
119
|
+
get: function get() {
|
|
120
|
+
return _index2.BmFooterLeft;
|
|
121
|
+
}
|
|
122
|
+
});
|
|
123
|
+
Object.defineProperty(exports, "BmFooterRight", {
|
|
124
|
+
enumerable: true,
|
|
125
|
+
get: function get() {
|
|
126
|
+
return _index2.BmFooterRight;
|
|
127
|
+
}
|
|
128
|
+
});
|
|
129
|
+
Object.defineProperty(exports, "BmForm", {
|
|
130
|
+
enumerable: true,
|
|
131
|
+
get: function get() {
|
|
132
|
+
return _forms.default;
|
|
133
|
+
}
|
|
134
|
+
});
|
|
99
135
|
Object.defineProperty(exports, "BmIcons", {
|
|
100
136
|
enumerable: true,
|
|
101
137
|
get: function get() {
|
|
@@ -168,6 +204,48 @@ Object.defineProperty(exports, "BmRowLabel", {
|
|
|
168
204
|
return _rowLabels.BmRowLabel;
|
|
169
205
|
}
|
|
170
206
|
});
|
|
207
|
+
Object.defineProperty(exports, "BmSegment", {
|
|
208
|
+
enumerable: true,
|
|
209
|
+
get: function get() {
|
|
210
|
+
return _index3.BmSegment;
|
|
211
|
+
}
|
|
212
|
+
});
|
|
213
|
+
Object.defineProperty(exports, "BmSegmentCard", {
|
|
214
|
+
enumerable: true,
|
|
215
|
+
get: function get() {
|
|
216
|
+
return _index3.BmSegmentCard;
|
|
217
|
+
}
|
|
218
|
+
});
|
|
219
|
+
Object.defineProperty(exports, "BmSegmentCheckBox", {
|
|
220
|
+
enumerable: true,
|
|
221
|
+
get: function get() {
|
|
222
|
+
return _index3.BmSegmentCheckBox;
|
|
223
|
+
}
|
|
224
|
+
});
|
|
225
|
+
Object.defineProperty(exports, "BmSegmentCompleteContent", {
|
|
226
|
+
enumerable: true,
|
|
227
|
+
get: function get() {
|
|
228
|
+
return _index3.BmSegmentCompleteContent;
|
|
229
|
+
}
|
|
230
|
+
});
|
|
231
|
+
Object.defineProperty(exports, "BmSegmentCompleteIcon", {
|
|
232
|
+
enumerable: true,
|
|
233
|
+
get: function get() {
|
|
234
|
+
return _index3.BmSegmentCompleteIcon;
|
|
235
|
+
}
|
|
236
|
+
});
|
|
237
|
+
Object.defineProperty(exports, "BmSegmentCreateContent", {
|
|
238
|
+
enumerable: true,
|
|
239
|
+
get: function get() {
|
|
240
|
+
return _index3.BmSegmentCreateContent;
|
|
241
|
+
}
|
|
242
|
+
});
|
|
243
|
+
Object.defineProperty(exports, "BmSegmentSelector", {
|
|
244
|
+
enumerable: true,
|
|
245
|
+
get: function get() {
|
|
246
|
+
return _index3.BmSegmentSelector;
|
|
247
|
+
}
|
|
248
|
+
});
|
|
171
249
|
Object.defineProperty(exports, "BmSupport", {
|
|
172
250
|
enumerable: true,
|
|
173
251
|
get: function get() {
|
|
@@ -269,6 +347,14 @@ var _infoTab = _interopRequireDefault(require("./InfoTab/infoTab"));
|
|
|
269
347
|
|
|
270
348
|
var _messageCounter = _interopRequireDefault(require("./MessageCounter/messageCounter"));
|
|
271
349
|
|
|
350
|
+
var _forms = _interopRequireDefault(require("./Forms/forms"));
|
|
351
|
+
|
|
352
|
+
var _index = require("./SuperFluid/Content/index");
|
|
353
|
+
|
|
354
|
+
var _index2 = require("./SuperFluid/ContentTitle.js/index.js");
|
|
355
|
+
|
|
356
|
+
var _index3 = require("./SuperFluid/SegmentCard/index");
|
|
357
|
+
|
|
272
358
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
273
359
|
|
|
274
360
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
package/dist/components/input.js
CHANGED
package/package.json
CHANGED
package/src/App.js
CHANGED
|
@@ -9,14 +9,23 @@ import Chat from "./Chat";
|
|
|
9
9
|
import CustomerInfo from "./CustomerInfo";
|
|
10
10
|
import { BmTag } from "./lib/components/Tags/tags";
|
|
11
11
|
import { Home } from "@material-ui/icons";
|
|
12
|
+
import InfoAccordion from "./InfoAccordion";
|
|
13
|
+
import BmForm from "./lib/components/Forms/forms";
|
|
12
14
|
|
|
13
15
|
export const App = () => {
|
|
14
16
|
return (
|
|
15
17
|
<>
|
|
16
18
|
<GlobalStyle />
|
|
17
19
|
<MainWrapper>
|
|
18
|
-
<BmTag leadingIcon={<Home/>} trailingIcon={<Home/>}
|
|
19
|
-
|
|
20
|
+
<BmTag leadingIcon={<Home />} trailingIcon={<Home />}>
|
|
21
|
+
<p>Hello</p>
|
|
22
|
+
</BmTag>
|
|
23
|
+
<BmForm>
|
|
24
|
+
<BmForm.Label>
|
|
25
|
+
<h4>Hello</h4>
|
|
26
|
+
</BmForm.Label>
|
|
27
|
+
<BmForm.Input placeholder="Hello" />
|
|
28
|
+
</BmForm>
|
|
20
29
|
<div className="main-chat-container">
|
|
21
30
|
<div className="sidebar">
|
|
22
31
|
<SideBar />
|
|
@@ -29,6 +38,7 @@ export const App = () => {
|
|
|
29
38
|
</div>
|
|
30
39
|
<div className="chat-contact-info">
|
|
31
40
|
<CustomerInfo />
|
|
41
|
+
<InfoAccordion />
|
|
32
42
|
</div>
|
|
33
43
|
</div>
|
|
34
44
|
</div>
|
package/src/Chat.js
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { AttachFile } from
|
|
3
|
-
import EmojiEmotionsIcon from
|
|
4
|
-
import QuickreplyIcon from
|
|
5
|
-
import SendIcon from
|
|
6
|
-
import { BmChat, BmIcons, BmInput } from
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { AttachFile } from "@material-ui/icons";
|
|
3
|
+
import EmojiEmotionsIcon from "@material-ui/icons/EmojiEmotions";
|
|
4
|
+
import QuickreplyIcon from "@mui/icons-material/Quickreply";
|
|
5
|
+
import SendIcon from "@mui/icons-material/Send";
|
|
6
|
+
import { BmChat, BmIcons, BmInput } from "./lib/components";
|
|
7
|
+
import "../src/lib/assets/css/sidebar.css";
|
|
7
8
|
|
|
8
9
|
const Chat = () => {
|
|
9
10
|
return (
|
|
10
11
|
<BmChat>
|
|
11
|
-
<BmChat.Body
|
|
12
|
+
<BmChat.Body>
|
|
12
13
|
<BmChat.Details
|
|
13
14
|
state="inbound"
|
|
14
15
|
session="bot"
|
|
@@ -48,7 +49,7 @@ const Chat = () => {
|
|
|
48
49
|
status="failed"
|
|
49
50
|
>
|
|
50
51
|
<p>Outbound</p>
|
|
51
|
-
</BmChat.Details>{
|
|
52
|
+
</BmChat.Details>{" "}
|
|
52
53
|
<BmChat.Details
|
|
53
54
|
state="outbound"
|
|
54
55
|
session="live"
|
|
@@ -56,7 +57,7 @@ const Chat = () => {
|
|
|
56
57
|
status="failed"
|
|
57
58
|
>
|
|
58
59
|
<p>Outbound</p>
|
|
59
|
-
</BmChat.Details>{
|
|
60
|
+
</BmChat.Details>{" "}
|
|
60
61
|
<BmChat.Details
|
|
61
62
|
state="outbound"
|
|
62
63
|
session="live"
|
|
@@ -64,7 +65,7 @@ const Chat = () => {
|
|
|
64
65
|
status="failed"
|
|
65
66
|
>
|
|
66
67
|
<p>Outbound</p>
|
|
67
|
-
</BmChat.Details>{
|
|
68
|
+
</BmChat.Details>{" "}
|
|
68
69
|
<BmChat.Details
|
|
69
70
|
state="outbound"
|
|
70
71
|
session="live"
|
|
@@ -72,7 +73,7 @@ const Chat = () => {
|
|
|
72
73
|
status="failed"
|
|
73
74
|
>
|
|
74
75
|
<p>Outbound</p>
|
|
75
|
-
</BmChat.Details>{
|
|
76
|
+
</BmChat.Details>{" "}
|
|
76
77
|
<BmChat.Details
|
|
77
78
|
state="outbound"
|
|
78
79
|
session="live"
|
|
@@ -80,7 +81,7 @@ const Chat = () => {
|
|
|
80
81
|
status="failed"
|
|
81
82
|
>
|
|
82
83
|
<p>Outbound</p>
|
|
83
|
-
</BmChat.Details>{
|
|
84
|
+
</BmChat.Details>{" "}
|
|
84
85
|
<BmChat.Details
|
|
85
86
|
state="outbound"
|
|
86
87
|
session="live"
|
|
@@ -88,7 +89,7 @@ const Chat = () => {
|
|
|
88
89
|
status="failed"
|
|
89
90
|
>
|
|
90
91
|
<p>Outbound</p>
|
|
91
|
-
</BmChat.Details>{
|
|
92
|
+
</BmChat.Details>{" "}
|
|
92
93
|
<BmChat.Details
|
|
93
94
|
state="outbound"
|
|
94
95
|
session="live"
|
|
@@ -96,7 +97,7 @@ const Chat = () => {
|
|
|
96
97
|
status="failed"
|
|
97
98
|
>
|
|
98
99
|
<p>Outbound</p>
|
|
99
|
-
</BmChat.Details>{
|
|
100
|
+
</BmChat.Details>{" "}
|
|
100
101
|
<BmChat.Details
|
|
101
102
|
state="outbound"
|
|
102
103
|
session="live"
|
|
@@ -106,12 +107,17 @@ const Chat = () => {
|
|
|
106
107
|
<p>Outbound</p>
|
|
107
108
|
</BmChat.Details>
|
|
108
109
|
</BmChat.Body>
|
|
109
|
-
<BmChat.Footer>
|
|
110
|
-
<
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
<
|
|
114
|
-
|
|
110
|
+
<BmChat.Footer style={{ justifyContent: "flex-start" }}>
|
|
111
|
+
<div class="chat-footer">
|
|
112
|
+
<BmIcons icon={<EmojiEmotionsIcon />} size="xlarge" />
|
|
113
|
+
</div>
|
|
114
|
+
<div class="chat-footer">
|
|
115
|
+
<BmIcons icon={<EmojiEmotionsIcon />} size="xlarge" />
|
|
116
|
+
<BmIcons icon={<AttachFile />} size="xlarge" />
|
|
117
|
+
<BmIcons icon={<QuickreplyIcon />} size="xlarge" />
|
|
118
|
+
<BmInput placeholder="Enter Message" style={{ flex: 1 }} />
|
|
119
|
+
<BmIcons icon={<SendIcon />} size="xlarge" />
|
|
120
|
+
</div>
|
|
115
121
|
</BmChat.Footer>
|
|
116
122
|
</BmChat>
|
|
117
123
|
);
|
package/src/ChatHeader.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { BmChatHeader, BmButton } from "../src/lib/components/";
|
|
3
|
-
import
|
|
3
|
+
import "../src/lib/assets/css/sidebar.css";
|
|
4
4
|
|
|
5
5
|
export const ChatHeader = () => {
|
|
6
6
|
return (
|
|
@@ -9,7 +9,10 @@ export const ChatHeader = () => {
|
|
|
9
9
|
<BmChatHeader>
|
|
10
10
|
<h2>Contact Name</h2>
|
|
11
11
|
<p>Last seen: 00:00</p>
|
|
12
|
-
<
|
|
12
|
+
<div className="chat-header-buttons">
|
|
13
|
+
<BmButton size="medium">End Session</BmButton>
|
|
14
|
+
<BmButton size="medium">End Session</BmButton>
|
|
15
|
+
</div>
|
|
13
16
|
</BmChatHeader>
|
|
14
17
|
</div>
|
|
15
18
|
</>
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/* eslint-disable react/prop-types */
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { BmAccordion } from "./lib/components";
|
|
4
|
+
import BmForm from "./lib/components/Forms/forms";
|
|
5
|
+
|
|
6
|
+
const InfoAccordion = () => {
|
|
7
|
+
return (
|
|
8
|
+
<>
|
|
9
|
+
<BmAccordion>
|
|
10
|
+
<BmAccordion.Title>
|
|
11
|
+
<h3>Notes</h3>
|
|
12
|
+
</BmAccordion.Title>
|
|
13
|
+
<BmAccordion.Body>
|
|
14
|
+
<BmForm>
|
|
15
|
+
<BmForm.Label><h4>Hello</h4></BmForm.Label>
|
|
16
|
+
<BmForm.Input placeholder="Hello" />
|
|
17
|
+
</BmForm>
|
|
18
|
+
</BmAccordion.Body>
|
|
19
|
+
</BmAccordion>
|
|
20
|
+
</>
|
|
21
|
+
);
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export default InfoAccordion;
|
package/src/SideBar.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { BmTab } from "./lib/components/Tabs/tabs";
|
|
3
|
+
import { BmTag } from "./lib/components/Tags/tags";
|
|
3
4
|
import ForumIcon from "@material-ui/icons/Forum";
|
|
4
|
-
import { BmContactCard, BmAvatar, BmCounter
|
|
5
|
+
import { BmContactCard, BmAvatar, BmCounter } from "./lib/components";
|
|
5
6
|
|
|
6
7
|
const SideBar = () => {
|
|
7
8
|
return (
|
|
@@ -77,4 +77,24 @@
|
|
|
77
77
|
overflow: auto;
|
|
78
78
|
width: 25%;
|
|
79
79
|
border: 1px solid #E2E2E2;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.chat-header-buttons {
|
|
83
|
+
display: flex;
|
|
84
|
+
flex-direction: row;
|
|
85
|
+
margin-left: auto;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.chat-header-buttons>*:not(:last-child) {
|
|
89
|
+
margin-right: 0.5rem;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.chat-footer {
|
|
93
|
+
display: flex;
|
|
94
|
+
flex-direction: row;
|
|
95
|
+
align-items: center;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.chat-footer>*:not(:last-child) {
|
|
99
|
+
margin-right: 0.5rem;
|
|
80
100
|
}
|
|
@@ -5,7 +5,6 @@ import BmAvatar from "../Avatars/avatars";
|
|
|
5
5
|
import { BmIcons } from "../iconStyles";
|
|
6
6
|
import {
|
|
7
7
|
BmGrey400,
|
|
8
|
-
BmGrey50,
|
|
9
8
|
BmPrimaryWhite,
|
|
10
9
|
BmPrimaryBlue,
|
|
11
10
|
BmPrimaryBlack,
|
|
@@ -135,14 +134,13 @@ BmChat.Details = ({
|
|
|
135
134
|
|
|
136
135
|
BmChat.Footer = styled.div`
|
|
137
136
|
display: flex;
|
|
138
|
-
flex-direction:
|
|
139
|
-
border-top: 0.071rem solid ${
|
|
140
|
-
padding: 0.5rem
|
|
141
|
-
align-items: center;
|
|
142
|
-
justify-content: center;
|
|
143
|
-
${'' /* background: ${BmGrey50}; */}
|
|
137
|
+
flex-direction: column;
|
|
138
|
+
${'' /* border-top: 0.071rem solid ${BmGrey200}; */}
|
|
139
|
+
padding: 0.5rem 0.5rem;
|
|
140
|
+
${'' /* align-items: center; */}
|
|
141
|
+
${'' /* justify-content: center; */}
|
|
144
142
|
> *:not(:last-child) {
|
|
145
|
-
margin-
|
|
143
|
+
margin-bottom: 0.5rem;
|
|
146
144
|
}
|
|
147
145
|
`;
|
|
148
146
|
|
|
@@ -5,12 +5,9 @@ export const BmChatHeader = styled.div`
|
|
|
5
5
|
display: flex;
|
|
6
6
|
flex-direction: row;
|
|
7
7
|
align-items: center;
|
|
8
|
-
${
|
|
8
|
+
${"" /* border: 0.071rem solid ${BmGrey400}; */}
|
|
9
9
|
padding: 1rem;
|
|
10
10
|
> *:not(:last-child) {
|
|
11
11
|
margin-right: 0.5rem;
|
|
12
12
|
}
|
|
13
|
-
button {
|
|
14
|
-
margin-left: auto;
|
|
15
|
-
}
|
|
16
13
|
`;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import styled from "styled-components";
|
|
2
|
+
|
|
3
|
+
const BmForm = styled.div`
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: row;
|
|
6
|
+
align-items: center;
|
|
7
|
+
justify-content: space-between;
|
|
8
|
+
`;
|
|
9
|
+
|
|
10
|
+
BmForm.Label = styled.div`
|
|
11
|
+
margin: 0rem;
|
|
12
|
+
text-align: left;
|
|
13
|
+
width: 50%;
|
|
14
|
+
overflow: hidden;
|
|
15
|
+
text-overflow: ellipsis;
|
|
16
|
+
`
|
|
17
|
+
|
|
18
|
+
BmForm.Input = styled.input`
|
|
19
|
+
text-align: right;
|
|
20
|
+
width: 50%;
|
|
21
|
+
overflow: hidden;
|
|
22
|
+
text-overflow: ellipsis;
|
|
23
|
+
border: none;
|
|
24
|
+
&:visited,
|
|
25
|
+
&:active,
|
|
26
|
+
&:hover,
|
|
27
|
+
&:focus {
|
|
28
|
+
outline: none !important;
|
|
29
|
+
text-decoration: none;
|
|
30
|
+
}
|
|
31
|
+
background: transparent;
|
|
32
|
+
`
|
|
33
|
+
|
|
34
|
+
export default BmForm;
|
|
@@ -38,6 +38,27 @@ import BmContactCard from "./ContactCards/contactCards";
|
|
|
38
38
|
import BmInfoTab from "./InfoTab/infoTab";
|
|
39
39
|
import BmCounter from "./MessageCounter/messageCounter";
|
|
40
40
|
|
|
41
|
+
//Chat form components
|
|
42
|
+
import BmForm from "./Forms/forms";
|
|
43
|
+
|
|
44
|
+
//SuperFluid Components
|
|
45
|
+
import { BmContent } from "./SuperFluid/Content/index";
|
|
46
|
+
import {
|
|
47
|
+
BmContentFooter,
|
|
48
|
+
BmContentTitle,
|
|
49
|
+
BmFooterLeft,
|
|
50
|
+
BmFooterRight,
|
|
51
|
+
} from "./SuperFluid/ContentTitle.js/index.js";
|
|
52
|
+
import {
|
|
53
|
+
BmSegmentCard,
|
|
54
|
+
BmSegmentSelector,
|
|
55
|
+
BmSegment,
|
|
56
|
+
BmSegmentCheckBox,
|
|
57
|
+
BmSegmentCompleteContent,
|
|
58
|
+
BmSegmentCompleteIcon,
|
|
59
|
+
BmSegmentCreateContent,
|
|
60
|
+
} from "./SuperFluid/SegmentCard/index";
|
|
61
|
+
|
|
41
62
|
export {
|
|
42
63
|
BmAccordion,
|
|
43
64
|
BmAvatar,
|
|
@@ -49,6 +70,7 @@ export {
|
|
|
49
70
|
BmListBox,
|
|
50
71
|
BmListHeader,
|
|
51
72
|
BmRowLabel,
|
|
73
|
+
// Fix height and if there is dropdown option inside the modal body
|
|
52
74
|
BmModal,
|
|
53
75
|
BmNoteBar,
|
|
54
76
|
BmProgressBar,
|
|
@@ -57,11 +79,24 @@ export {
|
|
|
57
79
|
GlobalStyle,
|
|
58
80
|
MainWrapper,
|
|
59
81
|
BmLoader,
|
|
82
|
+
BmTag,
|
|
60
83
|
// Old components to be refactored
|
|
61
84
|
BmButtonDropDown,
|
|
62
85
|
BmCheckbox,
|
|
63
86
|
BmInput,
|
|
64
|
-
|
|
87
|
+
//Old SFL componets to be refactored
|
|
88
|
+
BmContent,
|
|
89
|
+
BmContentFooter,
|
|
90
|
+
BmContentTitle,
|
|
91
|
+
BmFooterLeft,
|
|
92
|
+
BmFooterRight,
|
|
93
|
+
BmSegmentCard,
|
|
94
|
+
BmSegmentSelector,
|
|
95
|
+
BmSegment,
|
|
96
|
+
BmSegmentCheckBox,
|
|
97
|
+
BmSegmentCompleteContent,
|
|
98
|
+
BmSegmentCompleteIcon,
|
|
99
|
+
BmSegmentCreateContent,
|
|
65
100
|
//Icons (Remove unused ones and check on the sizing for custom icons)
|
|
66
101
|
BmAvatarIcon,
|
|
67
102
|
BmIcons,
|
|
@@ -77,4 +112,6 @@ export {
|
|
|
77
112
|
BmInfoTab,
|
|
78
113
|
BmContactCard,
|
|
79
114
|
BmCounter,
|
|
115
|
+
//Chat Form Components
|
|
116
|
+
BmForm,
|
|
80
117
|
};
|