beem-component 1.8.2 → 1.8.4

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 (106) hide show
  1. package/.babelrc +17 -0
  2. package/.eslintrc +16 -27
  3. package/.prettierrc +3 -2
  4. package/dist/components/Accordion/Accordion.js +14 -8
  5. package/dist/components/Avatars/avatars.js +3 -3
  6. package/dist/components/BannerCard/bannerCards.js +8 -6
  7. package/dist/components/ButtonGroup/buttonGroup.js +37 -0
  8. package/dist/components/Buttons/buttonAlertIcons.js +3 -3
  9. package/dist/components/Buttons/buttonDropdown copy.js +51 -50
  10. package/dist/components/Buttons/buttonDropdown.js +2 -2
  11. package/dist/components/Buttons/buttonIconsOnly.js +6 -4
  12. package/dist/components/Buttons/buttons.js +12 -6
  13. package/dist/components/Cards/cards.js +12 -6
  14. package/dist/components/ChatComponents/ChatBody/FeedPostComments.js +15 -7
  15. package/dist/components/ChatComponents/ChatBody/chatBody.js +33 -13
  16. package/dist/components/ChatComponents/ChatBody/sessionDetails.js +3 -3
  17. package/dist/components/ChatComponents/ChatBody/sessionTimeline.js +6 -4
  18. package/dist/components/ChatComponents/ChatHeader/chatHeader.js +3 -3
  19. package/dist/components/ChatComponents/ColorPicker/colorPicker.js +3 -3
  20. package/dist/components/ChatComponents/ContactCards/contactCards.js +14 -8
  21. package/dist/components/ChatComponents/FormAccordion/FormAccordion.js +12 -6
  22. package/dist/components/ChatComponents/InfoTab/infoTab.js +9 -5
  23. package/dist/components/ChatComponents/LabelAccordion/LabelAccordion.js +3 -3
  24. package/dist/components/ChatComponents/NoteAccordion/NoteAccordion.js +9 -5
  25. package/dist/components/Chats/chat.js +47 -29
  26. package/dist/components/Chats/chatInput.js +16 -8
  27. package/dist/components/Chats/chatwrapper.js +18 -8
  28. package/dist/components/Checkbox/checkboxToggler.js +12 -6
  29. package/dist/components/Checkbox/checkboxToggler.stories.js +2 -2
  30. package/dist/components/Jumbotron/Jumbotron.js +18 -7
  31. package/dist/components/Lists/listBox.js +3 -3
  32. package/dist/components/Lists/listBox.stories.js +2 -2
  33. package/dist/components/Lists/listheader.js +3 -3
  34. package/dist/components/Lists/rowLabels.js +12 -6
  35. package/dist/components/Lists/rowLabels.stories.js +4 -1
  36. package/dist/components/Loader/loader.js +3 -3
  37. package/dist/components/MainWrapper/index.js +3 -3
  38. package/dist/components/MessageCounter/messageCounter.js +3 -3
  39. package/dist/components/Modals/modal.js +33 -21
  40. package/dist/components/Modals/modals.stories.js +2 -2
  41. package/dist/components/NoteBar/noteBar.js +5 -5
  42. package/dist/components/PaymentBox/paymentBox.js +12 -6
  43. package/dist/components/PerformanceIndicator/performanceIndicator.js +3 -3
  44. package/dist/components/Pills/pills.js +5 -5
  45. package/dist/components/ProfileIcon/ProfileIcon.js +12 -6
  46. package/dist/components/ProgressBar/progressbar.js +12 -6
  47. package/dist/components/ProgressRing/progressRing.js +14 -8
  48. package/dist/components/RouteLink/link.js +3 -3
  49. package/dist/components/ScrollBar/scrollBar.js +9 -5
  50. package/dist/components/SuperFluid/Content/index.js +3 -3
  51. package/dist/components/SuperFluid/ContentTitle.js/index.js +12 -6
  52. package/dist/components/SuperFluid/SegmentCard/index.js +20 -8
  53. package/dist/components/Tabs/tabs.js +3 -3
  54. package/dist/components/Tags/tags.js +5 -5
  55. package/dist/components/chatHeader.js +15 -7
  56. package/dist/components/checkbox.js +15 -7
  57. package/dist/components/contacts.js +33 -13
  58. package/dist/components/dropdown.js +25 -13
  59. package/dist/components/dropdownButton.js +9 -5
  60. package/dist/components/dropdownItems.js +22 -10
  61. package/dist/components/examples/App.js +8 -8
  62. package/dist/components/examples/chatBodyExample.js +1 -1
  63. package/dist/components/examples/selectExample.js +5 -5
  64. package/dist/components/globalStyles.js +1 -3
  65. package/dist/components/index.js +7 -0
  66. package/dist/components/input.js +9 -5
  67. package/dist/components/logo.js +3 -3
  68. package/dist/components/navbar.js +23 -9
  69. package/dist/components/search.js +17 -12
  70. package/dist/components/shadow.js +1 -1
  71. package/dist/components/wrapper.js +6 -4
  72. package/package.json +28 -16
  73. package/src/App.js +15 -264
  74. package/src/examples/AlertIcons.js +10 -5
  75. package/src/examples/Avatars.js +3 -2
  76. package/src/examples/Buttons.js +7 -10
  77. package/src/examples/Chat.js +9 -9
  78. package/src/examples/Input.js +79 -70
  79. package/src/examples/Logo.js +2 -2
  80. package/src/examples/Navbar.js +12 -12
  81. package/src/examples/Search.js +3 -2
  82. package/src/examples/SideBar.js +11 -11
  83. package/src/examples/Tags.js +3 -3
  84. package/src/lib/components/ButtonGroup/buttonGroup.js +38 -0
  85. package/src/lib/components/Buttons/buttonDropdown copy.js +51 -54
  86. package/src/lib/components/Buttons/buttonDropdown.js +6 -6
  87. package/src/lib/components/Chats/chat.js +23 -23
  88. package/src/lib/components/Chats/chatInput.js +8 -8
  89. package/src/lib/components/Chats/chatwrapper.js +2 -2
  90. package/src/lib/components/Checkbox/checkboxToggler.stories.js +0 -1
  91. package/src/lib/components/chatHeader.js +8 -3
  92. package/src/lib/components/contacts.js +3 -3
  93. package/src/lib/components/dropdown.js +7 -7
  94. package/src/lib/components/dropdownItems.js +6 -6
  95. package/src/lib/components/examples/App.js +53 -43
  96. package/src/lib/components/examples/InfoAccordion.js +6 -5
  97. package/src/lib/components/examples/chatBodyExample.js +5 -5
  98. package/src/lib/components/examples/selectExample.js +7 -7
  99. package/src/lib/components/index-copy.js +49 -49
  100. package/src/lib/components/index.js +2 -0
  101. package/src/lib/components/logo.js +2 -2
  102. package/src/lib/components/navbar.js +5 -5
  103. package/src/lib/components/search.js +10 -11
  104. package/src/lib/components/shadow.js +1 -1
  105. package/src/lib/components/wrapper.js +1 -2
  106. package/babel.config.js +0 -11
