beem-component 1.0.2 → 1.0.6

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 (249) hide show
  1. package/.storybook/favicon.ico +0 -0
  2. package/.storybook/logo-blue.png +0 -0
  3. package/.storybook/main.js +18 -0
  4. package/.storybook/manager-head.html +14 -0
  5. package/.storybook/manager.js +6 -0
  6. package/.storybook/preview.js +10 -0
  7. package/.storybook/theme.js +10 -0
  8. package/Dockerfile +30 -0
  9. package/Jenkinsfile +73 -0
  10. package/build-storybook.log +14621 -0
  11. package/dist/assets/beem.jpeg +0 -0
  12. package/dist/assets/css/sidebar.css +12 -0
  13. package/dist/components/{Accordion.js → Accordion/Accordion.js} +13 -7
  14. package/dist/components/Accordion/Accordion.stories.js +86 -0
  15. package/dist/components/{avatars.js → Avatars/avatars.js} +32 -11
  16. package/dist/components/Avatars/avatars.stories.js +69 -0
  17. package/dist/components/Buttons/Stories/basicbutton.stories.js +67 -0
  18. package/dist/components/Buttons/Stories/buttonAlertIcons.stories.js +65 -0
  19. package/dist/components/Buttons/Stories/buttonIconsOnly.stories.js +65 -0
  20. package/dist/components/{buttonAlertIcons.js → Buttons/buttonAlertIcons.js} +17 -9
  21. package/dist/components/Buttons/buttonDropdown copy.js +158 -0
  22. package/dist/components/Buttons/buttonDropdown.js +30 -0
  23. package/dist/components/{buttonIconsOnly.js → Buttons/buttonIconsOnly.js} +14 -5
  24. package/dist/components/{buttons.js → Buttons/buttons.js} +12 -11
  25. package/dist/components/Cards/cards.js +24 -0
  26. package/dist/components/Cards/cards.stories.js +57 -0
  27. package/dist/components/ChatBody/chatBody.js +138 -0
  28. package/dist/components/ChatBody/chatBody.stories.js +65 -0
  29. package/dist/components/{Modals/noteModalBody.js → ChatHeader/chatHeader.js} +5 -5
  30. package/dist/components/ChatHeader/chatHeader.stories.js +29 -0
  31. package/dist/components/Chats/chat.js +1 -1
  32. package/dist/components/Chats/chatInput.js +1 -1
  33. package/dist/components/Chats/chatwrapper.js +1 -1
  34. package/dist/components/ContactCards/contactCards.js +34 -0
  35. package/dist/components/ContactCards/contactCards.stories.js +41 -0
  36. package/dist/components/InfoTab/infoTab.js +23 -0
  37. package/dist/components/InfoTab/infoTab.stories.js +49 -0
  38. package/dist/components/Lists/listBox.js +41 -0
  39. package/dist/components/Lists/listBox.stories.js +78 -0
  40. package/dist/components/Lists/listHeader.stories.js +58 -0
  41. package/dist/components/Lists/listheader.js +17 -12
  42. package/dist/components/Lists/rowLabels.js +34 -16
  43. package/dist/components/Lists/rowLabels.stories.js +85 -0
  44. package/dist/components/{loaders.js → Loader/loader.js} +13 -7
  45. package/dist/components/Loader/loader.stories.js +52 -0
  46. package/dist/components/{Reports/buttons.js → MainWrapper/index.js} +5 -3
  47. package/dist/components/MessageCounter/MessageCounter.stories.js +52 -0
  48. package/dist/components/MessageCounter/messageCounter.js +49 -0
  49. package/dist/components/Modals/modal copy.js +160 -0
  50. package/dist/components/Modals/modal.js +166 -0
  51. package/dist/components/Modals/modals.stories.js +117 -0
  52. package/dist/components/{infoNote.js → NoteBar/noteBar.js} +23 -19
  53. package/dist/components/NoteBar/noteBar.stories.js +66 -0
  54. package/dist/components/PerformanceIndicator/performaceIndicator.stories.js +66 -0
  55. package/dist/components/PerformanceIndicator/performanceIndicator.js +68 -0
  56. package/dist/components/Pills/pills.js +126 -0
  57. package/dist/components/Pills/pills.stories.js +110 -0
  58. package/dist/components/{progressbar.js → ProgressBar/progressbar.js} +8 -2
  59. package/dist/components/ProgressBar/progressbar.stories.js +45 -0
  60. package/dist/components/{Link.js → RouteLink/link.js} +8 -3
  61. package/dist/components/RouteLink/link.stories.js +29 -0
  62. package/dist/components/SuperFluid/ContentTitle.js/index.js +1 -1
  63. package/dist/components/SuperFluid/SegmentCard/index.js +1 -1
  64. package/dist/components/Tabs/tabs.js +85 -0
  65. package/dist/components/Tabs/tabs.stories.js +60 -0
  66. package/dist/components/breakpoints.js +18 -0
  67. package/dist/components/chatHeader.js +1 -1
  68. package/dist/components/checkboxToggler.js +2 -2
  69. package/dist/components/colors.js +5 -3
  70. package/dist/components/contacts.js +1 -1
  71. package/dist/components/dropdown.js +1 -1
  72. package/dist/components/dropdownButton.js +3 -3
  73. package/dist/components/dropdownItems.js +1 -1
  74. package/dist/components/example.js +47 -0
  75. package/dist/components/iconStyles.js +69 -119
  76. package/dist/components/index-copy.js +1285 -0
  77. package/dist/components/index.js +88 -1134
  78. package/dist/components/input.js +9 -3
  79. package/dist/components/logo.js +1 -1
  80. package/dist/components/navbar.js +1 -1
  81. package/dist/components/sidebar.js +4 -6
  82. package/dist/components/tabs.js +1 -1
  83. package/dist/components/text.js +1 -1
  84. package/dist/components/typography.js +1 -1
  85. package/nginx.conf +17 -0
  86. package/package.json +30 -11
  87. package/public/favicon.ico +0 -0
  88. package/public/index.html +1 -1
  89. package/src/App.js +85 -30
  90. package/src/examples/Navbar.js +1 -1
  91. package/src/lib/assets/beem.jpeg +0 -0
  92. package/src/lib/assets/css/sidebar.css +12 -0
  93. package/src/lib/components/{Accordion.js → Accordion/Accordion.js} +6 -5
  94. package/src/lib/components/Accordion/Accordion.stories.js +63 -0
  95. package/src/lib/components/{avatars.js → Avatars/avatars.js} +27 -9
  96. package/src/lib/components/Avatars/avatars.stories.js +45 -0
  97. package/src/lib/components/Buttons/Stories/basicbutton.stories.js +51 -0
  98. package/src/lib/components/Buttons/Stories/buttonAlertIcons.stories.js +42 -0
  99. package/src/lib/components/Buttons/Stories/buttonIconsOnly.stories.js +49 -0
  100. package/src/lib/components/{buttonAlertIcons.js → Buttons/buttonAlertIcons.js} +20 -9
  101. package/src/lib/components/Buttons/buttonDropdown copy.js +147 -0
  102. package/src/lib/components/Buttons/buttonDropdown.js +13 -0
  103. package/src/lib/components/{buttonIconsOnly.js → Buttons/buttonIconsOnly.js} +13 -3
  104. package/src/lib/components/{buttons.js → Buttons/buttons.js} +14 -14
  105. package/src/lib/components/Cards/cards.js +37 -0
  106. package/src/lib/components/Cards/cards.stories.js +50 -0
  107. package/src/lib/components/ChatBody/chatBody.js +145 -0
  108. package/src/lib/components/ChatBody/chatBody.stories.js +48 -0
  109. package/src/lib/components/ChatHeader/chatHeader.js +16 -0
  110. package/src/lib/components/ChatHeader/chatHeader.stories.js +19 -0
  111. package/src/lib/components/ContactCards/contactCards.js +58 -0
  112. package/src/lib/components/ContactCards/contactCards.stories.js +34 -0
  113. package/src/lib/components/InfoTab/infoTab.js +28 -0
  114. package/src/lib/components/InfoTab/infoTab.stories.js +47 -0
  115. package/src/lib/components/Lists/listBox.js +34 -0
  116. package/src/lib/components/Lists/listBox.stories.js +47 -0
  117. package/src/lib/components/Lists/listHeader.stories.js +36 -0
  118. package/src/lib/components/Lists/listheader.js +17 -11
  119. package/src/lib/components/Lists/rowLabels.js +47 -16
  120. package/src/lib/components/Lists/rowLabels.stories.js +59 -0
  121. package/src/lib/components/{loaders.js → Loader/loader.js} +18 -7
  122. package/src/lib/components/Loader/loader.stories.js +30 -0
  123. package/src/lib/components/MainWrapper/index.js +7 -0
  124. package/src/lib/components/MessageCounter/MessageCounter.stories.js +35 -0
  125. package/src/lib/components/MessageCounter/messageCounter.js +42 -0
  126. package/src/lib/components/Modals/modal copy.js +159 -0
  127. package/src/lib/components/Modals/modal.js +152 -0
  128. package/src/lib/components/Modals/modals.stories.js +82 -0
  129. package/src/lib/components/{infoNote.js → NoteBar/noteBar.js} +24 -25
  130. package/src/lib/components/NoteBar/noteBar.stories.js +40 -0
  131. package/src/lib/components/PerformanceIndicator/performaceIndicator.stories.js +40 -0
  132. package/src/lib/components/PerformanceIndicator/performanceIndicator.js +56 -0
  133. package/src/lib/components/Pills/pills.js +91 -0
  134. package/src/lib/components/Pills/pills.stories.js +74 -0
  135. package/src/lib/components/{progressbar.js → ProgressBar/progressbar.js} +8 -1
  136. package/src/lib/components/ProgressBar/progressbar.stories.js +26 -0
  137. package/src/lib/components/{Link.js → RouteLink/link.js} +5 -4
  138. package/src/lib/components/RouteLink/link.stories.js +21 -0
  139. package/src/lib/components/Tabs/tabs.js +84 -0
  140. package/src/lib/components/Tabs/tabs.stories.js +37 -0
  141. package/src/lib/components/breakpoints.js +11 -0
  142. package/src/lib/components/colors.js +2 -0
  143. package/src/lib/components/dropdownButton.js +2 -2
  144. package/src/lib/components/example.js +30 -0
  145. package/src/lib/components/iconStyles.js +44 -101
  146. package/src/lib/components/index-copy.js +468 -0
  147. package/src/lib/components/index.js +50 -446
  148. package/src/lib/components/input.js +8 -2
  149. package/src/lib/components/sidebar.js +4 -4
  150. package/storybook-static/0.00c62ec79c260aedbb98.manager.bundle.js +2 -0
  151. package/storybook-static/0.00c62ec79c260aedbb98.manager.bundle.js.LICENSE.txt +8 -0
  152. package/storybook-static/0.96c45dd8.iframe.bundle.js +1 -0
  153. package/storybook-static/1.dc6acfa9.iframe.bundle.js +3 -0
  154. package/storybook-static/1.dc6acfa9.iframe.bundle.js.LICENSE.txt +8 -0
  155. package/storybook-static/1.dc6acfa9.iframe.bundle.js.map +1 -0
  156. package/storybook-static/1.dc7dcdaec2def2f224fd.manager.bundle.js +1 -0
  157. package/storybook-static/2.24353ddc.iframe.bundle.js +1 -0
  158. package/storybook-static/3.8bb2173c.iframe.bundle.js +1 -0
  159. package/storybook-static/5.0779e3847d325dece216.manager.bundle.js +1 -0
  160. package/storybook-static/6.8bd405c2576206749a16.manager.bundle.js +2 -0
  161. package/storybook-static/6.8bd405c2576206749a16.manager.bundle.js.LICENSE.txt +12 -0
  162. package/storybook-static/7.9d4ba19cf58425e7ff0d.manager.bundle.js +1 -0
  163. package/storybook-static/7.f0cfc757.iframe.bundle.js +1 -0
  164. package/storybook-static/8.91de97de.iframe.bundle.js +3 -0
  165. package/storybook-static/8.91de97de.iframe.bundle.js.LICENSE.txt +12 -0
  166. package/storybook-static/8.91de97de.iframe.bundle.js.map +1 -0
  167. package/storybook-static/8.b4e9ec0ec7648e02a923.manager.bundle.js +1 -0
  168. package/storybook-static/9.40ec65d6.iframe.bundle.js +1 -0
  169. package/storybook-static/asset-manifest.json +30 -0
  170. package/storybook-static/favicon.ico +0 -0
  171. package/storybook-static/iframe.html +348 -0
  172. package/storybook-static/index.html +110 -0
  173. package/storybook-static/main.3c8d8027.iframe.bundle.js +1 -0
  174. package/storybook-static/main.3e5804fe56d1f580b088.manager.bundle.js +1 -0
  175. package/storybook-static/runtime~main.d3a18d6a.iframe.bundle.js +1 -0
  176. package/storybook-static/runtime~main.ff106120648356c6069d.manager.bundle.js +1 -0
  177. package/storybook-static/static/css/main.b44a190d.chunk.css +4 -0
  178. package/storybook-static/static/css/main.b44a190d.chunk.css.map +1 -0
  179. package/storybook-static/static/media/OpenSans-Regular.1b0809d5.ttf +0 -0
  180. package/storybook-static/static/media/PoppinsBold.1eae2d48.woff2 +0 -0
  181. package/storybook-static/static/media/PoppinsBold.53ff6749.eot +0 -0
  182. package/storybook-static/static/media/PoppinsBold.53ff971f.ttf +0 -0
  183. package/storybook-static/static/media/PoppinsBold.850fc4f3.svg +3066 -0
  184. package/storybook-static/static/media/PoppinsBold.b33c148b.woff +0 -0
  185. package/storybook-static/static/media/PoppinsMedium.0ba26f6c.woff +0 -0
  186. package/storybook-static/static/media/PoppinsMedium.49b46ace.eot +0 -0
  187. package/storybook-static/static/media/PoppinsMedium.57a99fa8.woff2 +0 -0
  188. package/storybook-static/static/media/PoppinsMedium.b7e43707.svg +3103 -0
  189. package/storybook-static/static/media/PoppinsMedium.c98dddbd.ttf +0 -0
  190. package/storybook-static/static/media/PoppinsRegular.13b9af9c.eot +0 -0
  191. package/storybook-static/static/media/PoppinsRegular.43e9b50d.svg +3138 -0
  192. package/storybook-static/static/media/PoppinsRegular.4a4d5420.woff +0 -0
  193. package/storybook-static/static/media/PoppinsRegular.9a7cc7ec.woff2 +0 -0
  194. package/storybook-static/static/media/PoppinsRegular.e1bc9021.ttf +0 -0
  195. package/storybook-static/static/media/PoppinsSemiBold.5692c77f.ttf +0 -0
  196. package/storybook-static/static/media/PoppinsSemiBold.80138c67.woff +0 -0
  197. package/storybook-static/static/media/PoppinsSemiBold.c442695a.eot +0 -0
  198. package/storybook-static/static/media/PoppinsSemiBold.e1948d56.svg +3098 -0
  199. package/storybook-static/static/media/PoppinsSemiBold.f27050e2.woff2 +0 -0
  200. package/storybook-static/static/media/logo-blue.bfc5ba6d.png +0 -0
  201. package/storybook-static/vendors~main.1750028c2d68e574fb1d.manager.bundle.js +2 -0
  202. package/storybook-static/vendors~main.1750028c2d68e574fb1d.manager.bundle.js.LICENSE.txt +104 -0
  203. package/storybook-static/vendors~main.7fe78cc2.iframe.bundle.js +3 -0
  204. package/storybook-static/vendors~main.7fe78cc2.iframe.bundle.js.LICENSE.txt +122 -0
  205. package/storybook-static/vendors~main.7fe78cc2.iframe.bundle.js.map +1 -0
  206. package/dist/assets/content_copy_black.svg +0 -1
  207. package/dist/assets/profile-pic.jpg +0 -0
  208. package/dist/components/Accordicon.js +0 -51
  209. package/dist/components/CustomerInfo/customerInfo.js +0 -89
  210. package/dist/components/CustomerInfo/customerInfoBar.js +0 -24
  211. package/dist/components/CustomerInfo/infoAccordion.js +0 -78
  212. package/dist/components/CustomerInfo/labelsInfo.js +0 -37
  213. package/dist/components/CustomerInfo/notesInfo.js +0 -39
  214. package/dist/components/Modals/modalBody.js +0 -61
  215. package/dist/components/Modals/noteModalFooter.js +0 -24
  216. package/dist/components/Modals/noteModalHeader.js +0 -93
  217. package/dist/components/Reports/cards.js +0 -62
  218. package/dist/components/Reports/charts.js +0 -70
  219. package/dist/components/Reports/infoHeader.js +0 -65
  220. package/dist/components/Reports/reportsBody.js +0 -28
  221. package/dist/components/Reports/title.js +0 -28
  222. package/dist/components/performanceIndicator.js +0 -41
  223. package/dist/components/pills.js +0 -73
  224. package/src/App1.js +0 -229
  225. package/src/CHAT.js +0 -170
  226. package/src/Complete.js +0 -48
  227. package/src/CreateSegments.js +0 -48
  228. package/src/FileUploadSFL.js +0 -110
  229. package/src/examples/CustomerInfo.js +0 -248
  230. package/src/lib/assets/content_copy_black.svg +0 -1
  231. package/src/lib/assets/profile-pic.jpg +0 -0
  232. package/src/lib/components/Accordicon.js +0 -43
  233. package/src/lib/components/CustomerInfo/customerInfo.js +0 -91
  234. package/src/lib/components/CustomerInfo/customerInfoBar.js +0 -23
  235. package/src/lib/components/CustomerInfo/infoAccordion.js +0 -96
  236. package/src/lib/components/CustomerInfo/labelsInfo.js +0 -37
  237. package/src/lib/components/CustomerInfo/notesInfo.js +0 -61
  238. package/src/lib/components/Modals/modalBody.js +0 -66
  239. package/src/lib/components/Modals/noteModalBody.js +0 -10
  240. package/src/lib/components/Modals/noteModalFooter.js +0 -16
  241. package/src/lib/components/Modals/noteModalHeader.js +0 -103
  242. package/src/lib/components/Reports/buttons.js +0 -5
  243. package/src/lib/components/Reports/cards.js +0 -78
  244. package/src/lib/components/Reports/charts.js +0 -79
  245. package/src/lib/components/Reports/infoHeader.js +0 -63
  246. package/src/lib/components/Reports/reportsBody.js +0 -29
  247. package/src/lib/components/Reports/title.js +0 -19
  248. package/src/lib/components/performanceIndicator.js +0 -27
  249. package/src/lib/components/pills.js +0 -65
