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
|
@@ -8,9 +8,9 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
8
8
|
var _styles = require("@material-ui/core/styles");
|
|
9
9
|
var _SvgIcon = _interopRequireDefault(require("@material-ui/core/SvgIcon"));
|
|
10
10
|
var _colors = require("./colors");
|
|
11
|
-
function _interopRequireDefault(
|
|
12
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
13
|
-
|
|
11
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
|
+
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); }
|
|
13
|
+
const size = props => {
|
|
14
14
|
if (props.size === 'xsmall') return '1.143rem !important';
|
|
15
15
|
if (props.size === 'small') return '1.429rem !important';
|
|
16
16
|
if (props.size === 'medium') return '1.714rem !important';
|
|
@@ -21,18 +21,16 @@ var size = function size(props) {
|
|
|
21
21
|
};
|
|
22
22
|
|
|
23
23
|
// Button Icons
|
|
24
|
-
|
|
24
|
+
const ButtonIcon = {
|
|
25
25
|
root: {
|
|
26
|
-
height:
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
disabled = _ref.disabled,
|
|
35
|
-
color = _ref.color;
|
|
26
|
+
height: props => size(props),
|
|
27
|
+
width: props => size(props),
|
|
28
|
+
fill: _ref => {
|
|
29
|
+
let {
|
|
30
|
+
variant,
|
|
31
|
+
disabled,
|
|
32
|
+
color
|
|
33
|
+
} = _ref;
|
|
36
34
|
if (!disabled) {
|
|
37
35
|
if (variant === 'active') return "".concat(_colors.BmPrimaryWhite);
|
|
38
36
|
if (variant === 'enabled') return "".concat(_colors.BmPrimaryBlack);
|
|
@@ -46,11 +44,13 @@ var ButtonIcon = {
|
|
|
46
44
|
}
|
|
47
45
|
return "".concat(_colors.BmGrey400);
|
|
48
46
|
},
|
|
49
|
-
color:
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
47
|
+
color: _ref2 => {
|
|
48
|
+
let {
|
|
49
|
+
variant,
|
|
50
|
+
disabled,
|
|
51
|
+
color
|
|
52
|
+
} = _ref2;
|
|
53
|
+
if (color) return color;
|
|
54
54
|
if (!disabled) {
|
|
55
55
|
if (variant === 'active') return "".concat(_colors.BmPrimaryWhite);
|
|
56
56
|
if (variant === 'enabled') return "".concat(_colors.BmPrimaryBlack);
|
|
@@ -58,17 +58,17 @@ var ButtonIcon = {
|
|
|
58
58
|
if (variant === 'success') return "".concat(_colors.BmPrimaryWhite);
|
|
59
59
|
if (variant === 'neutral') return "".concat(_colors.BmPrimaryBlue);
|
|
60
60
|
if (variant === 'primary') return "".concat(_colors.BmPrimaryWhite);
|
|
61
|
-
if (variant === 'secondary') return "".concat(
|
|
62
|
-
if (variant === 'tertiary') return "".concat(
|
|
61
|
+
if (variant === 'secondary') return "".concat(color || _colors.BmPrimaryBlue);
|
|
62
|
+
if (variant === 'tertiary') return "".concat(color || _colors.BmPrimaryBlue);
|
|
63
63
|
return "".concat(_colors.BmPrimaryWhite);
|
|
64
64
|
}
|
|
65
65
|
return "".concat(_colors.BmGrey400);
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
68
|
};
|
|
69
|
-
|
|
69
|
+
const BmButtonIcon = exports.BmButtonIcon = (0, _styles.withStyles)(ButtonIcon)(props => {
|
|
70
70
|
if (props.icon) {
|
|
71
|
-
|
|
71
|
+
const Icon = props.icon.type;
|
|
72
72
|
return /*#__PURE__*/_react.default.createElement(Icon, _extends({
|
|
73
73
|
action: true
|
|
74
74
|
}, props));
|
|
@@ -77,38 +77,37 @@ var BmButtonIcon = (0, _styles.withStyles)(ButtonIcon)(function (props) {
|
|
|
77
77
|
});
|
|
78
78
|
|
|
79
79
|
// Tags
|
|
80
|
-
|
|
81
|
-
var TagIcon = {
|
|
80
|
+
const TagIcon = {
|
|
82
81
|
root: {
|
|
83
|
-
height:
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
var variant = _ref3.variant,
|
|
91
|
-
color = _ref3.color;
|
|
82
|
+
height: props => size(props) || '1.143rem !important',
|
|
83
|
+
width: props => size(props) || '1.143rem !important',
|
|
84
|
+
fill: _ref3 => {
|
|
85
|
+
let {
|
|
86
|
+
variant,
|
|
87
|
+
color
|
|
88
|
+
} = _ref3;
|
|
92
89
|
if (color) {
|
|
93
90
|
return color;
|
|
94
91
|
}
|
|
95
92
|
if (variant === 'neutral' || variant === 'light') return "".concat(_colors.BmPrimaryBlack);
|
|
96
93
|
return "".concat(_colors.BmPrimaryWhite);
|
|
97
94
|
},
|
|
98
|
-
color:
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
95
|
+
color: _ref4 => {
|
|
96
|
+
let {
|
|
97
|
+
variant,
|
|
98
|
+
color
|
|
99
|
+
} = _ref4;
|
|
100
|
+
if (color) {
|
|
101
|
+
return color;
|
|
103
102
|
}
|
|
104
103
|
if (variant === 'neutral' || variant === 'light') return "".concat(_colors.BmPrimaryBlack);
|
|
105
104
|
return "".concat(_colors.BmPrimaryWhite);
|
|
106
105
|
}
|
|
107
106
|
}
|
|
108
107
|
};
|
|
109
|
-
|
|
108
|
+
const BmTagIcon = exports.BmTagIcon = (0, _styles.withStyles)(TagIcon)(props => {
|
|
110
109
|
if (props.icon) {
|
|
111
|
-
|
|
110
|
+
const Icon = props.icon.type;
|
|
112
111
|
return /*#__PURE__*/_react.default.createElement(Icon, _extends({
|
|
113
112
|
action: true
|
|
114
113
|
}, props));
|
|
@@ -117,8 +116,7 @@ var BmTagIcon = (0, _styles.withStyles)(TagIcon)(function (props) {
|
|
|
117
116
|
});
|
|
118
117
|
|
|
119
118
|
// Avatar Icons
|
|
120
|
-
|
|
121
|
-
var Avatarsize = function Avatarsize(props) {
|
|
119
|
+
const Avatarsize = props => {
|
|
122
120
|
if (props.size === 'xsmall') return '0.857rem !important';
|
|
123
121
|
if (props.size === 'small') return '1.143rem !important';
|
|
124
122
|
if (props.size === 'medium') return '1.429rem !important';
|
|
@@ -126,25 +124,17 @@ var Avatarsize = function Avatarsize(props) {
|
|
|
126
124
|
if (!props.size) return '2.286rem !important';
|
|
127
125
|
return props.size;
|
|
128
126
|
};
|
|
129
|
-
|
|
127
|
+
const AvatarIcon = {
|
|
130
128
|
root: {
|
|
131
|
-
fill:
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
return props.color || "".concat(_colors.BmPrimaryWhite);
|
|
136
|
-
},
|
|
137
|
-
height: function height(props) {
|
|
138
|
-
return Avatarsize(props);
|
|
139
|
-
},
|
|
140
|
-
width: function width(props) {
|
|
141
|
-
return Avatarsize(props);
|
|
142
|
-
}
|
|
129
|
+
fill: props => props.color || "".concat(_colors.BmPrimaryWhite),
|
|
130
|
+
color: props => props.color || "".concat(_colors.BmPrimaryWhite),
|
|
131
|
+
height: props => Avatarsize(props),
|
|
132
|
+
width: props => Avatarsize(props)
|
|
143
133
|
}
|
|
144
134
|
};
|
|
145
|
-
|
|
135
|
+
const BmAvatarIcon = exports.BmAvatarIcon = (0, _styles.withStyles)(AvatarIcon)(props => {
|
|
146
136
|
if (props.icon) {
|
|
147
|
-
|
|
137
|
+
const Icon = props.icon.type;
|
|
148
138
|
return /*#__PURE__*/_react.default.createElement(Icon, _extends({
|
|
149
139
|
action: true
|
|
150
140
|
}, props));
|
|
@@ -153,8 +143,7 @@ var BmAvatarIcon = (0, _styles.withStyles)(AvatarIcon)(function (props) {
|
|
|
153
143
|
});
|
|
154
144
|
|
|
155
145
|
// check on sizing
|
|
156
|
-
exports.
|
|
157
|
-
var BmChatbotIcon = (0, _styles.withStyles)(AvatarIcon)(function (props) {
|
|
146
|
+
const BmChatbotIcon = exports.BmChatbotIcon = (0, _styles.withStyles)(AvatarIcon)(props => {
|
|
158
147
|
return /*#__PURE__*/_react.default.createElement(_SvgIcon.default, _extends({
|
|
159
148
|
action: true
|
|
160
149
|
}, props), /*#__PURE__*/_react.default.createElement("path", {
|
|
@@ -165,40 +154,30 @@ var BmChatbotIcon = (0, _styles.withStyles)(AvatarIcon)(function (props) {
|
|
|
165
154
|
|
|
166
155
|
// To be refacotored
|
|
167
156
|
// Emoji Icons
|
|
168
|
-
|
|
169
|
-
var EmojiSize = function EmojiSize() {
|
|
157
|
+
const EmojiSize = () => {
|
|
170
158
|
// if (props.size === "small") return "1.429rem";
|
|
171
159
|
// if (props.size === "medium") return "1.714rem";
|
|
172
160
|
// if (props.size === "large") return "1.714rem";
|
|
173
161
|
return '2.286rem !important';
|
|
174
162
|
};
|
|
175
|
-
|
|
163
|
+
const EmojiIcon = {
|
|
176
164
|
root: {
|
|
177
|
-
fill:
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
return props.color || "".concat(_colors.BmSecondaryGrey);
|
|
182
|
-
},
|
|
183
|
-
height: function height(props) {
|
|
184
|
-
return EmojiSize(props);
|
|
185
|
-
},
|
|
186
|
-
width: function width(props) {
|
|
187
|
-
return EmojiSize(props);
|
|
188
|
-
}
|
|
165
|
+
fill: props => props.color || "".concat(_colors.BmSecondaryGrey),
|
|
166
|
+
color: props => props.color || "".concat(_colors.BmSecondaryGrey),
|
|
167
|
+
height: props => EmojiSize(props),
|
|
168
|
+
width: props => EmojiSize(props)
|
|
189
169
|
}
|
|
190
170
|
};
|
|
191
|
-
|
|
171
|
+
const BmEmojiIcon = exports.BmEmojiIcon = (0, _styles.withStyles)(EmojiIcon)(props => {
|
|
192
172
|
if (props.icon) {
|
|
193
|
-
|
|
173
|
+
const Icon = props.icon.type;
|
|
194
174
|
return /*#__PURE__*/_react.default.createElement(Icon, _extends({
|
|
195
175
|
action: true
|
|
196
176
|
}, props));
|
|
197
177
|
}
|
|
198
178
|
return null;
|
|
199
179
|
});
|
|
200
|
-
exports.
|
|
201
|
-
var BmQuickReplyIcon = (0, _styles.withStyles)(EmojiIcon)(function (props) {
|
|
180
|
+
const BmQuickReplyIcon = exports.BmQuickReplyIcon = (0, _styles.withStyles)(EmojiIcon)(props => {
|
|
202
181
|
return /*#__PURE__*/_react.default.createElement(_SvgIcon.default, _extends({
|
|
203
182
|
action: true
|
|
204
183
|
}, props), /*#__PURE__*/_react.default.createElement("path", {
|
|
@@ -206,26 +185,17 @@ var BmQuickReplyIcon = (0, _styles.withStyles)(EmojiIcon)(function (props) {
|
|
|
206
185
|
fill: props.color || '#575757'
|
|
207
186
|
}));
|
|
208
187
|
});
|
|
209
|
-
|
|
210
|
-
var icon = {
|
|
188
|
+
const icon = {
|
|
211
189
|
root: {
|
|
212
|
-
fill:
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
return size(props);
|
|
217
|
-
},
|
|
218
|
-
width: function width(props) {
|
|
219
|
-
return size(props);
|
|
220
|
-
},
|
|
221
|
-
color: function color(props) {
|
|
222
|
-
return props.color || "".concat(_colors.BmSecondaryGrey);
|
|
223
|
-
}
|
|
190
|
+
fill: props => props.color || "".concat(_colors.BmSecondaryGrey),
|
|
191
|
+
height: props => size(props),
|
|
192
|
+
width: props => size(props),
|
|
193
|
+
color: props => props.color || "".concat(_colors.BmSecondaryGrey)
|
|
224
194
|
}
|
|
225
195
|
};
|
|
226
|
-
|
|
196
|
+
const BmIcons = exports.BmIcons = (0, _styles.withStyles)(icon)(props => {
|
|
227
197
|
if (props.icon) {
|
|
228
|
-
|
|
198
|
+
const Icon = props.icon.type;
|
|
229
199
|
return /*#__PURE__*/_react.default.createElement(Icon, _extends({
|
|
230
200
|
action: true
|
|
231
201
|
}, props, {
|
|
@@ -234,8 +204,7 @@ var BmIcons = (0, _styles.withStyles)(icon)(function (props) {
|
|
|
234
204
|
}
|
|
235
205
|
return null;
|
|
236
206
|
});
|
|
237
|
-
exports.
|
|
238
|
-
var BmChatbot = (0, _styles.withStyles)(icon)(function (props) {
|
|
207
|
+
const BmChatbot = exports.BmChatbot = (0, _styles.withStyles)(icon)(props => {
|
|
239
208
|
return /*#__PURE__*/_react.default.createElement(_SvgIcon.default, _extends({
|
|
240
209
|
action: true
|
|
241
210
|
}, props), /*#__PURE__*/_react.default.createElement("path", {
|
|
@@ -243,8 +212,7 @@ var BmChatbot = (0, _styles.withStyles)(icon)(function (props) {
|
|
|
243
212
|
fill: props.color || "".concat(_colors.BmSecondaryGrey)
|
|
244
213
|
}));
|
|
245
214
|
});
|
|
246
|
-
exports.
|
|
247
|
-
var BmSupport = (0, _styles.withStyles)(icon)(function (props) {
|
|
215
|
+
const BmSupport = exports.BmSupport = (0, _styles.withStyles)(icon)(props => {
|
|
248
216
|
return /*#__PURE__*/_react.default.createElement(_SvgIcon.default, _extends({
|
|
249
217
|
action: true
|
|
250
218
|
}, props), /*#__PURE__*/_react.default.createElement("path", {
|
|
@@ -261,8 +229,7 @@ var BmSupport = (0, _styles.withStyles)(icon)(function (props) {
|
|
|
261
229
|
fill: props.color || 'black'
|
|
262
230
|
}));
|
|
263
231
|
});
|
|
264
|
-
exports.
|
|
265
|
-
var CopyToClipBoard = (0, _styles.withStyles)(icon)(function (props) {
|
|
232
|
+
const CopyToClipBoard = exports.CopyToClipBoard = (0, _styles.withStyles)(icon)(props => {
|
|
266
233
|
return /*#__PURE__*/_react.default.createElement(_SvgIcon.default, _extends({
|
|
267
234
|
action: true
|
|
268
235
|
}, props), /*#__PURE__*/_react.default.createElement("path", {
|
|
@@ -271,5 +238,4 @@ var CopyToClipBoard = (0, _styles.withStyles)(icon)(function (props) {
|
|
|
271
238
|
}), /*#__PURE__*/_react.default.createElement("path", {
|
|
272
239
|
d: "M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"
|
|
273
240
|
}));
|
|
274
|
-
});
|
|
275
|
-
exports.CopyToClipBoard = CopyToClipBoard;
|
|
241
|
+
});
|