beem-component 1.5.8 → 1.6.1

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 (155) hide show
  1. package/.eslintrc +62 -0
  2. package/.prettierrc +6 -0
  3. package/babel.config.js +9 -10
  4. package/dist/components/Accordion/Accordion.js +7 -7
  5. package/dist/components/Accordion/Accordion.stories.js +28 -28
  6. package/dist/components/Avatars/avatars.js +30 -22
  7. package/dist/components/Avatars/avatars.stories.js +17 -17
  8. package/dist/components/BannerCard/bannerCard.stories.js +12 -12
  9. package/dist/components/BannerCard/bannerCards.js +14 -14
  10. package/dist/components/Buttons/Stories/basicbutton.stories.js +23 -23
  11. package/dist/components/Buttons/Stories/buttonAlertIcons.stories.js +16 -16
  12. package/dist/components/Buttons/Stories/buttonIconsOnly.stories.js +16 -16
  13. package/dist/components/Buttons/buttonAlertIcons.js +16 -16
  14. package/dist/components/Buttons/buttonIconsOnly.js +22 -22
  15. package/dist/components/Buttons/buttons.js +56 -56
  16. package/dist/components/Cards/cards.js +1 -1
  17. package/dist/components/Cards/cards.stories.js +6 -6
  18. package/dist/components/ChatComponents/ChatBody/chatBody.js +43 -36
  19. package/dist/components/ChatComponents/ChatBody/chatBody.stories.js +5 -5
  20. package/dist/components/ChatComponents/ChatHeader/chatHeader.js +1 -1
  21. package/dist/components/ChatComponents/ChatHeader/chatHeader.stories.js +1 -1
  22. package/dist/components/ChatComponents/ColorPicker/colorPicker.stories.js +7 -3
  23. package/dist/components/ChatComponents/ContactCards/contactCards.js +1 -2
  24. package/dist/components/ChatComponents/ContactCards/contactCards.stories.js +1 -1
  25. package/dist/components/ChatComponents/FormAccordion/FormAccordion.stories.js +9 -5
  26. package/dist/components/ChatComponents/InfoTab/infoTab.js +1 -1
  27. package/dist/components/ChatComponents/InfoTab/infoTab.stories.js +4 -4
  28. package/dist/components/ChatComponents/LabelAccordion/LabelAccordion.stories.js +12 -7
  29. package/dist/components/ChatComponents/NoteAccordion/NoteAccordion.stories.js +14 -12
  30. package/dist/components/Checkbox/checkboxToggler.js +64 -0
  31. package/dist/components/Checkbox/checkboxToggler.stories.js +92 -0
  32. package/dist/components/Lists/listBox.js +5 -5
  33. package/dist/components/Lists/listBox.stories.js +5 -5
  34. package/dist/components/Lists/listHeader.stories.js +11 -11
  35. package/dist/components/Lists/listheader.js +4 -4
  36. package/dist/components/Lists/rowLabels.js +2 -2
  37. package/dist/components/Lists/rowLabels.stories.js +16 -16
  38. package/dist/components/Loader/loader.js +7 -7
  39. package/dist/components/Loader/loader.stories.js +11 -11
  40. package/dist/components/MessageCounter/MessageCounter.stories.js +13 -13
  41. package/dist/components/MessageCounter/messageCounter.js +11 -11
  42. package/dist/components/Modals/modal.js +6 -8
  43. package/dist/components/Modals/modals.stories.js +6 -6
  44. package/dist/components/NoteBar/noteBar.js +14 -14
  45. package/dist/components/NoteBar/noteBar.stories.js +15 -15
  46. package/dist/components/PerformanceIndicator/performaceIndicator.stories.js +13 -13
  47. package/dist/components/PerformanceIndicator/performanceIndicator.js +14 -12
  48. package/dist/components/Pills/pills.js +10 -10
  49. package/dist/components/Pills/pills.stories.js +19 -21
  50. package/dist/components/ProfileIcon/ProfileIcon.js +14 -14
  51. package/dist/components/ProfileIcon/profileIcon.stories.js +16 -16
  52. package/dist/components/ProgressBar/progressbar.stories.js +6 -8
  53. package/dist/components/ProgressRing/progressRing.js +19 -19
  54. package/dist/components/ProgressRing/progressRing.stories.js +14 -14
  55. package/dist/components/RouteLink/link.js +3 -3
  56. package/dist/components/RouteLink/link.stories.js +1 -1
  57. package/dist/components/ScrollBar/scrollBar.js +9 -9
  58. package/dist/components/SuperFluid/SegmentCard/index.js +2 -2
  59. package/dist/components/Tabs/tabs.js +6 -6
  60. package/dist/components/Tabs/tabs.stories.js +17 -17
  61. package/dist/components/Tags/tags.js +21 -21
  62. package/dist/components/Tags/tags.stories.js +16 -16
  63. package/dist/components/breakpoints.js +3 -3
  64. package/dist/components/checkbox.js +4 -4
  65. package/dist/components/colors.js +32 -30
  66. package/dist/components/dropdownButton.js +35 -35
  67. package/dist/components/examples/InfoAccordion.js +0 -1
  68. package/dist/components/iconStyles.js +45 -45
  69. package/dist/components/index.js +24 -16
  70. package/dist/components/input.js +16 -16
  71. package/dist/components/typography.js +14 -14
  72. package/package.json +54 -31
  73. package/src/App.js +10 -7
  74. package/src/index.js +6 -8
  75. package/src/lib/components/Accordion/Accordion.js +32 -14
  76. package/src/lib/components/Accordion/Accordion.stories.js +31 -31
  77. package/src/lib/components/Avatars/avatars.js +44 -29
  78. package/src/lib/components/Avatars/avatars.stories.js +18 -18
  79. package/src/lib/components/BannerCard/bannerCard.stories.js +16 -17
  80. package/src/lib/components/BannerCard/bannerCards.js +18 -18
  81. package/src/lib/components/Buttons/Stories/basicbutton.stories.js +29 -29
  82. package/src/lib/components/Buttons/Stories/buttonAlertIcons.stories.js +17 -17
  83. package/src/lib/components/Buttons/Stories/buttonIconsOnly.stories.js +24 -24
  84. package/src/lib/components/Buttons/buttonAlertIcons.js +22 -25
  85. package/src/lib/components/Buttons/buttonIconsOnly.js +32 -28
  86. package/src/lib/components/Buttons/buttons.js +70 -73
  87. package/src/lib/components/Cards/cards.js +2 -3
  88. package/src/lib/components/Cards/cards.stories.js +10 -10
  89. package/src/lib/components/ChatComponents/ChatBody/chatBody.js +49 -45
  90. package/src/lib/components/ChatComponents/ChatBody/chatBody.stories.js +34 -28
  91. package/src/lib/components/ChatComponents/ChatBody/sessionDetails.js +2 -2
  92. package/src/lib/components/ChatComponents/ChatHeader/chatHeader.js +2 -2
  93. package/src/lib/components/ChatComponents/ChatHeader/chatHeader.stories.js +4 -4
  94. package/src/lib/components/ChatComponents/ColorPicker/colorPicker.js +2 -2
  95. package/src/lib/components/ChatComponents/ColorPicker/colorPicker.stories.js +4 -3
  96. package/src/lib/components/ChatComponents/ContactCards/contactCards.js +7 -5
  97. package/src/lib/components/ChatComponents/ContactCards/contactCards.stories.js +6 -6
  98. package/src/lib/components/ChatComponents/FormAccordion/FormAccordion.js +3 -3
  99. package/src/lib/components/ChatComponents/FormAccordion/FormAccordion.stories.js +4 -3
  100. package/src/lib/components/ChatComponents/InfoTab/infoTab.js +2 -2
  101. package/src/lib/components/ChatComponents/InfoTab/infoTab.stories.js +7 -7
  102. package/src/lib/components/ChatComponents/LabelAccordion/LabelAccordion.stories.js +5 -3
  103. package/src/lib/components/ChatComponents/NoteAccordion/NoteAccordion.js +2 -2
  104. package/src/lib/components/ChatComponents/NoteAccordion/NoteAccordion.stories.js +6 -5
  105. package/src/lib/components/Checkbox/checkboxToggler.js +89 -0
  106. package/src/lib/components/Checkbox/checkboxToggler.stories.js +48 -0
  107. package/src/lib/components/Lists/listBox.js +7 -7
  108. package/src/lib/components/Lists/listBox.stories.js +8 -11
  109. package/src/lib/components/Lists/listHeader.stories.js +13 -13
  110. package/src/lib/components/Lists/listheader.js +7 -7
  111. package/src/lib/components/Lists/rowLabels.js +6 -6
  112. package/src/lib/components/Lists/rowLabels.stories.js +18 -18
  113. package/src/lib/components/Loader/loader.js +13 -13
  114. package/src/lib/components/Loader/loader.stories.js +14 -14
  115. package/src/lib/components/MainWrapper/index.js +2 -2
  116. package/src/lib/components/MessageCounter/MessageCounter.stories.js +14 -14
  117. package/src/lib/components/MessageCounter/messageCounter.js +16 -16
  118. package/src/lib/components/Modals/modal.js +25 -23
  119. package/src/lib/components/Modals/modals.stories.js +9 -9
  120. package/src/lib/components/NoteBar/noteBar.js +20 -20
  121. package/src/lib/components/NoteBar/noteBar.stories.js +18 -17
  122. package/src/lib/components/PerformanceIndicator/performaceIndicator.stories.js +15 -15
  123. package/src/lib/components/PerformanceIndicator/performanceIndicator.js +11 -10
  124. package/src/lib/components/Pills/pills.js +16 -16
  125. package/src/lib/components/Pills/pills.stories.js +22 -23
  126. package/src/lib/components/ProfileIcon/ProfileIcon.js +50 -52
  127. package/src/lib/components/ProfileIcon/profileIcon.stories.js +22 -22
  128. package/src/lib/components/ProgressBar/progressbar.js +4 -5
  129. package/src/lib/components/ProgressBar/progressbar.stories.js +8 -9
  130. package/src/lib/components/ProgressRing/progressRing.js +25 -24
  131. package/src/lib/components/ProgressRing/progressRing.stories.js +18 -18
  132. package/src/lib/components/RouteLink/link.js +10 -8
  133. package/src/lib/components/RouteLink/link.stories.js +4 -4
  134. package/src/lib/components/ScrollBar/scrollBar.js +15 -14
  135. package/src/lib/components/SuperFluid/Content/index.js +2 -2
  136. package/src/lib/components/SuperFluid/ContentTitle.js/index.js +2 -2
  137. package/src/lib/components/SuperFluid/SegmentCard/index.js +9 -8
  138. package/src/lib/components/Tabs/tabs.js +11 -11
  139. package/src/lib/components/Tabs/tabs.stories.js +20 -20
  140. package/src/lib/components/Tags/tags.js +26 -24
  141. package/src/lib/components/Tags/tags.stories.js +19 -19
  142. package/src/lib/components/breakpoints.js +3 -3
  143. package/src/lib/components/checkbox.js +7 -6
  144. package/src/lib/components/colors.js +30 -28
  145. package/src/lib/components/dropdownButton.js +36 -39
  146. package/src/lib/components/examples/InfoAccordion.js +1 -1
  147. package/src/lib/components/globalStyles.js +2 -2
  148. package/src/lib/components/iconStyles.js +45 -48
  149. package/src/lib/components/index.js +47 -46
  150. package/src/lib/components/input.js +20 -20
  151. package/src/lib/components/text.js +1 -1
  152. package/src/lib/components/typography.js +14 -14
  153. package/src/reportWebVitals.js +1 -1
  154. package/dist/components/checkboxToggler.js +0 -50
  155. package/src/lib/components/checkboxToggler.js +0 -19
