beem-component 1.5.6 → 1.5.9

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 (209) hide show
  1. package/.babelrc +17 -0
  2. package/.eslintrc +62 -0
  3. package/.prettierrc +6 -0
  4. package/dist/assets/fb.png +0 -0
  5. package/dist/assets/insta.png +0 -0
  6. package/dist/assets/wa.png +0 -0
  7. package/dist/components/Accordion/Accordion.js +31 -64
  8. package/dist/components/Accordion/Accordion.stories.js +29 -29
  9. package/dist/components/Avatars/avatars.js +31 -46
  10. package/dist/components/Avatars/avatars.stories.js +18 -18
  11. package/dist/components/BannerCard/bannerCard.stories.js +14 -14
  12. package/dist/components/BannerCard/bannerCards.js +30 -48
  13. package/dist/components/Buttons/Stories/basicbutton.stories.js +24 -24
  14. package/dist/components/Buttons/Stories/buttonAlertIcons.stories.js +17 -17
  15. package/dist/components/Buttons/Stories/buttonIconsOnly.stories.js +17 -17
  16. package/dist/components/Buttons/buttonAlertIcons.js +28 -44
  17. package/dist/components/Buttons/buttonDropdown copy.js +15 -18
  18. package/dist/components/Buttons/buttonDropdown.js +2 -2
  19. package/dist/components/Buttons/buttonIconsOnly.js +35 -49
  20. package/dist/components/Buttons/buttons.js +75 -86
  21. package/dist/components/Cards/cards.js +15 -11
  22. package/dist/components/Cards/cards.stories.js +8 -8
  23. package/dist/components/ChatComponents/ChatBody/chatBody.js +80 -69
  24. package/dist/components/ChatComponents/ChatBody/chatBody.stories.js +6 -6
  25. package/dist/components/ChatComponents/ChatBody/sessionDetails.js +9 -16
  26. package/dist/components/ChatComponents/ChatHeader/chatHeader.js +5 -7
  27. package/dist/components/ChatComponents/ChatHeader/chatHeader.stories.js +3 -3
  28. package/dist/components/ChatComponents/ColorPicker/colorPicker.js +5 -7
  29. package/dist/components/ChatComponents/ColorPicker/colorPicker.stories.js +7 -3
  30. package/dist/components/ChatComponents/ContactCards/contactCards.js +15 -12
  31. package/dist/components/ChatComponents/ContactCards/contactCards.stories.js +4 -4
  32. package/dist/components/ChatComponents/FormAccordion/FormAccordion.js +14 -10
  33. package/dist/components/ChatComponents/FormAccordion/FormAccordion.stories.js +9 -5
  34. package/dist/components/ChatComponents/InfoTab/infoTab.js +11 -9
  35. package/dist/components/ChatComponents/InfoTab/infoTab.stories.js +6 -6
  36. package/dist/components/ChatComponents/LabelAccordion/LabelAccordion.js +5 -7
  37. package/dist/components/ChatComponents/LabelAccordion/LabelAccordion.stories.js +12 -7
  38. package/dist/components/ChatComponents/NoteAccordion/NoteAccordion.js +11 -9
  39. package/dist/components/ChatComponents/NoteAccordion/NoteAccordion.stories.js +15 -13
  40. package/dist/components/Chats/chat.js +41 -32
  41. package/dist/components/Chats/chatInput.js +18 -14
  42. package/dist/components/Chats/chatwrapper.js +20 -12
  43. package/dist/components/Checkbox/checkboxToggler.js +61 -0
  44. package/dist/components/Checkbox/checkboxToggler.stories.js +81 -0
  45. package/dist/components/Lists/listBox.js +14 -30
  46. package/dist/components/Lists/listBox.stories.js +12 -23
  47. package/dist/components/Lists/listHeader.stories.js +13 -13
  48. package/dist/components/Lists/listheader.js +12 -27
  49. package/dist/components/Lists/rowLabels.js +19 -30
  50. package/dist/components/Lists/rowLabels.stories.js +22 -25
  51. package/dist/components/Loader/loader.js +17 -31
  52. package/dist/components/Loader/loader.stories.js +13 -13
  53. package/dist/components/MainWrapper/index.js +5 -7
  54. package/dist/components/MessageCounter/MessageCounter.stories.js +14 -14
  55. package/dist/components/MessageCounter/messageCounter.js +16 -18
  56. package/dist/components/Modals/modal.js +38 -57
  57. package/dist/components/Modals/modals.stories.js +38 -29
  58. package/dist/components/NoteBar/noteBar.js +28 -57
  59. package/dist/components/NoteBar/noteBar.stories.js +17 -17
  60. package/dist/components/PerformanceIndicator/performaceIndicator.stories.js +15 -15
  61. package/dist/components/PerformanceIndicator/performanceIndicator.js +21 -34
  62. package/dist/components/Pills/pills.js +24 -56
  63. package/dist/components/Pills/pills.stories.js +21 -23
  64. package/dist/components/ProfileIcon/ProfileIcon.js +96 -0
  65. package/dist/components/ProfileIcon/profileIcon.stories.js +82 -0
  66. package/dist/components/ProgressBar/progressbar.js +15 -17
  67. package/dist/components/ProgressBar/progressbar.stories.js +8 -10
  68. package/dist/components/ProgressRing/progressRing.js +38 -54
  69. package/dist/components/ProgressRing/progressRing.stories.js +16 -16
  70. package/dist/components/RouteLink/link.js +8 -10
  71. package/dist/components/RouteLink/link.stories.js +3 -3
  72. package/dist/components/ScrollBar/scrollBar.js +19 -17
  73. package/dist/components/SuperFluid/Content/index.js +5 -7
  74. package/dist/components/SuperFluid/ContentTitle.js/index.js +14 -10
  75. package/dist/components/SuperFluid/SegmentCard/index.js +22 -13
  76. package/dist/components/Tabs/tabs.js +16 -35
  77. package/dist/components/Tabs/tabs.stories.js +19 -19
  78. package/dist/components/Tags/tags.js +33 -65
  79. package/dist/components/Tags/tags.stories.js +18 -18
  80. package/dist/components/breakpoints.js +3 -3
  81. package/dist/components/chatHeader.js +17 -11
  82. package/dist/components/checkbox.js +27 -26
  83. package/dist/components/colors.js +32 -30
  84. package/dist/components/contacts.js +39 -25
  85. package/dist/components/dropdown.js +29 -35
  86. package/dist/components/dropdownButton.js +50 -53
  87. package/dist/components/dropdownItems.js +26 -19
  88. package/dist/components/examples/App.js +137 -0
  89. package/dist/components/examples/InfoAccordion.js +23 -0
  90. package/dist/components/examples/chatBodyExample.js +68 -0
  91. package/dist/components/examples/selectExample.js +63 -0
  92. package/dist/components/globalStyles.js +1 -5
  93. package/dist/components/iconStyles.js +56 -58
  94. package/dist/components/index.js +35 -23
  95. package/dist/components/input.js +33 -36
  96. package/dist/components/logo.js +9 -16
  97. package/dist/components/navbar.js +24 -13
  98. package/dist/components/search.js +20 -21
  99. package/dist/components/text.js +15 -6
  100. package/dist/components/typography.js +14 -14
  101. package/dist/components/wrapper.js +8 -8
  102. package/package.json +54 -30
  103. package/src/App.js +31 -175
  104. package/src/index.js +6 -8
  105. package/src/lib/assets/fb.png +0 -0
  106. package/src/lib/assets/insta.png +0 -0
  107. package/src/lib/assets/wa.png +0 -0
  108. package/src/lib/components/Accordion/Accordion.js +32 -14
  109. package/src/lib/components/Accordion/Accordion.stories.js +31 -31
  110. package/src/lib/components/Avatars/avatars.js +33 -28
  111. package/src/lib/components/Avatars/avatars.stories.js +18 -18
  112. package/src/lib/components/BannerCard/bannerCard.stories.js +16 -17
  113. package/src/lib/components/BannerCard/bannerCards.js +18 -18
  114. package/src/lib/components/Buttons/Stories/basicbutton.stories.js +29 -29
  115. package/src/lib/components/Buttons/Stories/buttonAlertIcons.stories.js +17 -17
  116. package/src/lib/components/Buttons/Stories/buttonIconsOnly.stories.js +24 -24
  117. package/src/lib/components/Buttons/buttonAlertIcons.js +22 -25
  118. package/src/lib/components/Buttons/buttonIconsOnly.js +32 -28
  119. package/src/lib/components/Buttons/buttons.js +70 -73
  120. package/src/lib/components/Cards/cards.js +2 -3
  121. package/src/lib/components/Cards/cards.stories.js +10 -10
  122. package/src/lib/components/ChatComponents/ChatBody/chatBody.js +46 -45
  123. package/src/lib/components/ChatComponents/ChatBody/chatBody.stories.js +34 -28
  124. package/src/lib/components/ChatComponents/ChatBody/sessionDetails.js +2 -2
  125. package/src/lib/components/ChatComponents/ChatHeader/chatHeader.js +2 -2
  126. package/src/lib/components/ChatComponents/ChatHeader/chatHeader.stories.js +4 -4
  127. package/src/lib/components/ChatComponents/ColorPicker/colorPicker.js +2 -2
  128. package/src/lib/components/ChatComponents/ColorPicker/colorPicker.stories.js +4 -3
  129. package/src/lib/components/ChatComponents/ContactCards/contactCards.js +7 -5
  130. package/src/lib/components/ChatComponents/ContactCards/contactCards.stories.js +6 -6
  131. package/src/lib/components/ChatComponents/FormAccordion/FormAccordion.js +3 -3
  132. package/src/lib/components/ChatComponents/FormAccordion/FormAccordion.stories.js +4 -3
  133. package/src/lib/components/ChatComponents/InfoTab/infoTab.js +2 -2
  134. package/src/lib/components/ChatComponents/InfoTab/infoTab.stories.js +7 -7
  135. package/src/lib/components/ChatComponents/LabelAccordion/LabelAccordion.stories.js +5 -3
  136. package/src/lib/components/ChatComponents/NoteAccordion/NoteAccordion.js +2 -2
  137. package/src/lib/components/ChatComponents/NoteAccordion/NoteAccordion.stories.js +6 -5
  138. package/src/lib/components/Checkbox/checkboxToggler.js +89 -0
  139. package/src/lib/components/Checkbox/checkboxToggler.stories.js +48 -0
  140. package/src/lib/components/Lists/listBox.js +7 -7
  141. package/src/lib/components/Lists/listBox.stories.js +8 -11
  142. package/src/lib/components/Lists/listHeader.stories.js +13 -13
  143. package/src/lib/components/Lists/listheader.js +7 -7
  144. package/src/lib/components/Lists/rowLabels.js +6 -6
  145. package/src/lib/components/Lists/rowLabels.stories.js +18 -18
  146. package/src/lib/components/Loader/loader.js +13 -13
  147. package/src/lib/components/Loader/loader.stories.js +14 -14
  148. package/src/lib/components/MainWrapper/index.js +2 -2
  149. package/src/lib/components/MessageCounter/MessageCounter.stories.js +14 -14
  150. package/src/lib/components/MessageCounter/messageCounter.js +16 -16
  151. package/src/lib/components/Modals/modal.js +33 -23
  152. package/src/lib/components/Modals/modals.stories.js +34 -9
  153. package/src/lib/components/NoteBar/noteBar.js +20 -20
  154. package/src/lib/components/NoteBar/noteBar.stories.js +18 -17
  155. package/src/lib/components/PerformanceIndicator/performaceIndicator.stories.js +15 -15
  156. package/src/lib/components/PerformanceIndicator/performanceIndicator.js +11 -10
  157. package/src/lib/components/Pills/pills.js +16 -16
  158. package/src/lib/components/Pills/pills.stories.js +22 -23
  159. package/src/lib/components/ProfileIcon/ProfileIcon.js +76 -0
  160. package/src/lib/components/ProfileIcon/profileIcon.stories.js +57 -0
  161. package/src/lib/components/ProgressBar/progressbar.js +4 -5
  162. package/src/lib/components/ProgressBar/progressbar.stories.js +8 -9
  163. package/src/lib/components/ProgressRing/progressRing.js +25 -24
  164. package/src/lib/components/ProgressRing/progressRing.stories.js +18 -18
  165. package/src/lib/components/RouteLink/link.js +10 -8
  166. package/src/lib/components/RouteLink/link.stories.js +4 -4
  167. package/src/lib/components/ScrollBar/scrollBar.js +15 -14
  168. package/src/lib/components/SuperFluid/Content/index.js +2 -2
  169. package/src/lib/components/SuperFluid/ContentTitle.js/index.js +2 -2
  170. package/src/lib/components/SuperFluid/SegmentCard/index.js +9 -8
  171. package/src/lib/components/Tabs/tabs.js +11 -11
  172. package/src/lib/components/Tabs/tabs.stories.js +20 -20
  173. package/src/lib/components/Tags/tags.js +26 -24
  174. package/src/lib/components/Tags/tags.stories.js +19 -19
  175. package/src/lib/components/breakpoints.js +3 -3
  176. package/src/lib/components/checkbox.js +7 -6
  177. package/src/lib/components/colors.js +30 -28
  178. package/src/lib/components/dropdownButton.js +36 -39
  179. package/src/lib/components/examples/App.js +181 -0
  180. package/src/{InfoAccordion.js → lib/components/examples/InfoAccordion.js} +1 -1
  181. package/src/{App1.js → lib/components/examples/chatBodyExample.js} +2 -2
  182. package/src/{App copy.js → lib/components/examples/selectExample.js} +0 -0
  183. package/src/lib/components/globalStyles.js +4 -5
  184. package/src/lib/components/iconStyles.js +45 -48
  185. package/src/lib/components/index.js +48 -45
  186. package/src/lib/components/input.js +20 -20
  187. package/src/lib/components/text.js +17 -3
  188. package/src/lib/components/typography.js +14 -14
  189. package/src/reportWebVitals.js +1 -1
  190. package/babel.config.js +0 -12
  191. package/dist/components/checkboxToggler.js +0 -50
  192. package/dist/components/example.js +0 -47
  193. package/dist/components/sidebar.js +0 -32
  194. package/dist/components/tabs.js +0 -106
  195. package/dist/components/tags.js +0 -100
  196. package/dist/images/azam.png +0 -0
  197. package/dist/images/azam1.png +0 -0
  198. package/src/ChatHeader.js +0 -22
  199. package/src/CustomerInfo.js +0 -46
  200. package/src/MainChat.js +0 -41
  201. package/src/SideBar.js +0 -81
  202. package/src/lib/components/checkboxToggler.js +0 -19
  203. package/src/lib/components/example.js +0 -30
  204. package/src/lib/components/sidebar.js +0 -33
  205. package/src/lib/components/tabs.js +0 -123
  206. package/src/lib/components/tags.js +0 -101
  207. package/src/lib/images/azam.png +0 -0
  208. package/src/lib/images/azam1.png +0 -0
  209. package/src/list.scss +0 -4