@@ -0,0 +1,85 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.BmTab = void 0;
7
+
8
+ var _react = _interopRequireDefault(require("react"));
9
+
10
+ var _styledComponents = _interopRequireDefault(require("styled-components"));
11
+
12
+ var _propTypes = _interopRequireDefault(require("prop-types"));
13
+
14
+ var _colors = require("../colors");
15
+
16
+ var _iconStyles = require("../iconStyles");
17
+
18
+ var _excluded = ["leadingIcon", "trailingIcon", "children", "size", "color", "icon", "disabled"];
19
+
20
+ var _templateObject;
21
+
22
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
23
+
24
+ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
25
+
26
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
27
+
28
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
29
+
30
+ function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
31
+
32
+ var BmTabWrapper = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n padding: 0.714rem 1.714rem;\n background: ", ";\n box-shadow: ", ";\n > *:not(:last-child) {\n margin-right: 0.5rem;\n }\n ", "\n"])), _colors.BmPrimaryWhite, function (_ref) {
33
+ var state = _ref.state;
34
+
35
+ if (state === "active") {
36
+ return "inset 0px -3px 0px ".concat(_colors.BmPrimaryBlue);
37
+ }
38
+
39
+ if (state === "inactive") {
40
+ return "inset 0px -3px 0px ".concat(_colors.BmGrey400);
41
+ }
42
+
43
+ return "none";
44
+ }, function (_ref2) {
45
+ var color = _ref2.color,
46
+ children = _ref2.children,
47
+ disabled = _ref2.disabled;
48
+ return children && disabled ? "\n > * {\n color: ".concat(_colors.BmGrey400, ";\n }\n ") : "\n > * {\n color: ".concat(color, ";\n }\n ");
49
+ });
50
+
51
+ var BmTab = function BmTab(_ref3) {
52
+ var leadingIcon = _ref3.leadingIcon,
53
+ trailingIcon = _ref3.trailingIcon,
54
+ children = _ref3.children,
55
+ size = _ref3.size,
56
+ color = _ref3.color,
57
+ icon = _ref3.icon,
58
+ disabled = _ref3.disabled,
59
+ rest = _objectWithoutProperties(_ref3, _excluded);
60
+
61
+ return /*#__PURE__*/_react.default.createElement(BmTabWrapper, _extends({
62
+ leadingIcon: leadingIcon,
63
+ trailingIcon: trailingIcon,
64
+ color: color,
65
+ disabled: disabled
66
+ }, rest), leadingIcon && /*#__PURE__*/_react.default.createElement(_iconStyles.BmIcons, {
67
+ icon: leadingIcon,
68
+ size: size || 'large',
69
+ color: disabled ? "".concat(_colors.BmGrey400) : color
70
+ }), children, trailingIcon && /*#__PURE__*/_react.default.createElement(_iconStyles.BmIcons, {
71
+ icon: trailingIcon,
72
+ size: size || 'large',
73
+ color: disabled ? "".concat(_colors.BmGrey400) : color
74
+ }));
75
+ };
76
+
77
+ exports.BmTab = BmTab;
78
+ BmTab.propTypes = {
79
+ children: _propTypes.default.object,
80
+ trailingIcon: _propTypes.default.node,
81
+ leadingIcon: _propTypes.default.node,
82
+ state: _propTypes.default.string,
83
+ color: _propTypes.default.string,
84
+ size: _propTypes.default.string
85
+ };
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = exports.Tabs = void 0;
7
+
8
+ var _icons = require("@material-ui/icons");
9
+
10
+ var _react = _interopRequireDefault(require("react"));
11
+
12
+ var _tabs = require("./tabs");
13
+
14
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
+
16
+ /* eslint-disable import/no-anonymous-default-export */
17
+ var _default = {
18
+ component: _tabs.BmTab,
19
+ title: "components/Tabs",
20
+ argTypes: {
21
+ color: {
22
+ control: {
23
+ type: "text"
24
+ },
25
+ description: "Color of the Icons and Text"
26
+ },
27
+ state: {
28
+ options: ["active", "inactive"],
29
+ control: {
30
+ type: "select"
31
+ },
32
+ description: "State of the Tabs (optional)"
33
+ },
34
+ size: {
35
+ options: ["small", "medium", "large"],
36
+ control: {
37
+ type: "select"
38
+ },
39
+ description: "Size of the icons",
40
+ defaultValue: {
41
+ summary: "large"
42
+ }
43
+ }
44
+ }
45
+ };
46
+ exports.default = _default;
47
+
48
+ var MainTab = function MainTab(args) {
49
+ return /*#__PURE__*/_react.default.createElement(_tabs.BmTab, args);
50
+ };
51
+
52
+ var Tabs = MainTab.bind({});
53
+ exports.Tabs = Tabs;
54
+ Tabs.args = {
55
+ children: /*#__PURE__*/_react.default.createElement("h3", null, "Tabs"),
56
+ leadingIcon: /*#__PURE__*/_react.default.createElement(_icons.Favorite, null),
57
+ trailingIcon: /*#__PURE__*/_react.default.createElement(_icons.KeyboardArrowDown, null),
58
+ disabled: false,
59
+ state: 'active'
60
+ };
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.size = exports.device = void 0;
7
+ var size = {
8
+ xs: "320px",
9
+ sm: "768px",
10
+ lg: "1200px"
11
+ };
12
+ exports.size = size;
13
+ var device = {
14
+ xs: "(min-width: ".concat(size.xs, ")"),
15
+ sm: "(min-width: ".concat(size.sm, ")"),
16
+ lg: "(min-width: ".concat(size.lg, ")")
17
+ };
18
+ exports.device = device;
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.BmChatHeader = exports.BmChatHeaderInfoIcon = exports.BmChatHeaderTime = exports.BmChatHeaderText = exports.BmChatHeaderWrapper = void 0;
6
+ exports.BmChatHeaderWrapper = exports.BmChatHeaderTime = exports.BmChatHeaderText = exports.BmChatHeaderInfoIcon = exports.BmChatHeader = void 0;
7
7
 
