beem-component 1.0.8 → 1.1.2

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.
Files changed (44) hide show
  1. package/dist/assets/css/sidebar.css +58 -0
  2. package/dist/components/Buttons/buttonIconsOnly.js +1 -1
  3. package/dist/components/Buttons/buttons.js +1 -1
  4. package/dist/components/Cards/cards.js +1 -1
  5. package/dist/components/ChatBody/chatBody.js +6 -4
  6. package/dist/components/ChatHeader/chatHeader.js +4 -3
  7. package/dist/components/Chats/chat.js +2 -2
  8. package/dist/components/Chats/chatInput.js +1 -1
  9. package/dist/components/InfoTab/infoTab.js +4 -3
  10. package/dist/components/Lists/listBox.js +1 -1
  11. package/dist/components/Tags/tags.js +116 -0
  12. package/dist/components/Tags/tags.stories.js +62 -0
  13. package/dist/components/dropdown.js +1 -1
  14. package/dist/components/dropdownItems.js +1 -1
  15. package/dist/components/index.js +79 -1
  16. package/dist/components/input.js +1 -3
  17. package/dist/components/search.js +1 -1
  18. package/dist/components/tags.js +3 -3
  19. package/package.json +1 -1
  20. package/src/App.js +25 -81
  21. package/src/Chat.js +120 -0
  22. package/src/ChatHeader.js +19 -0
  23. package/src/CustomerInfo.js +46 -0
  24. package/src/SideBar.js +81 -0
  25. package/src/lib/assets/css/sidebar.css +58 -0
  26. package/src/lib/components/Buttons/buttonIconsOnly.js +1 -1
  27. package/src/lib/components/Buttons/buttons.js +1 -1
  28. package/src/lib/components/Cards/cards.js +1 -1
  29. package/src/lib/components/ChatBody/chatBody.js +5 -2
  30. package/src/lib/components/ChatBody/chatBody.stories.js +27 -27
  31. package/src/lib/components/ChatHeader/chatHeader.js +2 -2
  32. package/src/lib/components/Chats/chat.js +2 -2
  33. package/src/lib/components/Chats/chatInput.js +1 -1
  34. package/src/lib/components/InfoTab/infoTab.js +2 -2
  35. package/src/lib/components/Lists/listBox.js +1 -1
  36. package/src/lib/components/Tags/tags.js +109 -0
  37. package/src/lib/components/Tags/tags.stories.js +37 -0
  38. package/src/lib/components/dropdown.js +1 -1
  39. package/src/lib/components/dropdownItems.js +1 -1
  40. package/src/lib/components/index.js +33 -2
  41. package/src/lib/components/input.js +1 -2
  42. package/src/lib/components/search.js +1 -1
  43. package/src/lib/components/tags.js +4 -4
  44. package/storybook-static/main.3c8d8027.iframe.bundle.js +1 -1
@@ -6,6 +6,11 @@
6
6
  overflow: auto;
7
7
  max-width: 20%;
8
8
  width: 20%;
9
+ border: 1px solid #E2E2E2;
10
+ }
11
+
12
+ .sidebar>* {
13
+ margin-bottom: 1.5rem;
9
14
  }
10
15
 