@@ -1,36 +1,36 @@
1
1
  /* eslint-disable import/no-anonymous-default-export */
2
- import { Favorite } from "@material-ui/icons";
3
- import React from "react";
4
- import { BmTag } from "./tags";
2
+ import { Favorite } from '@material-ui/icons';
3
+ import React from 'react';
4
+ import { BmTag } from './tags';
5
5
 
6
6
  export default {
7
7
  component: BmTag,
8
- title: "components/Tags",
8
+ title: 'components/Tags',
9
9
  argTypes: {
10
10
  color: {
11
- control: { type: "text" },
11
+ control: { type: 'text' },
12
12
  description:
13
- "Color of the Icons and Text, will work only if variant is not present",
13
+ 'Color of the Icons and Text, will work only if variant is not present',
14
14
  },
15
15
  closeButton: {
16
- control: { type: "boolean" },
17
- description: "Will display (x) - Optional",
16
+ control: { type: 'boolean' },
17
+ description: 'Will display (x) - Optional',
18
18
  },
19
19
  onHide: {
20
20
  description:
21
- "Handles closing of tags, will only work if closeButton is present (Optional)",
21
+ 'Handles closing of tags, will only work if closeButton is present (Optional)',
22
22
  },
23
23
  size: {
24
- options: ["xsmall", "small", "medium", "large", "xlarge"],
25
- control: { type: "select" },
26
- description: "Size of the icons",
27
- defaultValue: { summary: "small" },
24
+ options: ['xsmall', 'small', 'medium', 'large', 'xlarge'],
25
+ control: { type: 'select' },
26
+ description: 'Size of the icons',
27
+ defaultValue: { summary: 'small' },
28
28
  },
29
29
  variant: {
30
- options: ["success", "warning", "danger", "light", "neutral", undefined],
31
- control: { type: "select" },
32
- description: "Type of tag",
33
- defaultValue: { summary: "neutral" },
30
+ options: ['success', 'warning', 'danger', 'light', 'neutral', undefined],
31
+ control: { type: 'select' },
32
+ description: 'Type of tag',
33
+ defaultValue: { summary: 'neutral' },
34
34
  },
35
35
  },
36
36
  };
