beem-component 2.0.27 → 2.1.0
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/Dockerfile +4 -2
- package/Jenkinsfile +20 -5
- package/dist/components/Accordion/Accordion.js +55 -66
- package/dist/components/Accordion/Accordion.stories.js +5 -6
- package/dist/components/Avatars/avatars.js +33 -23
- package/dist/components/Avatars/avatars.stories.js +5 -10
- package/dist/components/BannerCard/bannerCard.stories.js +6 -7
- package/dist/components/BannerCard/bannerCards.js +38 -40
- package/dist/components/BmSelector/BmSelector.js +120 -0
- package/dist/components/BmSelector/BmSelector.stories.js +138 -0
- package/dist/components/ButtonGroup/buttonGroup.js +14 -15
- package/dist/components/ButtonGroup/buttonGroup.stories.js +11 -26
- package/dist/components/Buttons/Stories/basicbutton.stories.js +5 -10
- package/dist/components/Buttons/Stories/buttonAlertIcons.stories.js +4 -8
- package/dist/components/Buttons/Stories/buttonIconsOnly.stories.js +4 -8
- package/dist/components/Buttons/buttonAlertIcons.js +40 -58
- package/dist/components/Buttons/buttonDropdown copy.js +52 -35
- package/dist/components/Buttons/buttonDropdown.js +5 -3
- package/dist/components/Buttons/buttonIconsOnly.js +32 -25
- package/dist/components/Buttons/buttons.js +105 -72
- package/dist/components/Card_v2/Card.js +78 -0
- package/dist/components/Card_v2/Card.stories.js +60 -0
- package/dist/components/Cards/cards.js +3 -4
- package/dist/components/Cards/cards.stories.js +4 -5
- package/dist/components/ChatComponents/ChatBody/FeedPostComments.js +65 -39
- package/dist/components/ChatComponents/ChatBody/chatBody.js +224 -189
- package/dist/components/ChatComponents/ChatBody/chatBody.stories.js +4 -5
- package/dist/components/ChatComponents/ChatBody/sessionDetails.js +11 -9
- package/dist/components/ChatComponents/ChatBody/sessionTimeline.js +12 -10
- package/dist/components/ChatComponents/ChatHeader/chatHeader.js +3 -4
- package/dist/components/ChatComponents/ChatHeader/chatHeader.stories.js +3 -4
- package/dist/components/ChatComponents/ColorPicker/colorPicker.js +3 -6
- package/dist/components/ChatComponents/ColorPicker/colorPicker.stories.js +7 -10
- package/dist/components/ChatComponents/ContactCards/contactCards.js +40 -31
- package/dist/components/ChatComponents/ContactCards/contactCards.stories.js +3 -4
- package/dist/components/ChatComponents/FormAccordion/FormAccordion.js +3 -4
- package/dist/components/ChatComponents/FormAccordion/FormAccordion.stories.js +3 -4
- package/dist/components/ChatComponents/InfoTab/infoTab.js +3 -5
- package/dist/components/ChatComponents/InfoTab/infoTab.stories.js +3 -4
- package/dist/components/ChatComponents/LabelAccordion/LabelAccordion.js +3 -4
- package/dist/components/ChatComponents/LabelAccordion/LabelAccordion.stories.js +3 -4
- package/dist/components/ChatComponents/NoteAccordion/NoteAccordion.js +3 -4
- package/dist/components/ChatComponents/NoteAccordion/NoteAccordion.stories.js +3 -4
- package/dist/components/Chats/chat.js +56 -50
- package/dist/components/Chats/chatInput.js +9 -14
- package/dist/components/Chats/chatwrapper.js +8 -14
- package/dist/components/Checkbox/checkboxToggler.js +20 -20
- package/dist/components/Checkbox/checkboxToggler.stories.js +12 -35
- package/dist/components/InfoPanel/InfoPanel.js +141 -0
- package/dist/components/InfoPanel/InfoPanel.stories.js +200 -0
- package/dist/components/InputCounter/inputCounter.js +17 -18
- package/dist/components/Jumbotron/Jumbotron.js +8 -11
- package/dist/components/Jumbotron/Jumbotron.stories.js +3 -4
- package/dist/components/LabelWithIcon/LabelWithIcon.js +63 -0
- package/dist/components/LabelWithIcon/LabelWithIcon.stories.js +59 -0
- package/dist/components/Lists/listBox.js +21 -25
- package/dist/components/Lists/listBox.stories.js +7 -20
- package/dist/components/Lists/listHeader.stories.js +4 -8
- package/dist/components/Lists/listheader.js +17 -14
- package/dist/components/Lists/rowLabels.js +26 -24
- package/dist/components/Lists/rowLabels.stories.js +11 -18
- package/dist/components/Loader/loader.js +16 -14
- package/dist/components/Loader/loader.stories.js +4 -8
- package/dist/components/MainWrapper/index.js +3 -4
- package/dist/components/MessageCounter/MessageCounter.stories.js +4 -5
- package/dist/components/MessageCounter/messageCounter.js +15 -10
- package/dist/components/Modals/modal.js +57 -72
- package/dist/components/Modals/modals.stories.js +16 -45
- package/dist/components/MojaAccordion/MojaAccordion.js +49 -55
- package/dist/components/MultipleDateSelector/multipleDateSelector.js +14 -18
- package/dist/components/NoteBar/noteBar.js +22 -32
- package/dist/components/NoteBar/noteBar.stories.js +5 -10
- package/dist/components/PaymentBox/paymentBox.js +14 -11
- package/dist/components/PaymentBox/paymentBox.stories.js +3 -4
- package/dist/components/PerformanceIndicator/performaceIndicator.stories.js +4 -8
- package/dist/components/PerformanceIndicator/performanceIndicator.js +17 -14
- package/dist/components/Pills/pills.js +30 -38
- package/dist/components/Pills/pills.stories.js +5 -10
- package/dist/components/ProfileIcon/ProfileIcon.js +26 -36
- package/dist/components/ProfileIcon/profileIcon.stories.js +6 -12
- package/dist/components/ProgressBar/progressbar.js +14 -12
- package/dist/components/ProgressBar/progressbar.stories.js +4 -8
- package/dist/components/ProgressIndicator/ProgressIndicator.js +121 -0
- package/dist/components/ProgressIndicator/ProgressIndicator.stories.js +99 -0
- package/dist/components/ProgressRing/progressRing.js +48 -50
- package/dist/components/ProgressRing/progressRing.stories.js +5 -10
- package/dist/components/RouteLink/link.js +3 -8
- package/dist/components/RouteLink/link.stories.js +3 -4
- package/dist/components/ScrollBar/scrollBar.js +18 -26
- package/dist/components/SelectionNotice/SelectionNotice.js +57 -0
- package/dist/components/SelectionNotice/SelectionNotice.stories.js +35 -0
- package/dist/components/Stepper/stepper.js +4 -11
- package/dist/components/SuperFluid/Content/index.js +3 -4
- package/dist/components/SuperFluid/ContentTitle.js/index.js +6 -10
- package/dist/components/SuperFluid/SegmentCard/index.js +11 -21
- package/dist/components/Tabs/tabs.js +32 -24
- package/dist/components/Tabs/tabs.stories.js +6 -12
- package/dist/components/Tags/tags.js +65 -63
- package/dist/components/Tags/tags.stories.js +6 -12
- package/dist/components/breakpoints.js +3 -5
- package/dist/components/chatHeader.js +7 -12
- package/dist/components/checkbox.js +30 -25
- package/dist/components/colors.js +31 -62
- package/dist/components/contacts.js +32 -35
- package/dist/components/dropdown.js +18 -39
- package/dist/components/dropdownButton.js +38 -28
- package/dist/components/dropdownItems.js +23 -26
- package/dist/components/examples/App.js +3 -4
- package/dist/components/examples/InfoAccordion.js +3 -4
- package/dist/components/examples/chatBodyExample.js +4 -7
- package/dist/components/examples/selectExample.js +12 -30
- package/dist/components/globalStyles.js +1 -2
- package/dist/components/iconStyles.js +69 -103
- package/dist/components/index-copy.js +197 -197
- package/dist/components/index.js +106 -66
- package/dist/components/input.js +36 -25
- package/dist/components/logo.js +10 -9
- package/dist/components/navbar.js +9 -16
- package/dist/components/search.js +18 -16
- package/dist/components/shadow.js +1 -2
- package/dist/components/text.js +9 -18
- package/dist/components/typography.js +14 -28
- package/dist/components/wrapper.js +4 -6
- package/nginx.conf +26 -12
- package/package.json +3 -1
- package/src/App.js +246 -3
- package/src/lib/components/BmSelector/BmSelector.js +154 -0
- package/src/lib/components/BmSelector/BmSelector.stories.jsx +125 -0
- package/src/lib/components/Buttons/buttons.js +12 -8
- package/src/lib/components/Card_v2/Card.js +127 -0
- package/src/lib/components/Card_v2/Card.stories.jsx +94 -0
- package/src/lib/components/InfoPanel/InfoPanel.js +221 -0
- package/src/lib/components/InfoPanel/InfoPanel.stories.jsx +169 -0
- package/src/lib/components/LabelWithIcon/LabelWithIcon.js +61 -0
- package/src/lib/components/LabelWithIcon/LabelWithIcon.stories.jsx +59 -0
- package/src/lib/components/ProgressIndicator/ProgressIndicator.js +208 -0
- package/src/lib/components/ProgressIndicator/ProgressIndicator.stories.jsx +91 -0
- package/src/lib/components/SelectionNotice/SelectionNotice.js +65 -0
- package/src/lib/components/SelectionNotice/SelectionNotice.stories.jsx +40 -0
- package/src/lib/components/index.js +14 -0
- package/src/util/convertToRGBA.js +21 -0
- package/storybook-static/140.d6695a165d8dcc810b2e.manager.bundle.js +1 -0
- package/storybook-static/140.f87feb0b.iframe.bundle.js +1 -0
- package/storybook-static/149.7cc11ef8.iframe.bundle.js +2 -0
- package/storybook-static/149.7cc11ef8.iframe.bundle.js.LICENSE.txt +14 -0
- package/storybook-static/192.08b67b8c.iframe.bundle.js +1 -0
- package/storybook-static/246.9ad91c22.iframe.bundle.js +2 -0
- package/storybook-static/{vendors~main.7fe78cc2.iframe.bundle.js.LICENSE.txt → 246.9ad91c22.iframe.bundle.js.LICENSE.txt} +48 -16
- package/storybook-static/448.0ad0b2a9.iframe.bundle.js +2 -0
- package/storybook-static/448.0ad0b2a9.iframe.bundle.js.LICENSE.txt +8 -0
- package/storybook-static/448.502f738789de31a83e1c.manager.bundle.js +2 -0
- package/storybook-static/448.502f738789de31a83e1c.manager.bundle.js.LICENSE.txt +8 -0
- package/storybook-static/463.694cb3b0a2f8b0deba70.manager.bundle.js +2 -0
- package/storybook-static/463.694cb3b0a2f8b0deba70.manager.bundle.js.LICENSE.txt +31 -0
- package/storybook-static/463.7b3b5742.iframe.bundle.js +2 -0
- package/storybook-static/463.7b3b5742.iframe.bundle.js.LICENSE.txt +31 -0
- package/storybook-static/58.56a2198b.iframe.bundle.js +1 -0
- package/storybook-static/58.cd3f8ad06a1200571eab.manager.bundle.js +1 -0
- package/storybook-static/676.d74803c6ab12eac1cdb2.manager.bundle.js +2 -0
- package/storybook-static/{vendors~main.1750028c2d68e574fb1d.manager.bundle.js.LICENSE.txt → 676.d74803c6ab12eac1cdb2.manager.bundle.js.LICENSE.txt} +20 -30
- package/storybook-static/720.d729a720931e1312e597.manager.bundle.js +2 -0
- package/storybook-static/720.e12f6aa2.iframe.bundle.js +2 -0
- package/storybook-static/794.0543a68a8b5aa273273a.manager.bundle.js +1 -0
- package/storybook-static/929.5353bbe2.iframe.bundle.js +1 -0
- package/storybook-static/929.ed1807a8ea3e2353d440.manager.bundle.js +1 -0
- package/storybook-static/9b058fcb1416fea75e6c.png +0 -0
- package/storybook-static/f29af3502f15acc765a8.png +0 -0
- package/storybook-static/favicon.ico +0 -0
- package/storybook-static/iframe.html +22 -6
- package/storybook-static/index.html +66 -109
- package/storybook-static/main.1a29aa69.iframe.bundle.js +1 -0
- package/storybook-static/main.69bad789e0a3d801264b.manager.bundle.js +1 -0
- package/storybook-static/project.json +1 -0
- package/storybook-static/runtime~main.87eecef7.iframe.bundle.js +1 -0
- package/storybook-static/runtime~main.dd5308492057ff00c469.manager.bundle.js +1 -0
- package/storybook-static/static/css/main.08a2eb27.css +6 -0
- package/storybook-static/static/css/main.08a2eb27.css.map +1 -0
- package/storybook-static/0.00c62ec79c260aedbb98.manager.bundle.js +0 -2
- package/storybook-static/0.00c62ec79c260aedbb98.manager.bundle.js.LICENSE.txt +0 -8
- package/storybook-static/0.96c45dd8.iframe.bundle.js +0 -1
- package/storybook-static/1.dc6acfa9.iframe.bundle.js +0 -3
- package/storybook-static/1.dc6acfa9.iframe.bundle.js.LICENSE.txt +0 -8
- package/storybook-static/1.dc6acfa9.iframe.bundle.js.map +0 -1
- package/storybook-static/1.dc7dcdaec2def2f224fd.manager.bundle.js +0 -1
- package/storybook-static/2.24353ddc.iframe.bundle.js +0 -1
- package/storybook-static/3.8bb2173c.iframe.bundle.js +0 -1
- package/storybook-static/5.0779e3847d325dece216.manager.bundle.js +0 -1
- package/storybook-static/6.8bd405c2576206749a16.manager.bundle.js +0 -2
- package/storybook-static/7.9d4ba19cf58425e7ff0d.manager.bundle.js +0 -1
- package/storybook-static/7.f0cfc757.iframe.bundle.js +0 -1
- package/storybook-static/8.91de97de.iframe.bundle.js +0 -3
- package/storybook-static/8.91de97de.iframe.bundle.js.map +0 -1
- package/storybook-static/8.b4e9ec0ec7648e02a923.manager.bundle.js +0 -1
- package/storybook-static/9.40ec65d6.iframe.bundle.js +0 -1
- package/storybook-static/asset-manifest.json +0 -30
- package/storybook-static/main.3c8d8027.iframe.bundle.js +0 -1
- package/storybook-static/main.3e5804fe56d1f580b088.manager.bundle.js +0 -1
- package/storybook-static/runtime~main.d3a18d6a.iframe.bundle.js +0 -1
- package/storybook-static/runtime~main.ff106120648356c6069d.manager.bundle.js +0 -1
- package/storybook-static/static/css/main.b44a190d.chunk.css +0 -4
- package/storybook-static/static/css/main.b44a190d.chunk.css.map +0 -1
- package/storybook-static/vendors~main.1750028c2d68e574fb1d.manager.bundle.js +0 -2
- package/storybook-static/vendors~main.7fe78cc2.iframe.bundle.js +0 -3
- package/storybook-static/vendors~main.7fe78cc2.iframe.bundle.js.map +0 -1
- /package/storybook-static/{static/media/PoppinsMedium.0ba26f6c.woff → 0ba26f6cfe2f94ec2b43.woff} +0 -0
- /package/storybook-static/{static/media/PoppinsRegular.13b9af9c.eot → 13b9af9c8b2b4d656251.eot} +0 -0
- /package/storybook-static/{static/media/OpenSans-Regular.1b0809d5.ttf → 1b0809d519837cb7aad3.ttf} +0 -0
- /package/storybook-static/{static/media/PoppinsBold.1eae2d48.woff2 → 1eae2d48398534b6e1fe.woff2} +0 -0
- /package/storybook-static/{static/media/PoppinsRegular.43e9b50d.svg → 43e9b50d6f4141c6275f.svg} +0 -0
- /package/storybook-static/{static/media/PoppinsMedium.49b46ace.eot → 49b46acec5a811ce1edd.eot} +0 -0
- /package/storybook-static/{static/media/PoppinsRegular.4a4d5420.woff → 4a4d54208e3b43dcdd6e.woff} +0 -0
- /package/storybook-static/{static/media/PoppinsBold.53ff6749.eot → 53ff67494885a390867f.eot} +0 -0
- /package/storybook-static/{static/media/PoppinsBold.53ff971f.ttf → 53ff971f3c691d03daf6.ttf} +0 -0
- /package/storybook-static/{static/media/PoppinsSemiBold.5692c77f.ttf → 5692c77f2768f53db4fb.ttf} +0 -0
- /package/storybook-static/{static/media/PoppinsMedium.57a99fa8.woff2 → 57a99fa8569430db3aa1.woff2} +0 -0
- /package/storybook-static/{6.8bd405c2576206749a16.manager.bundle.js.LICENSE.txt → 720.d729a720931e1312e597.manager.bundle.js.LICENSE.txt} +0 -0
- /package/storybook-static/{8.91de97de.iframe.bundle.js.LICENSE.txt → 720.e12f6aa2.iframe.bundle.js.LICENSE.txt} +0 -0
- /package/storybook-static/{static/media/PoppinsSemiBold.80138c67.woff → 80138c67abf7843ea7e5.woff} +0 -0
- /package/storybook-static/{static/media/PoppinsBold.850fc4f3.svg → 850fc4f3768c0af34ea8.svg} +0 -0
- /package/storybook-static/{static/media/PoppinsRegular.9a7cc7ec.woff2 → 9a7cc7ec4e1eda4f7e6d.woff2} +0 -0
- /package/storybook-static/{static/media/PoppinsBold.b33c148b.woff → b33c148b95e9b282af64.woff} +0 -0
- /package/storybook-static/{static/media/PoppinsMedium.b7e43707.svg → b7e43707906d1445e127.svg} +0 -0
- /package/storybook-static/{static/media/PoppinsSemiBold.c442695a.eot → c442695a5fcf958609b8.eot} +0 -0
- /package/storybook-static/{static/media/PoppinsMedium.c98dddbd.ttf → c98dddbdc5b1e18988b9.ttf} +0 -0
- /package/storybook-static/{static/media/PoppinsSemiBold.e1948d56.svg → e1948d56fc87f569ef8d.svg} +0 -0
- /package/storybook-static/{static/media/PoppinsRegular.e1bc9021.ttf → e1bc9021c9d8ba86968b.ttf} +0 -0
- /package/storybook-static/{static/media/PoppinsSemiBold.f27050e2.woff2 → f27050e2684287d42c91.woff2} +0 -0
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
|
5
4
|
value: true
|
|
6
5
|
});
|
|
@@ -11,23 +10,19 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
11
10
|
var _icons = require("@material-ui/icons");
|
|
12
11
|
var _iconStyles = require("../iconStyles");
|
|
13
12
|
var _colors = require("../colors");
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
function
|
|
17
|
-
function _interopRequireWildcard(
|
|
18
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
19
|
-
function _objectWithoutProperties(
|
|
20
|
-
function _objectWithoutPropertiesLoose(
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
var Color = function Color(_ref) {
|
|
28
|
-
var variant = _ref.variant,
|
|
29
|
-
color = _ref.color,
|
|
30
|
-
textColor = _ref.textColor;
|
|
13
|
+
const _excluded = ["variant", "size", "disabled", "children", "leadingIcon", "trailingIcon", "color", "textColor", "bgColor", "closeButton", "dot", "onHide"];
|
|
14
|
+
/* eslint-disable react/no-children-prop */
|
|
15
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
16
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
17
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
18
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
19
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
20
|
+
const Color = _ref => {
|
|
21
|
+
let {
|
|
22
|
+
variant,
|
|
23
|
+
color,
|
|
24
|
+
textColor
|
|
25
|
+
} = _ref;
|
|
31
26
|
if (textColor) {
|
|
32
27
|
return textColor;
|
|
33
28
|
}
|
|
@@ -40,17 +35,21 @@ var Color = function Color(_ref) {
|
|
|
40
35
|
}
|
|
41
36
|
return "".concat(_colors.BmPrimaryBlack);
|
|
42
37
|
};
|
|
43
|
-
|
|
38
|
+
const BeemTag = _styledComponents.default.button.withConfig({
|
|
44
39
|
displayName: "tags__BeemTag"
|
|
45
|
-
})(["", " display:", ";flex-direction:row;justify-content:center;align-items:center !important;padding:0.2143rem 0.5714rem;border-radius:0.4286rem;background:", ";border:0.1071rem solid ", ";> *{color:", ";text-transform:capitalize;}> *:not(:last-child){margin-right:0.5rem;}"], '' /* display: flex; */,
|
|
46
|
-
|
|
47
|
-
|
|
40
|
+
})(["", " display:", ";flex-direction:row;justify-content:center;align-items:center !important;padding:0.2143rem 0.5714rem;border-radius:0.4286rem;background:", ";border:0.1071rem solid ", ";> *{color:", ";text-transform:capitalize;}> *:not(:last-child){margin-right:0.5rem;}"], '' /* display: flex; */, _ref2 => {
|
|
41
|
+
let {
|
|
42
|
+
closeButton,
|
|
43
|
+
show
|
|
44
|
+
} = _ref2;
|
|
48
45
|
if (!closeButton) {
|
|
49
46
|
return 'flex';
|
|
50
47
|
}
|
|
51
48
|
return show ? 'flex' : 'none';
|
|
52
|
-
},
|
|
53
|
-
|
|
49
|
+
}, _ref3 => {
|
|
50
|
+
let {
|
|
51
|
+
variant
|
|
52
|
+
} = _ref3;
|
|
54
53
|
if (variant === 'neutral') return "".concat(_colors.BmGrey100);
|
|
55
54
|
if (variant === 'success') return "#dcfac6";
|
|
56
55
|
if (variant === 'warning') return "#fef0c7";
|
|
@@ -58,52 +57,57 @@ var BeemTag = _styledComponents.default.button.withConfig({
|
|
|
58
57
|
if (variant === 'light') return "".concat(_colors.BmPrimaryWhite);
|
|
59
58
|
if (variant === 'primary') return "".concat(_colors.BmPrimaryBlue);
|
|
60
59
|
if (!variant) return "white";
|
|
61
|
-
},
|
|
62
|
-
|
|
60
|
+
}, _ref4 => {
|
|
61
|
+
let {
|
|
62
|
+
variant
|
|
63
|
+
} = _ref4;
|
|
63
64
|
if (variant === 'neutral') return "".concat(_colors.BmGrey100);
|
|
64
65
|
if (variant === 'success') return "#47cd89";
|
|
65
66
|
if (variant === 'warning') return "#fdb022";
|
|
66
67
|
if (variant === 'danger') return "#f97066";
|
|
67
68
|
if (variant === 'light') return "".concat(_colors.BmGrey400);
|
|
68
69
|
return "#d0d5dd";
|
|
69
|
-
},
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
70
|
+
}, _ref5 => {
|
|
71
|
+
let {
|
|
72
|
+
variant,
|
|
73
|
+
color,
|
|
74
|
+
textColor
|
|
75
|
+
} = _ref5;
|
|
73
76
|
return Color({
|
|
74
|
-
variant
|
|
75
|
-
color
|
|
76
|
-
textColor
|
|
77
|
+
variant,
|
|
78
|
+
color,
|
|
79
|
+
textColor
|
|
77
80
|
});
|
|
78
81
|
});
|
|
79
|
-
|
|
82
|
+
const Dot = _styledComponents.default.div.withConfig({
|
|
80
83
|
displayName: "tags__Dot"
|
|
81
|
-
})(["width:6px;height:6px;background-color:", ";border-radius:50%;"],
|
|
82
|
-
|
|
83
|
-
|
|
84
|
+
})(["width:6px;height:6px;background-color:", ";border-radius:50%;"], _ref6 => {
|
|
85
|
+
let {
|
|
86
|
+
bgColor,
|
|
87
|
+
variant
|
|
88
|
+
} = _ref6;
|
|
84
89
|
if (variant === 'success') return "#47cd89";
|
|
85
90
|
if (variant === 'warning') return "#fdb022";
|
|
86
91
|
if (variant === 'danger') return "#f97066";
|
|
87
92
|
if (bgColor) return bgColor;
|
|
88
93
|
return '#344054';
|
|
89
94
|
});
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
onHide = props.onHide,
|
|
95
|
+
const BmTag = props => {
|
|
96
|
+
const [toggle, setToggle] = (0, _react.useState)(true);
|
|
97
|
+
const {
|
|
98
|
+
variant,
|
|
99
|
+
size,
|
|
100
|
+
disabled,
|
|
101
|
+
children,
|
|
102
|
+
leadingIcon,
|
|
103
|
+
trailingIcon,
|
|
104
|
+
color,
|
|
105
|
+
textColor,
|
|
106
|
+
bgColor,
|
|
107
|
+
closeButton,
|
|
108
|
+
dot,
|
|
109
|
+
onHide
|
|
110
|
+
} = props,
|
|
107
111
|
rest = _objectWithoutProperties(props, _excluded);
|
|
108
112
|
return /*#__PURE__*/_react.default.createElement(BeemTag, _extends({
|
|
109
113
|
size: size,
|
|
@@ -120,8 +124,8 @@ var BmTag = function BmTag(props) {
|
|
|
120
124
|
icon: leadingIcon,
|
|
121
125
|
variant: variant,
|
|
122
126
|
color: Color({
|
|
123
|
-
color
|
|
124
|
-
variant
|
|
127
|
+
color,
|
|
128
|
+
variant
|
|
125
129
|
}),
|
|
126
130
|
size: size || 'small'
|
|
127
131
|
}), dot && /*#__PURE__*/_react.default.createElement(Dot, {
|
|
@@ -131,23 +135,21 @@ var BmTag = function BmTag(props) {
|
|
|
131
135
|
icon: trailingIcon,
|
|
132
136
|
disabled: disabled,
|
|
133
137
|
color: Color({
|
|
134
|
-
color
|
|
135
|
-
variant
|
|
138
|
+
color,
|
|
139
|
+
variant
|
|
136
140
|
}),
|
|
137
141
|
size: size || 'small'
|
|
138
142
|
}), closeButton && /*#__PURE__*/_react.default.createElement(_iconStyles.BmIcons, {
|
|
139
143
|
icon: /*#__PURE__*/_react.default.createElement(_icons.Clear, null),
|
|
140
144
|
color: Color({
|
|
141
|
-
color
|
|
142
|
-
variant
|
|
145
|
+
color,
|
|
146
|
+
variant
|
|
143
147
|
}),
|
|
144
148
|
size: size || 'xsmall',
|
|
145
149
|
style: {
|
|
146
150
|
marginLeft: 'auto'
|
|
147
151
|
},
|
|
148
|
-
onClick:
|
|
149
|
-
return onHide && onHide(setToggle(!toggle));
|
|
150
|
-
}
|
|
152
|
+
onClick: () => onHide && onHide(setToggle(!toggle))
|
|
151
153
|
}));
|
|
152
154
|
};
|
|
153
155
|
exports.BmTag = BmTag;
|
|
@@ -7,9 +7,9 @@ exports.default = exports.TagsWithCloseButton = exports.Tags = void 0;
|
|
|
7
7
|
var _icons = require("@material-ui/icons");
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _tags = require("./tags");
|
|
10
|
-
function _interopRequireDefault(
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
11
|
/* eslint-disable import/no-anonymous-default-export */
|
|
12
|
-
var _default = {
|
|
12
|
+
var _default = exports.default = {
|
|
13
13
|
component: _tags.BmTag,
|
|
14
14
|
title: 'components/Tags',
|
|
15
15
|
argTypes: {
|
|
@@ -56,25 +56,19 @@ var _default = {
|
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
};
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
return /*#__PURE__*/_react.default.createElement(_tags.BmTag, args);
|
|
62
|
-
};
|
|
63
|
-
var Tags = MainTag.bind({});
|
|
64
|
-
exports.Tags = Tags;
|
|
59
|
+
const MainTag = args => /*#__PURE__*/_react.default.createElement(_tags.BmTag, args);
|
|
60
|
+
const Tags = exports.Tags = MainTag.bind({});
|
|
65
61
|
Tags.args = {
|
|
66
62
|
children: /*#__PURE__*/_react.default.createElement("p", null, "Tags"),
|
|
67
63
|
leadingIcon: /*#__PURE__*/_react.default.createElement(_icons.Favorite, null),
|
|
68
64
|
trailingIcon: /*#__PURE__*/_react.default.createElement(_icons.Favorite, null),
|
|
69
65
|
variant: 'success'
|
|
70
66
|
};
|
|
71
|
-
|
|
67
|
+
const TagsWithCloseButton = () => {
|
|
72
68
|
return /*#__PURE__*/_react.default.createElement(_tags.BmTag, {
|
|
73
69
|
variant: "light",
|
|
74
70
|
closeButton: true,
|
|
75
|
-
onHide:
|
|
76
|
-
return alert('Hide Tag');
|
|
77
|
-
}
|
|
71
|
+
onHide: () => alert('Hide Tag')
|
|
78
72
|
}, /*#__PURE__*/_react.default.createElement("p", null, "TAG"));
|
|
79
73
|
};
|
|
80
74
|
exports.TagsWithCloseButton = TagsWithCloseButton;
|
|
@@ -4,15 +4,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.size = exports.device = void 0;
|
|
7
|
-
|
|
7
|
+
const size = exports.size = {
|
|
8
8
|
xs: '320px',
|
|
9
9
|
sm: '768px',
|
|
10
10
|
lg: '1200px'
|
|
11
11
|
};
|
|
12
|
-
exports.
|
|
13
|
-
var device = {
|
|
12
|
+
const device = exports.device = {
|
|
14
13
|
xs: "(min-width: ".concat(size.xs, ")"),
|
|
15
14
|
sm: "(min-width: ".concat(size.sm, ")"),
|
|
16
15
|
lg: "(min-width: ".concat(size.lg, ")")
|
|
17
|
-
};
|
|
18
|
-
exports.device = device;
|
|
16
|
+
};
|
|
@@ -6,24 +6,19 @@ 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
|
-
function _interopRequireDefault(
|
|
10
|
-
|
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
|
+
const BmChatHeaderWrapper = exports.BmChatHeaderWrapper = _styledComponents.default.div.withConfig({
|
|
11
11
|
displayName: "chatHeader__BmChatHeaderWrapper"
|
|
12
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
|
-
exports.
|
|
14
|
-
var BmChatHeaderText = _styledComponents.default.h2.withConfig({
|
|
13
|
+
const BmChatHeaderText = exports.BmChatHeaderText = _styledComponents.default.h2.withConfig({
|
|
15
14
|
displayName: "chatHeader__BmChatHeaderText"
|
|
16
15
|
})(["color:", ";"], _colors.BmPrimaryBlack);
|
|
17
|
-
exports.
|
|
18
|
-
var BmChatHeaderTime = _styledComponents.default.h4.withConfig({
|
|
16
|
+
const BmChatHeaderTime = exports.BmChatHeaderTime = _styledComponents.default.h4.withConfig({
|
|
19
17
|
displayName: "chatHeader__BmChatHeaderTime"
|
|
20
18
|
})(["color:", ";margin:0rem 0.571rem;"], _colors.BmSecondaryGrey);
|
|
21
|
-
exports.
|
|
22
|
-
var BmChatHeaderInfoIcon = _styledComponents.default.div.withConfig({
|
|
19
|
+
const BmChatHeaderInfoIcon = exports.BmChatHeaderInfoIcon = _styledComponents.default.div.withConfig({
|
|
23
20
|
displayName: "chatHeader__BmChatHeaderInfoIcon"
|
|
24
21
|
})(["margin-left:0.571rem;"]);
|
|
25
|
-
exports.
|
|
26
|
-
var BmChatHeader = _styledComponents.default.div.withConfig({
|
|
22
|
+
const BmChatHeader = exports.BmChatHeader = _styledComponents.default.div.withConfig({
|
|
27
23
|
displayName: "chatHeader__BmChatHeader"
|
|
28
|
-
})(["display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:1.286rem 0rem;margin:0rem;"]);
|
|
29
|
-
exports.BmChatHeader = BmChatHeader;
|
|
24
|
+
})(["display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:1.286rem 0rem;margin:0rem;"]);
|
|
@@ -7,50 +7,55 @@ exports.BmCheckbox = void 0;
|
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
9
|
var _colors = require("./colors");
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
function
|
|
13
|
-
function
|
|
14
|
-
function
|
|
15
|
-
var
|
|
10
|
+
const _excluded = ["className", "checked", "label", "value", "disabled"];
|
|
11
|
+
/* eslint-disable jsx-a11y/label-has-associated-control */
|
|
12
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
14
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
15
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
16
|
+
const HiddenCheckbox = _styledComponents.default.input.attrs({
|
|
16
17
|
type: 'checkbox'
|
|
17
18
|
}).withConfig({
|
|
18
19
|
displayName: "checkbox__HiddenCheckbox"
|
|
19
20
|
})(["display:flex;border:0;height:0.071rem;margin:-0.071rem;overflow:hidden;padding:0;white-space:nowrap;width:0.071rem;display:none;"]);
|
|
20
|
-
|
|
21
|
+
const Icon = _styledComponents.default.svg.withConfig({
|
|
21
22
|
displayName: "checkbox__Icon"
|
|
22
23
|
})(["fill:none;stroke:white;stroke-width:0.143rem;"]);
|
|
23
|
-
|
|
24
|
+
const StyledCheckbox = _styledComponents.default.div.withConfig({
|
|
24
25
|
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:", ";}"],
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
})(["display:flex;width:1.143rem;height:1.143rem;background:", ";border-radius:0.143rem;transition:all 150ms;border:0.071rem solid ", ";", "{visibility:", ";}"], _ref => {
|
|
27
|
+
let {
|
|
28
|
+
checked,
|
|
29
|
+
disabled
|
|
30
|
+
} = _ref;
|
|
28
31
|
if (!disabled && checked) return "".concat(_colors.BmPrimaryBlue);
|
|
29
32
|
if (disabled && !checked) return "".concat(_colors.BmGrey100);
|
|
30
33
|
if (disabled && checked) return "".concat(_colors.BmGrey100);
|
|
31
34
|
return '';
|
|
32
|
-
},
|
|
33
|
-
|
|
34
|
-
|
|
35
|
+
}, _ref2 => {
|
|
36
|
+
let {
|
|
37
|
+
checked,
|
|
38
|
+
disabled
|
|
39
|
+
} = _ref2;
|
|
35
40
|
if (!disabled && checked) return "".concat(_colors.BmPrimaryBlue);
|
|
36
41
|
if (disabled && !checked) return "".concat(_colors.BmGrey400);
|
|
37
42
|
if (disabled && checked) return 'none';
|
|
38
43
|
return "".concat(_colors.BmGrey400);
|
|
39
|
-
}, Icon,
|
|
40
|
-
|
|
41
|
-
});
|
|
42
|
-
var CheckboxContainer = _styledComponents.default.div.withConfig({
|
|
44
|
+
}, Icon, props => props.checked ? 'visible' : 'hidden');
|
|
45
|
+
const CheckboxContainer = _styledComponents.default.div.withConfig({
|
|
43
46
|
displayName: "checkbox__CheckboxContainer"
|
|
44
47
|
})(["display:flex;"]);
|
|
45
|
-
|
|
48
|
+
const CheckboxLabel = _styledComponents.default.p.withConfig({
|
|
46
49
|
displayName: "checkbox__CheckboxLabel"
|
|
47
50
|
})(["color:", ";margin-left:0.5rem;"], _colors.BmPrimaryBlack);
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
51
|
+
const BmCheckbox = _ref3 => {
|
|
52
|
+
let {
|
|
53
|
+
className,
|
|
54
|
+
checked,
|
|
55
|
+
label,
|
|
56
|
+
value,
|
|
57
|
+
disabled
|
|
58
|
+
} = _ref3,
|
|
54
59
|
props = _objectWithoutProperties(_ref3, _excluded);
|
|
55
60
|
return /*#__PURE__*/_react.default.createElement("label", null, /*#__PURE__*/_react.default.createElement(CheckboxContainer, props, /*#__PURE__*/_react.default.createElement(HiddenCheckbox, _extends({
|
|
56
61
|
checked: checked,
|
|
@@ -5,77 +5,46 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.BmTransparentBg60 = exports.BmTransparentBg30 = exports.BmSecondaryYellow = exports.BmSecondaryRed8 = exports.BmSecondaryRed15 = exports.BmSecondaryRed = exports.BmSecondaryPurple = exports.BmSecondaryGrey = exports.BmSecondaryGreen8 = exports.BmSecondaryGreen15 = exports.BmSecondaryGreen = exports.BmSecondaryGold15 = exports.BmSecondaryDarkGreen = exports.BmSecondaryCyan = exports.BmSecondaryBlue12 = exports.BmPrimaryWhite = exports.BmPrimaryGold = exports.BmPrimaryBlue = exports.BmPrimaryBlack = exports.BmPictogramGold = exports.BmPictogramBlue = exports.BmGrey600 = exports.BmGrey500 = exports.BmGrey50 = exports.BmGrey400 = exports.BmGrey200 = exports.BmGrey100 = exports.BmBgLightBlue = exports.BmBgGreyBlue = exports.BmBgGrey45 = exports.BmBgGrey38 = void 0;
|
|
7
7
|
// Primary Colors
|
|
8
|
-
|
|
9
|
-
exports.
|
|
10
|
-
|
|
11
|
-
exports.
|
|
12
|
-
var BmPrimaryWhite = '#FFFFFF';
|
|
13
|
-
exports.BmPrimaryWhite = BmPrimaryWhite;
|
|
14
|
-
var BmPrimaryBlack = '#000000';
|
|
8
|
+
const BmPrimaryBlue = exports.BmPrimaryBlue = '#33B1BA';
|
|
9
|
+
const BmPrimaryGold = exports.BmPrimaryGold = '#F3A929';
|
|
10
|
+
const BmPrimaryWhite = exports.BmPrimaryWhite = '#FFFFFF';
|
|
11
|
+
const BmPrimaryBlack = exports.BmPrimaryBlack = '#000000';
|
|
15
12
|
|
|
16
13
|
// Secondary Colors
|
|
17
|
-
exports.
|
|
18
|
-
|
|
19
|
-
exports.
|
|
20
|
-
|
|
21
|
-
exports.
|
|
22
|
-
|
|
23
|
-
exports.
|
|
24
|
-
|
|
25
|
-
exports.
|
|
26
|
-
|
|
27
|
-
exports.
|
|
28
|
-
|
|
29
|
-
exports.BmSecondaryPurple = BmSecondaryPurple;
|
|
30
|
-
var BmSecondaryDarkGreen = '#04844B';
|
|
31
|
-
exports.BmSecondaryDarkGreen = BmSecondaryDarkGreen;
|
|
32
|
-
var BmSecondaryGreen8 = 'rgba(4, 132, 75, 0.8)';
|
|
33
|
-
exports.BmSecondaryGreen8 = BmSecondaryGreen8;
|
|
34
|
-
var BmSecondaryRed8 = 'rgba(246, 46, 72, 0.8)';
|
|
35
|
-
exports.BmSecondaryRed8 = BmSecondaryRed8;
|
|
36
|
-
var BmSecondaryRed15 = 'rgba(246, 46, 72, 0.15)';
|
|
37
|
-
exports.BmSecondaryRed15 = BmSecondaryRed15;
|
|
38
|
-
var BmSecondaryGreen15 = 'rgba(4, 132, 75, 0.15)';
|
|
39
|
-
exports.BmSecondaryGreen15 = BmSecondaryGreen15;
|
|
40
|
-
var BmSecondaryGold15 = 'rgba(243, 169, 41, 0.15)';
|
|
14
|
+
const BmSecondaryCyan = exports.BmSecondaryCyan = '#56C5CE';
|
|
15
|
+
const BmSecondaryGrey = exports.BmSecondaryGrey = '#575757';
|
|
16
|
+
const BmSecondaryRed = exports.BmSecondaryRed = '#F62E48';
|
|
17
|
+
const BmSecondaryGreen = exports.BmSecondaryGreen = '#8CC63F';
|
|
18
|
+
const BmSecondaryYellow = exports.BmSecondaryYellow = '#FFB822';
|
|
19
|
+
const BmSecondaryPurple = exports.BmSecondaryPurple = '#7A3FC6';
|
|
20
|
+
const BmSecondaryDarkGreen = exports.BmSecondaryDarkGreen = '#04844B';
|
|
21
|
+
const BmSecondaryGreen8 = exports.BmSecondaryGreen8 = 'rgba(4, 132, 75, 0.8)';
|
|
22
|
+
const BmSecondaryRed8 = exports.BmSecondaryRed8 = 'rgba(246, 46, 72, 0.8)';
|
|
23
|
+
const BmSecondaryRed15 = exports.BmSecondaryRed15 = 'rgba(246, 46, 72, 0.15)';
|
|
24
|
+
const BmSecondaryGreen15 = exports.BmSecondaryGreen15 = 'rgba(4, 132, 75, 0.15)';
|
|
25
|
+
const BmSecondaryGold15 = exports.BmSecondaryGold15 = 'rgba(243, 169, 41, 0.15)';
|
|
41
26
|
|
|
42
27
|
// #33B1BA 12%
|
|
43
|
-
exports.
|
|
44
|
-
var BmSecondaryBlue12 = 'rgba(51, 177, 186, 0.12)';
|
|
28
|
+
const BmSecondaryBlue12 = exports.BmSecondaryBlue12 = 'rgba(51, 177, 186, 0.12)';
|
|
45
29
|
|
|
46
30
|
// Background Colors
|
|
47
|
-
exports.
|
|
48
|
-
|
|
49
|
-
exports.
|
|
50
|
-
|
|
51
|
-
exports.BmBgGreyBlue = BmBgGreyBlue;
|
|
52
|
-
var BmBgGrey45 = 'rgba(0, 0, 0, 0.5)';
|
|
53
|
-
exports.BmBgGrey45 = BmBgGrey45;
|
|
54
|
-
var BmBgGrey38 = 'rgba(0, 0, 0, 0.38)';
|
|
31
|
+
const BmBgLightBlue = exports.BmBgLightBlue = '#E1EAFC';
|
|
32
|
+
const BmBgGreyBlue = exports.BmBgGreyBlue = '#F5F6FA';
|
|
33
|
+
const BmBgGrey45 = exports.BmBgGrey45 = 'rgba(0, 0, 0, 0.5)';
|
|
34
|
+
const BmBgGrey38 = exports.BmBgGrey38 = 'rgba(0, 0, 0, 0.38)';
|
|
55
35
|
|
|
56
36
|
// Grey Colors
|
|
57
|
-
exports.
|
|
58
|
-
|
|
59
|
-
exports.
|
|
60
|
-
|
|
61
|
-
exports.
|
|
62
|
-
|
|
63
|
-
exports.BmGrey400 = BmGrey400;
|
|
64
|
-
var BmGrey200 = '#E2E2E2';
|
|
65
|
-
exports.BmGrey200 = BmGrey200;
|
|
66
|
-
var BmGrey100 = '#EEEEEE';
|
|
67
|
-
exports.BmGrey100 = BmGrey100;
|
|
68
|
-
var BmGrey50 = '#F6F6F6';
|
|
37
|
+
const BmGrey600 = exports.BmGrey600 = '#545454';
|
|
38
|
+
const BmGrey500 = exports.BmGrey500 = '#757575';
|
|
39
|
+
const BmGrey400 = exports.BmGrey400 = '#AFAFAF';
|
|
40
|
+
const BmGrey200 = exports.BmGrey200 = '#E2E2E2';
|
|
41
|
+
const BmGrey100 = exports.BmGrey100 = '#EEEEEE';
|
|
42
|
+
const BmGrey50 = exports.BmGrey50 = '#F6F6F6';
|
|
69
43
|
|
|
70
44
|
// Pictogram Colors
|
|
71
|
-
exports.
|
|
72
|
-
|
|
73
|
-
exports.BmPictogramBlue = BmPictogramBlue;
|
|
74
|
-
var BmPictogramGold = '#F8D8A2';
|
|
45
|
+
const BmPictogramBlue = exports.BmPictogramBlue = '#CCEAEB';
|
|
46
|
+
const BmPictogramGold = exports.BmPictogramGold = '#F8D8A2';
|
|
75
47
|
|
|
76
48
|
// Transparent Background
|
|
77
|
-
exports.
|
|
78
|
-
|
|
79
|
-
exports.BmTransparentBg30 = BmTransparentBg30;
|
|
80
|
-
var BmTransparentBg60 = 'rgba(217, 217, 217, 0.6)';
|
|
81
|
-
exports.BmTransparentBg60 = BmTransparentBg60;
|
|
49
|
+
const BmTransparentBg30 = exports.BmTransparentBg30 = 'rgba(217, 217, 217, 0.3)';
|
|
50
|
+
const BmTransparentBg60 = exports.BmTransparentBg60 = 'rgba(217, 217, 217, 0.6)';
|
|
@@ -7,85 +7,82 @@ exports.BmUnreadMessage = exports.BmMessageTexts = exports.BmMessageText = expor
|
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
9
|
var _colors = require("./colors");
|
|
10
|
-
|
|
10
|
+
const _excluded = ["children"],
|
|
11
11
|
_excluded2 = ["children"];
|
|
12
|
-
function _interopRequireDefault(
|
|
13
|
-
function _objectWithoutProperties(
|
|
14
|
-
function _objectWithoutPropertiesLoose(
|
|
15
|
-
|
|
12
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
14
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
15
|
+
const BmContactSideBar = exports.BmContactSideBar = _styledComponents.default.div.withConfig({
|
|
16
16
|
displayName: "contacts__BmContactSideBar"
|
|
17
17
|
})(["display:flex;flex-direction:column;margin:0rem;overflow:auto;"]);
|
|
18
18
|
// Main wrapper
|
|
19
|
-
exports.
|
|
20
|
-
var BmContact = _styledComponents.default.div.withConfig({
|
|
19
|
+
const BmContact = exports.BmContact = _styledComponents.default.div.withConfig({
|
|
21
20
|
displayName: "contacts__BmContact"
|
|
22
|
-
})(["display:flex;flex-direction:row;padding:1.143rem 0rem 1.143rem 1.714rem;&:hover{background:", ";}", ""], _colors.BmGrey100,
|
|
23
|
-
|
|
21
|
+
})(["display:flex;flex-direction:row;padding:1.143rem 0rem 1.143rem 1.714rem;&:hover{background:", ";}", ""], _colors.BmGrey100, _ref => {
|
|
22
|
+
let {
|
|
23
|
+
active
|
|
24
|
+
} = _ref;
|
|
24
25
|
return active && " \n background: ".concat(_colors.BmGrey100, ";\n ");
|
|
25
26
|
});
|
|
26
27
|
|
|
27
28
|
// Contact Item
|
|
28
|
-
exports.
|
|
29
|
-
var BmContactItem = _styledComponents.default.div.withConfig({
|
|
29
|
+
const BmContactItem = exports.BmContactItem = _styledComponents.default.div.withConfig({
|
|
30
30
|
displayName: "contacts__BmContactItem"
|
|
31
31
|
})(["display:flex;flex-direction:column;padding-left:1.143rem;flex-grow:1;margin:0rem;"]);
|
|
32
32
|
|
|
33
33
|
// Contact Name
|
|
34
|
-
exports.
|
|
35
|
-
var BmContactText = _styledComponents.default.h3.withConfig({
|
|
34
|
+
const BmContactText = exports.BmContactText = _styledComponents.default.h3.withConfig({
|
|
36
35
|
displayName: "contacts__BmContactText"
|
|
37
36
|
})(["color:", ";cursor:pointer;"], _colors.BmPrimaryBlack);
|
|
38
|
-
exports.
|
|
39
|
-
var BmContactTextWrapper = _styledComponents.default.div.withConfig({
|
|
37
|
+
const BmContactTextWrapper = exports.BmContactTextWrapper = _styledComponents.default.div.withConfig({
|
|
40
38
|
displayName: "contacts__BmContactTextWrapper"
|
|
41
39
|
})(["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%;"]);
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
40
|
+
const BmContactName = _ref2 => {
|
|
41
|
+
let {
|
|
42
|
+
children
|
|
43
|
+
} = _ref2,
|
|
45
44
|
rest = _objectWithoutProperties(_ref2, _excluded);
|
|
46
45
|
return /*#__PURE__*/_react.default.createElement(BmContactTextWrapper, null, /*#__PURE__*/_react.default.createElement(BmContactText, rest, children));
|
|
47
46
|
};
|
|
48
47
|
|
|
49
48
|
// Contact Icon Wrapper
|
|
50
49
|
exports.BmContactName = BmContactName;
|
|
51
|
-
|
|
50
|
+
const BmContactIcon = exports.BmContactIcon = _styledComponents.default.div.withConfig({
|
|
52
51
|
displayName: "contacts__BmContactIcon"
|
|
53
52
|
})(["display:flex;flex-direction:row;"]);
|
|
54
53
|
|
|
55
54
|
// Message
|
|
56
|
-
exports.
|
|
57
|
-
var BmMessageTexts = _styledComponents.default.p.withConfig({
|
|
55
|
+
const BmMessageTexts = exports.BmMessageTexts = _styledComponents.default.p.withConfig({
|
|
58
56
|
displayName: "contacts__BmMessageTexts"
|
|
59
57
|
})(["color:", ";padding:0rem;cursor:pointer;"], _colors.BmPrimaryBlack);
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
58
|
+
const BmMessageText = _ref3 => {
|
|
59
|
+
let {
|
|
60
|
+
children
|
|
61
|
+
} = _ref3,
|
|
63
62
|
rest = _objectWithoutProperties(_ref3, _excluded2);
|
|
64
63
|
return /*#__PURE__*/_react.default.createElement(BmContactTextWrapper, null, /*#__PURE__*/_react.default.createElement(BmMessageTexts, rest, children));
|
|
65
64
|
};
|
|
66
65
|
exports.BmMessageText = BmMessageText;
|
|
67
|
-
|
|
66
|
+
const BmMessageContact = exports.BmMessageContact = _styledComponents.default.div.withConfig({
|
|
68
67
|
displayName: "contacts__BmMessageContact"
|
|
69
68
|
})(["display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding-top:0.286rem;cursor:pointer;"]);
|
|
70
|
-
exports.
|
|
71
|
-
var BmUnreadMessage = _styledComponents.default.p.withConfig({
|
|
69
|
+
const BmUnreadMessage = exports.BmUnreadMessage = _styledComponents.default.p.withConfig({
|
|
72
70
|
displayName: "contacts__BmUnreadMessage"
|
|
73
71
|
})(["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);
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
72
|
+
const BmContactMessage = props => {
|
|
73
|
+
const {
|
|
74
|
+
children
|
|
75
|
+
} = props;
|
|
77
76
|
return /*#__PURE__*/_react.default.createElement(BmMessageContact, null, /*#__PURE__*/_react.default.createElement(BmMessageText, null, children));
|
|
78
77
|
};
|
|
79
78
|
|
|
80
79
|
// Contact Details Wrapper
|
|
81
80
|
exports.BmContactMessage = BmContactMessage;
|
|
82
|
-
|
|
81
|
+
const BmContactDetails = exports.BmContactDetails = _styledComponents.default.div.withConfig({
|
|
83
82
|
displayName: "contacts__BmContactDetails"
|
|
84
83
|
})(["display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding-top:0.786rem;cursor:pointer;"]);
|
|
85
84
|
|
|
86
85
|
// Contact time
|
|
87
|
-
exports.
|
|
88
|
-
var BmContactTime = _styledComponents.default.p.withConfig({
|
|
86
|
+
const BmContactTime = exports.BmContactTime = _styledComponents.default.p.withConfig({
|
|
89
87
|
displayName: "contacts__BmContactTime"
|
|
90
|
-
})(["text-align:right;letter-spacing:-0.02em;color:", ";margin:0rem 0.571rem;margin-left:auto;"], _colors.BmPrimaryBlack);
|
|
91
|
-
exports.BmContactTime = BmContactTime;
|
|
88
|
+
})(["text-align:right;letter-spacing:-0.02em;color:", ";margin:0rem 0.571rem;margin-left:auto;"], _colors.BmPrimaryBlack);
|