beem-component 1.4.2 → 1.4.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/components/ChatComponents/ChatBody/chatBody.js +1 -1
- package/dist/components/Modals/modal.js +5 -3
- package/dist/components/globalStyles.js +1 -1
- package/package.json +1 -1
- package/src/App.js +0 -90
- package/src/lib/components/ChatComponents/ChatBody/chatBody.js +1 -1
- package/src/lib/components/Modals/modal.js +2 -1
- package/src/lib/components/globalStyles.js +1 -1
|
@@ -41,7 +41,7 @@ var BmChat = _styledComponents.default.div(_templateObject || (_templateObject =
|
|
|
41
41
|
/* border: 0.071rem solid ${BmGrey400}; */
|
|
42
42
|
);
|
|
43
43
|
|
|
44
|
-
BmChat.Body = _styledComponents.default.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column-reverse;\n padding: 0rem
|
|
44
|
+
BmChat.Body = _styledComponents.default.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column-reverse;\n padding: 0rem 1rem;\n flex-grow: 1;\n overflow: auto;\n height: 100%;\n"])));
|
|
45
45
|
|
|
46
46
|
var Details = _styledComponents.default.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n display: flex;\n justify-content: ", ";\n > *:not(:last-child) {\n margin-right: 1rem;\n margin-bottom: 0.5rem;\n }\n overflow-wrap: break-word !important;\n word-wrap: break-word !important;\n margin: 0rem;\n flex-grow: 1;\n"])), function (_ref) {
|
|
47
47
|
var state = _ref.state;
|
|
@@ -112,7 +112,7 @@ var BmModal = function BmModal(_ref) {
|
|
|
112
112
|
|
|
113
113
|
exports.BmModal = BmModal;
|
|
114
114
|
|
|
115
|
-
var ModalHeader = _styledComponents.default.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n"])));
|
|
115
|
+
var ModalHeader = _styledComponents.default.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items:center;\n"])));
|
|
116
116
|
|
|
117
117
|
BmModal.Header = function (_ref2) {
|
|
118
118
|
var children = _ref2.children,
|
|
@@ -133,7 +133,7 @@ BmModal.Header = function (_ref2) {
|
|
|
133
133
|
});
|
|
134
134
|
};
|
|
135
135
|
|
|
136
|
-
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 max-height: ", ";\n
|
|
136
|
+
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 max-height: ", ";\n ", "\n"])), function (_ref3) {
|
|
137
137
|
var size = _ref3.size;
|
|
138
138
|
|
|
139
139
|
if (size) {
|
|
@@ -145,7 +145,9 @@ BmModal.Body = _styledComponents.default.div(_templateObject5 || (_templateObjec
|
|
|
145
145
|
}
|
|
146
146
|
|
|
147
147
|
return "35.714rem";
|
|
148
|
-
}
|
|
148
|
+
}, ''
|
|
149
|
+
/* overflow: auto; */
|
|
150
|
+
);
|
|
149
151
|
BmModal.Footer = _styledComponents.default.div(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n display: flex;\n justify-content: space-between;\n"])));
|
|
150
152
|
BmModal.propTypes = {
|
|
151
153
|
size: _propTypes.default.string,
|
|
@@ -13,5 +13,5 @@ var _templateObject;
|
|
|
13
13
|
|
|
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
|
-
var GlobalStyle = (0, _styledComponents.createGlobalStyle)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n* { font-size: 14px;}\n h1 { ", " }\n h2 { ", " }\n h3 { ", " }\n h4 { ", " }\n p { ", " }\n input {", "}\n a {", "}\n"])), _text.h1, _text.h2, _text.h3, _text.h4, _text.p, _text.input, _text.a);
|
|
16
|
+
var GlobalStyle = (0, _styledComponents.createGlobalStyle)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n* { font-size: 14px; cursor: pointer}\n h1 { ", " }\n h2 { ", " }\n h3 { ", " }\n h4 { ", " }\n p { ", " }\n input {", "}\n a {", "}\n"])), _text.h1, _text.h2, _text.h3, _text.h4, _text.p, _text.input, _text.a);
|
|
17
17
|
exports.GlobalStyle = GlobalStyle;
|
package/package.json
CHANGED
package/src/App.js
CHANGED
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import '../src/main.scss';
|
|
3
|
-
import { BmAccordion, BmTab, BmChat } from './lib/components';
|
|
4
|
-
import { GlobalStyle } from './lib/components/globalStyles';
|
|
5
|
-
import './lib/assets/css/sidebar.scss';
|
|
6
|
-
|
|
7
|
-
export const App = () => {
|
|
8
|
-
const image =
|
|
9
|
-
'https://bm-chatbot-images.s3.eu-west-1.amazonaws.com/Vector.jpg?AWSAccessKeyId=AKIAVCAYXA54EPKHSRGL&Expires=1726995050&Signature=kP4gVPac4c7Sol2PBgGZbQ2TjLM%3D';
|
|
10
|
-
return (
|
|
11
|
-
<>
|
|
12
|
-
<GlobalStyle />
|
|
13
|
-
{/* <MainWrapper> */}
|
|
14
|
-
<BmChat>
|
|
15
|
-
<BmChat.Body>
|
|
16
|
-
<BmChat.Details
|
|
17
|
-
state='inbound'
|
|
18
|
-
session='bot'
|
|
19
|
-
displayTime={<p>12:00pm</p>}
|
|
20
|
-
status='sent'
|
|
21
|
-
>
|
|
22
|
-
<p>Inbound Text Message</p>
|
|
23
|
-
</BmChat.Details>
|
|
24
|
-
<BmChat.Details
|
|
25
|
-
state='inbound'
|
|
26
|
-
session='live'
|
|
27
|
-
displayTime={<p>12:00pm</p>}
|
|
28
|
-
status='sent'
|
|
29
|
-
fileName={<p>chat.png</p>}
|
|
30
|
-
src={image}
|
|
31
|
-
/>
|
|
32
|
-
<BmChat.Details
|
|
33
|
-
state='inbound'
|
|
34
|
-
session='live'
|
|
35
|
-
displayTime={<p>10:00am</p>}
|
|
36
|
-
status='failed'
|
|
37
|
-
fileName={<p>file.csv</p>}
|
|
38
|
-
onDownload={() => {
|
|
39
|
-
alert('hello');
|
|
40
|
-
}}
|
|
41
|
-
file={image}
|
|
42
|
-
/>
|
|
43
|
-
<BmChat.Details
|
|
44
|
-
state='outbound'
|
|
45
|
-
session='bot'
|
|
46
|
-
displayTime={<p>12:00pm</p>}
|
|
47
|
-
status='sent'
|
|
48
|
-
>
|
|
49
|
-
<p>Outbound Text Message</p>
|
|
50
|
-
</BmChat.Details>
|
|
51
|
-
<BmChat.Details
|
|
52
|
-
state='outbound'
|
|
53
|
-
session='live'
|
|
54
|
-
displayTime={<p>12:00pm</p>}
|
|
55
|
-
status='sent'
|
|
56
|
-
fileName={<p>chat.png</p>}
|
|
57
|
-
onDownload={() => {
|
|
58
|
-
alert('hello');
|
|
59
|
-
}}
|
|
60
|
-
src={image}
|
|
61
|
-
/>
|
|
62
|
-
<BmChat.Details
|
|
63
|
-
state='outbound'
|
|
64
|
-
session='live'
|
|
65
|
-
displayTime={<p>10:00am</p>}
|
|
66
|
-
status='failed'
|
|
67
|
-
fileName={<p>file.csv</p>}
|
|
68
|
-
file={image}
|
|
69
|
-
|
|
70
|
-
/>
|
|
71
|
-
</BmChat.Body>
|
|
72
|
-
{/* <BmChat.Footer>
|
|
73
|
-
<div className='chat-footer'>
|
|
74
|
-
<BmIcons icon={<EmojiEmotionsIcon />} size='xlarge' />
|
|
75
|
-
<BmIcons icon={<AttachFileIcon />} size='xlarge' />
|
|
76
|
-
<BmIcons icon={<QuickreplyIcon />} size='xlarge' />
|
|
77
|
-
<BmInput placeholder='Enter Message' style={{ flex: '1' }} />
|
|
78
|
-
<BmIcons icon={<SendIcon />} size='xlarge' />
|
|
79
|
-
</div>
|
|
80
|
-
</BmChat.Footer> */}
|
|
81
|
-
</BmChat>
|
|
82
|
-
<BmTab state='active' stateColor='red'>
|
|
83
|
-
Hello
|
|
84
|
-
</BmTab>
|
|
85
|
-
{/* </MainWrapper> */}
|
|
86
|
-
</>
|
|
87
|
-
);
|
|
88
|
-
};
|
|
89
|
-
|
|
90
|
-
export default App;
|
|
@@ -100,6 +100,7 @@ const ModalHeader = styled.div`
|
|
|
100
100
|
display: flex;
|
|
101
101
|
flex-direction: row;
|
|
102
102
|
justify-content: space-between;
|
|
103
|
+
align-items:center;
|
|
103
104
|
`;
|
|
104
105
|
|
|
105
106
|
BmModal.Header = ({ children, size, onHide, closeButton, show, ...rest }) => {
|
|
@@ -143,7 +144,7 @@ BmModal.Body = styled.div`
|
|
|
143
144
|
}
|
|
144
145
|
return "35.714rem";
|
|
145
146
|
}};
|
|
146
|
-
overflow: auto;
|
|
147
|
+
${'' /* overflow: auto; */}
|
|
147
148
|
`;
|
|
148
149
|
|
|
149
150
|
BmModal.Footer = styled.div`
|
|
@@ -2,7 +2,7 @@ import { createGlobalStyle } from "styled-components";
|
|
|
2
2
|
import { h1, h2, h3, h4, p, input, a } from "./text";
|
|
3
3
|
|
|
4
4
|
export const GlobalStyle = createGlobalStyle`
|
|
5
|
-
* { font-size: 14px;}
|
|
5
|
+
* { font-size: 14px; cursor: pointer}
|
|
6
6
|
h1 { ${h1} }
|
|
7
7
|
h2 { ${h2} }
|
|
8
8
|
h3 { ${h3} }
|