@@ -42,12 +42,12 @@ Tags.args = {
42
42
  children: <p>Tags</p>,
43
43
  leadingIcon: <Favorite />,
44
44
  trailingIcon: <Favorite />,
45
- variant: "success",
45
+ variant: 'success',
46
46
  };
47
47
 
48
48
  export const TagsWithCloseButton = () => {
49
49
  return (
50
- <BmTag variant="light" closeButton onHide={() => console.log("Hide Tag")}>
50
+ <BmTag variant="light" closeButton onHide={() => alert('Hide Tag')}>
51
51
  <p>TAG</p>
52
52
  </BmTag>
53
53
  );
@@ -1,7 +1,7 @@
1
1
  export const size = {
2
- xs: "320px",
3
- sm: "768px",
4
- lg: "1200px",
2
+ xs: '320px',
3
+ sm: '768px',
4
+ lg: '1200px',
5
5
  };
6
6
 
7
7
  export const device = {
@@ -1,8 +1,9 @@
1
+ /* eslint-disable jsx-a11y/label-has-associated-control */
1
2
  import React from 'react';
2
- import styled from "styled-components";
3
- import { BmGrey400, BmPrimaryBlack, BmPrimaryBlue, BmGrey100 } from "./colors";
3
+ import styled from 'styled-components';
4
+ import { BmGrey400, BmPrimaryBlack, BmPrimaryBlue, BmGrey100 } from './colors';
4
5
 
5
- const HiddenCheckbox = styled.input.attrs({ type: "checkbox" })`
6
+ const HiddenCheckbox = styled.input.attrs({ type: 'checkbox' })`
6
7
  display: flex;
7
8
  border: 0;
8
9
  height: 0.071rem;
@@ -28,7 +29,7 @@ const StyledCheckbox = styled.div`
28
29
  if (!disabled && checked) return `${BmPrimaryBlue}`;
29
30
  if (disabled && !checked) return `${BmGrey100}`;
30
31
  if (disabled && checked) return `${BmGrey100}`;
31
- return "";
32
+ return '';
32
33
  }};
33
34
  border-radius: 0.143rem;
34
35
  transition: all 150ms;
@@ -36,11 +37,11 @@ const StyledCheckbox = styled.div`
36
37
  ${({ checked, disabled }) => {
37
38
  if (!disabled && checked) return `${BmPrimaryBlue}`;
38
39
  if (disabled && !checked) return `${BmGrey400}`;
39
- if (disabled && checked) return "none";
40
+ if (disabled && checked) return 'none';
40
41
  return `${BmGrey400}`;
41
42
  }};
42
43
  ${Icon} {
43
- visibility: ${(props) => (props.checked ? "visible" : "hidden")};
44
+ visibility: ${(props) => (props.checked ? 'visible' : 'hidden')};
44
45
  }
45
46
  `;
46
47
 
@@ -1,61 +1,63 @@
1
1
  // Primary Colors
2
- export const BmPrimaryBlue = "#33B1BA";
2
+ export const BmPrimaryBlue = '#33B1BA';
3
3
 
4
- export const BmPrimaryGold = "#F3A929";
4
+ export const BmPrimaryGold = '#F3A929';
5
5
 
6
- export const BmPrimaryWhite = "#FFFFFF";
6
+ export const BmPrimaryWhite = '#FFFFFF';
7
7
 
8
- export const BmPrimaryBlack = "#000000";
8
+ export const BmPrimaryBlack = '#000000';
9
9
 
10
10
  // Secondary Colors
11
- export const BmSecondaryCyan = "#56C5CE";
11
+ export const BmSecondaryCyan = '#56C5CE';
12
12
 
13
- export const BmSecondaryGrey = "#575757";
13
+ export const BmSecondaryGrey = '#575757';
14
14
 
15
- export const BmSecondaryRed = "#F62E48";
15
+ export const BmSecondaryRed = '#F62E48';
16
16
 
17
- export const BmSecondaryGreen = "#8CC63F";
17
+ export const BmSecondaryGreen = '#8CC63F';
18
18
 
19
- export const BmSecondaryYellow = "#FFB822";
19
+ export const BmSecondaryYellow = '#FFB822';
20
20
 
21
- export const BmSecondaryPurple = "#7A3FC6";
21
+ export const BmSecondaryPurple = '#7A3FC6';
22
22
 
23
- export const BmSecondaryDarkGreen = "#04844B";
23
+ export const BmSecondaryDarkGreen = '#04844B';
24
24
 
25
- export const BmSecondaryGreen8 = "rgba(4, 132, 75, 0.8)";
25
+ export const BmSecondaryGreen8 = 'rgba(4, 132, 75, 0.8)';
26
26
 
27
- export const BmSecondaryRed8 = "rgba(246, 46, 72, 0.8)";
27
+ export const BmSecondaryRed8 = 'rgba(246, 46, 72, 0.8)';
28
28
 
29
- export const BmSecondaryRed15 = "rgba(246, 46, 72, 0.15)";
29
+ export const BmSecondaryRed15 = 'rgba(246, 46, 72, 0.15)';
30
30
 
31
- export const BmSecondaryGreen15 = "rgba(4, 132, 75, 0.15)";
31
+ export const BmSecondaryGreen15 = 'rgba(4, 132, 75, 0.15)';
32
32
 
33
- export const BmSecondaryGold15 = "rgba(243, 169, 41, 0.15)";
33
+ export const BmSecondaryGold15 = 'rgba(243, 169, 41, 0.15)';
34
34
 
35
35
  // #33B1BA 12%
36
- export const BmSecondaryBlue12="rgba(51, 177, 186, 0.12)";
36
+ export const BmSecondaryBlue12 = 'rgba(51, 177, 186, 0.12)';
37
37
 
38
38
  // Background Colors
39
- export const BmBgLightBlue = "#E1EAFC";
39
+ export const BmBgLightBlue = '#E1EAFC';
40
40
 
41
- export const BmBgGreyBlue = "#F5F6FA";
41
+ export const BmBgGreyBlue = '#F5F6FA';
42
42
 
43
- export const BmBgGrey45 = "rgba(0, 0, 0, 0.5)";
43
+ export const BmBgGrey45 = 'rgba(0, 0, 0, 0.5)';
44
+
45
+ export const BmBgGrey38 = 'rgba(0, 0, 0, 0.38)';
44
46
 
45
47
  // Grey Colors
46
- export const BmGrey600 = "#545454";
48
+ export const BmGrey600 = '#545454';
47
49
 
48
- export const BmGrey500 = "#757575";
50
+ export const BmGrey500 = '#757575';
49
51
 
50
- export const BmGrey400 = "#AFAFAF";
52
+ export const BmGrey400 = '#AFAFAF';
51
53
 
52
- export const BmGrey200 = "#E2E2E2";
54
+ export const BmGrey200 = '#E2E2E2';
53
55
 
54
- export const BmGrey100 = "#EEEEEE";
56
+ export const BmGrey100 = '#EEEEEE';
55
57
 
56
- export const BmGrey50 = "#F6F6F6";
58
+ export const BmGrey50 = '#F6F6F6';
57
59
 
58
60
  // Pictogram Colors
59
- export const BmPictogramBlue = "#CCEAEB";
61
+ export const BmPictogramBlue = '#CCEAEB';
60
62
 
61
- export const BmPictogramGold = "#F8D8A2";
63
+ export const BmPictogramGold = '#F8D8A2';
@@ -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 "../components/Buttons/buttonIconsOnly";
5
- import { BmButton } from "../components/Buttons/buttons";
1
+ import React from 'react';
2
+ import { KeyboardArrowDown } from '@material-ui/icons';
3
+ import styled from 'styled-components';
4
+ import { BmBtnIcon } from './Buttons/buttonIconsOnly';
5
+ import { BmButton } from './Buttons/buttons';
6
6
  import {
7
7
  BmPrimaryWhite,
8
8
  BmPrimaryBlue,
@@ -10,7 +10,7 @@ import {
10
10
  BmSecondaryDarkGreen,
11
11
  BmGrey400,
12
12
  BmGrey100,
13
- } from "./colors";
13
+ } from './colors';
14
14
 
15
15
  const Wrapper = styled.div`
16
16
  display: flex;
@@ -21,51 +21,48 @@ const Wrapper = styled.div`
21
21
  export const Drop = styled(BmBtnIcon)`
22
22
  background: ${({ variant, disabled, color }) => {
23
23
  if (!disabled) {
24
- if (variant === "primary") return `${color ? color : BmPrimaryBlue}`
25
- if (variant === "secondary") return "none";
26
- if (variant === "tertiary") return "none";
27
- if (variant === "destructive") return `${BmSecondaryRed}`;
28
- if (variant === "success") return `${BmSecondaryDarkGreen}`;
29
- if (variant === "neutral") return `${BmPrimaryWhite}`;
30
- return `${color ? color : BmPrimaryBlue}`
31
- } else {
32
- if (variant === "primary") return `${BmGrey100}`;
33
- if (variant === "secondary") return "none";
34
- if (variant === "tertiary") return "none";
35
- return `${BmGrey100}`;
24
+ if (variant === 'primary') return `${color || BmPrimaryBlue}`;
25
+ if (variant === 'secondary') return 'none';
26
+ if (variant === 'tertiary') return 'none';
27
+ if (variant === 'destructive') return `${BmSecondaryRed}`;
28
+ if (variant === 'success') return `${BmSecondaryDarkGreen}`;
29
+ if (variant === 'neutral') return `${BmPrimaryWhite}`;
30
+ return `${color || BmPrimaryBlue}`;
36
31
  }
32
+ if (variant === 'primary') return `${BmGrey100}`;
33
+ if (variant === 'secondary') return 'none';
34
+ if (variant === 'tertiary') return 'none';
35
+ return `${BmGrey100}`;
37
36
  }};
38
37
  border: 0.071rem solid
39
38
  ${({ variant, disabled, color }) => {
40
39
  if (!disabled) {
41
- if (variant === "primary") return `${color ? color : BmPrimaryBlue}`
42
- if (variant === "secondary") return `${color ? color : BmPrimaryBlue}`
43
- if (variant === "tertiary") return "transparent";
44
- if (variant === "destructive") return `${BmSecondaryRed}`;
45
- if (variant === "success") return `${BmSecondaryDarkGreen}`;
46
- if (variant === "neutral") return `${BmGrey400}`;
47
- return `${color ? color : BmPrimaryBlue}`
48
- } else {
49
- if (variant === "primary") return `${BmGrey100}`;
50
- if (variant === "secondary") return `${BmGrey400}`;
51
- if (variant === "tertiary") return "transparent";
40
+ if (variant === 'primary') return `${color || BmPrimaryBlue}`;
41
+ if (variant === 'secondary') return `${color || BmPrimaryBlue}`;
42
+ if (variant === 'tertiary') return 'transparent';
43
+ if (variant === 'destructive') return `${BmSecondaryRed}`;
44
+ if (variant === 'success') return `${BmSecondaryDarkGreen}`;
45
+ if (variant === 'neutral') return `${BmGrey400}`;
46
+ return `${color || BmPrimaryBlue}`;
52
47
  }
48
+ if (variant === 'primary') return `${BmGrey100}`;
49
+ if (variant === 'secondary') return `${BmGrey400}`;
50
+ if (variant === 'tertiary') return 'transparent';
53
51
  }};
54
52
  border-left: 0.071rem solid
55
53
  ${({ variant, disabled, color }) => {
56
54
  if (!disabled) {
57
- if (variant === "primary") return `${BmPrimaryWhite}`;
58
- if (variant === "secondary") return `${color ? color : BmPrimaryBlue}`
59
- if (variant === "tertiary") return "transparent";
60
- if (variant === "destructive") return `${BmSecondaryRed}`;
61
- if (variant === "success") return `${BmSecondaryDarkGreen}`;
62
- if (variant === "neutral") return `${BmGrey400}`;
55
+ if (variant === 'primary') return `${BmPrimaryWhite}`;
56
+ if (variant === 'secondary') return `${color || BmPrimaryBlue}`;
57
+ if (variant === 'tertiary') return 'transparent';
58
+ if (variant === 'destructive') return `${BmSecondaryRed}`;
59
+ if (variant === 'success') return `${BmSecondaryDarkGreen}`;
60
+ if (variant === 'neutral') return `${BmGrey400}`;
63
61
  return `${BmPrimaryWhite}`;
64
- } else {
65
- if (variant === "primary") return `${BmGrey400}`;
66
- if (variant === "secondary") return `${BmGrey400}`;
67
- if (variant === "tertiary") return "transparent";
68
62
  }
63
+ if (variant === 'primary') return `${BmGrey400}`;
64
+ if (variant === 'secondary') return `${BmGrey400}`;
65
+ if (variant === 'tertiary') return 'transparent';
69
66
  }};
70
67
  border-top-left-radius: 0.071rem; */}
71
68
  border-bottom-left-radius: 0.071rem; */}