@@ -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("../components/Buttons/buttonIconsOnly");
14
+ var _buttonIconsOnly = require("./Buttons/buttonIconsOnly");
15
15
 
16
- var _buttons = require("../components/Buttons/buttons");
16
+ var _buttons = require("./Buttons/buttons");
17
17
 
18
18
  var _colors = require("./colors");
19
19
 
@@ -39,55 +39,55 @@ var Drop = (0, _styledComponents.default)(_buttonIconsOnly.BmBtnIcon)(_templateO
39
39
  color = _ref.color;
40
40
 
41
41
  if (!disabled) {
42
- if (variant === "primary") return "".concat(color ? color : _colors.BmPrimaryBlue);
43
- if (variant === "secondary") return "none";
44
- if (variant === "tertiary") return "none";
45
- if (variant === "destructive") return "".concat(_colors.BmSecondaryRed);
46
- if (variant === "success") return "".concat(_colors.BmSecondaryDarkGreen);
47
- if (variant === "neutral") return "".concat(_colors.BmPrimaryWhite);
48
- return "".concat(color ? color : _colors.BmPrimaryBlue);
49
- } else {
50
- if (variant === "primary") return "".concat(_colors.BmGrey100);
51
- if (variant === "secondary") return "none";
52
- if (variant === "tertiary") return "none";
53
- return "".concat(_colors.BmGrey100);
42
+ if (variant === 'primary') return "".concat(color || _colors.BmPrimaryBlue);
43
+ if (variant === 'secondary') return 'none';
44
+ if (variant === 'tertiary') return 'none';
45
+ if (variant === 'destructive') return "".concat(_colors.BmSecondaryRed);
46
+ if (variant === 'success') return "".concat(_colors.BmSecondaryDarkGreen);
47
+ if (variant === 'neutral') return "".concat(_colors.BmPrimaryWhite);
48
+ return "".concat(color || _colors.BmPrimaryBlue);
54
49
  }
50
+
51
+ if (variant === 'primary') return "".concat(_colors.BmGrey100);
52
+ if (variant === 'secondary') return 'none';
53
+ if (variant === 'tertiary') return 'none';
54
+ return "".concat(_colors.BmGrey100);
55
55
  }, function (_ref2) {
56
56
  var variant = _ref2.variant,
57
57
  disabled = _ref2.disabled,
58
58
  color = _ref2.color;
59
59
 
60
60
  if (!disabled) {
61
- if (variant === "primary") return "".concat(color ? color : _colors.BmPrimaryBlue);
62
- if (variant === "secondary") return "".concat(color ? color : _colors.BmPrimaryBlue);
63
- if (variant === "tertiary") return "transparent";
64
- if (variant === "destructive") return "".concat(_colors.BmSecondaryRed);
65
- if (variant === "success") return "".concat(_colors.BmSecondaryDarkGreen);
66
- if (variant === "neutral") return "".concat(_colors.BmGrey400);
67
- return "".concat(color ? color : _colors.BmPrimaryBlue);
68
- } else {
69
- if (variant === "primary") return "".concat(_colors.BmGrey100);
70
- if (variant === "secondary") return "".concat(_colors.BmGrey400);
71
- if (variant === "tertiary") return "transparent";
61
+ if (variant === 'primary') return "".concat(color || _colors.BmPrimaryBlue);
62
+ if (variant === 'secondary') return "".concat(color || _colors.BmPrimaryBlue);
63
+ if (variant === 'tertiary') return 'transparent';
64
+ if (variant === 'destructive') return "".concat(_colors.BmSecondaryRed);
65
+ if (variant === 'success') return "".concat(_colors.BmSecondaryDarkGreen);
66
+ if (variant === 'neutral') return "".concat(_colors.BmGrey400);
67
+ return "".concat(color || _colors.BmPrimaryBlue);
72
68
  }
69
+
70
+ if (variant === 'primary') return "".concat(_colors.BmGrey100);
71
+ if (variant === 'secondary') return "".concat(_colors.BmGrey400);
72
+ if (variant === 'tertiary') return 'transparent';
73
73
  }, function (_ref3) {
74
74
  var variant = _ref3.variant,
75
75
  disabled = _ref3.disabled,
76
76
  color = _ref3.color;
77
77
 
78
78
  if (!disabled) {
79
- if (variant === "primary") return "".concat(_colors.BmPrimaryWhite);
80
- if (variant === "secondary") return "".concat(color ? color : _colors.BmPrimaryBlue);
81
- if (variant === "tertiary") return "transparent";
82
- if (variant === "destructive") return "".concat(_colors.BmSecondaryRed);
83
- if (variant === "success") return "".concat(_colors.BmSecondaryDarkGreen);
84
- if (variant === "neutral") return "".concat(_colors.BmGrey400);
79
+ if (variant === 'primary') return "".concat(_colors.BmPrimaryWhite);
80
+ if (variant === 'secondary') return "".concat(color || _colors.BmPrimaryBlue);
81
+ if (variant === 'tertiary') return 'transparent';
82
+ if (variant === 'destructive') return "".concat(_colors.BmSecondaryRed);
83
+ if (variant === 'success') return "".concat(_colors.BmSecondaryDarkGreen);
84
+ if (variant === 'neutral') return "".concat(_colors.BmGrey400);
85
85
  return "".concat(_colors.BmPrimaryWhite);
86
- } else {
87
- if (variant === "primary") return "".concat(_colors.BmGrey400);
88
- if (variant === "secondary") return "".concat(_colors.BmGrey400);
89
- if (variant === "tertiary") return "transparent";
90
86
  }
87
+
88
+ if (variant === 'primary') return "".concat(_colors.BmGrey400);
89
+ if (variant === 'secondary') return "".concat(_colors.BmGrey400);
90
+ if (variant === 'tertiary') return 'transparent';
91
91
  });