8
8
  var _styledComponents = _interopRequireDefault(require("styled-components"));
9
9
 
@@ -11,9 +11,9 @@ var _Switch = _interopRequireDefault(require("@material-ui/core/Switch"));
11
11
 
12
12
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
13
 
14
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
14
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
15
15
 
16
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
16
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
17
17
 
18
18
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
19
19
 
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.BmPictogramGold = exports.BmPictogramBlue = exports.BmGrey50 = exports.BmGrey100 = exports.BmGrey200 = exports.BmGrey400 = exports.BmGrey500 = exports.BmGrey600 = exports.BmBgGreyBlue = exports.BmBgLightBlue = exports.BmSecondaryGold15 = exports.BmSecondaryGreen15 = exports.BmSecondaryRed15 = exports.BmSecondaryRed8 = exports.BmSecondaryGreen8 = exports.BmSecondaryDarkGreen = exports.BmSecondaryPurple = exports.BmSecondaryYellow = exports.BmSecondaryGreen = exports.BmSecondaryRed = exports.BmSecondaryGrey = exports.BmSecondaryCyan = exports.BmPrimaryBlack = exports.BmPrimaryWhite = exports.BmPrimaryGold = exports.BmPrimaryBlue = void 0;
6
+ 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.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 = void 0;
7
7
  // Primary Colors