@@ -0,0 +1,181 @@
1
+ import React from "react";
2
+ import { AttachFile } from "@material-ui/icons";
3
+ import EmojiEmotionsIcon from "@material-ui/icons/EmojiEmotions";
4
+ import QuickreplyIcon from "@mui/icons-material/Quickreply";
5
+ import SendIcon from "@mui/icons-material/Send";
6
+ import { BmChat, BmIcons, BmInput } from "./lib/components";
7
+ import "../src/lib/assets/css/sidebar.scss";
8
+ import image from "../src/lib/assets/chart-img.png";
9
+
10
+ const Chat = () => {
11
+ return (
12
+ <BmChat>
13
+ <BmChat.Body>
14
+ <BmChat.Details
15
+ state="inbound"
16
+ session="bot"
17
+ displayTime={<p>12:00pm</p>}
18
+ status="sent"
19
+ src={image}
20
+ fileName={<p>attachment.jpg</p>}
21
+ />
22
+ <BmChat.Details
23
+ state="outbound"
24
+ session="bot"
25
+ displayTime={<p>12:00pm</p>}
26
+ status="sent"
27
+ // src={image}
28
+ // fileName={<p>attachment.jpg</p>}
29
+ >
30
+ <p>Technical No Signal - Ili kupata chaneli au chaneli zifunguke kwa wakati ukilipia kifurushi, hakikisha kwanza kama unapata signal vizuri kutoka kwenye dish kwa kutumia remote control.
31
+ Bonyeza MENU, Bonyeza OK kwenye SEARCH, Bonyeza OK kwenye TP LIST.
32
+ Angalia asilimia ya QUALITY pale chini.
33
+ Angalia Transponder zote, 001, 002, 003 na 004 zinatakiwa ziwe na QUALITY si pungufu ya asilimia 60%.
34
+ Au kama una aina nyingine ya kisimbuzi;
35
+ Bonyeza MENU, Bonyeza OK kwenye SETTINGS, Bonyeza OK kwenye INSTALLATION, Bonyeza OK kwenye AUTOMATIC SEARCH.
36
+ Shuka kwenye frequency na uangalie frequency zote kuanzia 11044, 10981, 11106 na 10971.
37
+ Au
38
+ Bonyeza MENU, Bonyeza OK kwenye SETTINGS, Bonyeza OK kwenye INSTALLATION, kwenye EUTELSAT 7C bonyeza kitufe cha KIJANI.
39
+ Angalia QUALITY kwenye frequency zote kuanzia 11044, 10981, 11106 na 10971.
40
+ Angalia asilimia ya QUALITY pale chini.
41
+ QUALITY inatakiwa isiwe pungufu ya asilimia 60%.
42
+ Je, kwako inasoma ngapi? Kama ipo chini ya 60%, wasiliana na aliyekufungia dish arekebishe.</p>
43
+ </BmChat.Details>
44
+ <BmChat.Details
45
+ state="inbound"
46
+ session="bot"
47
+ displayTime={<p>12:00pm</p>}
48
+ status="sent"
49
+ // src={image}
50
+ // fileName={<p>attachment.jpg</p>}
51
+ >
52
+ <p>Technical No Signal - Ili kupata chaneli au chaneli zifunguke kwa wakati ukilipia kifurushi, hakikisha kwanza kama unapata signal vizuri kutoka kwenye dish kwa kutumia remote control.
53
+ Bonyeza MENU, Bonyeza OK kwenye SEARCH, Bonyeza OK kwenye TP LIST.
54
+ Angalia asilimia ya QUALITY pale chini.
55
+ Angalia Transponder zote, 001, 002, 003 na 004 zinatakiwa ziwe na QUALITY si pungufu ya asilimia 60%.
56
+ Au kama una aina nyingine ya kisimbuzi;
57
+ Bonyeza MENU, Bonyeza OK kwenye SETTINGS, Bonyeza OK kwenye INSTALLATION, Bonyeza OK kwenye AUTOMATIC SEARCH.
58
+ Shuka kwenye frequency na uangalie frequency zote kuanzia 11044, 10981, 11106 na 10971.
59
+ Au
60
+ Bonyeza MENU, Bonyeza OK kwenye SETTINGS, Bonyeza OK kwenye INSTALLATION, kwenye EUTELSAT 7C bonyeza kitufe cha KIJANI.
61
+ Angalia QUALITY kwenye frequency zote kuanzia 11044, 10981, 11106 na 10971.
62
+ Angalia asilimia ya QUALITY pale chini.
63
+ QUALITY inatakiwa isiwe pungufu ya asilimia 60%.
64
+ Je, kwako inasoma ngapi? Kama ipo chini ya 60%, wasiliana na aliyekufungia dish arekebishe.</p>
65
+ </BmChat.Details>
66
+ <BmChat.Details
67
+ state="outbound"
68
+ session="live"
69
+ displayTime={<p>10:00am</p>}
70
+ status="failed"
71
+ // src={azam}
72
+ file={<p>fildjfdlkfjlkfdjfldjfldsjfldsje.jpg</p>}
73
+ >
74
+ <p>Hekkoi</p>
75
+ </BmChat.Details>
76
+ <BmChat.Details
77
+ state="outbound"
78
+ session="live"
79
+ displayTime={<p>10:00am</p>}
80
+ status="failed"
81
+ >
82
+ <p>Outbound</p>
83
+ </BmChat.Details>
84
+ <BmChat.Details
85
+ state="outbound"
86
+ session="live"
87
+ displayTime={<p>10:00am</p>}
88
+ status="failed"
89
+ >
90
+ <p>Outbound</p>
91
+ </BmChat.Details>
92
+ <BmChat.Details
93
+ state="outbound"
94
+ session="live"
95
+ displayTime={<p>10:00am</p>}
96
+ status="failed"
97
+ >
98
+ <p>Outbound</p>
99
+ </BmChat.Details>{" "}
100
+ <BmChat.Details
101
+ state="outbound"
102
+ session="live"
103
+ displayTime={<p>10:00am</p>}
104
+ status="failed"
105
+ >
106
+ <p>
107
+ Habari! Mimi ni msaidizi wako binafsi Azam TV. Ningependa
108
+ nikusaidie, lakini tafadhali anza kwa kuchagua kati ya haya
109
+ nikuhudumie (Mfano chagua namba 2 kubadili kifurushi au 5 kwa msaada
110
+ zaidi). 1. Angalia Salio 2. Badilisha Kifurishi 3. Tuma Ujumbe
111
+ Kuwasha Kisimbuzi 4. Huduma za mteja mpya 5. Nahitaji msaada (Huduma
112
+ kwa mteja) 6. Change language 0. Au ungependa kutuuliza swali
113
+ lingine?
114
+ </p>
115
+ </BmChat.Details>{" "}
116
+ <BmChat.Details
117
+ state="outbound"
118
+ session="live"
119
+ displayTime={<p>10:00am</p>}
120
+ status="failed"
121
+ >
122
+ <p>Outbound</p>
123
+ </BmChat.Details>{" "}
124
+ <BmChat.Details
125
+ state="outbound"
126
+ session="live"
127
+ displayTime={<p>10:00am</p>}
128
+ status="failed"
129
+ >
130
+ <p>Outbound</p>
131
+ </BmChat.Details>{" "}
132
+ <BmChat.Details
133
+ state="outbound"
134
+ session="live"
135
+ displayTime={<p>10:00am</p>}
136
+ status="failed"
137
+ >
138
+ <p>Outbound</p>
139
+ </BmChat.Details>{" "}
140
+ <BmChat.Details
141
+ state="outbound"
142
+ session="live"
143
+ displayTime={<p>10:00am</p>}
144
+ status="failed"
145
+ >
146
+ <p>Outbound</p>
147
+ </BmChat.Details>{" "}
148
+ <BmChat.Details
149
+ state="outbound"
150
+ session="live"
151
+ displayTime={<p>10:00am</p>}
152
+ status="failed"
153
+ >
154
+ <p>Outbound</p>
155
+ </BmChat.Details>{" "}
156
+ <BmChat.Details
157
+ state="outbound"
158
+ session="live"
159
+ displayTime={<p>10:00am</p>}
160
+ status="failed"
161
+ >
162
+ <p>Outbound</p>
163
+ </BmChat.Details>
164
+ </BmChat.Body>
165
+ <BmChat.Footer style={{ justifyContent: "flex-start" }}>
166
+ <div class="chat-footer">
167
+ <BmIcons icon={<EmojiEmotionsIcon />} size="xlarge" />
168
+ </div>
169
+ <div class="chat-footer">
170
+ <BmIcons icon={<EmojiEmotionsIcon />} size="xlarge" />
171
+ <BmIcons icon={<AttachFile />} size="xlarge" />
172
+ <BmIcons icon={<QuickreplyIcon />} size="xlarge" />
173
+ <BmInput placeholder="Enter Message" style={{ flex: 1 }} />
174
+ <BmIcons icon={<SendIcon />} size="xlarge" />
175
+ </div>
176
+ </BmChat.Footer>
177
+ </BmChat>
178
+ );
179
+ };
180
+
181
+ export default Chat;
@@ -1,4 +1,4 @@
1
- /* eslint-disable react/prop-types */
1
+
2
2
  import React from "react";
