beem-component 1.8.2 → 1.8.3
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/.babelrc +17 -0
- package/.eslintrc +16 -27
- package/.prettierrc +3 -2
- package/dist/components/Accordion/Accordion.js +14 -8
- package/dist/components/Avatars/avatars.js +3 -3
- package/dist/components/BannerCard/bannerCards.js +8 -6
- package/dist/components/ButtonGroup/buttonGroup.js +37 -0
- package/dist/components/Buttons/buttonAlertIcons.js +3 -3
- package/dist/components/Buttons/buttonDropdown copy.js +51 -50
- package/dist/components/Buttons/buttonDropdown.js +2 -2
- package/dist/components/Buttons/buttonIconsOnly.js +6 -4
- package/dist/components/Buttons/buttons.js +12 -6
- package/dist/components/Cards/cards.js +12 -6
- package/dist/components/ChatComponents/ChatBody/FeedPostComments.js +15 -7
- package/dist/components/ChatComponents/ChatBody/chatBody.js +33 -13
- package/dist/components/ChatComponents/ChatBody/sessionDetails.js +3 -3
- package/dist/components/ChatComponents/ChatBody/sessionTimeline.js +6 -4
- package/dist/components/ChatComponents/ChatHeader/chatHeader.js +3 -3
- package/dist/components/ChatComponents/ColorPicker/colorPicker.js +3 -3
- package/dist/components/ChatComponents/ContactCards/contactCards.js +14 -8
- package/dist/components/ChatComponents/FormAccordion/FormAccordion.js +12 -6
- package/dist/components/ChatComponents/InfoTab/infoTab.js +9 -5
- package/dist/components/ChatComponents/LabelAccordion/LabelAccordion.js +3 -3
- package/dist/components/ChatComponents/NoteAccordion/NoteAccordion.js +9 -5
- package/dist/components/Chats/chat.js +47 -29
- package/dist/components/Chats/chatInput.js +16 -8
- package/dist/components/Chats/chatwrapper.js +18 -8
- package/dist/components/Checkbox/checkboxToggler.js +12 -6
- package/dist/components/Checkbox/checkboxToggler.stories.js +2 -2
- package/dist/components/InputDatePicker.js +53 -0
- package/dist/components/Jumbotron/Jumbotron.js +18 -7
- package/dist/components/Lists/listBox.js +3 -3
- package/dist/components/Lists/listBox.stories.js +2 -2
- package/dist/components/Lists/listheader.js +3 -3
- package/dist/components/Lists/rowLabels.js +12 -6
- package/dist/components/Lists/rowLabels.stories.js +4 -1
- package/dist/components/Loader/loader.js +3 -3
- package/dist/components/MainWrapper/index.js +3 -3
- package/dist/components/MessageCounter/messageCounter.js +3 -3
- package/dist/components/Modals/modal.js +33 -21
- package/dist/components/Modals/modals.stories.js +2 -2
- package/dist/components/NoteBar/noteBar.js +5 -5
- package/dist/components/PaymentBox/paymentBox.js +12 -6
- package/dist/components/PerformanceIndicator/performanceIndicator.js +3 -3
- package/dist/components/Pills/pills.js +5 -5
- package/dist/components/ProfileIcon/ProfileIcon.js +12 -6
- package/dist/components/ProgressBar/progressbar.js +12 -6
- package/dist/components/ProgressRing/progressRing.js +14 -8
- package/dist/components/RouteLink/link.js +3 -3
- package/dist/components/ScrollBar/scrollBar.js +9 -5
- package/dist/components/SuperFluid/Content/index.js +3 -3
- package/dist/components/SuperFluid/ContentTitle.js/index.js +12 -6
- package/dist/components/SuperFluid/SegmentCard/index.js +20 -8
- package/dist/components/Tabs/tabs.js +3 -3
- package/dist/components/Tags/tags.js +5 -5
- package/dist/components/chatHeader.js +15 -7
- package/dist/components/checkbox.js +15 -7
- package/dist/components/contacts.js +33 -13
- package/dist/components/dropdown.js +25 -13
- package/dist/components/dropdownButton.js +9 -5
- package/dist/components/dropdownItems.js +22 -10
- package/dist/components/examples/App.js +8 -8
- package/dist/components/examples/chatBodyExample.js +1 -1
- package/dist/components/examples/selectExample.js +5 -5
- package/dist/components/globalStyles.js +1 -3
- package/dist/components/index.js +7 -0
- package/dist/components/input.js +9 -5
- package/dist/components/logo.js +3 -3
- package/dist/components/navbar.js +23 -9
- package/dist/components/search.js +17 -12
- package/dist/components/shadow.js +1 -1
- package/dist/components/wrapper.js +6 -4
- package/package.json +31 -16
- package/src/App.js +35 -265
- package/src/examples/AlertIcons.js +10 -5
- package/src/examples/Avatars.js +3 -2
- package/src/examples/Buttons.js +7 -10
- package/src/examples/Chat.js +9 -9
- package/src/examples/Input.js +79 -70
- package/src/examples/Logo.js +2 -2
- package/src/examples/Navbar.js +12 -12
- package/src/examples/Search.js +3 -2
- package/src/examples/SideBar.js +11 -11
- package/src/examples/Tags.js +3 -3
- package/src/lib/components/ButtonGroup/buttonGroup.js +38 -0
- package/src/lib/components/Buttons/buttonDropdown copy.js +51 -54
- package/src/lib/components/Buttons/buttonDropdown.js +6 -6
- package/src/lib/components/Chats/chat.js +23 -23
- package/src/lib/components/Chats/chatInput.js +8 -8
- package/src/lib/components/Chats/chatwrapper.js +2 -2
- package/src/lib/components/Checkbox/checkboxToggler.stories.js +0 -1
- package/src/lib/components/InputDatePicker.js +45 -0
- package/src/lib/components/chatHeader.js +8 -3
- package/src/lib/components/contacts.js +3 -3
- package/src/lib/components/dropdown.js +7 -7
- package/src/lib/components/dropdownItems.js +6 -6
- package/src/lib/components/examples/App.js +53 -43
- package/src/lib/components/examples/InfoAccordion.js +6 -5
- package/src/lib/components/examples/chatBodyExample.js +5 -5
- package/src/lib/components/examples/selectExample.js +7 -7
- package/src/lib/components/index-copy.js +49 -49
- package/src/lib/components/index.js +2 -0
- package/src/lib/components/logo.js +2 -2
- package/src/lib/components/navbar.js +5 -5
- package/src/lib/components/search.js +10 -11
- package/src/lib/components/shadow.js +1 -1
- package/src/lib/components/wrapper.js +1 -2
- package/babel.config.js +0 -11
|
@@ -14,7 +14,6 @@ var _colors = require("../colors");
|
|
|
14
14
|
var _iconStyles = require("../iconStyles");
|
|
15
15
|
var _text = require("../text");
|
|
16
16
|
var _excluded = ["type", "icon", "avatarIcon", "size", "avatarSize", "color", "label", "onDelete", "deleteIcon"];
|
|
17
|
-
var _templateObject;
|
|
18
17
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
18
|
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); }
|
|
20
19
|
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; }
|
|
@@ -22,13 +21,14 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
|
|
|
22
21
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
23
22
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
24
23
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
25
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
26
|
-
function _iterableToArrayLimit(arr, i) { var _i =
|
|
24
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
25
|
+
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
27
26
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
28
27
|
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; }
|
|
29
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; }
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
var BmPillWrapper = _styledComponents.default.div.withConfig({
|
|
30
|
+
displayName: "pills__BmPillWrapper"
|
|
31
|
+
})(["display:", ";flex-direction:row;justify-content:center;align-items:center;padding:0.214rem 0.571rem;background:", ";border-radius:0.25rem;", " > *{margin-right:0.25rem;}"], function (_ref) {
|
|
32
32
|
var clicked = _ref.clicked;
|
|
33
33
|
if (clicked) {
|
|
34
34
|
return 'flex';
|
|
@@ -12,12 +12,10 @@ var _fb = _interopRequireDefault(require("../../assets/fb.png"));
|
|
|
12
12
|
var _insta = _interopRequireDefault(require("../../assets/insta.png"));
|
|
13
13
|
var _Google_Messages_logo = _interopRequireDefault(require("../../assets/Google_Messages_logo.png"));
|
|
14
14
|
var _excluded = ["img", "content", "channel", "size"];
|
|
15
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
16
15
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
16
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : 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); }
|
|
18
17
|
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; }
|
|
19
18
|
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; }
|
|
20
|
-
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
21
19
|
var handleSize = function handleSize(size) {
|
|
22
20
|
if (size) {
|
|
23
21
|
if (size === 'large') return '3.429rem';
|
|
@@ -36,18 +34,26 @@ var position = function position(size) {
|
|
|
36
34
|
}
|
|
37
35
|
return '2.286rem';
|
|
38
36
|
};
|
|
39
|
-
var ProfileImg = _styledComponents.default.img(
|
|
37
|
+
var ProfileImg = _styledComponents.default.img.withConfig({
|
|
38
|
+
displayName: "ProfileIcon__ProfileImg"
|
|
39
|
+
})(["height:", ";width:", ";object-fit:contain;border-radius:50%;display:flex;"], function (props) {
|
|
40
40
|
return handleSize(props.size);
|
|
41
41
|
}, function (props) {
|
|
42
42
|
return handleSize(props.size);
|
|
43
43
|
});
|
|
44
|
-
var Profile = _styledComponents.default.div(
|
|
44
|
+
var Profile = _styledComponents.default.div.withConfig({
|
|
45
|
+
displayName: "ProfileIcon__Profile"
|
|
46
|
+
})(["height:", ";width:", ";border-radius:50%;border:1px solid ", ";display:flex;align-items:center;justify-content:center;position:relative;background:", ";"], function (props) {
|
|
45
47
|
return handleSize(props.size);
|
|
46
48
|
}, function (props) {
|
|
47
49
|
return handleSize(props.size);
|
|
48
50
|
}, _colors.BmBgLightBlue, _colors.BmSecondaryBlue12);
|
|
49
|
-
var Content = _styledComponents.default.div(
|
|
50
|
-
|
|
51
|
+
var Content = _styledComponents.default.div.withConfig({
|
|
52
|
+
displayName: "ProfileIcon__Content"
|
|
53
|
+
})(["display:flex;align-items:center;justify-content:center;position:absolute;"]);
|
|
54
|
+
var Dot = _styledComponents.default.img.withConfig({
|
|
55
|
+
displayName: "ProfileIcon__Dot"
|
|
56
|
+
})(["position:absolute;left:", ";bottom:0rem;object-fit:contain;height:1rem;width:1rem;"], function (props) {
|
|
51
57
|
return position(props.size);
|
|
52
58
|
});
|
|
53
59
|
var BmProfileIcon = function BmProfileIcon(_ref) {
|
|
@@ -8,13 +8,19 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
8
8
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
9
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
10
10
|
var _colors = require("../colors");
|
|
11
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
12
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
var
|
|
17
|
-
|
|
12
|
+
var Container = _styledComponents.default.div.withConfig({
|
|
13
|
+
displayName: "progressbar__Container"
|
|
14
|
+
})(["height:0.75rem;width:100%;position:relative;"]);
|
|
15
|
+
var BaseBox = _styledComponents.default.div.withConfig({
|
|
16
|
+
displayName: "progressbar__BaseBox"
|
|
17
|
+
})(["height:100%;position:absolute;border-radius:0.25rem;transition:width 1s ease-in-out;"]);
|
|
18
|
+
var Background = (0, _styledComponents.default)(BaseBox).withConfig({
|
|
19
|
+
displayName: "progressbar__Background"
|
|
20
|
+
})(["background:", ";width:100%;"], _colors.BmGrey100);
|
|
21
|
+
var Progress = (0, _styledComponents.default)(BaseBox).withConfig({
|
|
22
|
+
displayName: "progressbar__Progress"
|
|
23
|
+
})(["background:", ";width:", "%;"], function (props) {
|
|
18
24
|
return props.color ? props.color : "".concat(_colors.BmPrimaryBlue, " ");
|
|
19
25
|
}, function (_ref) {
|
|
20
26
|
var value = _ref.value;
|
|
@@ -9,17 +9,15 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
9
9
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
10
10
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
11
11
|
var _colors = require("../colors");
|
|
12
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
13
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
14
13
|
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); }
|
|
15
14
|
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; }
|
|
16
15
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
17
16
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
18
17
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
19
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
20
|
-
function _iterableToArrayLimit(arr, i) { var _i =
|
|
18
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
19
|
+
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
21
20
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
22
|
-
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
23
21
|
var small = 1.429;
|
|
24
22
|
var medium = 1.714;
|
|
25
23
|
var large = 2.286;
|
|
@@ -49,7 +47,9 @@ var measurement = function measurement(size) {
|
|
|
49
47
|
initialSize: initialSize
|
|
50
48
|
};
|
|
51
49
|
};
|
|
52
|
-
var ProgressRingWrapper = _styledComponents.default.svg(
|
|
50
|
+
var ProgressRingWrapper = _styledComponents.default.svg.withConfig({
|
|
51
|
+
displayName: "progressRing__ProgressRingWrapper"
|
|
52
|
+
})(["display:flex;width:", ";height:", ";"], function (_ref) {
|
|
53
53
|
var size = _ref.size;
|
|
54
54
|
if (size === 'small') return '1.429rem';
|
|
55
55
|
if (size === 'medium') return '1.714rem';
|
|
@@ -64,8 +64,12 @@ var ProgressRingWrapper = _styledComponents.default.svg(_templateObject || (_tem
|
|
|
64
64
|
if (!size) return '2.286rem';
|
|
65
65
|
return "".concat(size, "px");
|
|
66
66
|
});
|
|
67
|
-
var ProgressRingCircle1 = _styledComponents.default.circle(
|
|
68
|
-
|
|
67
|
+
var ProgressRingCircle1 = _styledComponents.default.circle.withConfig({
|
|
68
|
+
displayName: "progressRing__ProgressRingCircle1"
|
|
69
|
+
})(["fill:none;"]);
|
|
70
|
+
var ProgressRingCircle2 = _styledComponents.default.circle.withConfig({
|
|
71
|
+
displayName: "progressRing__ProgressRingCircle2"
|
|
72
|
+
})(["fill:none;stroke:", ";"], function (_ref3) {
|
|
69
73
|
var variant = _ref3.variant,
|
|
70
74
|
progress = _ref3.progress;
|
|
71
75
|
if (progress) {
|
|
@@ -77,7 +81,9 @@ var ProgressRingCircle2 = _styledComponents.default.circle(_templateObject3 || (
|
|
|
77
81
|
}
|
|
78
82
|
if (!progress) return "".concat(_colors.BmGrey100);
|
|
79
83
|
});
|
|
80
|
-
var Text = _styledComponents.default.text(
|
|
84
|
+
var Text = _styledComponents.default.text.withConfig({
|
|
85
|
+
displayName: "progressRing__Text"
|
|
86
|
+
})(["font-size:", ";text-anchor:middle;fill:black;"], function () {
|
|
81
87
|
if (initialSize >= 50 && initialSize < 100) {
|
|
82
88
|
return '1rem';
|
|
83
89
|
}
|
|
@@ -9,11 +9,11 @@ var _reactRouterDom = require("react-router-dom");
|
|
|
9
9
|
var _polished = require("polished");
|
|
10
10
|
var _colors = require("../colors");
|
|
11
11
|
var _text = require("../text");
|
|
12
|
-
var _templateObject;
|
|
13
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
14
|
-
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
15
13
|
// TODO: To be fixed for hover states
|
|
16
|
-
var BmRouteLink = (0, _styledComponents.default)(_reactRouterDom.Link)
|
|
14
|
+
var BmRouteLink = (0, _styledComponents.default)(_reactRouterDom.Link).withConfig({
|
|
15
|
+
displayName: "link__BmRouteLink"
|
|
16
|
+
})(["", " color:", " !important;text-decoration:none;&:hover,&:focus,&:active{font-weight:600;&:before{font-weight:normal;}color:", " !important;}"], _text.p, function (props) {
|
|
17
17
|
return props.color ? props.color : "".concat(_colors.BmPrimaryBlue, " ");
|
|
18
18
|
}, function (props) {
|
|
19
19
|
return (0, _polished.darken)(0.1, props.color ? props.color : "".concat(_colors.BmPrimaryBlue));
|
|
@@ -5,10 +5,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = exports.ScrollbarWrapper = exports.Scrollbar = exports.Content = void 0;
|
|
7
7
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
8
|
-
var _templateObject;
|
|
9
8
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
var ScrollbarWrapper = _styledComponents.default.div.withConfig({
|
|
10
|
+
displayName: "scrollBar__ScrollbarWrapper"
|
|
11
|
+
})(function () {
|
|
12
12
|
return {
|
|
13
13
|
'::-webkit-scrollbar-thumb': {
|
|
14
14
|
background: 'blue',
|
|
@@ -21,9 +21,13 @@ var ScrollbarWrapper = _styledComponents.default.div(function () {
|
|
|
21
21
|
};
|
|
22
22
|
});
|
|
23
23
|
exports.ScrollbarWrapper = ScrollbarWrapper;
|
|
24
|
-
var Scrollbar = _styledComponents.default.div(
|
|
24
|
+
var Scrollbar = _styledComponents.default.div.withConfig({
|
|
25
|
+
displayName: "scrollBar__Scrollbar"
|
|
26
|
+
})(["::-webkit-scrollbar{width:0.714rem !important;}::-webkit-scrollbar-thumb{background-color:#e2e2e2;}"]);
|
|
25
27
|
exports.Scrollbar = Scrollbar;
|
|
26
|
-
var Content = _styledComponents.default.div(
|
|
28
|
+
var Content = _styledComponents.default.div.withConfig({
|
|
29
|
+
displayName: "scrollBar__Content"
|
|
30
|
+
})(function () {
|
|
27
31
|
return {
|
|
28
32
|
direction: 'ltr' // if you want to show the scroll bar on the left
|
|
29
33
|
};
|
|
@@ -6,8 +6,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.BmContent = void 0;
|
|
7
7
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
8
8
|
var _colors = require("../../colors");
|
|
9
|
-
var _templateObject;
|
|
10
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
var BmContent = _styledComponents.default.div.withConfig({
|
|
11
|
+
displayName: "Content__BmContent"
|
|
12
|
+
})(["display:flex;flex-direction:column;align-items:flex-start;padding:1.5rem;background:", ";border:0.071rem solid ", ";border-radius:0.25rem;"], _colors.BmPrimaryWhite, _colors.BmGrey400);
|
|
13
13
|
exports.BmContent = BmContent;
|
|
@@ -6,14 +6,20 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.BmFooterRight = exports.BmFooterLeft = exports.BmContentTitle = exports.BmContentFooter = void 0;
|
|
7
7
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
8
8
|
var _colors = require("../../colors");
|
|
9
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
10
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
var BmContentTitle = _styledComponents.default.h1.withConfig({
|
|
11
|
+
displayName: "ContentTitlejs__BmContentTitle"
|
|
12
|
+
})(["color:", ";margin:0.75rem 0rem;"], _colors.BmPrimaryBlack);
|
|
13
13
|
exports.BmContentTitle = BmContentTitle;
|
|
14
|
-
var BmContentFooter = _styledComponents.default.div(
|
|
14
|
+
var BmContentFooter = _styledComponents.default.div.withConfig({
|
|
15
|
+
displayName: "ContentTitlejs__BmContentFooter"
|
|
16
|
+
})(["display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:0rem;margin:1rem 0rem 0rem;width:100%;"]);
|
|
15
17
|
exports.BmContentFooter = BmContentFooter;
|
|
16
|
-
var BmFooterLeft = _styledComponents.default.div(
|
|
18
|
+
var BmFooterLeft = _styledComponents.default.div.withConfig({
|
|
19
|
+
displayName: "ContentTitlejs__BmFooterLeft"
|
|
20
|
+
})(["display:flex;flex-direction:flex-start;justify-content:space-between;align-items:center;padding:0rem;margin:0rem;div{margin:0rem 0.5rem;}"]);
|
|
17
21
|
exports.BmFooterLeft = BmFooterLeft;
|
|
18
|
-
var BmFooterRight = _styledComponents.default.div(
|
|
22
|
+
var BmFooterRight = _styledComponents.default.div.withConfig({
|
|
23
|
+
displayName: "ContentTitlejs__BmFooterRight"
|
|
24
|
+
})(["display:flex;flex-direction:flex-end;justify-content:space-between;align-items:center;padding:0rem;margin-left:auto;div{margin:0rem 0.5rem;}"]);
|
|
19
25
|
exports.BmFooterRight = BmFooterRight;
|
|
@@ -10,22 +10,32 @@ var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
|
10
10
|
var _checkbox = require("../../checkbox");
|
|
11
11
|
var _colors = require("../../colors");
|
|
12
12
|
var _iconStyles = require("../../iconStyles");
|
|
13
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6;
|
|
14
13
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
/* eslint-disable react/destructuring-assignment */
|
|
15
|
+
|
|
16
|
+
var BmSegmentCard = _styledComponents.default.div.withConfig({
|
|
17
|
+
displayName: "SegmentCard__BmSegmentCard"
|
|
18
|
+
})(["display:flex;flex-direction:column;justify-content:space-between;padding:0.5rem 0rem;background:", ";border:0.071rem solid ", ";border-radius:0.25rem 0rem 0rem 0.25rem;margin:0rem;width:20%;"], _colors.BmPrimaryWhite, _colors.BmGrey400);
|
|
17
19
|
exports.BmSegmentCard = BmSegmentCard;
|
|
18
|
-
var BmSegmentSelector = _styledComponents.default.div(
|
|
20
|
+
var BmSegmentSelector = _styledComponents.default.div.withConfig({
|
|
21
|
+
displayName: "SegmentCard__BmSegmentSelector"
|
|
22
|
+
})(["display:flex;flex-direction:column;align-items:flex-start;padding:1rem;background:", ";border:0.071rem solid ", ";border-left:none;border-radius:0rem 0.188rem 0.25rem 0rem;margin:0rem;width:80%;"], _colors.BmPrimaryWhite, _colors.BmGrey400);
|
|
19
23
|
exports.BmSegmentSelector = BmSegmentSelector;
|
|
20
|
-
var BmSegment = _styledComponents.default.div(
|
|
24
|
+
var BmSegment = _styledComponents.default.div.withConfig({
|
|
25
|
+
displayName: "SegmentCard__BmSegment"
|
|
26
|
+
})(["display:flex;flex-direction:row;justify-content:space-between;background:", ";border-radius:0rem 0.188rem 0.25rem 0rem;margin:0rem;width:100%;h2{margin:1rem 0rem;display:flex;flex-direction:column;}"], _colors.BmPrimaryWhite);
|
|
21
27
|
exports.BmSegment = BmSegment;
|
|
22
|
-
var BmSegmentCheckBoxMargin = _styledComponents.default.div(
|
|
28
|
+
var BmSegmentCheckBoxMargin = _styledComponents.default.div.withConfig({
|
|
29
|
+
displayName: "SegmentCard__BmSegmentCheckBoxMargin"
|
|
30
|
+
})(["margin:0.5rem 0rem;"]);
|
|
23
31
|
exports.BmSegmentCheckBoxMargin = BmSegmentCheckBoxMargin;
|
|
24
32
|
var BmSegmentCheckBox = function BmSegmentCheckBox(props) {
|
|
25
33
|
return /*#__PURE__*/_react.default.createElement(BmSegmentCheckBoxMargin, null, /*#__PURE__*/_react.default.createElement(_checkbox.BmCheckbox, props));
|
|
26
34
|
};
|
|
27
35
|
exports.BmSegmentCheckBox = BmSegmentCheckBox;
|
|
28
|
-
var BmSegmentCompleteContent = _styledComponents.default.div
|
|
36
|
+
var BmSegmentCompleteContent = _styledComponents.default.div.withConfig({
|
|
37
|
+
displayName: "SegmentCard__BmSegmentCompleteContent"
|
|
38
|
+
})(["display:flex;flex-direction:column;justify-content:space-between;align-items:center;width:100%;margin:1rem 0rem;padding:0rem;p{margin-top:0.25rem;}h1{margin-top:0.5rem;}h4{margin-top:1.25rem;color:", ";}"], function (props) {
|
|
29
39
|
return props.color ? props.color : "".concat(_colors.BmPrimaryBlue);
|
|
30
40
|
});
|
|
31
41
|
exports.BmSegmentCompleteContent = BmSegmentCompleteContent;
|
|
@@ -37,7 +47,9 @@ var BmSegmentCompleteIcon = function BmSegmentCompleteIcon(props) {
|
|
|
37
47
|
});
|
|
38
48
|
};
|
|
39
49
|
exports.BmSegmentCompleteIcon = BmSegmentCompleteIcon;
|
|
40
|
-
var BmSegmentCreateContent = _styledComponents.default.div
|
|
50
|
+
var BmSegmentCreateContent = _styledComponents.default.div.withConfig({
|
|
51
|
+
displayName: "SegmentCard__BmSegmentCreateContent"
|
|
52
|
+
})(["display:flex;flex-direction:column;justify-content:space-between;align-items:flex-start;width:100%;p{margin-top:0.25rem;}h1{margin-top:0.5rem;}h4{margin-top:1.25rem;color:", ";}"], function (props) {
|
|
41
53
|
return props.color ? props.color : "".concat(_colors.BmPrimaryBlue);
|
|
42
54
|
});
|
|
43
55
|
exports.BmSegmentCreateContent = BmSegmentCreateContent;
|
|
@@ -10,13 +10,13 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
10
10
|
var _colors = require("../colors");
|
|
11
11
|
var _iconStyles = require("../iconStyles");
|
|
12
12
|
var _excluded = ["leadingIcon", "trailingIcon", "children", "size", "color", "icon", "disabled"];
|
|
13
|
-
var _templateObject;
|
|
14
13
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
14
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : 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); }
|
|
16
15
|
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; }
|
|
17
16
|
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; }
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
var BmTabWrapper = _styledComponents.default.div.withConfig({
|
|
18
|
+
displayName: "tabs__BmTabWrapper"
|
|
19
|
+
})(["display:flex;flex-direction:row;justify-content:center;align-items:center;padding:1rem;background:", ";box-shadow:", ";> *:not(:last-child){margin-right:0.5rem;}", " &:hover{box-shadow:", ";}"], _colors.BmPrimaryWhite, function (_ref) {
|
|
20
20
|
var state = _ref.state,
|
|
21
21
|
disabled = _ref.disabled,
|
|
22
22
|
stateColor = _ref.stateColor;
|
|
@@ -12,7 +12,6 @@ var _icons = require("@material-ui/icons");
|
|
|
12
12
|
var _iconStyles = require("../iconStyles");
|
|
13
13
|
var _colors = require("../colors");
|
|
14
14
|
var _excluded = ["variant", "size", "disabled", "children", "leadingIcon", "trailingIcon", "color", "bgColor", "closeButton", "onHide"];
|
|
15
|
-
var _templateObject;
|
|
16
15
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
16
|
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); }
|
|
18
17
|
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; }
|
|
@@ -22,10 +21,9 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
22
21
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
23
22
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
24
23
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
25
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
26
|
-
function _iterableToArrayLimit(arr, i) { var _i =
|
|
24
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
25
|
+
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
27
26
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
28
|
-
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
29
27
|
var Color = function Color(_ref) {
|
|
30
28
|
var variant = _ref.variant,
|
|
31
29
|
color = _ref.color;
|
|
@@ -37,7 +35,9 @@ var Color = function Color(_ref) {
|
|
|
37
35
|
}
|
|
38
36
|
return "".concat(_colors.BmPrimaryBlack);
|
|
39
37
|
};
|
|
40
|
-
var BeemTag = _styledComponents.default.button
|
|
38
|
+
var BeemTag = _styledComponents.default.button.withConfig({
|
|
39
|
+
displayName: "tags__BeemTag"
|
|
40
|
+
})(["", " display:", ";flex-direction:row;justify-content:center;align-items:center;padding:0.25rem 0.5rem;border-radius:0.25rem;background:", ";border:0.071rem solid ", ";> *{color:", ";text-transform:uppercase;}> *:not(:last-child){margin-right:0.5rem;}"], '' /* display: flex; */, function (_ref2) {
|
|
41
41
|
var closeButton = _ref2.closeButton,
|
|
42
42
|
show = _ref2.show;
|
|
43
43
|
if (!closeButton) {
|
|
@@ -6,16 +6,24 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.BmChatHeaderWrapper = exports.BmChatHeaderTime = exports.BmChatHeaderText = exports.BmChatHeaderInfoIcon = exports.BmChatHeader = void 0;
|
|
7
7
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
8
8
|
var _colors = require("./colors");
|
|
9
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
|
|
10
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
var BmChatHeaderWrapper = _styledComponents.default.div.withConfig({
|
|
11
|
+
displayName: "chatHeader__BmChatHeaderWrapper"
|
|
12
|
+
})(["display:flex;flex-direction:row;justify-content:space-between;align-items:center;border-top:0.071rem solid ", ";border-right:0.071rem solid ", ";background:", ";padding:0rem 1.143rem;max-height:15%;height:15%;", ""], _colors.BmGrey400, _colors.BmGrey400, _colors.BmPrimaryWhite, '' /* border: 0.714rem solid blue; */);
|
|
13
13
|
exports.BmChatHeaderWrapper = BmChatHeaderWrapper;
|
|
14
|
-
var BmChatHeaderText = _styledComponents.default.h2(
|
|
14
|
+
var BmChatHeaderText = _styledComponents.default.h2.withConfig({
|
|
15
|
+
displayName: "chatHeader__BmChatHeaderText"
|
|
16
|
+
})(["color:", ";"], _colors.BmPrimaryBlack);
|
|
15
17
|
exports.BmChatHeaderText = BmChatHeaderText;
|
|
16
|
-
var BmChatHeaderTime = _styledComponents.default.h4(
|
|
18
|
+
var BmChatHeaderTime = _styledComponents.default.h4.withConfig({
|
|
19
|
+
displayName: "chatHeader__BmChatHeaderTime"
|
|
20
|
+
})(["color:", ";margin:0rem 0.571rem;"], _colors.BmSecondaryGrey);
|
|
17
21
|
exports.BmChatHeaderTime = BmChatHeaderTime;
|
|
18
|
-
var BmChatHeaderInfoIcon = _styledComponents.default.div(
|
|
22
|
+
var BmChatHeaderInfoIcon = _styledComponents.default.div.withConfig({
|
|
23
|
+
displayName: "chatHeader__BmChatHeaderInfoIcon"
|
|
24
|
+
})(["margin-left:0.571rem;"]);
|
|
19
25
|
exports.BmChatHeaderInfoIcon = BmChatHeaderInfoIcon;
|
|
20
|
-
var BmChatHeader = _styledComponents.default.div(
|
|
26
|
+
var BmChatHeader = _styledComponents.default.div.withConfig({
|
|
27
|
+
displayName: "chatHeader__BmChatHeader"
|
|
28
|
+
})(["display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:1.286rem 0rem;margin:0rem;"]);
|
|
21
29
|
exports.BmChatHeader = BmChatHeader;
|
|
@@ -8,17 +8,21 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
8
8
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
9
|
var _colors = require("./colors");
|
|
10
10
|
var _excluded = ["className", "checked", "label", "value", "disabled"];
|
|
11
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
|
|
12
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
12
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : 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); }
|
|
14
13
|
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; }
|
|
15
14
|
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; }
|
|
16
|
-
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
17
15
|
var HiddenCheckbox = _styledComponents.default.input.attrs({
|
|
18
16
|
type: 'checkbox'
|
|
19
|
-
})(
|
|
20
|
-
|
|
21
|
-
|
|
17
|
+
}).withConfig({
|
|
18
|
+
displayName: "checkbox__HiddenCheckbox"
|
|
19
|
+
})(["display:flex;border:0;height:0.071rem;margin:-0.071rem;overflow:hidden;padding:0;white-space:nowrap;width:0.071rem;display:none;"]);
|
|
20
|
+
var Icon = _styledComponents.default.svg.withConfig({
|
|
21
|
+
displayName: "checkbox__Icon"
|
|
22
|
+
})(["fill:none;stroke:white;stroke-width:0.143rem;"]);
|
|
23
|
+
var StyledCheckbox = _styledComponents.default.div.withConfig({
|
|
24
|
+
displayName: "checkbox__StyledCheckbox"
|
|
25
|
+
})(["display:flex;width:1.143rem;height:1.143rem;background:", ";border-radius:0.143rem;transition:all 150ms;border:0.071rem solid ", ";", "{visibility:", ";}"], function (_ref) {
|
|
22
26
|
var checked = _ref.checked,
|
|
23
27
|
disabled = _ref.disabled;
|
|
24
28
|
if (!disabled && checked) return "".concat(_colors.BmPrimaryBlue);
|
|
@@ -35,8 +39,12 @@ var StyledCheckbox = _styledComponents.default.div(_templateObject3 || (_templat
|
|
|
35
39
|
}, Icon, function (props) {
|
|
36
40
|
return props.checked ? 'visible' : 'hidden';
|
|
37
41
|
});
|
|
38
|
-
var CheckboxContainer = _styledComponents.default.div(
|
|
39
|
-
|
|
42
|
+
var CheckboxContainer = _styledComponents.default.div.withConfig({
|
|
43
|
+
displayName: "checkbox__CheckboxContainer"
|
|
44
|
+
})(["display:flex;"]);
|
|
45
|
+
var CheckboxLabel = _styledComponents.default.p.withConfig({
|
|
46
|
+
displayName: "checkbox__CheckboxLabel"
|
|
47
|
+
})(["color:", ";margin-left:0.5rem;"], _colors.BmPrimaryBlack);
|
|
40
48
|
var BmCheckbox = function BmCheckbox(_ref3) {
|
|
41
49
|
var className = _ref3.className,
|
|
42
50
|
checked = _ref3.checked,
|
|
@@ -9,28 +9,36 @@ var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
|
9
9
|
var _colors = require("./colors");
|
|
10
10
|
var _excluded = ["children"],
|
|
11
11
|
_excluded2 = ["children"];
|
|
12
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11;
|
|
13
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
14
13
|
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; }
|
|
15
14
|
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; }
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
var BmContactSideBar = _styledComponents.default.div.withConfig({
|
|
16
|
+
displayName: "contacts__BmContactSideBar"
|
|
17
|
+
})(["display:flex;flex-direction:column;margin:0rem;overflow:auto;"]);
|
|
18
18
|
// Main wrapper
|
|
19
19
|
exports.BmContactSideBar = BmContactSideBar;
|
|
20
|
-
var BmContact = _styledComponents.default.div
|
|
20
|
+
var BmContact = _styledComponents.default.div.withConfig({
|
|
21
|
+
displayName: "contacts__BmContact"
|
|
22
|
+
})(["display:flex;flex-direction:row;padding:1.143rem 0rem 1.143rem 1.714rem;&:hover{background:", ";}", ""], _colors.BmGrey100, function (_ref) {
|
|
21
23
|
var active = _ref.active;
|
|
22
24
|
return active && " \n background: ".concat(_colors.BmGrey100, ";\n ");
|
|
23
25
|
});
|
|
24
26
|
|
|
25
27
|
// Contact Item
|
|
26
28
|
exports.BmContact = BmContact;
|
|
27
|
-
var BmContactItem = _styledComponents.default.div(
|
|
29
|
+
var BmContactItem = _styledComponents.default.div.withConfig({
|
|
30
|
+
displayName: "contacts__BmContactItem"
|
|
31
|
+
})(["display:flex;flex-direction:column;padding-left:1.143rem;flex-grow:1;margin:0rem;"]);
|
|
28
32
|
|
|
29
33
|
// Contact Name
|
|
30
34
|
exports.BmContactItem = BmContactItem;
|
|
31
|
-
var BmContactText = _styledComponents.default.h3(
|
|
35
|
+
var BmContactText = _styledComponents.default.h3.withConfig({
|
|
36
|
+
displayName: "contacts__BmContactText"
|
|
37
|
+
})(["color:", ";cursor:pointer;"], _colors.BmPrimaryBlack);
|
|
32
38
|
exports.BmContactText = BmContactText;
|
|
33
|
-
var BmContactTextWrapper = _styledComponents.default.div(
|
|
39
|
+
var BmContactTextWrapper = _styledComponents.default.div.withConfig({
|
|
40
|
+
displayName: "contacts__BmContactTextWrapper"
|
|
41
|
+
})(["display:flex;flex-direction:row;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;overflow-wrap:break-word !important;word-wrap:break-word !important;max-width:85%;"]);
|
|
34
42
|
exports.BmContactTextWrapper = BmContactTextWrapper;
|
|
35
43
|
var BmContactName = function BmContactName(_ref2) {
|
|
36
44
|
var children = _ref2.children,
|
|
@@ -40,11 +48,15 @@ var BmContactName = function BmContactName(_ref2) {
|
|
|
40
48
|
|
|
41
49
|
// Contact Icon Wrapper
|
|
42
50
|
exports.BmContactName = BmContactName;
|
|
43
|
-
var BmContactIcon = _styledComponents.default.div(
|
|
51
|
+
var BmContactIcon = _styledComponents.default.div.withConfig({
|
|
52
|
+
displayName: "contacts__BmContactIcon"
|
|
53
|
+
})(["display:flex;flex-direction:row;"]);
|
|
44
54
|
|
|
45
55
|
// Message
|
|
46
56
|
exports.BmContactIcon = BmContactIcon;
|
|
47
|
-
var BmMessageTexts = _styledComponents.default.p(
|
|
57
|
+
var BmMessageTexts = _styledComponents.default.p.withConfig({
|
|
58
|
+
displayName: "contacts__BmMessageTexts"
|
|
59
|
+
})(["color:", ";padding:0rem;cursor:pointer;"], _colors.BmPrimaryBlack);
|
|
48
60
|
exports.BmMessageTexts = BmMessageTexts;
|
|
49
61
|
var BmMessageText = function BmMessageText(_ref3) {
|
|
50
62
|
var children = _ref3.children,
|
|
@@ -52,9 +64,13 @@ var BmMessageText = function BmMessageText(_ref3) {
|
|
|
52
64
|
return /*#__PURE__*/_react.default.createElement(BmContactTextWrapper, null, /*#__PURE__*/_react.default.createElement(BmMessageTexts, rest, children));
|
|
53
65
|
};
|
|
54
66
|
exports.BmMessageText = BmMessageText;
|
|
55
|
-
var BmMessageContact = _styledComponents.default.div(
|
|
67
|
+
var BmMessageContact = _styledComponents.default.div.withConfig({
|
|
68
|
+
displayName: "contacts__BmMessageContact"
|
|
69
|
+
})(["display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding-top:0.286rem;cursor:pointer;"]);
|
|
56
70
|
exports.BmMessageContact = BmMessageContact;
|
|
57
|
-
var BmUnreadMessage = _styledComponents.default.p(
|
|
71
|
+
var BmUnreadMessage = _styledComponents.default.p.withConfig({
|
|
72
|
+
displayName: "contacts__BmUnreadMessage"
|
|
73
|
+
})(["align-items:center;text-align:center;letter-spacing:-0.02em;color:", ";margin:0rem 0.571rem;width:1.429rem;height:1.429rem;border-radius:50%;text-align:center;background:", ";margin-left:auto;"], _colors.BmPrimaryWhite, _colors.BmPrimaryBlue);
|
|
58
74
|
exports.BmUnreadMessage = BmUnreadMessage;
|
|
59
75
|
var BmContactMessage = function BmContactMessage(props) {
|
|
60
76
|
var children = props.children;
|
|
@@ -63,9 +79,13 @@ var BmContactMessage = function BmContactMessage(props) {
|
|
|
63
79
|
|
|
64
80
|
// Contact Details Wrapper
|
|
65
81
|
exports.BmContactMessage = BmContactMessage;
|
|
66
|
-
var BmContactDetails = _styledComponents.default.div(
|
|
82
|
+
var BmContactDetails = _styledComponents.default.div.withConfig({
|
|
83
|
+
displayName: "contacts__BmContactDetails"
|
|
84
|
+
})(["display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding-top:0.786rem;cursor:pointer;"]);
|
|
67
85
|
|
|
68
86
|
// Contact time
|
|
69
87
|
exports.BmContactDetails = BmContactDetails;
|
|
70
|
-
var BmContactTime = _styledComponents.default.p(
|
|
88
|
+
var BmContactTime = _styledComponents.default.p.withConfig({
|
|
89
|
+
displayName: "contacts__BmContactTime"
|
|
90
|
+
})(["text-align:right;letter-spacing:-0.02em;color:", ";margin:0rem 0.571rem;margin-left:auto;"], _colors.BmPrimaryBlack);
|
|
71
91
|
exports.BmContactTime = BmContactTime;
|