8
8
  var BmPrimaryBlue = "#33B1BA";
9
9
  exports.BmPrimaryBlue = BmPrimaryBlue;
@@ -41,9 +41,11 @@ var BmSecondaryGold15 = "rgba(243, 169, 41, 0.15)"; // Background Colors
41
41
  exports.BmSecondaryGold15 = BmSecondaryGold15;
42
42
  var BmBgLightBlue = "#E1EAFC";
43
43
  exports.BmBgLightBlue = BmBgLightBlue;
44
- var BmBgGreyBlue = "#F5F6FA"; // Grey Colors
45
-
44
+ var BmBgGreyBlue = "#F5F6FA";
46
45
  exports.BmBgGreyBlue = BmBgGreyBlue;
46
+ var BmBgGrey45 = "rgba(0, 0, 0, 0.5)"; // Grey Colors
47
+
48
+ exports.BmBgGrey45 = BmBgGrey45;
47
49
  var BmGrey600 = "#545454";
48
50
  exports.BmGrey600 = BmGrey600;
49
51
  var BmGrey500 = "#757575";
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.BmContactTime = exports.BmContactDetails = exports.BmContactMessage = exports.BmUnreadMessage = exports.BmMessageContact = exports.BmMessageText = exports.BmMessageTexts = exports.BmContactIcon = exports.BmContactName = exports.BmContactTextWrapper = exports.BmContactText = exports.BmContactItem = exports.BmContact = exports.BmContactSideBar = void 0;
6
+ exports.BmUnreadMessage = exports.BmMessageTexts = exports.BmMessageText = exports.BmMessageContact = exports.BmContactTime = exports.BmContactTextWrapper = exports.BmContactText = exports.BmContactSideBar = exports.BmContactName = exports.BmContactMessage = exports.BmContactItem = exports.BmContactIcon = exports.BmContactDetails = exports.BmContact = void 0;
7
7
 
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
 
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
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
4
 
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.BmButtonDropDown = exports.Button = exports.Drop = void 0;
6
+ exports.Drop = exports.Button = exports.BmButtonDropDown = void 0;
7
7
 
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
 