92
92
  exports.Drop = Drop;
93
93
  var Button = (0, _styledComponents.default)(_buttons.BmButton)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n border-top-right-radius: 0.071rem; */}\n border-bottom-right-radius: 0.071rem; */}\n border-radius: none;\n border-right: none;\n"])));
@@ -13,7 +13,6 @@ var _FormAccordion = _interopRequireDefault(require("./lib/components/ChatCompon
13
13
 
14
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
15
 
16
- /* eslint-disable react/prop-types */
17
16
  var InfoAccordion = function InfoAccordion() {
18
17
  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_components.BmAccordion, null, /*#__PURE__*/_react.default.createElement(_components.BmAccordion.Title, null, /*#__PURE__*/_react.default.createElement("h3", null, "Notes")), /*#__PURE__*/_react.default.createElement(_components.BmAccordion.Body, null, /*#__PURE__*/_react.default.createElement(_FormAccordion.default, null, /*#__PURE__*/_react.default.createElement(_FormAccordion.default.Label, null, /*#__PURE__*/_react.default.createElement("h4", null, "Hello")), /*#__PURE__*/_react.default.createElement(_FormAccordion.default.Input, {
19
18
  placeholder: "Hello"
@@ -9,21 +9,21 @@ var _react = _interopRequireDefault(require("react"));
9
9
 
10
10
  var _styles = require("@material-ui/core/styles");
11
11
 
12
- var _colors = require("./colors");
13
-
14
12
  var _SvgIcon = _interopRequireDefault(require("@material-ui/core/SvgIcon"));
15
13
 
14
+ var _colors = require("./colors");
15
+
16
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
17
 
18
18
  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); }
19
19
 
20
20
  var size = function size(props) {
21
- if (props.size === "xsmall") return "1.143rem !important";
22
- if (props.size === "small") return "1.429rem !important";
23
- if (props.size === "medium") return "1.714rem !important";
24
- if (props.size === "large") return "1.714rem !important";
25
- if (props.size === "xlarge") return "2.286rem !important";
26
- if (!props.size) return "1.714rem !important";
21
+ if (props.size === 'xsmall') return '1.143rem !important';
22
+ if (props.size === 'small') return '1.429rem !important';
23
+ if (props.size === 'medium') return '1.714rem !important';
24
+ if (props.size === 'large') return '1.714rem !important';
25
+ if (props.size === 'xlarge') return '2.286rem !important';
26
+ if (!props.size) return '1.714rem !important';
27
27
  return props.size;
28
28
  }; // Button Icons
29
29
 
@@ -42,18 +42,18 @@ var ButtonIcon = {
42
42
  color = _ref.color;
43
43
 
44
44
  if (!disabled) {
45
- if (variant === "active") return "".concat(_colors.BmPrimaryWhite);
46
- if (variant === "enabled") return "".concat(_colors.BmPrimaryBlack);
47
- if (variant === "destructive") return "".concat(_colors.BmPrimaryWhite);
48
- if (variant === "success") return "".concat(_colors.BmPrimaryWhite);
49
- if (variant === "neutral") return "".concat(color ? color : _colors.BmPrimaryBlue);
50
- if (variant === "primary") return "".concat(_colors.BmPrimaryWhite);
51
- if (variant === "secondary") return "".concat(color ? color : _colors.BmPrimaryBlue);
52
- if (variant === "tertiary") return "".concat(color ? color : _colors.BmPrimaryBlue);
45
+ if (variant === 'active') return "".concat(_colors.BmPrimaryWhite);
46
+ if (variant === 'enabled') return "".concat(_colors.BmPrimaryBlack);
47
+ if (variant === 'destructive') return "".concat(_colors.BmPrimaryWhite);
48
+ if (variant === 'success') return "".concat(_colors.BmPrimaryWhite);
49
+ if (variant === 'neutral') return "".concat(color || _colors.BmPrimaryBlue);
50
+ if (variant === 'primary') return "".concat(_colors.BmPrimaryWhite);
51
+ if (variant === 'secondary') return "".concat(color || _colors.BmPrimaryBlue);
52
+ if (variant === 'tertiary') return "".concat(color || _colors.BmPrimaryBlue);
53
53
  return "".concat(_colors.BmPrimaryWhite);
54
- } else {
55
- return "".concat(_colors.BmGrey400);
56
54
  }
55
+
56
+ return "".concat(_colors.BmGrey400);
57
57
  },
58
58
  color: function color(_ref2) {
59
59
  var variant = _ref2.variant,
@@ -62,18 +62,18 @@ var ButtonIcon = {
62
62
  if (_color) return _color;
63
63
 
64
64
  if (!disabled) {
65
- if (variant === "active") return "".concat(_colors.BmPrimaryWhite);
66
- if (variant === "enabled") return "".concat(_colors.BmPrimaryBlack);
67
- if (variant === "destructive") return "".concat(_colors.BmPrimaryWhite);
68
- if (variant === "success") return "".concat(_colors.BmPrimaryWhite);
69
- if (variant === "neutral") return "".concat(_colors.BmPrimaryBlue);
70
- if (variant === "primary") return "".concat(_colors.BmPrimaryWhite);
71
- if (variant === "secondary") return "".concat(_color ? _color : _colors.BmPrimaryBlue);
72
- if (variant === "tertiary") return "".concat(_color ? _color : _colors.BmPrimaryBlue);
65
+ if (variant === 'active') return "".concat(_colors.BmPrimaryWhite);
66
+ if (variant === 'enabled') return "".concat(_colors.BmPrimaryBlack);
67
+ if (variant === 'destructive') return "".concat(_colors.BmPrimaryWhite);
68
+ if (variant === 'success') return "".concat(_colors.BmPrimaryWhite);
69
+ if (variant === 'neutral') return "".concat(_colors.BmPrimaryBlue);
70
+ if (variant === 'primary') return "".concat(_colors.BmPrimaryWhite);
71
+ if (variant === 'secondary') return "".concat(_color || _colors.BmPrimaryBlue);
72
+ if (variant === 'tertiary') return "".concat(_color || _colors.BmPrimaryBlue);
73
73
  return "".concat(_colors.BmPrimaryWhite);
74
- } else {
75
- return "".concat(_colors.BmGrey400);
76
74
  }
75
+
76
+ return "".concat(_colors.BmGrey400);
77
77
  }
78
78
  }
79
79
  };
@@ -92,10 +92,10 @@ exports.BmButtonIcon = BmButtonIcon;
92
92
  var TagIcon = {
93
93
  root: {
94
94
  height: function height(props) {
95
- return size(props) || "1.143rem !important";
95
+ return size(props) || '1.143rem !important';
96
96
  },
97
97
  width: function width(props) {
98
- return size(props) || "1.143rem !important";
98
+ return size(props) || '1.143rem !important';
99
99
  },
100
100
  fill: function fill(_ref3) {
101
101
  var variant = _ref3.variant,
@@ -105,7 +105,7 @@ var TagIcon = {
105
105
  return color;
106
106
  }
107
107
 
108
- if (variant === "neutral" || variant === "light") return "".concat(_colors.BmPrimaryBlack);
108
+ if (variant === 'neutral' || variant === 'light') return "".concat(_colors.BmPrimaryBlack);
109
109
  return "".concat(_colors.BmPrimaryWhite);
110
110
  },
111
111
  color: function color(_ref4) {
@@ -116,7 +116,7 @@ var TagIcon = {
116
116
  return _color2;
117
117
  }
118
118
 
119
- if (variant === "neutral" || variant === "light") return "".concat(_colors.BmPrimaryBlack);
119
+ if (variant === 'neutral' || variant === 'light') return "".concat(_colors.BmPrimaryBlack);
120
120
  return "".concat(_colors.BmPrimaryWhite);
121
121
  }
122
122
  }
@@ -135,11 +135,11 @@ var BmTagIcon = (0, _styles.withStyles)(TagIcon)(function (props) {
135
135
  exports.BmTagIcon = BmTagIcon;
136
136
 
137
137
  var Avatarsize = function Avatarsize(props) {
138
- if (props.size === "xsmall") return "0.857rem !important";
139
- if (props.size === "small") return "1.143rem !important";
140
- if (props.size === "medium") return "1.429rem !important";
141
- if (props.size === "large") return "2.286rem !important";
142
- if (!props.size) return "2.286rem !important";
138
+ if (props.size === 'xsmall') return '0.857rem !important';
139
+ if (props.size === 'small') return '1.143rem !important';
140
+ if (props.size === 'medium') return '1.429rem !important';
141
+ if (props.size === 'large') return '2.286rem !important';
142
+ if (!props.size) return '2.286rem !important';
143
143
  return props.size;
144
144
  };
145
145
 
@@ -168,7 +168,7 @@ var BmAvatarIcon = (0, _styles.withStyles)(AvatarIcon)(function (props) {
168
168
  }
169
169
 
170
170
  return null;
171
- }); //check on sizing
171
+ }); // check on sizing
172
172
 
173
173
  exports.BmAvatarIcon = BmAvatarIcon;
174
174
  var BmChatbotIcon = (0, _styles.withStyles)(AvatarIcon)(function (props) {
@@ -176,7 +176,7 @@ var BmChatbotIcon = (0, _styles.withStyles)(AvatarIcon)(function (props) {
176
176
  action: true
177
177
  }, props), /*#__PURE__*/_react.default.createElement("path", {
178
178
  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",
179
- fill: props.color || "white"
179
+ fill: props.color || 'white'
180
180
  }));
181
181
  }); // To be refacotored
182
182
  // Emoji Icons
@@ -187,7 +187,7 @@ var EmojiSize = function EmojiSize() {
187
187
  // if (props.size === "small") return "1.429rem";
188
188
  // if (props.size === "medium") return "1.714rem";
189
189
  // if (props.size === "large") return "1.714rem";
190
- return "2.286rem !important";
190
+ return '2.286rem !important';
191
191
  };
192
192
 
193
193
  var EmojiIcon = {
@@ -222,7 +222,7 @@ var BmQuickReplyIcon = (0, _styles.withStyles)(EmojiIcon)(function (props) {
222
222
  action: true
223
223
  }, props), /*#__PURE__*/_react.default.createElement("path", {
224
224
  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",
225
- fill: props.color || "#575757"
225
+ fill: props.color || '#575757'
226
226
  }));
227
227
  });
228
228
  exports.BmQuickReplyIcon = BmQuickReplyIcon;
@@ -269,16 +269,16 @@ var BmSupport = (0, _styles.withStyles)(icon)(function (props) {
269
269
  action: true
270
270
  }, props), /*#__PURE__*/_react.default.createElement("path", {
271
271
  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",
272
- fill: props.color || "black"
272
+ fill: props.color || 'black'
273
273
  }), /*#__PURE__*/_react.default.createElement("path", {
274
274
  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",
275
- fill: props.color || "black"
275
+ fill: props.color || 'black'
276
276
  }), /*#__PURE__*/_react.default.createElement("path", {
277
277
  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",
278
- fill: props.color || "black"
278
+ fill: props.color || 'black'
279
279
  }), /*#__PURE__*/_react.default.createElement("path", {
280
280
  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",
281
- fill: props.color || "black"
281
+ fill: props.color || 'black'
282
282
  }));
