beem-component 1.1.8 → 1.1.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.
@@ -1,3 +1,9 @@
1
+ .main-chat-container {
2
+ display: flex;
3
+ flex-direction: row;
4
+ width: 100%;
5
+ }
6
+
1
7
  .sidebar {
2
8
  display: flex;
3
9
  flex-direction: column;
@@ -5,7 +11,7 @@
5
11
  height: 100%;
6
12
  overflow: auto;
7
13
  max-width: 20%;
8
- width: 20%;
14
+ width: 100%;
9
15
  border: 1px solid #E2E2E2;
10
16
  }
11
17
 
@@ -33,7 +39,7 @@
33
39
  overflow: auto;
34
40
  }
35
41
 
36
- .main-chat-container {
42
+ .chat-container {
37
43
  display: flex;
38
44
  flex-direction: row;
39
45
  align-items: center;
@@ -47,9 +53,7 @@
47
53
  display: flex;
48
54
  flex-direction: column;
49
55
  max-height: 100%;
50
- height: 100%;
51
56
  flex-grow: 1;
52
- max-height: 100%;
53
57
  height: 100%;
54
58
  }
55
59
 
@@ -59,6 +63,7 @@
59
63
  height: 0%;
60
64
  flex-grow: 1;
61
65
  width: 100%;
66
+ max-width: 100%;
62
67
  }
63
68
 
64
69
  .chat-messages {
@@ -66,7 +71,8 @@
66
71
  flex-direction: column;
67
72
  height: 100%;
68
73
  overflow: auto;
69
- width: 80%;
74
+ width: 75%;
75
+ max-width: 75%;
70
76
  border: 1px solid #E2E2E2;
71
77
  }
72
78
 
@@ -76,6 +82,7 @@
76
82
  height: 100%;
77
83
  overflow: auto;
78
84
  width: 25%;
85
+ max-width: 25%;
79
86
  border: 1px solid #E2E2E2;
80
87
  }
81
88
 