@@ -11,9 +11,9 @@ var _icons = require("@material-ui/icons");
11
11
 
12
12
  var _styledComponents = _interopRequireDefault(require("styled-components"));
13
13
 
14
- var _buttonIconsOnly = require("./buttonIconsOnly");
14
+ var _buttonIconsOnly = require("../components/Buttons/buttonIconsOnly");
15
15
 
16
- var _buttons = require("./buttons");
16
+ var _buttons = require("../components/Buttons/buttons");
17
17
 
18
18
  var _colors = require("./colors");
19
19
 
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.BmDropDownItem = exports.ItemText = exports.RightItemIcon = exports.LeftItemIcon = exports.ItemWrapper = exports.BmDropDownMenu = exports.BmButtonDropdownItem = exports.BmCustomizedDropdown = void 0;
6
+ exports.RightItemIcon = exports.LeftItemIcon = exports.ItemWrapper = exports.ItemText = exports.BmDropDownMenu = exports.BmDropDownItem = exports.BmCustomizedDropdown = exports.BmButtonDropdownItem = void 0;
7
7
 
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
 
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+
3
+ var _excluded = ["variant"];
4
+
5
+ var _variantStyles;
6
+
7
+ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
8
+
9
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
10
+
11
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
12
+
13
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
14
+
15
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
16
+
17
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
18
+
19
+ var btnVariants = {
20
+ primary: "primary",
21
+ danger: "danger",
22
+ tertiary: "tertiary"
23
+ }; // Variant styles
24
+
25
+ var variantStyles = (_variantStyles = {}, _defineProperty(_variantStyles, btnVariants.primary, {
26
+ background: "#1890ff"
27
+ }), _defineProperty(_variantStyles, btnVariants.danger, {
28
+ background: "#f81d22"
29
+ }), _defineProperty(_variantStyles, btnVariants.tertiary, {
30
+ background: "#fff",
31
+ color: "#000"
32
+ }), _variantStyles);
33
+
34
+ function BaseButton(_ref) {
35
+ var variant = _ref.variant,
36
+ props = _objectWithoutProperties(_ref, _excluded);
37
+
38
+ var btnStyle = _objectSpread({
39
+ color: "#fff",
40
+ border: "none",
41
+ padding: "5px 10px"
42
+ }, variantStyles[variant]);
43
+
44
+ return /*#__PURE__*/React.createElement("button", _extends({}, props, {
45
+ style: btnStyle
46
+ }));
47
+ }
@@ -3,12 +3,10 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.CopyToClipBoard = exports.BmArrowCircleUp = exports.BmArrowCircleDown = exports.BmSupport = exports.BmChatbot = exports.BmIcons = exports.BmQuickReplyIcon = exports.BmEmojiIcon = exports.BmChatbotIcon = exports.BmAvatarIcon = exports.BmTagIcon = exports.BmDropupIcon = exports.BmDropdownIcon = exports.BmSearchIcon = exports.BmErrorIcon = exports.BmSuccessIcon = exports.BmButtonIcon = void 0;
6
+ exports.CopyToClipBoard = exports.BmTagIcon = exports.BmSupport = exports.BmQuickReplyIcon = exports.BmIcons = exports.BmEmojiIcon = exports.BmChatbotIcon = exports.BmChatbot = exports.BmButtonIcon = exports.BmAvatarIcon = void 0;
7
7
 
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
 