283
283
  });
284
284
  exports.BmSupport = BmSupport;
@@ -101,6 +101,12 @@ Object.defineProperty(exports, "BmCheckbox", {
101
101
  return _checkbox.BmCheckbox;
102
102
  }
103
103
  });
104
+ Object.defineProperty(exports, "BmCheckboxToggle", {
105
+ enumerable: true,
106
+ get: function get() {
107
+ return _checkboxToggler.BmCheckboxToggle;
108
+ }
109
+ });
104
110
  Object.defineProperty(exports, "BmColorPicker", {
105
111
  enumerable: true,
106
112
  get: function get() {
@@ -123,13 +129,13 @@ Object.defineProperty(exports, "BmContent", {
123
129
  Object.defineProperty(exports, "BmContentFooter", {
124
130
  enumerable: true,
125
131
  get: function get() {
126
- return _index2.BmContentFooter;
132
+ return _ContentTitle.BmContentFooter;
127
133
  }
128
134
  });
129
135
  Object.defineProperty(exports, "BmContentTitle", {
130
136
  enumerable: true,
131
137
  get: function get() {
132
- return _index2.BmContentTitle;
138
+ return _ContentTitle.BmContentTitle;
133
139
  }
134
140
  });
135
141
  Object.defineProperty(exports, "BmCounter", {
@@ -147,13 +153,13 @@ Object.defineProperty(exports, "BmEmojiIcon", {
147
153
  Object.defineProperty(exports, "BmFooterLeft", {
148
154
  enumerable: true,
149
155
  get: function get() {
150
- return _index2.BmFooterLeft;
156
+ return _ContentTitle.BmFooterLeft;
151
157
  }
152
158
  });
153
159
  Object.defineProperty(exports, "BmFooterRight", {
154
160
  enumerable: true,
155
161
  get: function get() {
156
- return _index2.BmFooterRight;
162
+ return _ContentTitle.BmFooterRight;
157
163
  }
158
164
  });
159
165
  Object.defineProperty(exports, "BmIcons", {
@@ -243,43 +249,43 @@ Object.defineProperty(exports, "BmRowLabel", {
243
249
  Object.defineProperty(exports, "BmSegment", {
244
250
  enumerable: true,
245
251
  get: function get() {
246
- return _index3.BmSegment;
252
+ return _index2.BmSegment;
247
253
  }
248
254
  });
249
255
  Object.defineProperty(exports, "BmSegmentCard", {
250
256
  enumerable: true,
251
257
  get: function get() {
252
- return _index3.BmSegmentCard;
258
+ return _index2.BmSegmentCard;
253
259
  }
254
260
  });
255
261
  Object.defineProperty(exports, "BmSegmentCheckBox", {
256
262
  enumerable: true,
257
263
  get: function get() {
258
- return _index3.BmSegmentCheckBox;
264
+ return _index2.BmSegmentCheckBox;
259
265
  }
260
266
  });
261
267
  Object.defineProperty(exports, "BmSegmentCompleteContent", {
262
268
  enumerable: true,
263
269
  get: function get() {
264
- return _index3.BmSegmentCompleteContent;
270
+ return _index2.BmSegmentCompleteContent;
265
271
  }
266
272
  });
267
273
  Object.defineProperty(exports, "BmSegmentCompleteIcon", {
268
274
  enumerable: true,
269
275
  get: function get() {
270
- return _index3.BmSegmentCompleteIcon;
276
+ return _index2.BmSegmentCompleteIcon;
271
277
  }
272
278
  });
273
279
  Object.defineProperty(exports, "BmSegmentCreateContent", {
274
280
  enumerable: true,
275
281
  get: function get() {
276
- return _index3.BmSegmentCreateContent;
282
+ return _index2.BmSegmentCreateContent;
277
283
  }
278
284
  });
279
285
  Object.defineProperty(exports, "BmSegmentSelector", {
280
286
  enumerable: true,
281
287
  get: function get() {
282
- return _index3.BmSegmentSelector;
288
+ return _index2.BmSegmentSelector;
283
289
  }
284
290
  });
285
291
  Object.defineProperty(exports, "BmSupport", {
@@ -365,19 +371,21 @@ var _loader = require("./Loader/loader");
365
371
 
366
372
  var _checkbox = require("./checkbox");
367
373
 
368
- var _tags = require("../components/Tags/tags");
374
+ var _tags = require("./Tags/tags");
369
375
 
370
- var _bannerCards = _interopRequireDefault(require("../components/BannerCard/bannerCards"));
376
+ var _bannerCards = _interopRequireDefault(require("./BannerCard/bannerCards"));
371
377
 
372
378
  var _progressRing = _interopRequireDefault(require("./ProgressRing/progressRing"));
373
379
 
374
380
  var _ProfileIcon = require("./ProfileIcon/ProfileIcon");
375
381
 
382
+ var _checkboxToggler = require("./Checkbox/checkboxToggler");
383
+
376
384
  var _iconStyles = require("./iconStyles");
377
385
 
378
386
  var _noteBar = require("./NoteBar/noteBar");
379
387
 
380
- var _MainWrapper = require("../components/MainWrapper");
388
+ var _MainWrapper = require("./MainWrapper");
381
389
 
382
390
  var _chatBody = _interopRequireDefault(require("./ChatComponents/ChatBody/chatBody"));
383
391
 
@@ -399,9 +407,9 @@ var _colorPicker = require("./ChatComponents/ColorPicker/colorPicker");
399
407
 
400
408
  var _index = require("./SuperFluid/Content/index");
401
409
 
402
- var _index2 = require("./SuperFluid/ContentTitle.js/index.js");
410
+ var _ContentTitle = require("./SuperFluid/ContentTitle.js");
403
411
 
404
- var _index3 = require("./SuperFluid/SegmentCard/index");
412
+ var _index2 = require("./SuperFluid/SegmentCard/index");
405
413
 
406
414
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
407
415
 
@@ -11,7 +11,7 @@ var _react = _interopRequireDefault(require("react"));
11
11
 
12
12
  var _styledComponents = _interopRequireDefault(require("styled-components"));
13
13
 
14
- var _ = require(".");
14
+ var _iconStyles = require("./iconStyles");
15
15
 
16
16
  var _colors = require("./colors");
17
17
 
@@ -33,7 +33,7 @@ var BmInputLabel = _styledComponents.default.div(_templateObject || (_templateOb
33
33
  var state = _ref.state;
34
34
 
35
35
  if (state) {
36
- if (state === "incomplete") return "".concat(_colors.BmSecondaryRed);
36
+ if (state === 'incomplete') return "".concat(_colors.BmSecondaryRed);
37
37
  return "".concat(_colors.BmSecondaryGrey);
38
38
  }
39
39
 
@@ -44,7 +44,7 @@ var BmInputField = _styledComponents.default.input(_templateObject2 || (_templat
44
44
  var state = _ref2.state;
45
45
 
46
46
  if (state) {
47
- if (state === "disabled") return "".concat(_colors.BmGrey400);
47
+ if (state === 'disabled') return "".concat(_colors.BmGrey400);
48
48
  return "".concat(_colors.BmPrimaryBlack);
49
49
  }
50
50
 
@@ -53,11 +53,11 @@ var BmInputField = _styledComponents.default.input(_templateObject2 || (_templat
53
53
  var state = _ref3.state;
54
54
 
55
55
  if (state) {
56
- if (state === "pressed") return "".concat(_colors.BmGrey50); // TODO: to be reviewed
56
+ if (state === 'pressed') return "".concat(_colors.BmGrey50); // TODO: to be reviewed
57
57
 
58
- if (state === "positive") return "".concat(_colors.BmSecondaryGreen15);
59
- if (state === "negative") return "".concat(_colors.BmSecondaryRed15);
60
- if (state === "disabled") return "".concat(_colors.BmGrey100);
58
+ if (state === 'positive') return "".concat(_colors.BmSecondaryGreen15);
59
+ if (state === 'negative') return "".concat(_colors.BmSecondaryRed15);
60
+ if (state === 'disabled') return "".concat(_colors.BmGrey100);
61
61
  return "".concat(_colors.BmPrimaryWhite);
62
62
  }
63
63
 
@@ -70,9 +70,9 @@ var BmInputWrapper = _styledComponents.default.div(_templateObject3 || (_templat
70
70
  var state = _ref4.state;
71
71
 
72
72
  if (state) {
73
- if (state === "pressed") return "".concat(_colors.BmGrey50);
74
- if (state === "positive") return "".concat(_colors.BmSecondaryGreen15);
75
- if (state === "disabled") return "".concat(_colors.BmGrey100);
73
+ if (state === 'pressed') return "".concat(_colors.BmGrey50);
74
+ if (state === 'positive') return "".concat(_colors.BmSecondaryGreen15);
75
+ if (state === 'disabled') return "".concat(_colors.BmGrey100);
76
76
  return "".concat(_colors.BmPrimaryWhite);
77
77
  }
78
78
 
@@ -81,9 +81,9 @@ var BmInputWrapper = _styledComponents.default.div(_templateObject3 || (_templat
81
81
  var state = _ref5.state;
82
82
 
83
83
  if (state) {
84
- if (state === "positive") return "0.071rem solid ".concat(_colors.BmSecondaryDarkGreen);
85
- if (state === "negative") return "0.071rem solid ".concat(_colors.BmSecondaryRed);
86
- if (state === "disabled") return "0.071rem solid ".concat(_colors.BmGrey100);
84
+ if (state === 'positive') return "0.071rem solid ".concat(_colors.BmSecondaryDarkGreen);
85
+ if (state === 'negative') return "0.071rem solid ".concat(_colors.BmSecondaryRed);
86
+ if (state === 'disabled') return "0.071rem solid ".concat(_colors.BmGrey100);
87
87
  return "0.071rem solid ".concat(_colors.BmGrey400);
88
88
  }
89
89
 
@@ -103,11 +103,11 @@ var BmInput = function BmInput(_ref6) {
103
103
  id: id
104
104
  }, rest, {
105
105
  state: state,
106
- disabled: state === "disabled" ? true : false
107
- })), state && state === "complete" && /*#__PURE__*/_react.default.createElement(_.BmIcons, {
106
+ disabled: state === 'disabled'
107
+ })), state && state === 'complete' && /*#__PURE__*/_react.default.createElement(_iconStyles.BmIcons, {
108
108
  icon: /*#__PURE__*/_react.default.createElement(_icons.ErrorOutline, null),
109
109
  size: "small"
110
- }), state && state === "incomplete" && /*#__PURE__*/_react.default.createElement(_.BmIcons, {
110
+ }), state && state === 'incomplete' && /*#__PURE__*/_react.default.createElement(_iconStyles.BmIcons, {
111
111
  icon: /*#__PURE__*/_react.default.createElement(_icons.Done, null),
112
112
  size: "small"
113
113
  })), label && /*#__PURE__*/_react.default.createElement(BmInputLabel, _extends({
@@ -4,31 +4,31 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.QuoteMark = exports.PullQuote = exports.PoppinsMedium = exports.Poppins = exports.P = exports.OpenSans = exports.Hero = exports.H6 = exports.H5 = exports.H4 = exports.H3 = exports.H2 = exports.H1 = exports.Captions = void 0;
7
- var H1 = "2.286rem";
7
+ var H1 = '2.286rem';
8
8
  exports.H1 = H1;
9
- var H2 = "1.714rem";
9
+ var H2 = '1.714rem';
10
10
  exports.H2 = H2;
11
- var H3 = "1.286rem";
11
+ var H3 = '1.286rem';
12
12
  exports.H3 = H3;
13
- var H4 = "1.143rem";
13
+ var H4 = '1.143rem';
14
14
  exports.H4 = H4;
15
- var H5 = "0.857rem";
15
+ var H5 = '0.857rem';
16
16
  exports.H5 = H5;
17
- var H6 = "0.714rem";
17
+ var H6 = '0.714rem';
18
18
  exports.H6 = H6;
19
- var P = "0.929rem";
19
+ var P = '0.929rem';
20
20
  exports.P = P;
21
- var QuoteMark = "3.429rem";
21
+ var QuoteMark = '3.429rem';
22
22
  exports.QuoteMark = QuoteMark;
23
- var PullQuote = "1.286rem";
23
+ var PullQuote = '1.286rem';
24
24
  exports.PullQuote = PullQuote;
25
- var Captions = "0.714rem";
25
+ var Captions = '0.714rem';
26
26
  exports.Captions = Captions;
27
- var Hero = "1rem";
27
+ var Hero = '1rem';
28
28
  exports.Hero = Hero;
29
- var PoppinsMedium = "PoppinsMedium";
29
+ var PoppinsMedium = 'PoppinsMedium';
30
30
  exports.PoppinsMedium = PoppinsMedium;
31
- var Poppins = "Poppins";
31
+ var Poppins = 'Poppins';
32
32
  exports.Poppins = Poppins;
33
- var OpenSans = "OpenSans";
33
+ var OpenSans = 'OpenSans';
34
34
  exports.OpenSans = OpenSans;