3
3
  import { BmAccordion } from "./lib/components";
4
4
  import BmForm from "./lib/components/ChatComponents/FormAccordion/FormAccordion";
@@ -1,7 +1,7 @@
1
1
  import React, { useState } from "react";
2
- import { GlobalStyle, BmChat } from "./lib/components";
2
+ import { GlobalStyle, BmChat } from "..";
3
3
  import "./list.scss";
4
- import { ScrollbarWrapper } from "./lib/components/ScrollBar/scrollBar";
4
+ import { ScrollbarWrapper } from "../ScrollBar/scrollBar";
5
5
 
6
6
  const App = () => {
7
7
  return (
@@ -1,5 +1,5 @@
1
- import { createGlobalStyle } from "styled-components";
2
- import { h1, h2, h3, h4, p, input, a } from "./text";
1
+ import { createGlobalStyle } from 'styled-components';
2
+ import { h1, h2, h3, h4, h5, h6, p, input, a } from './text';
3
3
 
4
4
  export const GlobalStyle = createGlobalStyle`
5
5
  * { font-size: 14px; cursor: pointer}
@@ -7,10 +7,9 @@ export const GlobalStyle = createGlobalStyle`
7
7
  h2 { ${h2} }
8
8
  h3 { ${h3} }
9
9
  h4 { ${h4} }
10
+ h5 { ${h5} }
11
+ h6 { ${h6} }
10
12
  p { ${p} }
11
13
  input {${input}}
12
14
  a {${a}}
13
- ::-webkit-scrollbar-thumb: {
14
- background:red;
15
- maxHeight: '10px'}
16
15
  `;