10
- var _icons = require("@material-ui/icons");
11
-
12
10
  var _styles = require("@material-ui/core/styles");
13
11
 
14
12
  var _colors = require("./colors");
@@ -27,20 +25,9 @@ var size = function size(props) {
27
25
  if (props.size === "xlarge") return "2.286rem !important";
28
26
  if (!props.size) return "1.714rem !important";
29
27
  return props.size;
30
- };
31
-
32
- var DropdownIcon = {
33
- root: {
34
- fill: "".concat(_colors.BmSecondaryGrey),
35
- height: function height(props) {
36
- return size(props);
37
- },
38
- width: function width(props) {
39
- return size(props);
40
- }
41
- }
42
28
  }; // Button Icons
43
29
 
30
+
44
31
  var ButtonIcon = {
45
32
  root: {
46
33
  height: function height(props) {
@@ -55,6 +42,26 @@ var ButtonIcon = {
55
42
  color = _ref.color;
56
43
  if (color) return color;
57
44
 
45
+ if (!disabled) {
46
+ if (variant === "active") return "".concat(_colors.BmPrimaryWhite);
47
+ if (variant === "enabled") return "".concat(_colors.BmPrimaryBlack);
48
+ if (variant === "destructive") return "".concat(_colors.BmPrimaryWhite);
49
+ if (variant === "success") return "".concat(_colors.BmPrimaryWhite);
50
+ if (variant === "neutral") return "".concat(_colors.BmPrimaryBlue);
51
+ if (variant === "primary") return "".concat(_colors.BmPrimaryWhite);
52
+ if (variant === "secondary") return "".concat(_colors.BmPrimaryBlue);
53
+ if (variant === "tertiary") return "".concat(_colors.BmPrimaryBlue);
54
+ return "".concat(_colors.BmPrimaryWhite);
55
+ } else {
56
+ return "".concat(_colors.BmGrey400);
57
+ }
58
+ },
59
+ color: function color(_ref2) {
60
+ var variant = _ref2.variant,
61
+ disabled = _ref2.disabled,
62
+ _color = _ref2.color;
63
+ if (_color) return _color;
64
+
58
65
  if (!disabled) {
59
66
  if (variant === "active") return "".concat(_colors.BmPrimaryWhite);
60
67
  if (variant === "enabled") return "".concat(_colors.BmPrimaryBlack);
@@ -80,83 +87,20 @@ var BmButtonIcon = (0, _styles.withStyles)(ButtonIcon)(function (props) {
80
87
  }
81
88
 
82
89
  return null;
83
- });
90
+ }); // Tags
91
+
84
92
  exports.BmButtonIcon = BmButtonIcon;
85
- var SuccessIcon = {
86
- root: {
87
- fill: "".concat(_colors.BmSecondaryDarkGreen),
88
- height: function height(props) {
89
- return size(props);
90
- },
91
- width: function width(props) {
92
- return size(props);
93
- },
94
- margin: "0rem 0.571rem !important"
95
- }
96
- };
97
- var BmSuccessIcon = (0, _styles.withStyles)(SuccessIcon)(function (props) {
98
- return /*#__PURE__*/_react.default.createElement(_icons.Done, _extends({
99
- action: true
100
- }, props));
101
- });
102
- exports.BmSuccessIcon = BmSuccessIcon;
103
- var ErrorIcon = {
93
+ var TagIcon = {
104
94
  root: {
105
- fill: "".concat(_colors.BmSecondaryRed),
106
95
  height: function height(props) {
107
- return size(props);
96
+ return size(props) || "1.143rem !important";
108
97
  },
109
98
  width: function width(props) {
110
- return size(props);
111
- },
112
- margin: "0rem 0.571rem !important"
113
- }
114
- };
115
- var BmErrorIcon = (0, _styles.withStyles)(ErrorIcon)(function (props) {
116
- return /*#__PURE__*/_react.default.createElement(_icons.ErrorOutline, _extends({
117
- action: true
118
- }, props));
119
- }); // Search Icon for Search Component
120
-
121
- exports.BmErrorIcon = BmErrorIcon;
122
- var SearchIcon = {
123
- root: {
124
- fill: "".concat(_colors.BmSecondaryGrey),
125
- height: function height(props) {
126
- return size(props);
99
+ return size(props) || "1.143rem !important";
127
100
  },
128
- width: function width(props) {
129
- return size(props);
130
- } // margin: "0rem 0.571rem",
131
-
132
- }
133
- };
134
- var BmSearchIcon = (0, _styles.withStyles)(SearchIcon)(function (props) {
135
- return /*#__PURE__*/_react.default.createElement(_icons.Search, _extends({
136
- action: true
137
- }, props));
138
- });
139
- exports.BmSearchIcon = BmSearchIcon;
140
- var BmDropdownIcon = (0, _styles.withStyles)(DropdownIcon)(function (props) {
141
- return /*#__PURE__*/_react.default.createElement(_icons.KeyboardArrowDown, _extends({
142
- action: true
143
- }, props));
144
- });
145
- exports.BmDropdownIcon = BmDropdownIcon;
146
- var BmDropupIcon = (0, _styles.withStyles)(DropdownIcon)(function (props) {
147
- return /*#__PURE__*/_react.default.createElement(_icons.KeyboardArrowUp, _extends({
148
- action: true
149
- }, props));
150
- }); // Tags
151
-
152
- exports.BmDropupIcon = BmDropupIcon;
153
- var TagIcon = {
154
- root: {
155
- height: "1.143rem !important",
156
- width: "1.143rem !important",
157
- fill: function fill(_ref2) {
158
- var variant = _ref2.variant,
159
- color = _ref2.color;
101
+ fill: function fill(_ref3) {
102
+ var variant = _ref3.variant,
103
+ color = _ref3.color;
160
104
 
161
105
  if (color) {
162
106
  return color;
@@ -164,8 +108,18 @@ var TagIcon = {
164
108
 
165
109
  if (variant === "neutral" || variant === "light") return "".concat(_colors.BmPrimaryBlack);
166
110
  return "".concat(_colors.BmPrimaryWhite);
167
- } // margin: "0rem 0.571rem",
111
+ },
112
+ color: function color(_ref4) {
113
+ var variant = _ref4.variant,
114
+ _color2 = _ref4.color;
115
+
116
+ if (_color2) {
117
+ return _color2;
118
+ }
168
119
 
120
+ if (variant === "neutral" || variant === "light") return "".concat(_colors.BmPrimaryBlack);
121
+ return "".concat(_colors.BmPrimaryWhite);
122
+ }
169
123
  }
170
124
  };
171
125
  var BmTagIcon = (0, _styles.withStyles)(TagIcon)(function (props) {
@@ -182,11 +136,12 @@ var BmTagIcon = (0, _styles.withStyles)(TagIcon)(function (props) {
182
136
  exports.BmTagIcon = BmTagIcon;
183
137
 
184
138
  var Avatarsize = function Avatarsize(props) {
185
- if (props.size === "xsmall") return "0.857rem";
186
- if (props.size === "small") return "1.143rem";
187
- if (props.size === "medium") return "1.429rem";
188
- if (props.size === "large") return "2.286rem";
189
- return "2.286rem";
139
+ if (props.size === "xsmall") return "0.857rem !important";
140
+ if (props.size === "small") return "1.143rem !important";
141
+ if (props.size === "medium") return "1.429rem !important";
142
+ if (props.size === "large") return "2.286rem !important";
143
+ if (!props.size) return "2.286rem !important";
144
+ return props.size;
190
145
  };
191
146
 
192
147
  var AvatarIcon = {
@@ -194,6 +149,9 @@ var AvatarIcon = {
194
149
  fill: function fill(props) {
195
150
  return props.color || "".concat(_colors.BmPrimaryWhite);
196
151
  },
152
+ color: function color(props) {
153
+ return props.color || "".concat(_colors.BmPrimaryWhite);
154
+ },
197
155
  height: function height(props) {
198
156
  return Avatarsize(props);
199
157
  },
@@ -211,16 +169,18 @@ var BmAvatarIcon = (0, _styles.withStyles)(AvatarIcon)(function (props) {
211
169
  }
212
170
 
213
171
  return null;
214
- });
172
+ }); //check on sizing
173
+
215
174
  exports.BmAvatarIcon = BmAvatarIcon;
216
175
  var BmChatbotIcon = (0, _styles.withStyles)(AvatarIcon)(function (props) {
217
176
  return /*#__PURE__*/_react.default.createElement(_SvgIcon.default, _extends({
218
177
  action: true
219
178
  }, props), /*#__PURE__*/_react.default.createElement("path", {
220
179
  d: "M19 8.975V6C19 5.46957 18.7893 4.96086 18.4142 4.58579C18.0391 4.21072 17.5304 4 17 4H11V2.688C11.305 2.414 11.5 2.02 11.5 1.578C11.5 1.18018 11.342 0.798647 11.0607 0.517343C10.7794 0.236038 10.3978 0.0780029 10 0.0780029C9.60218 0.0780029 9.22064 0.236038 8.93934 0.517343C8.65804 0.798647 8.5 1.18018 8.5 1.578C8.5 2.02 8.695 2.414 9 2.688V4H3C2.46957 4 1.96086 4.21072 1.58579 4.58579C1.21071 4.96086 1 5.46957 1 6V8.998L0.928 9.003C0.675888 9.02097 0.439955 9.13382 0.26775 9.31883C0.095544 9.50384 -0.000132994 9.74725 1.38752e-07 10V12C1.38752e-07 12.2652 0.105357 12.5196 0.292893 12.7071C0.48043 12.8946 0.734784 13 1 13V18C1 18.5304 1.21071 19.0391 1.58579 19.4142C1.96086 19.7893 2.46957 20 3 20H17C17.5304 20 18.0391 19.7893 18.4142 19.4142C18.7893 19.0391 19 18.5304 19 18V13C19.2652 13 19.5196 12.8946 19.7071 12.7071C19.8946 12.5196 20 12.2652 20 12V10.062C20.0116 9.90681 19.9869 9.75104 19.928 9.607C19.726 9.119 19.293 9.002 19 8.975ZM5 10C5 8.896 5.672 8 6.5 8C7.328 8 8 8.896 8 10C8 11.104 7.328 12 6.5 12C5.672 12 5 11.104 5 10ZM13.998 16C12.997 15.997 6.001 16 6 16V14C6 14 13.001 13.998 14.002 14L13.998 16ZM13.5 12C12.672 12 12 11.104 12 10C12 8.896 12.672 8 13.5 8C14.328 8 15 8.896 15 10C15 11.104 14.328 12 13.5 12Z",
221
- fill: "white"
180
+ fill: props.color || "white"
222
181
  }));
223
- }); // Emoji Icons
182
+ }); // To be refacotored
183
+ // Emoji Icons
224
184
 
225
185
  exports.BmChatbotIcon = BmChatbotIcon;
226
186
 
@@ -236,6 +196,9 @@ var EmojiIcon = {
236
196
  fill: function fill(props) {
237
197
  return props.color || "".concat(_colors.BmSecondaryGrey);
238
198
  },
199
+ color: function color(props) {
200
+ return props.color || "".concat(_colors.BmSecondaryGrey);
201
+ },
239
202
  height: function height(props) {
240
203
  return EmojiSize(props);
241
204
  },
@@ -260,7 +223,7 @@ var BmQuickReplyIcon = (0, _styles.withStyles)(EmojiIcon)(function (props) {
260
223
  action: true
261
224
  }, props), /*#__PURE__*/_react.default.createElement("path", {
262
225
  d: "M5.33332 23.3932V5.83317H26.6667V13.8332H29.3333V5.83317C29.3333 4.3665 28.1333 3.1665 26.6667 3.1665H5.33332C3.86666 3.1665 2.67999 4.3665 2.67999 5.83317L2.66666 29.8332L7.99999 24.4998H20V21.8332H6.89332L5.33332 23.3932Z",
263
- fill: "#575757"
226
+ fill: props.color || "#575757"
264
227
  }));
265
228
  });
266
229
  exports.BmQuickReplyIcon = BmQuickReplyIcon;
@@ -274,6 +237,9 @@ var icon = {
274
237
  },
275
238
  width: function width(props) {
276
239
  return size(props);
240
+ },
241
+ color: function color(props) {
242
+ return props.color || "".concat(_colors.BmSecondaryGrey);
277
243
  }
278
244
  }
279
245
  };
@@ -282,7 +248,9 @@ var BmIcons = (0, _styles.withStyles)(icon)(function (props) {
282
248
  var Icon = props.icon.type;
283
249
  return /*#__PURE__*/_react.default.createElement(Icon, _extends({
284
250
  action: true
285
- }, props));
251
+ }, props, {
252
+ fill: props.color
253
+ }));
286
254
  }