@@ -1,14 +1,14 @@
1
- import React, { useState } from "react";
2
- import { BmTabItem } from "../lib/components/tabs";
3
- import { BmSearch } from "../lib/components/search";
4
- import ForumIcon from "@material-ui/icons/Forum";
1
+ import React, { useState } from 'react';
2
+ import ForumIcon from '@material-ui/icons/Forum';
3
+ import { FilterList } from '@material-ui/icons';
4
+ import { BmTabItem } from '../lib/components/tabs';
5
+ import { BmSearch } from '../lib/components/search';
5
6
  import {
6
7
  BmSideBar,
7
8
  BmSideBarBtnIcon,
8
9
  BmSideBarSearch,
9
10
  BmSideBarTab,
10
- } from "../lib/components/sidebar";
11
- import { FilterList } from "@material-ui/icons";
11
+ } from '../lib/components/sidebar';
12
12
  import {
13
13
  BmContact,
14
14
  BmContactItem,
@@ -20,10 +20,10 @@ import {
20
20
  BmMessageContact,
21
21
  BmMessageText,
22
22
  BmUnreadMessage,
23
- } from "../lib/components/contacts";
24
- import { BmAvatar } from "../lib/components/avatars";
25
- import { BmTag } from "../lib/components/tags";
26
- import { BmContactIcon } from "../lib/components/contacts";
23
+ BmContactIcon,
24
+ } from '../lib/components/contacts';
25
+ import { BmAvatar } from '../lib/components/avatars';
26
+ import { BmTag } from '../lib/components/tags';
27
27
 
