beem-component 1.1.5 → 1.1.6

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.
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.BmColorPicker = void 0;
7
+
8
+ var _styledComponents = _interopRequireDefault(require("styled-components"));
9
+
10
+ var _templateObject;
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 BmColorPicker = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n width: 1.429rem;\n height: 1.429rem;\n border-radius: 50%;\n background: ", ";\n > *:not(:last-child) {\n margin-right: 0.5rem;\n }\n"])), function (props) {
17
+ return props.color ? props.color : 'green';
18
+ });
19
+
20
+ exports.BmColorPicker = BmColorPicker;
@@ -0,0 +1,22 @@
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, _templateObject4;
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 BmChatForm = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n padding: 0rem 0.5rem;\n justify-content: space-between;\n > *:not(:last-child) {\n margin-bottom: 0.5rem;\n }\n"])));
17
+
18
+ BmChatForm.Group = _styledComponents.default.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n"])));
19
+ BmChatForm.Label = _styledComponents.default.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n margin: 0rem;\n text-align: left;\n width: 50%;\n overflow: hidden;\n text-overflow: ellipsis;\n"])));
20
+ BmChatForm.Input = _styledComponents.default.input(_templateObject4 || (_templateObject4 = _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"])));
21
+ var _default = BmChatForm;
22
+ exports.default = _default;
@@ -0,0 +1,19 @@
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;
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 BmChatLabels = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n padding: 0rem 0.5rem;\n > *:not(:last-child) {\n margin-bottom: 1rem;\n }\n > * {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n width: 100%;\n }\n"])));
17
+
18
+ var _default = BmChatLabels;
19
+ exports.default = _default;
@@ -0,0 +1,23 @@
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 _colors = require("../../colors");
11
+
12
+ var _templateObject, _templateObject2, _templateObject3;
13
+
14
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
+
16
+ function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
17
+
18
+ var BmChatNotes = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n padding: 0rem 0.5rem;\n > *:not(:last-child) {\n margin-bottom: 0.5rem;\n }\n"])));
19
+
20
+ BmChatNotes.Input = _styledComponents.default.input(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n padding: 1rem 1.5rem;\n display: flex;\n flex-grow: 1;\n background: ", ";\n border: none !important;\n &:visited,\n &:active,\n &:hover,\n &:focus {\n outline: none !important;\n text-decoration: none !important;\n }\n width: 100%;\n"])), _colors.BmGrey100);
21
+ BmChatNotes.Details = _styledComponents.default.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n padding: 0.5rem 1rem;\n border: 1px solid ", ";\n border-radius: 0.25rem;\n > *:not(:last-child) {\n margin-bottom: 0.5rem;\n }\n\n > * {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n }\n"])), _colors.BmGrey200);
22
+ var _default = BmChatNotes;
23
+ exports.default = _default;
@@ -153,7 +153,7 @@ 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"])));
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"])));
157
157
  BmModal.Footer = _styledComponents.default.div(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n display: flex;\n justify-content: space-between;\n"])));
158
158
  BmModal.propTypes = {
159
159
  size: _propTypes.default.string,
@@ -59,12 +59,30 @@ Object.defineProperty(exports, "BmChat", {
59
59
  return _chatBody.default;
60
60
  }
61
61
  });
62
+ Object.defineProperty(exports, "BmChatForm", {
63
+ enumerable: true,
64
+ get: function get() {
65
+ return _FormAccordion.default;
66
+ }
67
+ });
62
68
  Object.defineProperty(exports, "BmChatHeader", {
63
69
  enumerable: true,
64
70
  get: function get() {
65
71
  return _chatHeader.BmChatHeader;
66
72
  }
67
73
  });
74
+ Object.defineProperty(exports, "BmChatLabels", {
75
+ enumerable: true,
76
+ get: function get() {
77
+ return _LabelAccordion.default;
78
+ }
79
+ });
80
+ Object.defineProperty(exports, "BmChatNotes", {
81
+ enumerable: true,
82
+ get: function get() {
83
+ return _NoteAccordion.default;
84
+ }
85
+ });
68
86
  Object.defineProperty(exports, "BmChatbotIcon", {
69
87
  enumerable: true,
70
88
  get: function get() {
@@ -77,6 +95,12 @@ Object.defineProperty(exports, "BmCheckbox", {
77
95
  return _checkbox.BmCheckbox;
78
96
  }
79
97
  });
98
+ Object.defineProperty(exports, "BmColorPicker", {
99
+ enumerable: true,
100
+ get: function get() {
101
+ return _colorPicker.BmColorPicker;
102
+ }
103
+ });
80
104
  exports.BmColors = void 0;
81
105
  Object.defineProperty(exports, "BmContactCard", {
82
106
  enumerable: true,
@@ -126,12 +150,6 @@ Object.defineProperty(exports, "BmFooterRight", {
126
150
  return _index2.BmFooterRight;
127
151
  }
128
152
  });
129
- Object.defineProperty(exports, "BmForm", {
130
- enumerable: true,
131
- get: function get() {
132
- return _forms.default;
133
- }
134
- });
135
153
  Object.defineProperty(exports, "BmIcons", {
136
154
  enumerable: true,
137
155
  get: function get() {
@@ -347,7 +365,13 @@ var _infoTab = _interopRequireDefault(require("./InfoTab/infoTab"));
347
365
 
348
366
  var _messageCounter = _interopRequireDefault(require("./MessageCounter/messageCounter"));
349
367
 
350
- var _forms = _interopRequireDefault(require("./Forms/forms"));
368
+ var _FormAccordion = _interopRequireDefault(require("./ChatComponents/FormAccordion/FormAccordion"));
369
+
370
+ var _LabelAccordion = _interopRequireDefault(require("./ChatComponents/LabelAccordion/LabelAccordion"));
371
+
372
+ var _NoteAccordion = _interopRequireDefault(require("./ChatComponents/NoteAccordion/NoteAccordion"));
373
+
374
+ var _colorPicker = require("./ChatComponents/ColorPicker/colorPicker");
351
375
 
352
376
  var _index = require("./SuperFluid/Content/index");
353
377
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "beem-component",
3
- "version": "1.1.5",
3
+ "version": "1.1.6",
4
4
  "private": false,
5
5
  "main": "dist/components/index.js",
6
6
  "scripts": {
package/src/App.js CHANGED
@@ -10,21 +10,33 @@ import CustomerInfo from "./CustomerInfo";
10
10
  import { BmTag } from "./lib/components/Tags/tags";
11
11
  import { Home } from "@material-ui/icons";
12
12
  import InfoAccordion from "./InfoAccordion";
13
- import BmForm from "./lib/components/Forms/forms";
13
+ import BmForm from "./lib/components/ChatComponents/FormAccordion/FormAccordion";
14
+ import { BmColorPicker } from "./lib/components/ChatComponents/ColorPicker/colorPicker";
14
15
 
15
16
  export const App = () => {
16
17
  return (
17
18
  <>
18
19
  <GlobalStyle />
19
20
  <MainWrapper>
21
+ {["#33b1ba", "#000000", "#F62E48", "#8CC63F"].map((color) => (
22
+ <BmColorPicker key={color} color={color} />
23
+ ))}
20
24
  <BmTag leadingIcon={<Home />} trailingIcon={<Home />}>
21
25
  <p>Hello</p>
22
26
  </BmTag>
23
27
  <BmForm>
24
- <BmForm.Label>
25
- <h4>Hello</h4>
26
- </BmForm.Label>
27
- <BmForm.Input placeholder="Hello" />
28
+ <BmForm.Group>
29
+ <BmForm.Label>
30
+ <h4>Hello</h4>
31
+ </BmForm.Label>
32
+ <BmForm.Input placeholder="Hello" />
33
+ </BmForm.Group>
34
+ <BmForm.Group>
35
+ <BmForm.Label>
36
+ <h4>Hello</h4>
37
+ </BmForm.Label>
38
+ <BmForm.Input placeholder="Hello" />
39
+ </BmForm.Group>
28
40
  </BmForm>
29
41
  <div className="main-chat-container">
30
42
  <div className="sidebar">
@@ -1,7 +1,7 @@
1
1
  /* eslint-disable react/prop-types */
2
2
  import React from "react";
3
3
  import { BmAccordion } from "./lib/components";
4
- import BmForm from "./lib/components/Forms/forms";
4
+ import BmForm from "./lib/components/ChatComponents/FormAccordion/FormAccordion";
5
5
 
6
6
  const InfoAccordion = () => {
7
7
  return (
@@ -0,0 +1,11 @@
1
+ import styled from "styled-components";
2
+
3
+ export const BmColorPicker = styled.div`
4
+ width: 1.429rem;
5
+ height: 1.429rem;
6
+ border-radius: 50%;
7
+ background: ${(props) => (props.color ? props.color : 'green')};
8
+ > *:not(:last-child) {
9
+ margin-right: 0.5rem;
10
+ }
11
+ `;
@@ -1,13 +1,23 @@
1
1
  import styled from "styled-components";
2
2
 
3
- const BmForm = styled.div`
3
+ const BmChatForm = styled.div`
4
+ display: flex;
5
+ flex-direction: column;
6
+ padding: 0rem 0.5rem;
7
+ justify-content: space-between;
8
+ > *:not(:last-child) {
9
+ margin-bottom: 0.5rem;
10
+ }
11
+ `;
12
+
13
+ BmChatForm.Group = styled.div`
4
14
  display: flex;
5
15
  flex-direction: row;
6
16
  align-items: center;
7
17
  justify-content: space-between;
8
18
  `;
9
19
 
10
- BmForm.Label = styled.div`
20
+ BmChatForm.Label = styled.div`
11
21
  margin: 0rem;
12
22
  text-align: left;
13
23
  width: 50%;
@@ -15,7 +25,7 @@ BmForm.Label = styled.div`
15
25
  text-overflow: ellipsis;
16
26
  `
17
27
 
18
- BmForm.Input = styled.input`
28
+ BmChatForm.Input = styled.input`
19
29
  text-align: right;
20
30
  width: 50%;
21
31
  overflow: hidden;
@@ -31,4 +41,4 @@ BmForm.Input = styled.input`
31
41
  background: transparent;
32
42
  `
33
43
 
34
- export default BmForm;
44
+ export default BmChatForm;
@@ -0,0 +1,18 @@
1
+ import styled from 'styled-components';
2
+
3
+ const BmChatLabels = styled.div`
4
+ display: flex;
5
+ flex-direction: column;
6
+ padding: 0rem 0.5rem;
7
+ > *:not(:last-child) {
8
+ margin-bottom: 1rem;
9
+ }
10
+ > * {
11
+ display: flex;
12
+ flex-direction: row;
13
+ justify-content: space-between;
14
+ width: 100%;
15
+ }
16
+ `;
17
+
18
+ export default BmChatLabels;
@@ -0,0 +1,46 @@
1
+ import styled from "styled-components";
2
+ import { BmGrey100, BmGrey200 } from "../../colors";
3
+
4
+ const BmChatNotes = styled.div`
5
+ display: flex;
6
+ flex-direction: column;
7
+ padding: 0rem 0.5rem;
8
+ > *:not(:last-child) {
9
+ margin-bottom: 0.5rem;
10
+ }
11
+ `;
12
+
13
+ BmChatNotes.Input = styled.input`
14
+ padding: 1rem 1.5rem;
15
+ display: flex;
16
+ flex-grow: 1;
17
+ background: ${BmGrey100};
18
+ border: none !important;
19
+ &:visited,
20
+ &:active,
21
+ &:hover,
22
+ &:focus {
23
+ outline: none !important;
24
+ text-decoration: none !important;
25
+ }
26
+ width: 100%;
27
+ `;
28
+
29
+ BmChatNotes.Details = styled.div`
30
+ display: flex;
31
+ flex-direction: column;
32
+ padding: 0.5rem 1rem;
33
+ border: 1px solid ${BmGrey200};
34
+ border-radius: 0.25rem;
35
+ > *:not(:last-child) {
36
+ margin-bottom: 0.5rem;
37
+ }
38
+
39
+ > * {
40
+ display: flex;
41
+ flex-direction: row;
42
+ justify-content: space-between;
43
+ }
44
+ `;
45
+
46
+ export default BmChatNotes;
@@ -135,6 +135,15 @@ BmModal.Body = styled.div`
135
135
  display: flex;
136
136
  flex-direction: column;
137
137
  justify-content: space-between;
138
+ > *:not(:last-child) {
139
+ margin-bottom: 0.5rem;
140
+ }
141
+ > * {
142
+ display: flex;
143
+ flex-direction: row;
144
+ justify-content: space-between;
145
+ width: 100%;
146
+ }
138
147
  `;
139
148
 
140
149
  BmModal.Footer = styled.div`
@@ -37,9 +37,11 @@ import { BmChatHeader } from "./ChatHeader/chatHeader";
37
37
  import BmContactCard from "./ContactCards/contactCards";
38
38
  import BmInfoTab from "./InfoTab/infoTab";
39
39
  import BmCounter from "./MessageCounter/messageCounter";
40
-
41
- //Chat form components
42
- import BmForm from "./Forms/forms";
40
+ //Chat Accordion components
41
+ import BmChatForm from "./ChatComponents/FormAccordion/FormAccordion";
42
+ import BmChatLabels from "./ChatComponents/LabelAccordion/LabelAccordion";
43
+ import BmChatNotes from "./ChatComponents/NoteAccordion/NoteAccordion";
44
+ import { BmColorPicker } from "./ChatComponents/ColorPicker/colorPicker";
43
45
 
44
46
  //SuperFluid Components
45
47
  import { BmContent } from "./SuperFluid/Content/index";
@@ -112,6 +114,9 @@ export {
112
114
  BmInfoTab,
113
115
  BmContactCard,
114
116
  BmCounter,
115
- //Chat Form Components
116
- BmForm,
117
+ //Chat Accordion Components
118
+ BmChatForm,
119
+ BmChatLabels,
120
+ BmChatNotes,
121
+ BmColorPicker,
117
122
  };
@@ -1,21 +0,0 @@
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;