287
255
 
288
256
  return null;
@@ -302,37 +270,19 @@ var BmSupport = (0, _styles.withStyles)(icon)(function (props) {
302
270
  action: true
303
271
  }, props), /*#__PURE__*/_react.default.createElement("path", {
304
272
  d: "M21 12.22C21 6.73 16.74 3 12 3C7.31 3 3 6.65 3 12.28C2.4 12.62 2 13.26 2 14V16C2 17.1 2.9 18 4 18H5V11.9C5 8.03 8.13 4.9 12 4.9C15.87 4.9 19 8.03 19 11.9V19H11V21H19C20.1 21 21 20.1 21 19V17.78C21.59 17.47 22 16.86 22 16.14V13.84C22 13.14 21.59 12.53 21 12.22Z",
305
- fill: "black"
273
+ fill: props.color || "black"
306
274
  }), /*#__PURE__*/_react.default.createElement("path", {
307
275
  d: "M9 14C9.55228 14 10 13.5523 10 13C10 12.4477 9.55228 12 9 12C8.44772 12 8 12.4477 8 13C8 13.5523 8.44772 14 9 14Z",
308
- fill: "black"
276
+ fill: props.color || "black"
309
277
  }), /*#__PURE__*/_react.default.createElement("path", {
310
278
  d: "M15 14C15.5523 14 16 13.5523 16 13C16 12.4477 15.5523 12 15 12C14.4477 12 14 12.4477 14 13C14 13.5523 14.4477 14 15 14Z",
311
- fill: "black"
279
+ fill: props.color || "black"
312
280
  }), /*#__PURE__*/_react.default.createElement("path", {
313
281
  d: "M18 11.03C17.7615 9.62413 17.0334 8.34796 15.9444 7.42738C14.8555 6.5068 13.4759 6.00117 12.05 6C9.01997 6 5.75997 8.51 6.01997 12.45C7.2531 11.9454 8.34221 11.1435 9.1902 10.1158C10.0382 9.08808 10.6187 7.86652 10.88 6.56C12.19 9.19 14.88 11 18 11.03Z",
314
- fill: "black"
282
+ fill: props.color || "black"
315
283
  }));
