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.
Files changed (227) hide show
  1. package/Dockerfile +4 -2
  2. package/Jenkinsfile +20 -5
  3. package/dist/components/Accordion/Accordion.js +55 -66
  4. package/dist/components/Accordion/Accordion.stories.js +5 -6
  5. package/dist/components/Avatars/avatars.js +33 -23
  6. package/dist/components/Avatars/avatars.stories.js +5 -10
  7. package/dist/components/BannerCard/bannerCard.stories.js +6 -7
  8. package/dist/components/BannerCard/bannerCards.js +38 -40
  9. package/dist/components/BmSelector/BmSelector.js +120 -0
  10. package/dist/components/BmSelector/BmSelector.stories.js +138 -0
  11. package/dist/components/ButtonGroup/buttonGroup.js +14 -15
  12. package/dist/components/ButtonGroup/buttonGroup.stories.js +11 -26
  13. package/dist/components/Buttons/Stories/basicbutton.stories.js +5 -10
  14. package/dist/components/Buttons/Stories/buttonAlertIcons.stories.js +4 -8
  15. package/dist/components/Buttons/Stories/buttonIconsOnly.stories.js +4 -8
  16. package/dist/components/Buttons/buttonAlertIcons.js +40 -58
  17. package/dist/components/Buttons/buttonDropdown copy.js +52 -35
  18. package/dist/components/Buttons/buttonDropdown.js +5 -3
  19. package/dist/components/Buttons/buttonIconsOnly.js +32 -25
  20. package/dist/components/Buttons/buttons.js +105 -72
  21. package/dist/components/Card_v2/Card.js +78 -0
  22. package/dist/components/Card_v2/Card.stories.js +60 -0
  23. package/dist/components/Cards/cards.js +3 -4
  24. package/dist/components/Cards/cards.stories.js +4 -5
  25. package/dist/components/ChatComponents/ChatBody/FeedPostComments.js +65 -39
  26. package/dist/components/ChatComponents/ChatBody/chatBody.js +224 -189
  27. package/dist/components/ChatComponents/ChatBody/chatBody.stories.js +4 -5
  28. package/dist/components/ChatComponents/ChatBody/sessionDetails.js +11 -9
  29. package/dist/components/ChatComponents/ChatBody/sessionTimeline.js +12 -10
  30. package/dist/components/ChatComponents/ChatHeader/chatHeader.js +3 -4
  31. package/dist/components/ChatComponents/ChatHeader/chatHeader.stories.js +3 -4
  32. package/dist/components/ChatComponents/ColorPicker/colorPicker.js +3 -6
  33. package/dist/components/ChatComponents/ColorPicker/colorPicker.stories.js +7 -10
  34. package/dist/components/ChatComponents/ContactCards/contactCards.js +40 -31
  35. package/dist/components/ChatComponents/ContactCards/contactCards.stories.js +3 -4
  36. package/dist/components/ChatComponents/FormAccordion/FormAccordion.js +3 -4
  37. package/dist/components/ChatComponents/FormAccordion/FormAccordion.stories.js +3 -4
  38. package/dist/components/ChatComponents/InfoTab/infoTab.js +3 -5
  39. package/dist/components/ChatComponents/InfoTab/infoTab.stories.js +3 -4
  40. package/dist/components/ChatComponents/LabelAccordion/LabelAccordion.js +3 -4
  41. package/dist/components/ChatComponents/LabelAccordion/LabelAccordion.stories.js +3 -4
  42. package/dist/components/ChatComponents/NoteAccordion/NoteAccordion.js +3 -4
  43. package/dist/components/ChatComponents/NoteAccordion/NoteAccordion.stories.js +3 -4
  44. package/dist/components/Chats/chat.js +56 -50
  45. package/dist/components/Chats/chatInput.js +9 -14
  46. package/dist/components/Chats/chatwrapper.js +8 -14
  47. package/dist/components/Checkbox/checkboxToggler.js +20 -20
  48. package/dist/components/Checkbox/checkboxToggler.stories.js +12 -35
  49. package/dist/components/InfoPanel/InfoPanel.js +141 -0
  50. package/dist/components/InfoPanel/InfoPanel.stories.js +200 -0
  51. package/dist/components/InputCounter/inputCounter.js +17 -18
  52. package/dist/components/Jumbotron/Jumbotron.js +8 -11
  53. package/dist/components/Jumbotron/Jumbotron.stories.js +3 -4
  54. package/dist/components/LabelWithIcon/LabelWithIcon.js +63 -0
  55. package/dist/components/LabelWithIcon/LabelWithIcon.stories.js +59 -0
  56. package/dist/components/Lists/listBox.js +21 -25
  57. package/dist/components/Lists/listBox.stories.js +7 -20
  58. package/dist/components/Lists/listHeader.stories.js +4 -8
  59. package/dist/components/Lists/listheader.js +17 -14
  60. package/dist/components/Lists/rowLabels.js +26 -24
  61. package/dist/components/Lists/rowLabels.stories.js +11 -18
  62. package/dist/components/Loader/loader.js +16 -14
  63. package/dist/components/Loader/loader.stories.js +4 -8
  64. package/dist/components/MainWrapper/index.js +3 -4
  65. package/dist/components/MessageCounter/MessageCounter.stories.js +4 -5
  66. package/dist/components/MessageCounter/messageCounter.js +15 -10
  67. package/dist/components/Modals/modal.js +57 -72
  68. package/dist/components/Modals/modals.stories.js +16 -45
  69. package/dist/components/MojaAccordion/MojaAccordion.js +49 -55
  70. package/dist/components/MultipleDateSelector/multipleDateSelector.js +14 -18
  71. package/dist/components/NoteBar/noteBar.js +22 -32
  72. package/dist/components/NoteBar/noteBar.stories.js +5 -10
  73. package/dist/components/PaymentBox/paymentBox.js +14 -11
  74. package/dist/components/PaymentBox/paymentBox.stories.js +3 -4
  75. package/dist/components/PerformanceIndicator/performaceIndicator.stories.js +4 -8
  76. package/dist/components/PerformanceIndicator/performanceIndicator.js +17 -14
  77. package/dist/components/Pills/pills.js +30 -38
  78. package/dist/components/Pills/pills.stories.js +5 -10
  79. package/dist/components/ProfileIcon/ProfileIcon.js +26 -36
  80. package/dist/components/ProfileIcon/profileIcon.stories.js +6 -12
  81. package/dist/components/ProgressBar/progressbar.js +14 -12
  82. package/dist/components/ProgressBar/progressbar.stories.js +4 -8
  83. package/dist/components/ProgressIndicator/ProgressIndicator.js +121 -0
  84. package/dist/components/ProgressIndicator/ProgressIndicator.stories.js +99 -0
  85. package/dist/components/ProgressRing/progressRing.js +48 -50
  86. package/dist/components/ProgressRing/progressRing.stories.js +5 -10
  87. package/dist/components/RouteLink/link.js +3 -8
  88. package/dist/components/RouteLink/link.stories.js +3 -4
  89. package/dist/components/ScrollBar/scrollBar.js +18 -26
  90. package/dist/components/SelectionNotice/SelectionNotice.js +57 -0
  91. package/dist/components/SelectionNotice/SelectionNotice.stories.js +35 -0
  92. package/dist/components/Stepper/stepper.js +4 -11
  93. package/dist/components/SuperFluid/Content/index.js +3 -4
  94. package/dist/components/SuperFluid/ContentTitle.js/index.js +6 -10
  95. package/dist/components/SuperFluid/SegmentCard/index.js +11 -21
  96. package/dist/components/Tabs/tabs.js +32 -24
  97. package/dist/components/Tabs/tabs.stories.js +6 -12
  98. package/dist/components/Tags/tags.js +65 -63
  99. package/dist/components/Tags/tags.stories.js +6 -12
  100. package/dist/components/breakpoints.js +3 -5
  101. package/dist/components/chatHeader.js +7 -12
  102. package/dist/components/checkbox.js +30 -25
  103. package/dist/components/colors.js +31 -62
  104. package/dist/components/contacts.js +32 -35
  105. package/dist/components/dropdown.js +18 -39
  106. package/dist/components/dropdownButton.js +38 -28
  107. package/dist/components/dropdownItems.js +23 -26
  108. package/dist/components/examples/App.js +3 -4
  109. package/dist/components/examples/InfoAccordion.js +3 -4
  110. package/dist/components/examples/chatBodyExample.js +4 -7
  111. package/dist/components/examples/selectExample.js +12 -30
  112. package/dist/components/globalStyles.js +1 -2
  113. package/dist/components/iconStyles.js +69 -103
  114. package/dist/components/index-copy.js +197 -197
  115. package/dist/components/index.js +106 -66
  116. package/dist/components/input.js +36 -25
  117. package/dist/components/logo.js +10 -9
  118. package/dist/components/navbar.js +9 -16
  119. package/dist/components/search.js +18 -16
  120. package/dist/components/shadow.js +1 -2
  121. package/dist/components/text.js +9 -18
  122. package/dist/components/typography.js +14 -28
  123. package/dist/components/wrapper.js +4 -6
  124. package/nginx.conf +26 -12
  125. package/package.json +3 -1
  126. package/src/App.js +246 -3
  127. package/src/lib/components/BmSelector/BmSelector.js +154 -0
  128. package/src/lib/components/BmSelector/BmSelector.stories.jsx +125 -0
  129. package/src/lib/components/Buttons/buttons.js +12 -8
  130. package/src/lib/components/Card_v2/Card.js +127 -0
  131. package/src/lib/components/Card_v2/Card.stories.jsx +94 -0
  132. package/src/lib/components/InfoPanel/InfoPanel.js +221 -0
  133. package/src/lib/components/InfoPanel/InfoPanel.stories.jsx +169 -0
  134. package/src/lib/components/LabelWithIcon/LabelWithIcon.js +61 -0
  135. package/src/lib/components/LabelWithIcon/LabelWithIcon.stories.jsx +59 -0
  136. package/src/lib/components/ProgressIndicator/ProgressIndicator.js +208 -0
  137. package/src/lib/components/ProgressIndicator/ProgressIndicator.stories.jsx +91 -0
  138. package/src/lib/components/SelectionNotice/SelectionNotice.js +65 -0
  139. package/src/lib/components/SelectionNotice/SelectionNotice.stories.jsx +40 -0
  140. package/src/lib/components/index.js +14 -0
  141. package/src/util/convertToRGBA.js +21 -0
  142. package/storybook-static/140.d6695a165d8dcc810b2e.manager.bundle.js +1 -0
  143. package/storybook-static/140.f87feb0b.iframe.bundle.js +1 -0
  144. package/storybook-static/149.7cc11ef8.iframe.bundle.js +2 -0
  145. package/storybook-static/149.7cc11ef8.iframe.bundle.js.LICENSE.txt +14 -0
  146. package/storybook-static/192.08b67b8c.iframe.bundle.js +1 -0
  147. package/storybook-static/246.9ad91c22.iframe.bundle.js +2 -0
  148. package/storybook-static/{vendors~main.7fe78cc2.iframe.bundle.js.LICENSE.txt → 246.9ad91c22.iframe.bundle.js.LICENSE.txt} +48 -16
  149. package/storybook-static/448.0ad0b2a9.iframe.bundle.js +2 -0
  150. package/storybook-static/448.0ad0b2a9.iframe.bundle.js.LICENSE.txt +8 -0
  151. package/storybook-static/448.502f738789de31a83e1c.manager.bundle.js +2 -0
  152. package/storybook-static/448.502f738789de31a83e1c.manager.bundle.js.LICENSE.txt +8 -0
  153. package/storybook-static/463.694cb3b0a2f8b0deba70.manager.bundle.js +2 -0
  154. package/storybook-static/463.694cb3b0a2f8b0deba70.manager.bundle.js.LICENSE.txt +31 -0
  155. package/storybook-static/463.7b3b5742.iframe.bundle.js +2 -0
  156. package/storybook-static/463.7b3b5742.iframe.bundle.js.LICENSE.txt +31 -0
  157. package/storybook-static/58.56a2198b.iframe.bundle.js +1 -0
  158. package/storybook-static/58.cd3f8ad06a1200571eab.manager.bundle.js +1 -0
  159. package/storybook-static/676.d74803c6ab12eac1cdb2.manager.bundle.js +2 -0
  160. package/storybook-static/{vendors~main.1750028c2d68e574fb1d.manager.bundle.js.LICENSE.txt → 676.d74803c6ab12eac1cdb2.manager.bundle.js.LICENSE.txt} +20 -30
  161. package/storybook-static/720.d729a720931e1312e597.manager.bundle.js +2 -0
  162. package/storybook-static/720.e12f6aa2.iframe.bundle.js +2 -0
  163. package/storybook-static/794.0543a68a8b5aa273273a.manager.bundle.js +1 -0
  164. package/storybook-static/929.5353bbe2.iframe.bundle.js +1 -0
  165. package/storybook-static/929.ed1807a8ea3e2353d440.manager.bundle.js +1 -0
  166. package/storybook-static/9b058fcb1416fea75e6c.png +0 -0
  167. package/storybook-static/f29af3502f15acc765a8.png +0 -0
  168. package/storybook-static/favicon.ico +0 -0
  169. package/storybook-static/iframe.html +22 -6
  170. package/storybook-static/index.html +66 -109
  171. package/storybook-static/main.1a29aa69.iframe.bundle.js +1 -0
  172. package/storybook-static/main.69bad789e0a3d801264b.manager.bundle.js +1 -0
  173. package/storybook-static/project.json +1 -0
  174. package/storybook-static/runtime~main.87eecef7.iframe.bundle.js +1 -0
  175. package/storybook-static/runtime~main.dd5308492057ff00c469.manager.bundle.js +1 -0
  176. package/storybook-static/static/css/main.08a2eb27.css +6 -0
  177. package/storybook-static/static/css/main.08a2eb27.css.map +1 -0
  178. package/storybook-static/0.00c62ec79c260aedbb98.manager.bundle.js +0 -2
  179. package/storybook-static/0.00c62ec79c260aedbb98.manager.bundle.js.LICENSE.txt +0 -8
  180. package/storybook-static/0.96c45dd8.iframe.bundle.js +0 -1
  181. package/storybook-static/1.dc6acfa9.iframe.bundle.js +0 -3
  182. package/storybook-static/1.dc6acfa9.iframe.bundle.js.LICENSE.txt +0 -8
  183. package/storybook-static/1.dc6acfa9.iframe.bundle.js.map +0 -1
  184. package/storybook-static/1.dc7dcdaec2def2f224fd.manager.bundle.js +0 -1
  185. package/storybook-static/2.24353ddc.iframe.bundle.js +0 -1
  186. package/storybook-static/3.8bb2173c.iframe.bundle.js +0 -1
  187. package/storybook-static/5.0779e3847d325dece216.manager.bundle.js +0 -1
  188. package/storybook-static/6.8bd405c2576206749a16.manager.bundle.js +0 -2
  189. package/storybook-static/7.9d4ba19cf58425e7ff0d.manager.bundle.js +0 -1
  190. package/storybook-static/7.f0cfc757.iframe.bundle.js +0 -1
  191. package/storybook-static/8.91de97de.iframe.bundle.js +0 -3
  192. package/storybook-static/8.91de97de.iframe.bundle.js.map +0 -1
  193. package/storybook-static/8.b4e9ec0ec7648e02a923.manager.bundle.js +0 -1
  194. package/storybook-static/9.40ec65d6.iframe.bundle.js +0 -1
  195. package/storybook-static/asset-manifest.json +0 -30
  196. package/storybook-static/main.3c8d8027.iframe.bundle.js +0 -1
  197. package/storybook-static/main.3e5804fe56d1f580b088.manager.bundle.js +0 -1
  198. package/storybook-static/runtime~main.d3a18d6a.iframe.bundle.js +0 -1
  199. package/storybook-static/runtime~main.ff106120648356c6069d.manager.bundle.js +0 -1
  200. package/storybook-static/static/css/main.b44a190d.chunk.css +0 -4
  201. package/storybook-static/static/css/main.b44a190d.chunk.css.map +0 -1
  202. package/storybook-static/vendors~main.1750028c2d68e574fb1d.manager.bundle.js +0 -2
  203. package/storybook-static/vendors~main.7fe78cc2.iframe.bundle.js +0 -3
  204. package/storybook-static/vendors~main.7fe78cc2.iframe.bundle.js.map +0 -1
  205. /package/storybook-static/{static/media/PoppinsMedium.0ba26f6c.woff → 0ba26f6cfe2f94ec2b43.woff} +0 -0
  206. /package/storybook-static/{static/media/PoppinsRegular.13b9af9c.eot → 13b9af9c8b2b4d656251.eot} +0 -0
  207. /package/storybook-static/{static/media/OpenSans-Regular.1b0809d5.ttf → 1b0809d519837cb7aad3.ttf} +0 -0
  208. /package/storybook-static/{static/media/PoppinsBold.1eae2d48.woff2 → 1eae2d48398534b6e1fe.woff2} +0 -0
  209. /package/storybook-static/{static/media/PoppinsRegular.43e9b50d.svg → 43e9b50d6f4141c6275f.svg} +0 -0
  210. /package/storybook-static/{static/media/PoppinsMedium.49b46ace.eot → 49b46acec5a811ce1edd.eot} +0 -0
  211. /package/storybook-static/{static/media/PoppinsRegular.4a4d5420.woff → 4a4d54208e3b43dcdd6e.woff} +0 -0
  212. /package/storybook-static/{static/media/PoppinsBold.53ff6749.eot → 53ff67494885a390867f.eot} +0 -0
  213. /package/storybook-static/{static/media/PoppinsBold.53ff971f.ttf → 53ff971f3c691d03daf6.ttf} +0 -0
  214. /package/storybook-static/{static/media/PoppinsSemiBold.5692c77f.ttf → 5692c77f2768f53db4fb.ttf} +0 -0
  215. /package/storybook-static/{static/media/PoppinsMedium.57a99fa8.woff2 → 57a99fa8569430db3aa1.woff2} +0 -0
  216. /package/storybook-static/{6.8bd405c2576206749a16.manager.bundle.js.LICENSE.txt → 720.d729a720931e1312e597.manager.bundle.js.LICENSE.txt} +0 -0
  217. /package/storybook-static/{8.91de97de.iframe.bundle.js.LICENSE.txt → 720.e12f6aa2.iframe.bundle.js.LICENSE.txt} +0 -0
  218. /package/storybook-static/{static/media/PoppinsSemiBold.80138c67.woff → 80138c67abf7843ea7e5.woff} +0 -0
  219. /package/storybook-static/{static/media/PoppinsBold.850fc4f3.svg → 850fc4f3768c0af34ea8.svg} +0 -0
  220. /package/storybook-static/{static/media/PoppinsRegular.9a7cc7ec.woff2 → 9a7cc7ec4e1eda4f7e6d.woff2} +0 -0
  221. /package/storybook-static/{static/media/PoppinsBold.b33c148b.woff → b33c148b95e9b282af64.woff} +0 -0
  222. /package/storybook-static/{static/media/PoppinsMedium.b7e43707.svg → b7e43707906d1445e127.svg} +0 -0
  223. /package/storybook-static/{static/media/PoppinsSemiBold.c442695a.eot → c442695a5fcf958609b8.eot} +0 -0
  224. /package/storybook-static/{static/media/PoppinsMedium.c98dddbd.ttf → c98dddbdc5b1e18988b9.ttf} +0 -0
  225. /package/storybook-static/{static/media/PoppinsSemiBold.e1948d56.svg → e1948d56fc87f569ef8d.svg} +0 -0
  226. /package/storybook-static/{static/media/PoppinsRegular.e1bc9021.ttf → e1bc9021c9d8ba86968b.ttf} +0 -0
  227. /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(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
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); }
13
- var size = function size(props) {
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
- var ButtonIcon = {
24
+ const ButtonIcon = {
25
25
  root: {
26
- height: function height(props) {
27
- return size(props);
28
- },
29
- width: function width(props) {
30
- return size(props);
31
- },
32
- fill: function fill(_ref) {
33
- var variant = _ref.variant,
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: function color(_ref2) {
50
- var variant = _ref2.variant,
51
- disabled = _ref2.disabled,
52
- _color = _ref2.color;
53
- if (_color) return _color;
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(_color || _colors.BmPrimaryBlue);
62
- if (variant === 'tertiary') return "".concat(_color || _colors.BmPrimaryBlue);
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
- var BmButtonIcon = (0, _styles.withStyles)(ButtonIcon)(function (props) {
69
+ const BmButtonIcon = exports.BmButtonIcon = (0, _styles.withStyles)(ButtonIcon)(props => {
70
70
  if (props.icon) {
71
- var Icon = props.icon.type;
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
- exports.BmButtonIcon = BmButtonIcon;
81
- var TagIcon = {
80
+ const TagIcon = {
82
81
  root: {
83
- height: function height(props) {
84
- return size(props) || '1.143rem !important';
85
- },
86
- width: function width(props) {
87
- return size(props) || '1.143rem !important';
88
- },
89
- fill: function fill(_ref3) {
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: function color(_ref4) {
99
- var variant = _ref4.variant,
100
- _color2 = _ref4.color;
101
- if (_color2) {
102
- return _color2;
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
- var BmTagIcon = (0, _styles.withStyles)(TagIcon)(function (props) {
108
+ const BmTagIcon = exports.BmTagIcon = (0, _styles.withStyles)(TagIcon)(props => {
110
109
  if (props.icon) {
111
- var Icon = props.icon.type;
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
- exports.BmTagIcon = BmTagIcon;
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
- var AvatarIcon = {
127
+ const AvatarIcon = {
130
128
  root: {
131
- fill: function fill(props) {
132
- return props.color || "".concat(_colors.BmPrimaryWhite);
133
- },
134
- color: function color(props) {
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
- var BmAvatarIcon = (0, _styles.withStyles)(AvatarIcon)(function (props) {
135
+ const BmAvatarIcon = exports.BmAvatarIcon = (0, _styles.withStyles)(AvatarIcon)(props => {
146
136
  if (props.icon) {
147
- var Icon = props.icon.type;
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.BmAvatarIcon = BmAvatarIcon;
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
- exports.BmChatbotIcon = BmChatbotIcon;
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
- var EmojiIcon = {
163
+ const EmojiIcon = {
176
164
  root: {
177
- fill: function fill(props) {
178
- return props.color || "".concat(_colors.BmSecondaryGrey);
179
- },
180
- color: function color(props) {
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
- var BmEmojiIcon = (0, _styles.withStyles)(EmojiIcon)(function (props) {
171
+ const BmEmojiIcon = exports.BmEmojiIcon = (0, _styles.withStyles)(EmojiIcon)(props => {
192
172
  if (props.icon) {
193
- var Icon = props.icon.type;
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.BmEmojiIcon = BmEmojiIcon;
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
- exports.BmQuickReplyIcon = BmQuickReplyIcon;
210
- var icon = {
188
+ const icon = {
211
189
  root: {
212
- fill: function fill(props) {
213
- return props.color || "".concat(_colors.BmSecondaryGrey);
214
- },
215
- height: function height(props) {
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
- var BmIcons = (0, _styles.withStyles)(icon)(function (props) {
196
+ const BmIcons = exports.BmIcons = (0, _styles.withStyles)(icon)(props => {
227
197
  if (props.icon) {
228
- var Icon = props.icon.type;
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.BmIcons = BmIcons;
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.BmChatbot = BmChatbot;
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.BmSupport = BmSupport;
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
+ });