beem-component 1.1.0 → 1.1.4
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/assets/css/sidebar.css +20 -0
- package/dist/components/Buttons/buttonIconsOnly.js +1 -1
- package/dist/components/Buttons/buttons.js +1 -1
- package/dist/components/Cards/cards.js +1 -1
- package/dist/components/ChatBody/chatBody.js +6 -2
- package/dist/components/ChatHeader/chatHeader.js +1 -1
- package/dist/components/Chats/chat.js +2 -2
- package/dist/components/Chats/chatInput.js +1 -1
- package/dist/components/Lists/listBox.js +1 -1
- package/dist/components/Tags/tags.js +116 -0
- package/dist/components/Tags/tags.stories.js +62 -0
- package/dist/components/dropdown.js +1 -1
- package/dist/components/dropdownItems.js +1 -1
- package/dist/components/index.js +79 -1
- package/dist/components/input.js +1 -3
- package/dist/components/search.js +1 -1
- package/dist/components/tags.js +3 -3
- package/package.json +1 -1
- package/src/App.js +4 -1
- package/src/Chat.js +27 -20
- package/src/ChatHeader.js +13 -7
- package/src/SideBar.js +7 -4
- package/src/lib/assets/css/sidebar.css +20 -0
- package/src/lib/components/Buttons/buttonIconsOnly.js +1 -1
- package/src/lib/components/Buttons/buttons.js +1 -1
- package/src/lib/components/Cards/cards.js +1 -1
- package/src/lib/components/ChatBody/chatBody.js +7 -8
- package/src/lib/components/ChatHeader/chatHeader.js +1 -4
- package/src/lib/components/Chats/chat.js +2 -2
- package/src/lib/components/Chats/chatInput.js +1 -1
- package/src/lib/components/Lists/listBox.js +1 -1
- package/src/lib/components/Tags/tags.js +109 -0
- package/src/lib/components/Tags/tags.stories.js +37 -0
- package/src/lib/components/dropdown.js +1 -1
- package/src/lib/components/dropdownItems.js +1 -1
- package/src/lib/components/index.js +34 -2
- package/src/lib/components/input.js +1 -2
- package/src/lib/components/search.js +1 -1
- package/src/lib/components/tags.js +4 -4
- package/storybook-static/main.3c8d8027.iframe.bundle.js +1 -1
|
@@ -77,4 +77,24 @@
|
|
|
77
77
|
overflow: auto;
|
|
78
78
|
width: 25%;
|
|
79
79
|
border: 1px solid #E2E2E2;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.chat-header-buttons {
|
|
83
|
+
display: flex;
|
|
84
|
+
flex-direction: row;
|
|
85
|
+
margin-left: auto;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.chat-header-buttons>*:not(:last-child) {
|
|
89
|
+
margin-right: 0.5rem;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.chat-footer {
|
|
93
|
+
display: flex;
|
|
94
|
+
flex-direction: row;
|
|
95
|
+
align-items: center;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.chat-footer>*:not(:last-child) {
|
|
99
|
+
margin-right: 0.5rem;
|
|
80
100
|
}
|
|
@@ -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.
|
|
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.
|
|
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.
|
|
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"])));
|
|
@@ -133,8 +133,12 @@ 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:
|
|
137
|
-
/*
|
|
136
|
+
BmChat.Footer = _styledComponents.default.div(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n ", "\n padding: 0.5rem 0.5rem;\n ", "\n ", "\n > *:not(:last-child) {\n margin-bottom: 0.5rem;\n }\n"])), ''
|
|
137
|
+
/* border-top: 0.071rem solid ${BmGrey200}; */
|
|
138
|
+
, ''
|
|
139
|
+
/* align-items: center; */
|
|
140
|
+
, ''
|
|
141
|
+
/* justify-content: center; */
|
|
138
142
|
);
|
|
139
143
|
var _default = BmChat;
|
|
140
144
|
exports.default = _default;
|
|
@@ -14,7 +14,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
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
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
|
|
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"])), ""
|
|
18
18
|
/* border: 0.071rem solid ${BmGrey400}; */
|
|
19
19
|
);
|
|
20
20
|
|
|
@@ -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.
|
|
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.
|
|
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.
|
|
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;
|
|
@@ -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.
|
|
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.
|
|
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.
|
|
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;
|
package/dist/components/index.js
CHANGED
|
@@ -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("
|
|
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; }
|
package/dist/components/input.js
CHANGED
|
@@ -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.
|
|
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.
|
|
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;
|
package/dist/components/tags.js
CHANGED
|
@@ -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("
|
|
12
|
+
var _colors = require("../components/colors");
|
|
13
13
|
|
|
14
|
-
var _iconStyles = require("
|
|
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.
|
|
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
package/src/App.js
CHANGED
|
@@ -7,13 +7,16 @@ import SideBar from "./SideBar";
|
|
|
7
7
|
import ChatHeader from "./ChatHeader";
|
|
8
8
|
import Chat from "./Chat";
|
|
9
9
|
import CustomerInfo from "./CustomerInfo";
|
|
10
|
+
import { BmTag } from "./lib/components/Tags/tags";
|
|
11
|
+
import { Home } from "@material-ui/icons";
|
|
10
12
|
|
|
11
13
|
export const App = () => {
|
|
12
|
-
|
|
13
14
|
return (
|
|
14
15
|
<>
|
|
15
16
|
<GlobalStyle />
|
|
16
17
|
<MainWrapper>
|
|
18
|
+
<BmTag leadingIcon={<Home/>} trailingIcon={<Home/>}><p>Hello</p></BmTag>
|
|
19
|
+
|
|
17
20
|
<div className="main-chat-container">
|
|
18
21
|
<div className="sidebar">
|
|
19
22
|
<SideBar />
|
package/src/Chat.js
CHANGED
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { AttachFile } from
|
|
3
|
-
import EmojiEmotionsIcon from
|
|
4
|
-
import QuickreplyIcon from
|
|
5
|
-
import SendIcon from
|
|
6
|
-
import { BmChat, BmIcons, BmInput } from
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { AttachFile } from "@material-ui/icons";
|
|
3
|
+
import EmojiEmotionsIcon from "@material-ui/icons/EmojiEmotions";
|
|
4
|
+
import QuickreplyIcon from "@mui/icons-material/Quickreply";
|
|
5
|
+
import SendIcon from "@mui/icons-material/Send";
|
|
6
|
+
import { BmChat, BmIcons, BmInput } from "./lib/components";
|
|
7
|
+
import "../src/lib/assets/css/sidebar.css";
|
|
8
|
+
import { BmMessage, BmMessageTabInput } from "./lib/components/Chats/chatInput";
|
|
7
9
|
|
|
8
10
|
const Chat = () => {
|
|
9
11
|
return (
|
|
10
12
|
<BmChat>
|
|
11
|
-
<BmChat.Body
|
|
13
|
+
<BmChat.Body>
|
|
12
14
|
<BmChat.Details
|
|
13
15
|
state="inbound"
|
|
14
16
|
session="bot"
|
|
@@ -48,7 +50,7 @@ const Chat = () => {
|
|
|
48
50
|
status="failed"
|
|
49
51
|
>
|
|
50
52
|
<p>Outbound</p>
|
|
51
|
-
</BmChat.Details>{
|
|
53
|
+
</BmChat.Details>{" "}
|
|
52
54
|
<BmChat.Details
|
|
53
55
|
state="outbound"
|
|
54
56
|
session="live"
|
|
@@ -56,7 +58,7 @@ const Chat = () => {
|
|
|
56
58
|
status="failed"
|
|
57
59
|
>
|
|
58
60
|
<p>Outbound</p>
|
|
59
|
-
</BmChat.Details>{
|
|
61
|
+
</BmChat.Details>{" "}
|
|
60
62
|
<BmChat.Details
|
|
61
63
|
state="outbound"
|
|
62
64
|
session="live"
|
|
@@ -64,7 +66,7 @@ const Chat = () => {
|
|
|
64
66
|
status="failed"
|
|
65
67
|
>
|
|
66
68
|
<p>Outbound</p>
|
|
67
|
-
</BmChat.Details>{
|
|
69
|
+
</BmChat.Details>{" "}
|
|
68
70
|
<BmChat.Details
|
|
69
71
|
state="outbound"
|
|
70
72
|
session="live"
|
|
@@ -72,7 +74,7 @@ const Chat = () => {
|
|
|
72
74
|
status="failed"
|
|
73
75
|
>
|
|
74
76
|
<p>Outbound</p>
|
|
75
|
-
</BmChat.Details>{
|
|
77
|
+
</BmChat.Details>{" "}
|
|
76
78
|
<BmChat.Details
|
|
77
79
|
state="outbound"
|
|
78
80
|
session="live"
|
|
@@ -80,7 +82,7 @@ const Chat = () => {
|
|
|
80
82
|
status="failed"
|
|
81
83
|
>
|
|
82
84
|
<p>Outbound</p>
|
|
83
|
-
</BmChat.Details>{
|
|
85
|
+
</BmChat.Details>{" "}
|
|
84
86
|
<BmChat.Details
|
|
85
87
|
state="outbound"
|
|
86
88
|
session="live"
|
|
@@ -88,7 +90,7 @@ const Chat = () => {
|
|
|
88
90
|
status="failed"
|
|
89
91
|
>
|
|
90
92
|
<p>Outbound</p>
|
|
91
|
-
</BmChat.Details>{
|
|
93
|
+
</BmChat.Details>{" "}
|
|
92
94
|
<BmChat.Details
|
|
93
95
|
state="outbound"
|
|
94
96
|
session="live"
|
|
@@ -96,7 +98,7 @@ const Chat = () => {
|
|
|
96
98
|
status="failed"
|
|
97
99
|
>
|
|
98
100
|
<p>Outbound</p>
|
|
99
|
-
</BmChat.Details>{
|
|
101
|
+
</BmChat.Details>{" "}
|
|
100
102
|
<BmChat.Details
|
|
101
103
|
state="outbound"
|
|
102
104
|
session="live"
|
|
@@ -106,12 +108,17 @@ const Chat = () => {
|
|
|
106
108
|
<p>Outbound</p>
|
|
107
109
|
</BmChat.Details>
|
|
108
110
|
</BmChat.Body>
|
|
109
|
-
<BmChat.Footer>
|
|
110
|
-
<
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
<
|
|
114
|
-
|
|
111
|
+
<BmChat.Footer style={{ justifyContent: "flex-start" }}>
|
|
112
|
+
<div class="chat-footer">
|
|
113
|
+
<BmIcons icon={<EmojiEmotionsIcon />} size="xlarge" />
|
|
114
|
+
</div>
|
|
115
|
+
<div class="chat-footer">
|
|
116
|
+
<BmIcons icon={<EmojiEmotionsIcon />} size="xlarge" />
|
|
117
|
+
<BmIcons icon={<AttachFile />} size="xlarge" />
|
|
118
|
+
<BmIcons icon={<QuickreplyIcon />} size="xlarge" />
|
|
119
|
+
<BmInput placeholder="Enter Message" style={{ flex: 1 }} />
|
|
120
|
+
<BmIcons icon={<SendIcon />} size="xlarge" />
|
|
121
|
+
</div>
|
|
115
122
|
</BmChat.Footer>
|
|
116
123
|
</BmChat>
|
|
117
124
|
);
|