11
16
  .main-sidebar-tabs {
@@ -19,4 +24,57 @@
19
24
  .main-sidebar-tabs>.sidebar-tabs {
20
25
  padding: 1.714rem;
21
26
  flex: 1;
27
+ }
28
+
29
+ .sidebar-contacts {
30
+ display: flex;
31
+ flex-direction: column;
32
+ margin: 0rem;
33
+ overflow: auto;
34
+ }
35
+
36
+ .main-chat-container {
37
+ display: flex;
38
+ flex-direction: row;
39
+ align-items: center;
40
+ height: calc(100vh - 180px);
41
+ max-width: 100%;
42
+ width: 100%;
43
+ background: white;
44
+ }
45
+
46
+ .chat {
47
+ display: flex;
48
+ flex-direction: column;
49
+ max-height: 100%;
50
+ height: 100%;
51
+ flex-grow: 1;
52
+ max-height: 100%;
53
+ height: 100%;
54
+ }
55
+
56
+ .chat-menu {
57
+ display: flex;
58
+ flex-direction: row;
59
+ height: 0%;
60
+ flex-grow: 1;
61
+ width: 100%;
62
+ }
63
+
64
+ .chat-messages {
65
+ display: flex;
66
+ flex-direction: column;
67
+ height: 100%;
68
+ overflow: auto;
69
+ width: 80%;
70
+ border: 1px solid #E2E2E2;
71
+ }
72
+
73
+ .chat-contact-info {
74
+ display: flex;
75
+ flex-direction: column;
76
+ height: 100%;
77
+ overflow: auto;
78
+ width: 25%;
79
+ border: 1px solid #E2E2E2;
22
80
  }
@@ -29,7 +29,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
29
29
 
30
30
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
31
31
 
32
- var BeemButtonIcon = _styledComponents.default.button(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n background: ", ";\n border: 0.071rem solid\n ", ";\n box-sizing: border-box;\n border-radius: 0.21875rem;\n padding: 0rem;\n"])), function (_ref) {
32
+ var BeemButtonIcon = _styledComponents.default.button(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n background: ", ";\n border: 0.071rem solid\n ", ";\n box-sizing: border-box;\n border-radius: 0.25rem;\n padding: 0rem;\n"])), function (_ref) {
33
33
  var variant = _ref.variant,
34
34
  disabled = _ref.disabled;
35
35
 
@@ -56,7 +56,7 @@ var ButtonText = _styledComponents.default.div(_templateObject || (_templateObje
56
56
  }
57
57
  });
58
58
 
59
- var BeemButton = _styledComponents.default.button(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n border-radius: 0.21875rem;\n padding: ", ";\n background: ", ";\n\n border: 0.071rem solid\n ", ";\n\n &:hover {\n background: ", ";\n border: 0.071rem solid\n ", ";\n }\n &:active {\n background: ", ";\n box-shadow: ", ";\n border: 0.071rem solid\n ", ";\n }\n\n &:hover ", " {\n color: ", ";\n }\n &:active ", " {\n color: ", ";\n }\n"])), function (_ref3) {
59
+ var BeemButton = _styledComponents.default.button(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n border-radius: 0.25rem;\n padding: ", ";\n background: ", ";\n\n border: 0.071rem solid\n ", ";\n\n &:hover {\n background: ", ";\n border: 0.071rem solid\n ", ";\n }\n &:active {\n background: ", ";\n box-shadow: ", ";\n border: 0.071rem solid\n ", ";\n }\n\n &:hover ", " {\n color: ", ";\n }\n &:active ", " {\n color: ", ";\n }\n"])), function (_ref3) {
60
60
  var size = _ref3.size;
61
61
  if (size === "large") return "0.625rem 1.5rem";
62
62
  if (size === "medium") return "0.4375rem 1rem";
@@ -15,7 +15,7 @@ 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 BmCard = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n background: ", ";\n border: 0.071rem solid ", ";\n border-radius: 0.21875rem;\n"])), _colors.BmPrimaryWhite, _colors.BmGrey400);
18
+ var BmCard = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n background: ", ";\n border: 0.071rem solid ", ";\n border-radius: 0.25rem;\n"])), _colors.BmPrimaryWhite, _colors.BmGrey400);
19
19
 
20
20
  BmCard.Header = _styledComponents.default.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n padding: 1rem 1rem 0rem 1rem;\n"])));
21
21
  BmCard.Body = _styledComponents.default.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n margin-top: 0.5rem;\n margin-bottom: 1rem;\n padding: 0rem 1rem;\n"])));
@@ -31,13 +31,13 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
31
31
 
32
32
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
33
33
 
34
- var BmChat = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n ", "\n"])), ""
34
+ var BmChat = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n height: 100%;\n ", "\n"])), ""
35
35
  /* border: 0.071rem solid ${BmGrey400}; */
36
36
  );
37
37
 
38
- BmChat.Body = _styledComponents.default.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n padding: 0rem 1.5rem;\n"])));
38
+ BmChat.Body = _styledComponents.default.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n padding: 0rem 1.5rem;\n flex-grow: 1;\n overflow: auto;\n"])));
39
39
 
40
- var Details = _styledComponents.default.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n display: flex;\n ", "\n justify-content: ", ";\n > *:not(:last-child) {\n margin-right: 1rem;\n }\n overflow-wrap: break-word !important;\n word-wrap: break-word !important;\n margin: 0rem;\n"])), ""
40
+ var Details = _styledComponents.default.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n display: flex;\n ", "\n justify-content: ", ";\n > *:not(:last-child) {\n margin-right: 1rem;\n }\n overflow-wrap: break-word !important;\n word-wrap: break-word !important;\n margin: 0rem;\n flex-grow: 1;\n"])), ""
41
41
  /* align-items: center; */
42
42
  , function (_ref) {
43
43
  var state = _ref.state;
@@ -133,6 +133,8 @@ 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: row;\n border-top: 0.071rem solid ", ";\n padding: 0.5rem 0rem;\n align-items: center;\n justify-content: center;\n background: ", ";\n > *:not(:last-child) {\n margin-right: 0.5rem;\n }\n"])), _colors.BmGrey400, _colors.BmGrey50);
136
+ BmChat.Footer = _styledComponents.default.div(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: row;\n border-top: 0.071rem solid ", ";\n padding: 0.5rem 0rem;\n align-items: center;\n justify-content: center;\n ", "\n > *:not(:last-child) {\n margin-right: 0.5rem;\n }\n"])), _colors.BmGrey400, ''
137
+ /* background: ${BmGrey50}; */
138
+ );
137
139
  var _default = BmChat;
138
140
  exports.default = _default;
@@ -7,14 +7,15 @@ exports.BmChatHeader = void 0;
7
7
 
8
8
  var _styledComponents = _interopRequireDefault(require("styled-components"));
9
9
 
10
- var _colors = require("../colors");
11
-
12
10
  var _templateObject;
13
11
 
14
12
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
13
 
16
14
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
17
15
 
18
- var BmChatHeader = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: row;\n align-items: center;\n border: 0.071rem solid ", ";\n padding: 1rem;\n > *:not(:last-child) {\n margin-right: 0.5rem;\n }\n button {\n margin-left: auto;\n }\n"])), _colors.BmGrey400);
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 button {\n margin-left: auto;\n }\n"])), ''
18
+ /* border: 0.071rem solid ${BmGrey400}; */
19
+ );
19
20
 
20
21
  exports.BmChatHeader = BmChatHeader;
@@ -31,7 +31,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
31
31
 
32
32
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
33
33
 
34
- var BmChatWrapper = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: row;\n align-items: center;\n padding: 1.143rem;\n background: ", ";\n border: 0.071rem solid ", ";\n border-radius: 0.21875rem 0.21875rem 0.21875rem 0rem;\n max-width: 50%;\n overflow-wrap: break-word !important;\n word-wrap: break-word !important;\n margin: 0rem;\n"])), function (_ref) {
34
+ var BmChatWrapper = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: row;\n align-items: center;\n padding: 1.143rem;\n background: ", ";\n border: 0.071rem solid ", ";\n border-radius: 0.25rem 0.21875rem 0.21875rem 0rem;\n max-width: 50%;\n overflow-wrap: break-word !important;\n word-wrap: break-word !important;\n margin: 0rem;\n"])), function (_ref) {
35
35
  var type = _ref.type;
36
36
 
37
37
  if (type) {
@@ -150,7 +150,7 @@ var BmFileChat = function BmFileChat(_ref7) {
150
150
 
151
151
  exports.BmFileChat = BmFileChat;
152
152
 
153
- var BmImageWrapper = _styledComponents.default.div(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n background: ", ";\n border: 0.071rem solid ", ";\n border-radius: 0.21875rem 0.21875rem 0rem 0.21875rem;\n display: flex;\n flex-direction: column;\n max-width: 50%;\n max-height: 50%;\n"])), _colors.BmGrey100, _colors.BmGrey400);
153
+ var BmImageWrapper = _styledComponents.default.div(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n background: ", ";\n border: 0.071rem solid ", ";\n border-radius: 0.25rem 0.21875rem 0rem 0.21875rem;\n display: flex;\n flex-direction: column;\n max-width: 50%;\n max-height: 50%;\n"])), _colors.BmGrey100, _colors.BmGrey400);
154
154
 
155
155
  exports.BmImageWrapper = BmImageWrapper;
156
156
 
@@ -49,5 +49,5 @@ exports.BmSend = BmSend;
49
49
  var BmAttachment = (0, _styledComponents.default)("div")(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n justify-content: center;\n padding-right: 1.143rem !important;\n"]))); // Div for message input
50
50
 
51
51
  exports.BmAttachment = BmAttachment;
52
- var BmMessage = (0, _styledComponents.default)("div")(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: row;\n align-items: center;\n padding: 0.714rem 1.143rem !important;\n background: ", ";\n border: 0.071rem solid ", ";\n box-sizing: border-box;\n border-radius: 0.21875rem;\n flex-grow: 1;\n max-width: 75%;\n"])), _colors.BmPrimaryWhite, _colors.BmGrey400);
52
+ var BmMessage = (0, _styledComponents.default)("div")(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: row;\n align-items: center;\n padding: 0.714rem 1.143rem !important;\n background: ", ";\n border: 0.071rem solid ", ";\n box-sizing: border-box;\n border-radius: 0.25rem;\n flex-grow: 1;\n max-width: 75%;\n"])), _colors.BmPrimaryWhite, _colors.BmGrey400);
53
53
  exports.BmMessage = BmMessage;
@@ -7,15 +7,16 @@ exports.default = void 0;
7
7
 
8
8
  var _styledComponents = _interopRequireDefault(require("styled-components"));
9
9
 
10
- var _colors = require("../colors");
11
-
12
10
  var _templateObject, _templateObject2, _templateObject3;
13
11
 
14
12
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
13
 
16
14
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
17
15
 
18
- var BmInfoTab = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n padding: 1.5rem;\n border: 0.071rem solid ", ";\n > *:not(:last-child) {\n margin-bottom: 1rem;\n }\n"])), _colors.BmGrey400);
16
+ // import { BmGrey400 } from "../colors";
17
+ var BmInfoTab = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n padding: 1.5rem;\n ", "\n > *:not(:last-child) {\n margin-bottom: 1rem;\n }\n"])), ''
18
+ /* border: 0.071rem solid ${BmGrey400}; */
19
+ );
19
20
 
20
21
  BmInfoTab.Content = _styledComponents.default.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n"])));
21
22
  BmInfoTab.Tabs = _styledComponents.default.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n >*:not(:first-child) {\n margin-top: 0.5rem;\n }\n"])));
@@ -31,7 +31,7 @@ var show = function show(isOpen) {
31
31
  return "flex";
32
32
  };
33
33
 
34
- var BmListBox = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", ";\n flex-direction: column;\n padding: 0.286rem 0rem;\n background: ", ";\n border: 0.071rem solid ", ";\n box-shadow: 0rem 0.286rem 0.286rem rgba(0, 0, 0, 0.25);\n border-radius: 0.21875rem;\n z-index: 99999;\n cursor: pointer;\n"])), function (props) {
34
+ var BmListBox = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", ";\n flex-direction: column;\n padding: 0.286rem 0rem;\n background: ", ";\n border: 0.071rem solid ", ";\n box-shadow: 0rem 0.286rem 0.286rem rgba(0, 0, 0, 0.25);\n border-radius: 0.25rem;\n z-index: 99999;\n cursor: pointer;\n"])), function (props) {
35
35
  return show(props.isOpen);
36
36
  }, _colors.BmPrimaryWhite, _colors.BmGrey400);
37
37
 
@@ -0,0 +1,116 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.BmTag = void 0;
7
+
8
+ var _react = _interopRequireDefault(require("react"));
9
+
10
+ var _styledComponents = _interopRequireDefault(require("styled-components"));
11
+
12
+ var _propTypes = _interopRequireDefault(require("prop-types"));
13
+
14
+ var _iconStyles = require("../iconStyles");
15
+
16
+ var _colors = require("../../components/colors");
17
+
18
+ var _excluded = ["variant", "size", "disabled", "children", "leadingIcon", "trailingIcon", "color"];
19
+
20
+ var _templateObject;
21
+
22
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
23
+
24
+ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
25
+
26
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
27
+
28
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
29
+
30
+ function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
31
+
32
+ var Color = function Color(_ref) {
33
+ var variant = _ref.variant,
34
+ color = _ref.color;
35
+
36
+ if (variant === "success" || variant === "warning" || variant === "danger") {
37
+ return "".concat(_colors.BmPrimaryWhite);
38
+ }
39
+
40
+ if (!variant && color) {
41
+ return color;
42
+ }
43
+
44
+ return "".concat(_colors.BmPrimaryBlack);
45
+ };
46
+
47
+ var BeemTag = _styledComponents.default.button(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n padding: 0.214rem 0.571rem;\n border-radius: 0.25rem;\n background: ", ";\n border: 0.071rem solid\n ", ";\n > * {\n color: ", ";\n text-transform: uppercase;\n }\n\n > *:not(:last-child) {\n margin-right: 0.5rem;\n }\n"])), function (_ref2) {
48
+ var variant = _ref2.variant;
49
+ if (variant === "neutral") return "".concat(_colors.BmGrey100);
50
+ if (variant === "success") return "".concat(_colors.BmSecondaryDarkGreen);
51
+ if (variant === "warning") return "".concat(_colors.BmPrimaryGold);
52
+ if (variant === "danger") return "".concat(_colors.BmSecondaryRed);
53
+ if (variant === "light") return "".concat(_colors.BmPrimaryWhite);
54
+ if (!variant) return "".concat(_colors.BmGrey100);
55
+ }, function (_ref3) {
56
+ var variant = _ref3.variant;
57
+ if (variant === "neutral") return "".concat(_colors.BmGrey100);
58
+ if (variant === "success") return "".concat(_colors.BmSecondaryDarkGreen);
59
+ if (variant === "warning") return "".concat(_colors.BmPrimaryGold);
60
+ if (variant === "danger") return "".concat(_colors.BmSecondaryRed);
61
+ if (variant === "light") return "".concat(_colors.BmGrey400);
62
+ return "".concat(_colors.BmGrey100);
63
+ }, function (_ref4) {
64
+ var variant = _ref4.variant,
65
+ color = _ref4.color;
66
+ return Color({
67
+ variant: variant,
68
+ color: color
69
+ });
70
+ });
71
+
72
+ var BmTag = function BmTag(props) {
73
+ var variant = props.variant,
74
+ size = props.size,
75
+ disabled = props.disabled,
76
+ children = props.children,
77
+ leadingIcon = props.leadingIcon,
78
+ trailingIcon = props.trailingIcon,
79
+ color = props.color,
80
+ rest = _objectWithoutProperties(props, _excluded);
81
+
82
+ return /*#__PURE__*/_react.default.createElement(BeemTag, _extends({
83
+ size: size,
84
+ variant: variant,
85
+ disabled: disabled,
86
+ children: children,
87
+ color: color
88
+ }, rest), leadingIcon && /*#__PURE__*/_react.default.createElement(_iconStyles.BmIcons, {
89
+ disabled: disabled,
90
+ icon: leadingIcon,
91
+ variant: variant,
92
+ color: Color({
93
+ color: color,
94
+ variant: variant
95
+ }),
96
+ size: size || 'small'
97
+ }), children, trailingIcon && /*#__PURE__*/_react.default.createElement(_iconStyles.BmIcons, {
98
+ icon: trailingIcon,
99
+ disabled: disabled,
100
+ color: Color({
101
+ color: color,
102
+ variant: variant
103
+ }),
104
+ size: size || 'small'
105
+ }));
106
+ };
107
+
108
+ exports.BmTag = BmTag;
109
+ BmTag.propTypes = {
110
+ children: _propTypes.default.object,
111
+ trailingIcon: _propTypes.default.node,
112
+ leadingIcon: _propTypes.default.node,
113
+ color: _propTypes.default.string,
114
+ size: _propTypes.default.string,
115
+ variant: _propTypes.default.string
116
+ };
@@ -0,0 +1,62 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = exports.Tabs = void 0;
7
+
8
+ var _icons = require("@material-ui/icons");
9
+
10
+ var _react = _interopRequireDefault(require("react"));
11
+
12
+ var _tags = require("./tags");
13
+
14
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
+
16
+ /* eslint-disable import/no-anonymous-default-export */
17
+ var _default = {
18
+ component: _tags.BmTag,
19
+ title: "components/Tags",
20
+ argTypes: {
21
+ color: {
22
+ control: {
23
+ type: "text"
24
+ },
25
+ description: "Color of the Icons and Text, will work only if variant is not present"
26
+ },
27
+ size: {
28
+ options: ["xsmall", "small", "medium", "large", "xlarge"],
29
+ control: {
30
+ type: "select"
31
+ },
32
+ description: "Size of the icons",
33
+ defaultValue: {
34
+ summary: "small"
35
+ }
36
+ },
37
+ variant: {
38
+ options: ["success", "warning", "danger", "light", "neutral", undefined],
39
+ control: {
40
+ type: "select"
41
+ },
42
+ description: "Type of tag",
43
+ defaultValue: {
44
+ summary: "neutral"
45
+ }
46
+ }
47
+ }
48
+ };
49
+ exports.default = _default;
50
+
51
+ var MainTab = function MainTab(args) {
52
+ return /*#__PURE__*/_react.default.createElement(_tags.BmTag, args);
53
+ };
54
+
55
+ var Tabs = MainTab.bind({});
56
+ exports.Tabs = Tabs;
57
+ Tabs.args = {
58
+ children: /*#__PURE__*/_react.default.createElement("p", null, "Tabs"),
59
+ leadingIcon: /*#__PURE__*/_react.default.createElement(_icons.Favorite, null),
60
+ trailingIcon: /*#__PURE__*/_react.default.createElement(_icons.Favorite, null),
61
+ variant: 'success'
62
+ };
@@ -39,7 +39,7 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
39
39
 
40
40
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
41
41
 
42
- var BmDropdownWrapper = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n justify-content: center;\n align-items: center;\n position: static;\n ", "\n margin: 0rem;\n padding: 0.5rem 1.143rem;\n background: ", ";\n border: 0.071rem solid ", ";\n border-radius: 0.21875rem;\n ", "\n"])), ""
42
+ var BmDropdownWrapper = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n justify-content: center;\n align-items: center;\n position: static;\n ", "\n margin: 0rem;\n padding: 0.5rem 1.143rem;\n background: ", ";\n border: 0.071rem solid ", ";\n border-radius: 0.25rem;\n ", "\n"])), ""
43
43
  /* box-sizing: border-box; */
44
44
  , _colors.BmPrimaryWhite, _colors.BmGrey400, ''
45
45
  /* box-shadow: inset 0.071rem 0rem 0rem #afafaf; */
@@ -29,7 +29,7 @@ var BmCustomizedDropdown = _styledComponents.default.div(_templateObject || (_te
29
29
 
30
30
  exports.BmCustomizedDropdown = BmCustomizedDropdown;
31
31
 
32
- var BmButtonDropdownItem = _styledComponents.default.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n ", "\n display: ", "};\n flex-direction: column;\n ", "\n padding: 0.286rem 0rem;\n background: ", ";\n border: 0.071rem solid ", ";\n box-shadow: 0rem 0.286rem 0.286rem rgba(0, 0, 0, 0.25);\n border-radius: 0.21875rem;\n z-index: 99999;\n position: absolute;\n cursor: pointer;\n width: 100%;\n"])), ""
32
+ var BmButtonDropdownItem = _styledComponents.default.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n ", "\n display: ", "};\n flex-direction: column;\n ", "\n padding: 0.286rem 0rem;\n background: ", ";\n border: 0.071rem solid ", ";\n box-shadow: 0rem 0.286rem 0.286rem rgba(0, 0, 0, 0.25);\n border-radius: 0.25rem;\n z-index: 99999;\n position: absolute;\n cursor: pointer;\n width: 100%;\n"])), ""
33
33
  /* display: inline-block; */
34
34
  , function (_ref) {
35
35
  var isOpen = _ref.isOpen;
@@ -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,18 @@ 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
+ });
99
129
  Object.defineProperty(exports, "BmIcons", {
100
130
  enumerable: true,
101
131
  get: function get() {
@@ -168,6 +198,48 @@ Object.defineProperty(exports, "BmRowLabel", {
168
198
  return _rowLabels.BmRowLabel;
169
199
  }
170
200
  });
201
+ Object.defineProperty(exports, "BmSegment", {
202
+ enumerable: true,
203
+ get: function get() {
204
+ return _index3.BmSegment;
205
+ }
206
+ });
207
+ Object.defineProperty(exports, "BmSegmentCard", {
208
+ enumerable: true,
209
+ get: function get() {
210
+ return _index3.BmSegmentCard;
211
+ }
212
+ });
213
+ Object.defineProperty(exports, "BmSegmentCheckBox", {
214
+ enumerable: true,
215
+ get: function get() {
216
+ return _index3.BmSegmentCheckBox;
217
+ }
218
+ });
219
+ Object.defineProperty(exports, "BmSegmentCompleteContent", {
220
+ enumerable: true,
221
+ get: function get() {
222
+ return _index3.BmSegmentCompleteContent;
223
+ }
224
+ });
225
+ Object.defineProperty(exports, "BmSegmentCompleteIcon", {
226
+ enumerable: true,
227
+ get: function get() {
228
+ return _index3.BmSegmentCompleteIcon;
229
+ }
230
+ });
231
+ Object.defineProperty(exports, "BmSegmentCreateContent", {
232
+ enumerable: true,
233
+ get: function get() {
234
+ return _index3.BmSegmentCreateContent;
235
+ }
236
+ });
237
+ Object.defineProperty(exports, "BmSegmentSelector", {
238
+ enumerable: true,
239
+ get: function get() {
240
+ return _index3.BmSegmentSelector;
241
+ }
242
+ });
171
243
  Object.defineProperty(exports, "BmSupport", {
172
244
  enumerable: true,
173
245
  get: function get() {
@@ -251,7 +323,7 @@ var _loader = require("./Loader/loader");
251
323
 
252
324
  var _checkbox = require("./checkbox");
253
325
 
254
- var _tags = require("./tags");
326
+ var _tags = require("../components/Tags/tags");
255
327
 
256
328
  var _iconStyles = require("./iconStyles");
257
329
 
@@ -269,6 +341,12 @@ var _infoTab = _interopRequireDefault(require("./InfoTab/infoTab"));
269
341
 
270
342
  var _messageCounter = _interopRequireDefault(require("./MessageCounter/messageCounter"));
271
343
 
344
+ var _index = require("./SuperFluid/Content/index");
345
+
346
+ var _index2 = require("./SuperFluid/ContentTitle.js/index.js");
347
+
348
+ var _index3 = require("./SuperFluid/SegmentCard/index");
349
+
272
350
  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
351
 
274
352
  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; }
@@ -15,8 +15,6 @@ var _ = require(".");
15
15
 
16
16
  var _colors = require("./colors");
17
17
 
18
- var _iconStyles = require("./iconStyles");
19
-
20
18
  var _excluded = ["id", "iconSize", "label", "state"];
21
19
 
22
20
  var _templateObject, _templateObject2, _templateObject3;
@@ -68,7 +66,7 @@ var BmInputField = _styledComponents.default.input(_templateObject2 || (_templat
68
66
 
69
67
  exports.BmInputField = BmInputField;
70
68
 
71
- var BmInputWrapper = _styledComponents.default.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: center;\n align-items: center;\n height: 2.929rem;\n border-radius: 0.21875rem;\n padding: 0rem;\n background: ", ";\n\n border: ", ";\n &:visited,\n &:active,\n &:hover,\n &:focus {\n border: 0.071rem solid ", ";\n }\n"])), function (_ref4) {
69
+ var BmInputWrapper = _styledComponents.default.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: center;\n align-items: center;\n height: 2.929rem;\n border-radius: 0.25rem;\n padding: 0rem;\n background: ", ";\n\n border: ", ";\n &:visited,\n &:active,\n &:hover,\n &:focus {\n border: 0.071rem solid ", ";\n }\n"])), function (_ref4) {
72
70
  var state = _ref4.state;
73
71
 
74
72
  if (state) {
@@ -33,7 +33,7 @@ var BmSearchField = _styledComponents.default.input(_templateObject || (_templat
33
33
  return props.dropdown === "yes" && "margin-right: 1.714rem;";
34
34
  });
35
35
 
36
- var BmSearchWrapper = _styledComponents.default.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: row;\n align-items: center;\n background: ", ";\n border: 0.071rem solid ", ";\n box-sizing: border-box;\n border-radius: 0.21875rem;\n ", "\n padding: ", ";\n"])), _colors.BmPrimaryWhite, _colors.BmGrey400, ""
36
+ var BmSearchWrapper = _styledComponents.default.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: row;\n align-items: center;\n background: ", ";\n border: 0.071rem solid ", ";\n box-sizing: border-box;\n border-radius: 0.25rem;\n ", "\n padding: ", ";\n"])), _colors.BmPrimaryWhite, _colors.BmGrey400, ""
37
37
  /* height: 2.929rem; */
38
38
  , function (_ref) {
39
39
  var dropdown = _ref.dropdown;
@@ -9,9 +9,9 @@ var _react = _interopRequireDefault(require("react"));
9
9
 
10
10
  var _styledComponents = _interopRequireDefault(require("styled-components"));
11
11
 
12
- var _colors = require("./colors");
12
+ var _colors = require("../components/colors");
13
13
 
14
- var _iconStyles = require("./iconStyles");
14
+ var _iconStyles = require("../components/iconStyles");
15
15
 
16
16
  var _excluded = ["variant", "size", "disabled", "children", "leadingIcon", "trailingIcon"];
17
17
 
@@ -27,7 +27,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
27
27
 
28
28
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
29
29
 
30
- var BeemTag = _styledComponents.default.button(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n border-radius: 0.21875rem;\n height: ", ";\n padding: ", ";\n background: ", ";\n border: 0.071rem solid\n ", ";\n border-radius: 0.21875rem;\n"])), function (_ref) {
30
+ var BeemTag = _styledComponents.default.button(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n border-radius: 0.25rem;\n height: ", ";\n padding: ", ";\n background: ", ";\n border: 0.071rem solid\n ", ";\n border-radius: 0.25rem;\n"])), function (_ref) {
31
31
  var size = _ref.size;
32
32
  if (size === "small") return "1.286rem";
33
33
  if (size === "default") return "1.714rem";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "beem-component",
3
- "version": "1.0.8",
3
+ "version": "1.1.2",
4
4
  "private": false,
5
5
  "main": "dist/components/index.js",
6
6
  "scripts": {