beem-component 1.1.4 → 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/components/Forms/forms.js +21 -0
- package/dist/components/index.js +8 -0
- package/package.json +1 -1
- package/src/App.js +12 -2
- package/src/Chat.js +0 -1
- package/src/InfoAccordion.js +24 -0
- package/src/lib/components/ChatBody/chatBody.js +0 -1
- package/src/lib/components/Forms/forms.js +34 -0
- package/src/lib/components/index.js +5 -0
|
@@ -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
|
@@ -126,6 +126,12 @@ Object.defineProperty(exports, "BmFooterRight", {
|
|
|
126
126
|
return _index2.BmFooterRight;
|
|
127
127
|
}
|
|
128
128
|
});
|
|
129
|
+
Object.defineProperty(exports, "BmForm", {
|
|
130
|
+
enumerable: true,
|
|
131
|
+
get: function get() {
|
|
132
|
+
return _forms.default;
|
|
133
|
+
}
|
|
134
|
+
});
|
|
129
135
|
Object.defineProperty(exports, "BmIcons", {
|
|
130
136
|
enumerable: true,
|
|
131
137
|
get: function get() {
|
|
@@ -341,6 +347,8 @@ var _infoTab = _interopRequireDefault(require("./InfoTab/infoTab"));
|
|
|
341
347
|
|
|
342
348
|
var _messageCounter = _interopRequireDefault(require("./MessageCounter/messageCounter"));
|
|
343
349
|
|
|
350
|
+
var _forms = _interopRequireDefault(require("./Forms/forms"));
|
|
351
|
+
|
|
344
352
|
var _index = require("./SuperFluid/Content/index");
|
|
345
353
|
|
|
346
354
|
var _index2 = require("./SuperFluid/ContentTitle.js/index.js");
|
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
|
@@ -5,7 +5,6 @@ import QuickreplyIcon from "@mui/icons-material/Quickreply";
|
|
|
5
5
|
import SendIcon from "@mui/icons-material/Send";
|
|
6
6
|
import { BmChat, BmIcons, BmInput } from "./lib/components";
|
|
7
7
|
import "../src/lib/assets/css/sidebar.css";
|
|
8
|
-
import { BmMessage, BmMessageTabInput } from "./lib/components/Chats/chatInput";
|
|
9
8
|
|
|
10
9
|
const Chat = () => {
|
|
11
10
|
return (
|
|
@@ -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;
|
|
@@ -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,9 @@ 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
|
+
|
|
41
44
|
//SuperFluid Components
|
|
42
45
|
import { BmContent } from "./SuperFluid/Content/index";
|
|
43
46
|
import {
|
|
@@ -109,4 +112,6 @@ export {
|
|
|
109
112
|
BmInfoTab,
|
|
110
113
|
BmContactCard,
|
|
111
114
|
BmCounter,
|
|
115
|
+
//Chat Form Components
|
|
116
|
+
BmForm,
|
|
112
117
|
};
|