@@ -61,7 +61,7 @@ var Details = _styledComponents.default.div(_templateObject3 || (_templateObject
61
61
 
62
62
  var MessageDetails = _styledComponents.default.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n max-width: 50%;\n > * {\n margin-top: 0.5rem;\n }\n"])));
63
63
 
64
- var Messages = _styledComponents.default.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: row;\n align-items: center;\n padding: 1.143rem;\n background: ", ";\n color: ", ";\n border-radius: ", ";\n border: 0.071rem solid ", ";\n word-break: break-all;\n margin: 0rem;\n"])), function (_ref2) {
64
+ var Messages = _styledComponents.default.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: row;\n align-items: center;\n padding: 0.5rem;\n background: ", ";\n color: ", ";\n border-radius: ", ";\n border: 0.071rem solid ", ";\n word-break: break-all;\n margin: 0rem;\n"])), function (_ref2) {
65
65
  var state = _ref2.state;
66
66
 
67
67
  if (state) {
@@ -192,7 +192,7 @@ var BmImageWrapper = _styledComponents.default.div(_templateObject8 || (_templat
192
192
 
193
193
  exports.BmImageWrapper = BmImageWrapper;
194
194
 
195
- var BmImage = _styledComponents.default.img(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n ", "\n width: 21.429rem;\n object-fit: cover;\n flex-grow: 1;\n"])), ""
195
+ var BmImage = _styledComponents.default.img(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n ", "\n width: 100%;\n object-fit: cover;\n flex-grow: 1;\n"])), ""
196
196
  /* Fix width */
197
197
  );
198
198
 
@@ -15,9 +15,9 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
15
15
 
16
16
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
17
17
 
18
- var BmContactCard = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n > *:not(:last-child) {\n margin-right: 1rem;\n }\n &:hover {\n background: ", ";\n }\n\n ", "\n cursor: pointer;\n padding: 1rem 1.5rem;\n"])), _colors.BmGrey100, function (_ref) {
18
+ var BmContactCard = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n > *:not(:last-child) {\n margin-right: 1rem;\n }\n &:hover {\n background: ", ";\n }\n\n ", "\n cursor: pointer;\n padding: 1rem 1.5rem;\n"])), _colors.BmSecondaryBlue12, function (_ref) {
19
19
  var active = _ref.active;
20
- return active && " \n background: ".concat(_colors.BmGrey100, ";\n ");
20
+ return active && " \n background: ".concat(_colors.BmSecondaryBlue12, ";\n ");
21
21
  });
22
22
 
23
23
  exports.BmContactCard = BmContactCard;
@@ -153,7 +153,14 @@ BmModal.Header = function (_ref4) {
153
153
  });
154
154
  };
155
155
 
156
- BmModal.Body = _styledComponents.default.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n > *:not(:last-child) {\n margin-bottom: 0.5rem;\n }\n > * {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n width: 100%;\n }\n"])));
156
+ BmModal.Body = _styledComponents.default.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n > *:not(:last-child) {\n margin-bottom: 0.5rem;\n }\n ", "\n"])), ''
157
+ /* > * {
158
+ display: flex;
159
+ flex-direction: row;
160
+ justify-content: space-between;
161
+ width: 100%;
162
+ } */
163
+ );
157
164
  BmModal.Footer = _styledComponents.default.div(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n display: flex;\n justify-content: space-between;\n"])));
158
165
  BmModal.propTypes = {
159
166
  size: _propTypes.default.string,
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.BmSecondaryYellow = exports.BmSecondaryRed8 = exports.BmSecondaryRed15 = exports.BmSecondaryRed = exports.BmSecondaryPurple = exports.BmSecondaryGrey = exports.BmSecondaryGreen8 = exports.BmSecondaryGreen15 = exports.BmSecondaryGreen = exports.BmSecondaryGold15 = exports.BmSecondaryDarkGreen = exports.BmSecondaryCyan = exports.BmPrimaryWhite = exports.BmPrimaryGold = exports.BmPrimaryBlue = exports.BmPrimaryBlack = exports.BmPictogramGold = exports.BmPictogramBlue = exports.BmGrey600 = exports.BmGrey500 = exports.BmGrey50 = exports.BmGrey400 = exports.BmGrey200 = exports.BmGrey100 = exports.BmBgLightBlue = exports.BmBgGreyBlue = exports.BmBgGrey45 = void 0;
6
+ exports.BmSecondaryYellow = exports.BmSecondaryRed8 = exports.BmSecondaryRed15 = exports.BmSecondaryRed = exports.BmSecondaryPurple = exports.BmSecondaryGrey = exports.BmSecondaryGreen8 = exports.BmSecondaryGreen15 = exports.BmSecondaryGreen = exports.BmSecondaryGold15 = exports.BmSecondaryDarkGreen = exports.BmSecondaryCyan = exports.BmSecondaryBlue12 = exports.BmPrimaryWhite = exports.BmPrimaryGold = exports.BmPrimaryBlue = exports.BmPrimaryBlack = exports.BmPictogramGold = exports.BmPictogramBlue = exports.BmGrey600 = exports.BmGrey500 = exports.BmGrey50 = exports.BmGrey400 = exports.BmGrey200 = exports.BmGrey100 = exports.BmBgLightBlue = exports.BmBgGreyBlue = exports.BmBgGrey45 = void 0;
7
7
  // Primary Colors
8
8
  var BmPrimaryBlue = "#33B1BA";
9
9
  exports.BmPrimaryBlue = BmPrimaryBlue;
@@ -36,9 +36,12 @@ var BmSecondaryRed15 = "rgba(246, 46, 72, 0.15)";
36
36
  exports.BmSecondaryRed15 = BmSecondaryRed15;
37
37
  var BmSecondaryGreen15 = "rgba(4, 132, 75, 0.15)";
38
38
  exports.BmSecondaryGreen15 = BmSecondaryGreen15;
39
- var BmSecondaryGold15 = "rgba(243, 169, 41, 0.15)"; // Background Colors
39
+ var BmSecondaryGold15 = "rgba(243, 169, 41, 0.15)"; // #33B1BA 12%
40
40
 
41
41
  exports.BmSecondaryGold15 = BmSecondaryGold15;
42
+ var BmSecondaryBlue12 = "rgba(51, 177, 186, 0.12)"; // Background Colors
43
+
44
+ exports.BmSecondaryBlue12 = BmSecondaryBlue12;
42
45
  var BmBgLightBlue = "#E1EAFC";
43
46
  exports.BmBgLightBlue = BmBgLightBlue;
44
47
  var BmBgGreyBlue = "#F5F6FA";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "beem-component",
3
- "version": "1.1.8",
3
+ "version": "1.1.9",
4
4
  "private": false,
5
5
  "main": "dist/components/index.js",
6
6
  "scripts": {
package/src/App.js CHANGED
@@ -15,18 +15,20 @@ export const App = () => {
15
15
  <GlobalStyle />
16
16
  <MainWrapper>
17
17
  <div className="main-chat-container">
18
- <div className="sidebar">
19
- <SideBar />
20
- </div>
21
- <div className="chat">
22
- <ChatHeader />
23
- <div className="chat-menu">
24
- <div className="chat-messages">
25
- <Chat />
26
- </div>
27
- <div className="chat-contact-info">
28
- <CustomerInfo />
29
- <InfoAccordion />
18
+ <div className="chat-container">
19
+ <div className="sidebar">
20
+ <SideBar />
21
+ </div>
22
+ <div className="chat">
23
+ <ChatHeader />
24
+ <div className="chat-menu">
25
+ <div className="chat-messages">
26
+ <Chat />
27
+ </div>
28
+ <div className="chat-contact-info">
29
+ <CustomerInfo />
30
+ <InfoAccordion />
31
+ </div>
30
32
  </div>
31
33
  </div>
32
34
  </div>
package/src/Chat.js CHANGED
@@ -6,7 +6,7 @@ import SendIcon from "@mui/icons-material/Send";
6
6
  import { BmChat, BmIcons, BmInput } from "./lib/components";
7
7
  import "../src/lib/assets/css/sidebar.scss";
8
8
  import image from "../src/lib/assets/chart-img.png";
9
- import azam from '../src/lib/images/azam1.png';
9
+ import azam from "../src/lib/images/azam1.png";
10
10
 
11
11
  const Chat = () => {
12
12
  return (
@@ -20,7 +20,6 @@ const Chat = () => {
20
20
  src={image}
21
21
  fileName={<p>attachment.jpg</p>}
22
22
  />
23
-
24
23
  <BmChat.Details
25
24
  state="outbound"
26
25
  session="live"
@@ -61,7 +60,15 @@ const Chat = () => {
61
60
  displayTime={<p>10:00am</p>}
62
61
  status="failed"
63
62
  >
64
- <p>Outbound</p>
63
+ <p>
64
+ Habari! Mimi ni msaidizi wako binafsi Azam TV. Ningependa
65
+ nikusaidie, lakini tafadhali anza kwa kuchagua kati ya haya
66
+ nikuhudumie (Mfano chagua namba 2 kubadili kifurushi au 5 kwa msaada
67
+ zaidi). 1. Angalia Salio 2. Badilisha Kifurishi 3. Tuma Ujumbe
68
+ Kuwasha Kisimbuzi 4. Huduma za mteja mpya 5. Nahitaji msaada (Huduma
69
+ kwa mteja) 6. Change language 0. Au ungependa kutuuliza swali
70
+ lingine?
71
+ </p>
65
72
  </BmChat.Details>{" "}
66
73
  <BmChat.Details
67
74
  state="outbound"
@@ -1,3 +1,9 @@
1
+ .main-chat-container {
2
+ display: flex;
3
+ flex-direction: row;
4
+ width: 100%;
5
+ }
6
+
1
7
  .sidebar {
2
8
  display: flex;
3
9
  flex-direction: column;
@@ -5,7 +11,7 @@
5
11
  height: 100%;
6
12
  overflow: auto;
7
13
  max-width: 20%;
8
- width: 20%;
14
+ width: 100%;
9
15
  border: 1px solid #E2E2E2;
10
16
  }
11
17
 
@@ -33,7 +39,7 @@
33
39
  overflow: auto;
34
40
  }
35
41
 
36
- .main-chat-container {
42
+ .chat-container {
37
43
  display: flex;
38
44
  flex-direction: row;
39
45
  align-items: center;
@@ -47,9 +53,7 @@
47
53
  display: flex;
48
54
  flex-direction: column;
49
55
  max-height: 100%;
50
- height: 100%;
51
56
  flex-grow: 1;
52
- max-height: 100%;
53
57
  height: 100%;
54
58
  }
55
59
 
@@ -59,6 +63,7 @@
59
63
  height: 0%;
60
64
  flex-grow: 1;
61
65
  width: 100%;
66
+ max-width: 100%;
62
67
  }
63
68
 
64
69
  .chat-messages {
@@ -66,7 +71,8 @@
66
71
  flex-direction: column;
67
72
  height: 100%;
68
73
  overflow: auto;
69
- width: 80%;
74
+ width: 75%;
75
+ max-width: 75%;
70
76
  border: 1px solid #E2E2E2;
71
77
  }
72
78
 
@@ -76,6 +82,7 @@
76
82
  height: 100%;
77
83
  overflow: auto;
78
84
  width: 25%;
85
+ max-width: 25%;
79
86
  border: 1px solid #E2E2E2;
80
87
  }
81
88
 
@@ -64,7 +64,7 @@ const Messages = styled.div`
64
64
  display: flex;
65
65
  flex-direction: row;
66
66
  align-items: center;
67
- padding: 1.143rem;
67
+ padding: 0.5rem;
68
68
  background: ${({ state }) => {
69
69
  if (state) {
70
70
  if (state === "inbound") return `${BmPrimaryWhite}`;
@@ -192,7 +192,7 @@ export const BmImageWrapper = styled.div`
192
192
 
193
193
  export const BmImage = styled.img`
194
194
  ${"" /* Fix width */}
195
- width: 21.429rem;
195
+ width: 100%;
196
196
  object-fit: cover;
197
197
  flex-grow: 1;
198
198
  `;
@@ -1,5 +1,5 @@
1
1
  import styled from "styled-components";
2
- import { BmGrey100 } from "../../colors";
2
+ import { BmSecondaryBlue12 } from "../../colors";
3
3
 
4
4
  export const BmContactCard = styled.div`
5
5
  display: flex;
@@ -9,13 +9,13 @@ export const BmContactCard = styled.div`
9
9
  margin-right: 1rem;
10
10
  }
11
11
  &:hover {
12
- background: ${BmGrey100};
12
+ background: ${BmSecondaryBlue12};
13
13
  }
14
14
 
15
15
  ${({ active }) =>
16
16
  active &&
17
17
  `
18
- background: ${BmGrey100};
18
+ background: ${BmSecondaryBlue12};
19
19
  `}
20
20
  cursor: pointer;
21
21
  padding: 1rem 1.5rem;
@@ -138,12 +138,12 @@ BmModal.Body = styled.div`
138
138
  > *:not(:last-child) {
139
139
  margin-bottom: 0.5rem;
140
140
  }
141
- > * {
141
+ ${'' /* > * {
142
142
  display: flex;
143
143
  flex-direction: row;
144
144
  justify-content: space-between;
145
145
  width: 100%;
146
- }
146
+ } */}
147
147
  `;
148
148
 
149
149
  BmModal.Footer = styled.div`
@@ -32,6 +32,9 @@ export const BmSecondaryGreen15 = "rgba(4, 132, 75, 0.15)";
32
32
 
33
33
  export const BmSecondaryGold15 = "rgba(243, 169, 41, 0.15)";
34
34
 
35
+ // #33B1BA 12%
36
+ export const BmSecondaryBlue12="rgba(51, 177, 186, 0.12)";
37
+
35
38
  // Background Colors
36
39
  export const BmBgLightBlue = "#E1EAFC";
37
40