28
28
  export const SideBar = () => {
29
29
  const [selectedContact, setSelectedContact] = useState(false);
@@ -44,7 +44,7 @@ export const SideBar = () => {
44
44
  <BmSideBarBtnIcon
45
45
  icon={<FilterList />}
46
46
  variant="neutral"
47
- onClick={() => alert("hello")}
47
+ onClick={() => alert('hello')}
48
48
  />
49
49
  </BmSideBarSearch>
50
50
  {/* Contacts */}
@@ -1,6 +1,6 @@
1
- import { Favorite } from "@material-ui/icons";
2
- import React, { Component } from "react";
3
- import { BmTag } from "../lib/components/tags";
1
+ import { Favorite } from '@material-ui/icons';
2
+ import React, { Component } from 'react';
3
+ import { BmTag } from '../lib/components/tags';
4
4
 
5
5
  export class Tags extends Component {
6
6
  render() {
@@ -0,0 +1,38 @@
1
+ /* eslint-disable consistent-return */
2
+ /* eslint-disable no-unused-vars */
3
+ import { darken } from 'polished';
4
+ import styled from 'styled-components';
5
+ import { BmGrey50, BmPrimaryWhite } from '../colors';
6
+ import { BmTab } from '../Tabs/tabs';
7
+
8
+ const BmButtonGroup = styled.div`
9
+ display: inline-flex;
10
+ border: 0.071rem solid ${BmPrimaryWhite};
11
+ background: ${(props) => (props.bgColor ? props.bgColor : BmGrey50)};
12
+ padding: 0.25rem;
13
+ `;
14
+
15
+ const Item = styled(BmTab)`
16
+ ${({ active }) =>
17
+ active &&
18
+ `
19
+ border: 0.071rem solid ${BmPrimaryWhite};
20
+ background: ${BmPrimaryWhite} !important;
21
+ `};
22
+ box-shadow: none !important;
23
+ background: ${(props) => (props.bgColor ? props.bgColor : BmGrey50)};
24
+ border-radius: 0rem;
25
+ padding: 0.5rem 2rem;
26
+ &:hover {
27
+ background: ${({ bgColor, active }) => {
28
+ if (!active) {
29
+ if (bgColor) return `${darken(0.1, bgColor)}`;
30
+ return `${darken(0.1, BmGrey50)}`;
31
+ }
32
+ }};
33
+ }
34
+ `;
35
+
36
+ BmButtonGroup.Item = Item;
37
+
38
+ export default BmButtonGroup;
@@ -1,8 +1,8 @@
1
- import React from "react";
2
- import { KeyboardArrowDown } from "@material-ui/icons";
3
- import styled from "styled-components";
4
- import { BmBtnIcon } from "./buttonIconsOnly";
5
- import { BmButton } from "./buttons";
1
+ import React from 'react';
2
+ import { KeyboardArrowDown } from '@material-ui/icons';
3
+ import styled from 'styled-components';
4
+ import { BmBtnIcon } from './buttonIconsOnly';
5
+ import { BmButton } from './buttons';
6
6
  import {
7
7
  BmPrimaryWhite,
8
8
  BmPrimaryBlue,
@@ -14,17 +14,17 @@ import {
14
14
  BmGrey50,
15
15
  BmSecondaryGreen8,
16
16
  BmSecondaryRed8,
17
- } from "../colors";
17
+ } from '../colors';
18
18
 
19
19
  const ButtonDropdownWrapper = styled.div`
20
20
  display: flex;
21
21
  &:hover {
22
22
  background: ${({ variant, disabled }) => {
23
23
  if (!disabled) {
24
- if (variant === "primary") return `${BmSecondaryCyan}`;
25
- if (variant === "neutral") return `${BmGrey50}`;
26
- if (variant === "success") return `${BmSecondaryGreen8}`;
27
- if (variant === "destructive") return `${BmSecondaryRed8}`;
24
+ if (variant === 'primary') return `${BmSecondaryCyan}`;
25
+ if (variant === 'neutral') return `${BmGrey50}`;
26
+ if (variant === 'success') return `${BmSecondaryGreen8}`;
27
+ if (variant === 'destructive') return `${BmSecondaryRed8}`;
28
28
  if (!variant) {
29
29
  return `${BmSecondaryCyan}`;
30
30
  }
@@ -33,18 +33,18 @@ const ButtonDropdownWrapper = styled.div`
33
33
  border: 0.071rem solid
34
34
  ${({ variant, disabled }) => {
35
35
  if (!disabled) {
36
- if (variant === "secondary") return `${BmSecondaryCyan}`;
36
+ if (variant === 'secondary') return `${BmSecondaryCyan}`;
37
37
  }
38
- return "none";
38
+ return 'none';
39
39
  }};
40
40
  }
41
41
  &:active {
42
42
  background: ${({ variant, disabled }) => {
43
43
  if (!disabled) {
44
- if (variant === "primary") return `${BmPrimaryBlue}`;
45
- if (variant === "neutral") return `${BmGrey100}`;
46
- if (variant === "success") return `${BmSecondaryDarkGreen}`;
47
- if (variant === "destructive") return `${BmSecondaryRed}`;
44
+ if (variant === 'primary') return `${BmPrimaryBlue}`;
45
+ if (variant === 'neutral') return `${BmGrey100}`;
46
+ if (variant === 'success') return `${BmSecondaryDarkGreen}`;
47
+ if (variant === 'destructive') return `${BmSecondaryRed}`;
48
48
  if (!variant) {
49
49
  return `${BmPrimaryBlue}`;
50
50
  }
@@ -53,22 +53,22 @@ const ButtonDropdownWrapper = styled.div`
53
53
  box-shadow: ${({ variant, disabled }) => {
54
54
  if (!disabled) {
55
55
  if (
56
- variant === "primary" ||
57
- variant === "success" ||
58
- variant === "destructive"
56
+ variant === 'primary' ||
57
+ variant === 'success' ||
58
+ variant === 'destructive'
59
59
  )
60
- return "inset 0rem 0.125rem 0.25rem rgba(0, 0, 0, 0.25)";
60
+ return 'inset 0rem 0.125rem 0.25rem rgba(0, 0, 0, 0.25)';
61
61
  if (!variant) {
62
- return "inset 0rem 0.125rem 0.25rem rgba(0, 0, 0, 0.25)";
62
+ return 'inset 0rem 0.125rem 0.25rem rgba(0, 0, 0, 0.25)';
63
63
  }
64
64
  }
65
65
  }};
66
66
  border: 0.071rem solid
67
67
  ${({ variant, disabled }) => {
68
68
  if (!disabled) {
69
- if (variant === "secondary") return `${BmPrimaryBlue}`;
69
+ if (variant === 'secondary') return `${BmPrimaryBlue}`;
70
70
  }
71
- return "none";
71
+ return 'none';
72
72
  }};
73
73
  }
74
74
  `;
@@ -76,52 +76,49 @@ const ButtonDropdownWrapper = styled.div`
76
76
  const Dropdown = styled(BmBtnIcon)`
77
77
  background: ${({ variant, disabled }) => {
78
78
  if (!disabled) {
79
- if (variant === "primary") return `${BmPrimaryBlue}`;
80
- if (variant === "secondary") return "none";
81
- if (variant === "tertiary") return "none";
82
- if (variant === "destructive") return `${BmSecondaryRed}`;
83
- if (variant === "success") return `${BmSecondaryDarkGreen}`;
84
- if (variant === "neutral") return `${BmPrimaryWhite}`;
79
+ if (variant === 'primary') return `${BmPrimaryBlue}`;
80
+ if (variant === 'secondary') return 'none';
81
+ if (variant === 'tertiary') return 'none';
82
+ if (variant === 'destructive') return `${BmSecondaryRed}`;
83
+ if (variant === 'success') return `${BmSecondaryDarkGreen}`;
84
+ if (variant === 'neutral') return `${BmPrimaryWhite}`;
85
85
  return `${BmPrimaryBlue}`;
86
- } else {
87
- if (variant === "primary") return `${BmGrey100}`;
88
- if (variant === "secondary") return "none";
89
- if (variant === "tertiary") return "none";
90
- return `${BmGrey100}`;
91
86
  }
87
+ if (variant === 'primary') return `${BmGrey100}`;
88
+ if (variant === 'secondary') return 'none';
89
+ if (variant === 'tertiary') return 'none';
90
+ return `${BmGrey100}`;
92
91
  }};
93
92
  border: 0.0625rem solid
94
93
  ${({ variant, disabled }) => {
95
94
  if (!disabled) {
96
- if (variant === "primary") return `${BmPrimaryBlue}`;
97
- if (variant === "secondary") return `${BmPrimaryBlue}`;
98
- if (variant === "tertiary") return "transparent";
99
- if (variant === "destructive") return `${BmSecondaryRed}`;
100
- if (variant === "success") return `${BmSecondaryDarkGreen}`;
101
- if (variant === "neutral") return `${BmGrey400}`;
95
+ if (variant === 'primary') return `${BmPrimaryBlue}`;
96
+ if (variant === 'secondary') return `${BmPrimaryBlue}`;
97
+ if (variant === 'tertiary') return 'transparent';
98
+ if (variant === 'destructive') return `${BmSecondaryRed}`;
99
+ if (variant === 'success') return `${BmSecondaryDarkGreen}`;
100
+ if (variant === 'neutral') return `${BmGrey400}`;
102
101
  return `${BmPrimaryBlue}`;
103
- } else {
104
- if (variant === "primary") return `${BmGrey100}`;
105
- if (variant === "secondary") return `${BmGrey400}`;
106
- if (variant === "tertiary") return "transparent";
107
102
  }
103
+ if (variant === 'primary') return `${BmGrey100}`;
104
+ if (variant === 'secondary') return `${BmGrey400}`;
105
+ if (variant === 'tertiary') return 'transparent';
108
106
  }};
109
107
 
110
108
  border-left: 0.071rem solid
111
109
  ${({ variant, disabled }) => {
112
110
  if (!disabled) {
113
- if (variant === "primary") return `${BmPrimaryWhite}`;
114
- if (variant === "secondary") return `${BmPrimaryBlue}`;
115
- if (variant === "tertiary") return "transparent";
116
- if (variant === "destructive") return `${BmSecondaryRed}`;
117
- if (variant === "success") return `${BmSecondaryDarkGreen}`;
118
- if (variant === "neutral") return `${BmGrey400}`;
111
+ if (variant === 'primary') return `${BmPrimaryWhite}`;
112
+ if (variant === 'secondary') return `${BmPrimaryBlue}`;
113
+ if (variant === 'tertiary') return 'transparent';
114
+ if (variant === 'destructive') return `${BmSecondaryRed}`;
115
+ if (variant === 'success') return `${BmSecondaryDarkGreen}`;
116
+ if (variant === 'neutral') return `${BmGrey400}`;
119
117
  return `${BmPrimaryWhite}`;
120
- } else {
121
- if (variant === "primary") return `${BmGrey400}`;
122
- if (variant === "secondary") return `${BmGrey400}`;
123
- if (variant === "tertiary") return "transparent";
124
118
  }
119
+ if (variant === 'primary') return `${BmGrey400}`;
120
+ if (variant === 'secondary') return `${BmGrey400}`;
121
+ if (variant === 'tertiary') return 'transparent';
125
122
  }};
126
123
  border-top-left-radius: 0.071rem;
127
124
  border-bottom-left-radius: 0.071rem;
@@ -1,13 +1,13 @@
1
- import { Home, KeyboardArrowDown } from "@material-ui/icons";
2
- import styled from "styled-components";
3
- import { BmBtnIcon } from "./buttonIconsOnly";
4
- import { BmButton } from "./buttons";
1
+ import { Home, KeyboardArrowDown } from '@material-ui/icons';
2
+ import styled from 'styled-components';
3
+ import { BmBtnIcon } from './buttonIconsOnly';
4
+ import { BmButton } from './buttons';
5
5
 
6
6
  export const BmButtonDropdown = ({ children }) => {
7
7
  return (
8
- <div style={{ display: "flex", flexDirection: "row" }}>
8
+ <div style={{ display: 'flex', flexDirection: 'row' }}>
9
9
  <BmButton>{children}</BmButton>
10
- <BmButton leadingIcon={<KeyboardArrowDown />}></BmButton>
10
+ <BmButton leadingIcon={<KeyboardArrowDown />} />
11
11
  </div>
12
12
  );
13
13
  };
@@ -1,6 +1,6 @@
1
- import { AttachFile, Done, DoneAll, GetApp } from "@material-ui/icons";
2
- import React from "react";
3
- import styled from "styled-components";
1
+ import { AttachFile, Done, DoneAll, GetApp } from '@material-ui/icons';
2
+ import React from 'react';
3
+ import styled from 'styled-components';
4
4
  import {
5
5
  BmGrey400,
6
6
  BmPrimaryBlack,
@@ -9,8 +9,8 @@ import {
9
9
  BmGrey100,
10
10
  BmSecondaryGrey,
11
11
  BmSecondaryGreen,
12
- } from "../colors";
13
- import { BmIcons } from "../iconStyles";
12
+ } from '../colors';
13
+ import { BmIcons } from '../iconStyles';
14
14
 
15
15
  export const BmChatWrapper = styled.div`
16
16
  display: flex;
@@ -19,8 +19,8 @@ export const BmChatWrapper = styled.div`
19
19
  padding: 1.143rem;
20
20
  background: ${({ type }) => {
21
21
  if (type) {
22
- if (type === "inbound") return `${BmPrimaryWhite}`;
23
- if (type === "outbound") return `${BmPrimaryBlue}`;
22
+ if (type === 'inbound') return `${BmPrimaryWhite}`;
23
+ if (type === 'outbound') return `${BmPrimaryBlue}`;
24
24
  }
25
25
  return `${BmPrimaryWhite}`;
26
26
  }};
@@ -38,8 +38,8 @@ export const BmChatText = styled.p`
38
38
  max-width: 100%;
39
39
  color: ${({ type }) => {
40
40
  if (type) {
41
- if (type === "inbound") return `${BmPrimaryBlack}`;
42
- if (type === "outbound") return `${BmPrimaryWhite}`;
41
+ if (type === 'inbound') return `${BmPrimaryBlack}`;
42
+ if (type === 'outbound') return `${BmPrimaryWhite}`;
43
43
  }
44
44
  return `${BmPrimaryBlack}`;
45
45
  }};
@@ -79,17 +79,17 @@ export const BmUserChat = ({
79
79
  </BmChatText>
80
80
  </BmChatWrapper>
81
81
  <BmDisplay>
82
- {type === "outbound" && status === "sent" && (
82
+ {type === 'outbound' && status === 'sent' && (
83
83
  <BmIcons
84
84
  icon={<DoneAll />}
85
- size={size || "small"}
85
+ size={size || 'small'}
86
86
  color={color || `${BmSecondaryGreen}`}
87
87
  />
88
88
  )}
89
- {type === "outbound" && status === "failed" && (
89
+ {type === 'outbound' && status === 'failed' && (
90
90
  <BmIcons
91
91
  icon={<Done />}
92
- size={size || "small"}
92
+ size={size || 'small'}
93
93
  color={color || `${BmPrimaryBlack}`}
94
94
  />
95
95
  )}
@@ -99,7 +99,7 @@ export const BmUserChat = ({
99
99
  );
100
100
  };
101
101
 
102
- //File Attachments
102
+ // File Attachments
103
103
  export const BmFileWrapper = styled.div`
104
104
  display: flex;
105
105
  flex-direction: row;
@@ -107,8 +107,8 @@ export const BmFileWrapper = styled.div`
107
107
  padding: 1.143rem;
108
108
  background: ${({ type }) => {
109
109
  if (type) {
110
- if (type === "inbound") return `${BmPrimaryWhite}`;
111
- if (type === "outbound") return `${BmPrimaryBlue}`;
110
+ if (type === 'inbound') return `${BmPrimaryWhite}`;
111
+ if (type === 'outbound') return `${BmPrimaryBlue}`;
112
112
  }
113
113
  return `${BmPrimaryWhite}`;
114
114
  }};
@@ -127,8 +127,8 @@ export const BmFileText = styled.p`
127
127
  max-width: 100%;
128
128
  color: ${({ type }) => {
129
129
  if (type) {
130
- if (type === "inbound") return `${BmPrimaryBlue}`;
131
- if (type === "outbound") return `${BmPrimaryWhite}`;
130
+ if (type === 'inbound') return `${BmPrimaryBlue}`;
131
+ if (type === 'outbound') return `${BmPrimaryWhite}`;
132
132
  }
133
133
  return `${BmPrimaryBlue}`;
134
134
  }};
@@ -139,8 +139,8 @@ export const BmFileText = styled.p`
139
139
  export const FileIcons = styled(BmIcons)`
140
140
  color: ${({ type }) => {
141
141
  if (type) {
142
- if (type === "inbound") return `${BmPrimaryBlack}`;
143
- if (type === "outbound") return `${BmPrimaryWhite}`;
142
+ if (type === 'inbound') return `${BmPrimaryBlack}`;
143
+ if (type === 'outbound') return `${BmPrimaryWhite}`;
144
144
  }
145
145
  return `${BmPrimaryBlack}`;
146
146
  }};
@@ -152,13 +152,13 @@ export const BmFileChat = ({ children, displayTime, type, ...rest }) => {
152
152
  <BmFileWrapper type={type} {...rest}>
153
153
  <BmIcons
154
154
  icon={<AttachFile />}
155
- color={type === "outbound" ? `${BmPrimaryWhite}` : `${BmPrimaryBlue}`}
155
+ color={type === 'outbound' ? `${BmPrimaryWhite}` : `${BmPrimaryBlue}`}
156
156
  />
157
157
  <BmFileText type={type}>{children}</BmFileText>
158
158
  <BmIcons
159
159
  icon={<GetApp />}
160
160
  color={
161
- type === "outbound" ? `${BmPrimaryWhite}` : `${BmSecondaryGrey}`
161
+ type === 'outbound' ? `${BmPrimaryWhite}` : `${BmSecondaryGrey}`
162
162
  }
163
163
  />
164
164
  </BmFileWrapper>
@@ -179,7 +179,7 @@ export const BmImageWrapper = styled.div`
179
179
 
180
180
  export const BmImage = styled.img`
181
181
  width: 100%;
182
- ${"" /* height: 100%; */}
182
+ ${'' /* height: 100%; */}
183
183
  object-fit: cover;
184
184
  flex-grow: 1;
185
185
  `;
@@ -1,14 +1,14 @@
1
- import React from "react";
2
- import styled from "styled-components";
1
+ import React from 'react';
2
+ import styled from 'styled-components';
3
+ import { Send } from '@material-ui/icons';
3
4
  import {
4
5
  BmGrey400,
5
6
  BmGrey50,
6
7
  BmPrimaryWhite,
7
8
  BmSecondaryGrey,
8
- } from "../colors";
9
- import { BmEmojiIcon } from "../iconStyles";
10
- import { Send } from "@material-ui/icons";
11
- import { BmInputField } from "../input";
9
+ } from '../colors';
10
+ import { BmEmojiIcon } from '../iconStyles';
11
+ import { BmInputField } from '../input';
12
12
 
13
13
  // Main wrapper
14
14
  export const BmMessageTab = styled.div`
@@ -49,13 +49,13 @@ export const BmSend = (props) => {
49
49
  };
50
50
 
51
51
  // Div for attachments
52
- export const BmAttachment = styled("div")`
52
+ export const BmAttachment = styled('div')`
53
53
  justify-content: center;
54
54
  padding-right: 1.143rem !important;
55
55
  `;
56
56
 
57
57
  // Div for message input
58
- export const BmMessage = styled("div")`
58
+ export const BmMessage = styled('div')`
59
59
  display: flex;
60
60
  flex-direction: row;
61
61
  align-items: center;
@@ -1,5 +1,5 @@
1
- import styled from "styled-components";
2
- import { BmBgGreyBlue, BmGrey400 } from "../colors";
1
+ import styled from 'styled-components';
2
+ import { BmBgGreyBlue, BmGrey400 } from '../colors';
3
3
 
4
4
  // Main wrapper
5
5
  export const Main = styled.div`
@@ -61,4 +61,3 @@ export const hiddenToggleLabel = () => {
61
61
  />
62
62
  );
63
63
  };
64
-
@@ -1,5 +1,10 @@
1
- import styled from "styled-components";
2
- import { BmGrey400, BmPrimaryBlack, BmPrimaryWhite, BmSecondaryGrey } from "./colors";
1
+ import styled from 'styled-components';
2
+ import {
3
+ BmGrey400,
4
+ BmPrimaryBlack,
5
+ BmPrimaryWhite,
6
+ BmSecondaryGrey,
7
+ } from './colors';
3
8
 
4
9
  export const BmChatHeaderWrapper = styled.div`
5
10
  display: flex;
@@ -33,6 +38,6 @@ export const BmChatHeader = styled.div`
33
38
  flex-direction: row;
34
39
  justify-content: space-between;
35
40
  align-items: center;
36
- padding : 1.286rem 0rem;
41
+ padding: 1.286rem 0rem;
37
42
  margin: 0rem;
38
43
  `;
@@ -1,11 +1,11 @@
1
- import React from "react";
2
- import styled from "styled-components";
1
+ import React from 'react';
2
+ import styled from 'styled-components';
3
3
  import {
4
4
  BmGrey100,
5
5
  BmPrimaryBlack,
6
6
  BmPrimaryBlue,
7
7
  BmPrimaryWhite,
8
- } from "./colors";
8
+ } from './colors';
9
9
 
10
10
  export const BmContactSideBar = styled.div`
11
11
  display: flex;
@@ -1,14 +1,14 @@
1
- import React, { useState } from "react";
2
- import styled from "styled-components";
3
- import { BmPrimaryWhite, BmSecondaryGrey, BmGrey400 } from "./colors";
4
- import { BmDropdownIcon } from "./iconStyles";
1
+ import React, { useState } from 'react';
2
+ import styled from 'styled-components';
3
+ import { BmPrimaryWhite, BmSecondaryGrey, BmGrey400 } from './colors';
4
+ import { BmDropdownIcon } from './iconStyles';
5
5
 
6
6
  const BmDropdownWrapper = styled.div`
7
7
  display: flex;
8
8
  justify-content: center;
9
9
  align-items: center;
10
10
  position: static;
11
- ${"" /* box-sizing: border-box; */}
11
+ ${'' /* box-sizing: border-box; */}
12
12
  margin: 0rem;
13
13
  padding: 0.5rem 1.143rem;
14
14
  background: ${BmPrimaryWhite};
@@ -80,8 +80,8 @@ export const BmDropdown = ({ ...rest }) => {
80
80
  <DownIcon />
81
81
  {isOpen && (
82
82
  <DropDownContent>
83
- <BmDropdownItem onClick={() => setValue("any")}>ANY</BmDropdownItem>
84
- <BmDropdownItem onClick={() => setValue("all")}>ALL</BmDropdownItem>
83
+ <BmDropdownItem onClick={() => setValue('any')}>ANY</BmDropdownItem>
84
+ <BmDropdownItem onClick={() => setValue('all')}>ALL</BmDropdownItem>
85
85
  </DropDownContent>
86
86
  )}
87
87
  </BmDropdownWrapper>
@@ -1,7 +1,7 @@
1
- import React from "react";
2
- import styled from "styled-components";
3
- import { BmGrey100, BmGrey400, BmPrimaryBlack, BmPrimaryWhite } from "./colors";
4
- import { BmIcons } from "./iconStyles";
1
+ import React from 'react';
2
+ import styled from 'styled-components';
3
+ import { BmGrey100, BmGrey400, BmPrimaryBlack, BmPrimaryWhite } from './colors';
4
+ import { BmIcons } from './iconStyles';
5
5
 
6
6
  export const BmCustomizedDropdown = styled.div`
7
7
  display: flex;
@@ -9,8 +9,8 @@ export const BmCustomizedDropdown = styled.div`
9
9
  `;
10
10
 
11
11
  export const BmButtonDropdownItem = styled.div`
12
- ${"" /* display: inline-block; */}
13
- display: ${({ isOpen }) => (isOpen ? "flex" : "none")}};
12
+ ${'' /* display: inline-block; */}
13
+ display: ${({ isOpen }) => (isOpen ? 'flex' : 'none')}};
14
14
  flex-direction: column;
15
15
  ${'' /* align-items: flex-start; */}
16
16
  padding: 0.286rem 0rem;