316
284
  });
317
285
  exports.BmSupport = BmSupport;
318
- var BmArrowCircleDown = (0, _styles.withStyles)(icon)(function (props) {
319
- return /*#__PURE__*/_react.default.createElement(_SvgIcon.default, _extends({
320
- action: true
321
- }, props), /*#__PURE__*/_react.default.createElement("path", {
322
- d: "M16 5.33329C21.88 5.33329 26.6667 10.12 26.6667 16C26.6667 21.88 21.88 26.6666 16 26.6666C10.12 26.6666 5.33335 21.88 5.33335 16C5.33335 10.12 10.12 5.33329 16 5.33329ZM16 2.66663C8.64002 2.66663 2.66669 8.63996 2.66669 16C2.66669 23.36 8.64002 29.3333 16 29.3333C23.36 29.3333 29.3334 23.36 29.3334 16C29.3334 8.63996 23.36 2.66663 16 2.66663ZM17.3334 16V10.6666H14.6667V16H10.6667L16 21.3333L21.3334 16H17.3334Z",
323
- fill: "#AFAFAF" || props.color
324
- }));
325
- });
326
- exports.BmArrowCircleDown = BmArrowCircleDown;
327
- var BmArrowCircleUp = (0, _styles.withStyles)(icon)(function (props) {
328
- return /*#__PURE__*/_react.default.createElement(_SvgIcon.default, _extends({
329
- action: true
330
- }, props), /*#__PURE__*/_react.default.createElement("path", {
331
- d: "M9.99997 18C5.58997 18 1.99997 14.41 1.99997 10C1.99997 5.59 5.58997 2 9.99997 2C14.41 2 18 5.59 18 10C18 14.41 14.41 18 9.99997 18ZM9.99997 20C15.52 20 20 15.52 20 10C20 4.48 15.52 0 9.99997 0C4.47997 0 -3.05176e-05 4.48 -3.05176e-05 10C-3.05176e-05 15.52 4.47997 20 9.99997 20ZM8.99997 10V14H11V10H14L9.99997 6L5.99997 10H8.99997Z",
332
- fill: "#AFAFAF" || props.color
333
- }));
334
- });
335
- exports.BmArrowCircleUp = BmArrowCircleUp;
336
286
  var CopyToClipBoard = (0, _styles.withStyles)(icon)(function (props) {
337
287
  return /*#__PURE__*/_react.default.createElement(_SvgIcon.default, _extends({
338
288
  action: true