beem-component 1.0.2 → 1.0.3

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 (222) hide show
  1. package/.storybook/favicon.ico +0 -0
  2. package/.storybook/logo-blue.png +0 -0
  3. package/.storybook/main.js +15 -0
  4. package/.storybook/manager-head.html +14 -0
  5. package/.storybook/manager.js +6 -0
  6. package/.storybook/preview.js +10 -0
  7. package/.storybook/theme.js +10 -0
  8. package/Dockerfile +30 -0
  9. package/Jenkinsfile +73 -0
  10. package/build-storybook.log +14621 -0
  11. package/dist/assets/beem.jpeg +0 -0
  12. package/dist/components/{Accordion.js → Accordion/Accordion.js} +13 -7
  13. package/dist/components/Accordion/Accordion.stories.js +86 -0
  14. package/dist/components/{avatars.js → Avatars/avatars.js} +31 -11
  15. package/dist/components/Avatars/avatars.stories.js +69 -0
  16. package/dist/components/Buttons/Stories/basicbutton.stories.js +67 -0
  17. package/dist/components/Buttons/Stories/buttonAlertIcons.stories.js +65 -0
  18. package/dist/components/Buttons/Stories/buttonIconsOnly.stories.js +65 -0
  19. package/dist/components/{buttonAlertIcons.js → Buttons/buttonAlertIcons.js} +17 -9
  20. package/dist/components/{buttonIconsOnly.js → Buttons/buttonIconsOnly.js} +13 -4
  21. package/dist/components/{buttons.js → Buttons/buttons.js} +11 -10
  22. package/dist/components/{Reports → Cards}/cards.js +9 -24
  23. package/dist/components/Cards/cards.stories.js +61 -0
  24. package/dist/components/Chats/chat.js +1 -1
  25. package/dist/components/Chats/chatInput.js +1 -1
  26. package/dist/components/Chats/chatwrapper.js +1 -1
  27. package/dist/components/Lists/listBox.js +41 -0
  28. package/dist/components/Lists/listBox.stories.js +78 -0
  29. package/dist/components/Lists/listHeader.stories.js +58 -0
  30. package/dist/components/Lists/listheader.js +17 -12
  31. package/dist/components/Lists/rowLabels.js +34 -16
  32. package/dist/components/Lists/rowLabels.stories.js +85 -0
  33. package/dist/components/{loaders.js → Loader/loader.js} +13 -7
  34. package/dist/components/Loader/loader.stories.js +52 -0
  35. package/dist/components/{Reports/buttons.js → MainWrapper/index.js} +5 -3
  36. package/dist/components/Modals/modal copy.js +160 -0
  37. package/dist/components/Modals/modal.js +166 -0
  38. package/dist/components/Modals/modals.stories.js +117 -0
  39. package/dist/components/{infoNote.js → NoteBar.js/noteBar.js} +23 -19
  40. package/dist/components/NoteBar.js/noteBar.stories.js +66 -0
  41. package/dist/components/PerformanceIndicator/performaceIndicator.stories.js +66 -0
  42. package/dist/components/PerformanceIndicator/performanceIndicator.js +68 -0
  43. package/dist/components/Pills/pills.js +126 -0
  44. package/dist/components/Pills/pills.stories.js +110 -0
  45. package/dist/components/{progressbar.js → ProgressBar/progressbar.js} +8 -2
  46. package/dist/components/ProgressBar/progressbar.stories.js +45 -0
  47. package/dist/components/{Link.js → RouteLink/link.js} +3 -3
  48. package/dist/components/RouteLink/link.stories.js +29 -0
  49. package/dist/components/SuperFluid/ContentTitle.js/index.js +1 -1
  50. package/dist/components/SuperFluid/SegmentCard/index.js +1 -1
  51. package/dist/components/Tabs/tabs.js +85 -0
  52. package/dist/components/Tabs/tabs.stories.js +59 -0
  53. package/dist/components/breakpoints.js +18 -0
  54. package/dist/components/chatHeader.js +1 -1
  55. package/dist/components/checkboxToggler.js +2 -2
  56. package/dist/components/colors.js +5 -3
  57. package/dist/components/contacts.js +1 -1
  58. package/dist/components/dropdown.js +1 -1
  59. package/dist/components/dropdownButton.js +3 -3
  60. package/dist/components/dropdownItems.js +1 -1
  61. package/dist/components/example.js +47 -0
  62. package/dist/components/iconStyles.js +69 -119
  63. package/dist/components/index-copy.js +1285 -0
  64. package/dist/components/index.js +74 -1160
  65. package/dist/components/input.js +9 -3
  66. package/dist/components/logo.js +1 -1
  67. package/dist/components/navbar.js +1 -1
  68. package/dist/components/sidebar.js +2 -2
  69. package/dist/components/tabs.js +1 -1
  70. package/dist/components/text.js +1 -1
  71. package/dist/components/typography.js +1 -1
  72. package/nginx.conf +17 -0
  73. package/package.json +29 -11
  74. package/public/favicon.ico +0 -0
  75. package/public/index.html +1 -1
  76. package/src/App.js +7 -29
  77. package/src/examples/Navbar.js +1 -1
  78. package/src/lib/assets/beem.jpeg +0 -0
  79. package/src/lib/components/{Accordion.js → Accordion/Accordion.js} +6 -5
  80. package/src/lib/components/Accordion/Accordion.stories.js +63 -0
  81. package/src/lib/components/{avatars.js → Avatars/avatars.js} +24 -8
  82. package/src/lib/components/Avatars/avatars.stories.js +45 -0
  83. package/src/lib/components/Buttons/Stories/basicbutton.stories.js +51 -0
  84. package/src/lib/components/Buttons/Stories/buttonAlertIcons.stories.js +42 -0
  85. package/src/lib/components/Buttons/Stories/buttonIconsOnly.stories.js +49 -0
  86. package/src/lib/components/{buttonAlertIcons.js → Buttons/buttonAlertIcons.js} +20 -9
  87. package/src/lib/components/{buttonIconsOnly.js → Buttons/buttonIconsOnly.js} +12 -2
  88. package/src/lib/components/{buttons.js → Buttons/buttons.js} +10 -10
  89. package/src/lib/components/{Reports → Cards}/cards.js +10 -18
  90. package/src/lib/components/Cards/cards.stories.js +52 -0
  91. package/src/lib/components/Lists/listBox.js +34 -0
  92. package/src/lib/components/Lists/listBox.stories.js +47 -0
  93. package/src/lib/components/Lists/listHeader.stories.js +36 -0
  94. package/src/lib/components/Lists/listheader.js +17 -11
  95. package/src/lib/components/Lists/rowLabels.js +47 -16
  96. package/src/lib/components/Lists/rowLabels.stories.js +59 -0
  97. package/src/lib/components/{loaders.js → Loader/loader.js} +18 -7
  98. package/src/lib/components/Loader/loader.stories.js +30 -0
  99. package/src/lib/components/MainWrapper/index.js +7 -0
  100. package/src/lib/components/Modals/modal copy.js +159 -0
  101. package/src/lib/components/Modals/modal.js +152 -0
  102. package/src/lib/components/Modals/modals.stories.js +82 -0
  103. package/src/lib/components/{infoNote.js → NoteBar.js/noteBar.js} +24 -25
  104. package/src/lib/components/NoteBar.js/noteBar.stories.js +40 -0
  105. package/src/lib/components/PerformanceIndicator/performaceIndicator.stories.js +40 -0
  106. package/src/lib/components/PerformanceIndicator/performanceIndicator.js +56 -0
  107. package/src/lib/components/Pills/pills.js +91 -0
  108. package/src/lib/components/Pills/pills.stories.js +74 -0
  109. package/src/lib/components/{progressbar.js → ProgressBar/progressbar.js} +8 -1
  110. package/src/lib/components/ProgressBar/progressbar.stories.js +26 -0
  111. package/src/lib/components/{Link.js → RouteLink/link.js} +4 -4
  112. package/src/lib/components/RouteLink/link.stories.js +21 -0
  113. package/src/lib/components/Tabs/tabs.js +84 -0
  114. package/src/lib/components/Tabs/tabs.stories.js +36 -0
  115. package/src/lib/components/breakpoints.js +11 -0
  116. package/src/lib/components/colors.js +2 -0
  117. package/src/lib/components/dropdownButton.js +2 -2
  118. package/src/lib/components/example.js +30 -0
  119. package/src/lib/components/iconStyles.js +46 -101
  120. package/src/lib/components/index-copy.js +468 -0
  121. package/src/lib/components/index.js +39 -448
  122. package/src/lib/components/input.js +8 -2
  123. package/src/lib/components/sidebar.js +1 -1
  124. package/storybook-static/0.00c62ec79c260aedbb98.manager.bundle.js +2 -0
  125. package/storybook-static/0.00c62ec79c260aedbb98.manager.bundle.js.LICENSE.txt +8 -0
  126. package/storybook-static/0.96c45dd8.iframe.bundle.js +1 -0
  127. package/storybook-static/1.dc6acfa9.iframe.bundle.js +3 -0
  128. package/storybook-static/1.dc6acfa9.iframe.bundle.js.LICENSE.txt +8 -0
  129. package/storybook-static/1.dc6acfa9.iframe.bundle.js.map +1 -0
  130. package/storybook-static/1.dc7dcdaec2def2f224fd.manager.bundle.js +1 -0
  131. package/storybook-static/2.24353ddc.iframe.bundle.js +1 -0
  132. package/storybook-static/3.8bb2173c.iframe.bundle.js +1 -0
  133. package/storybook-static/5.0779e3847d325dece216.manager.bundle.js +1 -0
  134. package/storybook-static/6.8bd405c2576206749a16.manager.bundle.js +2 -0
  135. package/storybook-static/6.8bd405c2576206749a16.manager.bundle.js.LICENSE.txt +12 -0
  136. package/storybook-static/7.9d4ba19cf58425e7ff0d.manager.bundle.js +1 -0
  137. package/storybook-static/7.f0cfc757.iframe.bundle.js +1 -0
  138. package/storybook-static/8.91de97de.iframe.bundle.js +3 -0
  139. package/storybook-static/8.91de97de.iframe.bundle.js.LICENSE.txt +12 -0
  140. package/storybook-static/8.91de97de.iframe.bundle.js.map +1 -0
  141. package/storybook-static/8.b4e9ec0ec7648e02a923.manager.bundle.js +1 -0
  142. package/storybook-static/9.40ec65d6.iframe.bundle.js +1 -0
  143. package/storybook-static/asset-manifest.json +30 -0
  144. package/storybook-static/favicon.ico +0 -0
  145. package/storybook-static/iframe.html +348 -0
  146. package/storybook-static/index.html +110 -0
  147. package/storybook-static/main.3c8d8027.iframe.bundle.js +1 -0
  148. package/storybook-static/main.3e5804fe56d1f580b088.manager.bundle.js +1 -0
  149. package/storybook-static/runtime~main.d3a18d6a.iframe.bundle.js +1 -0
  150. package/storybook-static/runtime~main.ff106120648356c6069d.manager.bundle.js +1 -0
  151. package/storybook-static/static/css/main.b44a190d.chunk.css +4 -0
  152. package/storybook-static/static/css/main.b44a190d.chunk.css.map +1 -0
  153. package/storybook-static/static/media/OpenSans-Regular.1b0809d5.ttf +0 -0
  154. package/storybook-static/static/media/PoppinsBold.1eae2d48.woff2 +0 -0
  155. package/storybook-static/static/media/PoppinsBold.53ff6749.eot +0 -0
  156. package/storybook-static/static/media/PoppinsBold.53ff971f.ttf +0 -0
  157. package/storybook-static/static/media/PoppinsBold.850fc4f3.svg +3066 -0
  158. package/storybook-static/static/media/PoppinsBold.b33c148b.woff +0 -0
  159. package/storybook-static/static/media/PoppinsMedium.0ba26f6c.woff +0 -0
  160. package/storybook-static/static/media/PoppinsMedium.49b46ace.eot +0 -0
  161. package/storybook-static/static/media/PoppinsMedium.57a99fa8.woff2 +0 -0
  162. package/storybook-static/static/media/PoppinsMedium.b7e43707.svg +3103 -0
  163. package/storybook-static/static/media/PoppinsMedium.c98dddbd.ttf +0 -0
  164. package/storybook-static/static/media/PoppinsRegular.13b9af9c.eot +0 -0
  165. package/storybook-static/static/media/PoppinsRegular.43e9b50d.svg +3138 -0
  166. package/storybook-static/static/media/PoppinsRegular.4a4d5420.woff +0 -0
  167. package/storybook-static/static/media/PoppinsRegular.9a7cc7ec.woff2 +0 -0
  168. package/storybook-static/static/media/PoppinsRegular.e1bc9021.ttf +0 -0
  169. package/storybook-static/static/media/PoppinsSemiBold.5692c77f.ttf +0 -0
  170. package/storybook-static/static/media/PoppinsSemiBold.80138c67.woff +0 -0
  171. package/storybook-static/static/media/PoppinsSemiBold.c442695a.eot +0 -0
  172. package/storybook-static/static/media/PoppinsSemiBold.e1948d56.svg +3098 -0
  173. package/storybook-static/static/media/PoppinsSemiBold.f27050e2.woff2 +0 -0
  174. package/storybook-static/static/media/logo-blue.bfc5ba6d.png +0 -0
  175. package/storybook-static/vendors~main.1750028c2d68e574fb1d.manager.bundle.js +2 -0
  176. package/storybook-static/vendors~main.1750028c2d68e574fb1d.manager.bundle.js.LICENSE.txt +104 -0
  177. package/storybook-static/vendors~main.7fe78cc2.iframe.bundle.js +3 -0
  178. package/storybook-static/vendors~main.7fe78cc2.iframe.bundle.js.LICENSE.txt +122 -0
  179. package/storybook-static/vendors~main.7fe78cc2.iframe.bundle.js.map +1 -0
  180. package/dist/assets/content_copy_black.svg +0 -1
  181. package/dist/assets/profile-pic.jpg +0 -0
  182. package/dist/components/Accordicon.js +0 -51
  183. package/dist/components/CustomerInfo/customerInfo.js +0 -89
  184. package/dist/components/CustomerInfo/customerInfoBar.js +0 -24
  185. package/dist/components/CustomerInfo/infoAccordion.js +0 -78
  186. package/dist/components/CustomerInfo/labelsInfo.js +0 -37
  187. package/dist/components/CustomerInfo/notesInfo.js +0 -39
  188. package/dist/components/Modals/modalBody.js +0 -61
  189. package/dist/components/Modals/noteModalBody.js +0 -20
  190. package/dist/components/Modals/noteModalFooter.js +0 -24
  191. package/dist/components/Modals/noteModalHeader.js +0 -93
  192. package/dist/components/Reports/charts.js +0 -70
  193. package/dist/components/Reports/infoHeader.js +0 -65
  194. package/dist/components/Reports/reportsBody.js +0 -28
  195. package/dist/components/Reports/title.js +0 -28
  196. package/dist/components/performanceIndicator.js +0 -41
  197. package/dist/components/pills.js +0 -73
  198. package/src/App1.js +0 -229
  199. package/src/CHAT.js +0 -170
  200. package/src/Complete.js +0 -48
  201. package/src/CreateSegments.js +0 -48
  202. package/src/FileUploadSFL.js +0 -110
  203. package/src/examples/CustomerInfo.js +0 -248
  204. package/src/lib/assets/content_copy_black.svg +0 -1
  205. package/src/lib/assets/profile-pic.jpg +0 -0
  206. package/src/lib/components/Accordicon.js +0 -43
  207. package/src/lib/components/CustomerInfo/customerInfo.js +0 -91
  208. package/src/lib/components/CustomerInfo/customerInfoBar.js +0 -23
  209. package/src/lib/components/CustomerInfo/infoAccordion.js +0 -96
  210. package/src/lib/components/CustomerInfo/labelsInfo.js +0 -37
  211. package/src/lib/components/CustomerInfo/notesInfo.js +0 -61
  212. package/src/lib/components/Modals/modalBody.js +0 -66
  213. package/src/lib/components/Modals/noteModalBody.js +0 -10
  214. package/src/lib/components/Modals/noteModalFooter.js +0 -16
  215. package/src/lib/components/Modals/noteModalHeader.js +0 -103
  216. package/src/lib/components/Reports/buttons.js +0 -5
  217. package/src/lib/components/Reports/charts.js +0 -79
  218. package/src/lib/components/Reports/infoHeader.js +0 -63
  219. package/src/lib/components/Reports/reportsBody.js +0 -29
  220. package/src/lib/components/Reports/title.js +0 -19
  221. package/src/lib/components/performanceIndicator.js +0 -27
  222. package/src/lib/components/pills.js +0 -65
package/src/CHAT.js DELETED
@@ -1,170 +0,0 @@
1
- import React, { useState } from "react";
2
- // import "./lib/main.css";
3
- import SideBar from "./examples/SideBar";
4
- import { Main, MainWrapper } from "./lib/components/Chats/chatwrapper";
5
- import { Chat } from "./examples/Chat";
6
- import Navbars from "./examples/Navbar";
7
- import CustomerInformation from "./examples/CustomerInfo";
8
- import {
9
- BmChatHeader,
10
- BmChatHeaderText,
11
- BmChatHeaderTime,
12
- BmChatHeaderWrapper,
13
- } from "./lib/components/chatHeader";
14
- import {
15
- BmButtonIcon,
16
- BmChatbot,
17
- BmIcons,
18
- BmSupport,
19
- } from "./lib/components/iconStyles";
20
- import ErrorOutlineIcon from "@material-ui/icons/ErrorOutline";
21
- import { BmChatInfoWrapper, BmChatMenuWrapper } from "./lib/components/wrapper";
22
- import { BmButtonDropDown } from "./lib/components/dropdownButton";
23
- import {
24
- BmButtonDropdownItem,
25
- BmDropDownItem,
26
- BmDropDownMenu,
27
- BmCustomizedDropdown,
28
- } from "./lib/components/dropdownItems";
29
- import { GlobalStyle } from "./lib/components/globalStyles";
30
- import {
31
- ModalHeader,
32
- Modal,
33
- HeaderText,
34
- CloseModal,
35
- } from "./lib/components/Modals/noteModalHeader";
36
- import { ModalBody } from "./lib/components/Modals/noteModalBody";
37
- import {
38
- BmAgentButton,
39
- BmAgentName,
40
- BmAgentPill,
41
- BmAgentSearch,
42
- BmPreviousAgent,
43
- BmPreviousAgentContent,
44
- BmPreviousAgentIcon,
45
- BmPreviousAgentMessage,
46
- BmPreviousAgentName,
47
- BmPreviousAgentTitle,
48
- BmPreviousAgentWrapper,
49
- } from "./lib/components/Modals/modalBody";
50
- import { Add, Favorite, KeyboardArrowRight } from "@material-ui/icons";
51
- import { BmButton } from "./lib/components/buttons";
52
- import {
53
- BmFooterButtons,
54
- ModalFooter,
55
- } from "./lib/components/Modals/noteModalFooter";
56
-
57
- export const App = () => {
58
- const [dropDownItem, setDropdownItem] = useState(false);
59
- const [showModal, setShowModal] = useState(false);
60
- return (
61
- <>
62
- <GlobalStyle />
63
- <Navbars />
64
- <MainWrapper>
65
- <Main>
66
- <SideBar />
67
- <BmChatInfoWrapper>
68
- <BmChatHeaderWrapper>
69
- <BmChatHeader>
70
- <BmChatHeaderText>Phone Number</BmChatHeaderText>
71
- <BmChatHeaderTime>3.00</BmChatHeaderTime>
72
- <BmButtonIcon icon={<ErrorOutlineIcon />} size="small" />
73
- </BmChatHeader>
74
- <BmCustomizedDropdown>
75
- <BmButtonDropDown
76
- size="medium"
77
- onClick={() => setDropdownItem(!dropDownItem)}
78
- variant="primary"
79
- >
80
- End Session
81
- </BmButtonDropDown>
82
- <BmDropDownMenu>
83
- <BmButtonDropdownItem isOpen={dropDownItem}>
84
- <BmDropDownItem
85
- size="small"
86
- leadingIcon={<BmSupport />}
87
- onClick={() => {
88
- setDropdownItem(!dropDownItem);
89
- setShowModal(true);
90
- }}
91
- >
92
- Transfer to Agent
93
- </BmDropDownItem>
94
- <BmDropDownItem
95
- size="small"
96
- leadingIcon={<BmChatbot />}
97
- onClick={() => {
98
- setDropdownItem(!dropDownItem);
99
- }}
100
- >
101
- Transfer to Bot
102
- </BmDropDownItem>
103
- </BmButtonDropdownItem>
104
- </BmDropDownMenu>
105
- </BmCustomizedDropdown>
106
- </BmChatHeaderWrapper>
107
- <BmChatMenuWrapper>
108
- <Chat />
109
- <CustomerInformation />
110
- </BmChatMenuWrapper>
111
- </BmChatInfoWrapper>
112
- <Modal
113
- show={showModal}
114
- setShowModal={() => {
115
- setShowModal(!showModal);
116
- }}
117
- >
118
- <ModalHeader>
119
- <HeaderText>Transfer to Agent</HeaderText>
120
- <CloseModal
121
- onClick={() => {
122
- setShowModal(!showModal);
123
- }}
124
- />
125
- </ModalHeader>
126
- <ModalBody>
127
- <BmAgentSearch placeholder="Search for an agent" />
128
- <BmAgentName>Selected Agent</BmAgentName>
129
- <BmAgentPill leadingIcon={<Favorite />} size="xsmall" type="">
130
- Label
131
- </BmAgentPill>
132
- <BmAgentButton
133
- size="small"
134
- variant="secondary"
135
- trailingIcon={<Add />}
136
- >
137
- Add a note
138
- </BmAgentButton>
139
- <BmPreviousAgentWrapper>
140
- <BmPreviousAgentTitle>Previous Agent</BmPreviousAgentTitle>
141
- <BmPreviousAgentContent>
142
- <BmPreviousAgentIcon user="default" />
143
- <BmPreviousAgent>
144
- <BmPreviousAgentName>Juma Doe</BmPreviousAgentName>
145
- <BmPreviousAgentMessage>
146
- Handled Support
147
- </BmPreviousAgentMessage>
148
- </BmPreviousAgent>
149
- <BmIcons icon={<KeyboardArrowRight />} />
150
- </BmPreviousAgentContent>
151
- </BmPreviousAgentWrapper>
152
- </ModalBody>
153
- <ModalFooter>
154
- <BmFooterButtons>
155
- <BmButton variant="tertiary" size="medium">
156
- Cancel
157
- </BmButton>
158
- <BmButton variant="primary" size="medium">
159
- Transfer
160
- </BmButton>
161
- </BmFooterButtons>
162
- </ModalFooter>
163
- </Modal>
164
- </Main>
165
- </MainWrapper>
166
- </>
167
- );
168
- };
169
-
170
- export default App;
package/src/Complete.js DELETED
@@ -1,48 +0,0 @@
1
- import React from "react";
2
- import { BmContent } from "./lib/components/SuperFluid/Content";
3
- import { BmProgressBar } from "./lib/components/progressbar";
4
- import {
5
- BmContentFooter,
6
- BmFooterRight,
7
- } from "./lib/components/SuperFluid/ContentTitle.js/index.js";
8
- import {
9
- BmSegment,
10
- BmSegmentCompleteIcon,
11
- BmSegmentCompleteContent,
12
- } from "./lib/components/SuperFluid/SegmentCard";
13
- import { BmButton } from "./lib/components/buttons";
14
-
15
- export const Complete = () => {
16
- return (
17
- <>
18
- <BmContent>
19
- <BmProgressBar value="100" />
20
- <BmSegment>
21
- <BmSegmentCompleteContent>
22
- <BmSegmentCompleteIcon />
23
- <h1>Your customer segments have been saved</h1>
24
- <p>
25
- Congrats! Your customer segements have been saved. You can
26
- instantly use them to create a campaign or use any of our products
27
- </p>
28
- <h4>View your segments</h4>
29
- </BmSegmentCompleteContent>
30
- </BmSegment>
31
- <BmContentFooter>
32
- <BmFooterRight>
33
- <div>
34
- <BmButton variant="tertiary" size="medium">
35
- Finish
36
- </BmButton>
37
- </div>
38
- <div>
39
- <BmButton variant="primary" size="medium">
40
- Create Campaign
41
- </BmButton>
42
- </div>
43
- </BmFooterRight>
44
- </BmContentFooter>
45
- </BmContent>
46
- </>
47
- );
48
- };
@@ -1,48 +0,0 @@
1
- import React from "react";
2
- import { BmContent } from "./lib/components/SuperFluid/Content";
3
- import { BmProgressBar } from "./lib/components/progressbar";
4
- import {
5
- BmContentFooter,
6
- BmContentTitle,
7
- BmFooterRight,
8
- } from "./lib/components/SuperFluid/ContentTitle.js/index.js";
9
- import {
10
- BmSegment,
11
- BmSegmentCreateContent,
12
- } from "./lib/components/SuperFluid/SegmentCard";
13
- import { BmButton } from "./lib/components/buttons";
14
- import { BmInfoNote } from "./lib/components/infoNote";
15
-
16
- export const CreateSegment = () => {
17
- return (
18
- <>
19
- <BmContent>
20
- <BmProgressBar value="100" />
21
- <BmContentTitle>Choose what segments you want to keep</BmContentTitle>
22
- <BmSegment>
23
- <BmSegmentCreateContent>
24
- <BmInfoNote type="info">
25
- Your segment will take some time to process. We will notify you
26
- when it is ready.
27
- </BmInfoNote>
28
- <h2>Segment Creation Status</h2>
29
- </BmSegmentCreateContent>
30
- </BmSegment>
31
- <BmContentFooter>
32
- <BmFooterRight>
33
- <div>
34
- <BmButton variant="tertiary" size="medium">
35
- Finish
36
- </BmButton>
37
- </div>
38
- <div>
39
- <BmButton variant="primary" size="medium">
40
- Create Campaign
41
- </BmButton>
42
- </div>
43
- </BmFooterRight>
44
- </BmContentFooter>
45
- </BmContent>
46
- </>
47
- );
48
- };
@@ -1,110 +0,0 @@
1
- import React, { useState } from "react";
2
- import { BmContent } from "./lib/components/SuperFluid/Content";
3
- import { BmProgressBar } from "./lib/components/progressbar";
4
- import {
5
- BmContentFooter,
6
- BmContentTitle,
7
- BmFooterLeft,
8
- BmFooterRight,
9
- } from "./lib/components/SuperFluid/ContentTitle.js";
10
- import {
11
- BmSegment,
12
- BmSegmentSelector,
13
- BmSegmentCard,
14
- BmSegmentCheckBox,
15
- } from "./lib/components/SuperFluid/SegmentCard";
16
- import { BmListHeader } from "./lib/components/Lists/listheader";
17
- import { KeyboardArrowRight } from "@material-ui/icons";
18
- import { BmRowLabel } from "./lib/components/Lists/rowLabels";
19
- import { BmSearch } from "./lib/components/search";
20
- import { BmButton } from "./lib/components/buttons";
21
-
22
- export const UploadFile = () => {
23
- const [value, setCheckbox] = useState(false);
24
-
25
- return (
26
- <>
27
- <BmContent>
28
- <BmProgressBar value="10" />
29
- <BmContentTitle>Choose what segments you want to keep</BmContentTitle>
30
- <BmSegment>
31
- <BmSegmentCard>
32
- <BmListHeader>Attributes</BmListHeader>
33
- <BmRowLabel trailingIcon={<KeyboardArrowRight />}>Age</BmRowLabel>
34
- <BmRowLabel trailingIcon={<KeyboardArrowRight />}>
35
- Gender
36
- </BmRowLabel>
37
- <BmRowLabel trailingIcon={<KeyboardArrowRight />}>
38
- Organization
39
- </BmRowLabel>
40
- <BmRowLabel trailingIcon={<KeyboardArrowRight />}>
41
- Occupation
42
- </BmRowLabel>
43
- <BmRowLabel trailingIcon={<KeyboardArrowRight />}>
44
- Location
45
- </BmRowLabel>
46
- <BmRowLabel trailingIcon={<KeyboardArrowRight />}>Value</BmRowLabel>
47
- <BmRowLabel trailingIcon={<KeyboardArrowRight />}>
48
- Status
49
- </BmRowLabel>
50
- <BmRowLabel trailingIcon={<KeyboardArrowRight />}>Other</BmRowLabel>
51
- </BmSegmentCard>
52
- <BmSegmentSelector>
53
- <BmSearch placeholder="Search for attributes"></BmSearch>
54
- <BmSegmentCheckBox
55
- checked={value}
56
- onChange={() => setCheckbox(!value)}
57
- value={value}
58
- label="High Value Customers"
59
- />
60
- <BmSegmentCheckBox
61
- checked={value}
62
- onChange={() => setCheckbox(!value)}
63
- value={value}
64
- label="Average Value Customers"
65
- />
66
- <BmSegmentCheckBox
67
- checked={value}
68
- onChange={() => setCheckbox(!value)}
69
- value={value}
70
- label="Low Value Customers"
71
- />
72
- <BmSegmentCheckBox
73
- checked={value}
74
- onChange={() => setCheckbox(!value)}
75
- value={value}
76
- label="Frequent Customers"
77
- />
78
- <BmSegmentCheckBox
79
- checked={value}
80
- onChange={() => setCheckbox(!value)}
81
- value={value}
82
- label="Occasional Customers"
83
- />
84
- </BmSegmentSelector>
85
- </BmSegment>
86
- <BmContentFooter>
87
- <BmFooterLeft>
88
- <div>
89
- <BmButton variant="secondary" size="medium">
90
- Go Back
91
- </BmButton>
92
- </div>
93
- </BmFooterLeft>
94
- <BmFooterRight>
95
- <div>
96
- <BmButton variant="tertiary" size="medium">
97
- Finish Later
98
- </BmButton>
99
- </div>
100
- <div>
101
- <BmButton variant="primary" size="medium">
102
- Upload
103
- </BmButton>
104
- </div>
105
- </BmFooterRight>
106
- </BmContentFooter>
107
- </BmContent>
108
- </>
109
- );
110
- };
@@ -1,248 +0,0 @@
1
- /* eslint-disable jsx-a11y/anchor-is-valid */
2
- import React, { useState } from "react";
3
- import {
4
- BmCustomer,
5
- BmCustomerDetails,
6
- BmCustomerInfoHeader,
7
- BmCustomerIcons,
8
- BmCustomerInfoName,
9
- BmCustomerInfoTab,
10
- BmMoreInfo,
11
- } from "../lib/components/CustomerInfo/customerInfo";
12
- import {
13
- BmCustomerBar,
14
- BmCustomerInfoAccordicon,
15
- } from "../lib/components/CustomerInfo/customerInfoBar";
16
- import CallIcon from "@material-ui/icons/Call";
17
- import EmailIcon from "@material-ui/icons/Email";
18
- import NoteAddIcon from "@material-ui/icons/NoteAdd";
19
- import AddIcon from "@material-ui/icons/Add";
20
- import PriorityHighIcon from "@material-ui/icons/PriorityHigh";
21
- import {
22
- BmInfoContent,
23
- BmInfoContentItem,
24
- BmInfoContentLabel,
25
- BmInfoContentValue,
26
- BmInfoHeader,
27
- BmInformation,
28
- } from "../lib/components/CustomerInfo/infoAccordion";
29
- import {
30
- BmNoteInfo,
31
- BmAddNote,
32
- BmNote,
33
- BmNoteDetails,
34
- BmNoteFooter,
35
- } from "../lib/components/CustomerInfo/notesInfo";
36
- import {
37
- BmAddLabel,
38
- BmColorLabel,
39
- BmColorLabelContainer,
40
- BmColorLabelPicker,
41
- BmLabelInfo,
42
- BmLabels,
43
- } from "../lib/components/CustomerInfo/labelsInfo";
44
- import {
45
- BmIcons,
46
- BmTagIcon,
47
- CopyToClipBoard,
48
- } from "../lib/components/iconStyles";
49
- import { Delete, Edit } from "@material-ui/icons";
50
- import { BmTag } from "../lib/components/tags";
51
- import { BmAccordicon } from "../lib/components/Accordicon";
52
- import { ModalBody } from "../lib/components/Modals/noteModalBody";
53
- import {
54
- BmFooterButtons,
55
- ModalFooter,
56
- } from "../lib/components/Modals/noteModalFooter";
57
- import {
58
- CloseModal,
59
- HeaderText,
60
- Modal,
61
- ModalHeader,
62
- } from "../lib/components/Modals/noteModalHeader";
63
- import { BmInput } from "../lib/components/input";
64
- import { BmButton } from "../lib/components/buttons";
65
-
66
- const CustomerInformation = () => {
67
- const [isOpen, setIsOpen] = useState(true);
68
- const toggling = () => setIsOpen(!isOpen);
69
- const [showModal, setShowModal] = useState(false);
70
-
71
- return (
72
- <>
73
- {/* Main Customer SideBar */}
74
- <BmCustomerBar>
75
- {/* Main Header */}
76
- <BmCustomerDetails>
77
- <BmCustomerInfoHeader>
78
- {/* Contact Name */}
79
- <BmCustomer>
80
- <BmCustomerInfoName>Phone Number</BmCustomerInfoName>
81
- <BmMoreInfo />
82
- </BmCustomer>
83
- {/* Buttons */}
84
- <BmCustomerIcons>
85
- {/* <BmIcon> */}
86
- <BmCustomerInfoTab icon={<CallIcon />}>Call</BmCustomerInfoTab>
87
- <BmCustomerInfoTab icon={<EmailIcon />}>Email</BmCustomerInfoTab>
88
- <BmCustomerInfoTab icon={<NoteAddIcon />}>Note</BmCustomerInfoTab>
89
- <BmCustomerInfoTab icon={<AddIcon />}>Log</BmCustomerInfoTab>
90
- <BmCustomerInfoTab icon={<PriorityHighIcon />} variant="enabled">
91
- Priority
92
- </BmCustomerInfoTab>
93
- {/* </BmIcon> */}
94
- </BmCustomerIcons>
95
- </BmCustomerInfoHeader>
96
- </BmCustomerDetails>
97
- {/* Information */}
98
- <BmCustomerInfoAccordicon>
99
- <BmInformation>
100
- <BmInfoHeader onClick={toggling} isOpen={isOpen}>
101
- Information
102
- </BmInfoHeader>
103
- <BmInfoContent isOpen={isOpen}>
104
- <BmInfoContentItem>
105
- <BmInfoContentLabel>First Name</BmInfoContentLabel>
106
- <BmInfoContentValue placeholder="Enter here" />
107
- </BmInfoContentItem>
108
- <BmInfoContentItem>
109
- <BmInfoContentLabel>Last Name</BmInfoContentLabel>
110
- <BmInfoContentValue placeholder="Enter here" />
111
- </BmInfoContentItem>
112
- <BmInfoContentItem>
113
- <BmInfoContentLabel>Phone Number</BmInfoContentLabel>
114
- <BmInfoContentValue placeholder="Enter here" />
115
- </BmInfoContentItem>
116
- <BmInfoContentItem>
117
- <BmInfoContentLabel>Email</BmInfoContentLabel>
118
- <BmInfoContentValue placeholder="Enter here" />
119
- </BmInfoContentItem>
120
- <BmInfoContentItem>
121
- <BmInfoContentLabel>SmartCard No.</BmInfoContentLabel>
122
- <BmInfoContentValue placeholder="Enter here" />
123
- </BmInfoContentItem>
124
- <BmInfoContentItem>
125
- <BmInfoContentLabel>Priority</BmInfoContentLabel>
126
- <BmInfoContentValue placeholder="Enter here" />
127
- </BmInfoContentItem>
128
- <BmInfoContentItem>
129
- <BmInfoContentLabel>Preferred Language</BmInfoContentLabel>
130
- <BmInfoContentValue placeholder="Enter here" />
131
- </BmInfoContentItem>
132
- <BmInfoContentItem>
133
- <BmInfoContentLabel>Source</BmInfoContentLabel>
134
- <BmInfoContentValue placeholder="Enter here" />
135
- </BmInfoContentItem>
136
- <BmInfoContentItem>
137
- <BmInfoContentLabel>Facebook ID</BmInfoContentLabel>
138
- <BmInfoContentValue placeholder="Enter here" />
139
- </BmInfoContentItem>
140
- </BmInfoContent>
141
- </BmInformation>
142
- <BmInformation>
143
- {/* Notes */}
144
- <BmAccordicon dropdown onClick={toggling} isOpen={isOpen}>
145
- <h3>Notes</h3>
146
- </BmAccordicon>
147
- <BmInfoContent isOpen={isOpen}>
148
- <BmInfoContentItem>
149
- <BmNoteInfo>
150
- <BmAddNote type="text" placeholder="Add Note" />
151
- <BmNote>
152
- <p>
153
- User reports that his channels dont seem to be working
154
- despite following the instructions
155
- </p>
156
- <BmNoteDetails>
157
- <BmIcons
158
- icon={<Edit />}
159
- size="xsmall"
160
- onClick={() => alert("hello")}
161
- />
162
- <BmIcons icon={<CopyToClipBoard />} size="xsmall" />
163
- <BmIcons icon={<Delete />} size="xsmall" />
164
- </BmNoteDetails>
165
- <BmNoteFooter>
166
- <p>Added by: </p>
167
- <p>3.00pm</p>
168
- </BmNoteFooter>
169
- </BmNote>
170
- </BmNoteInfo>
171
- </BmInfoContentItem>
172
- </BmInfoContent>
173
- </BmInformation>
174
- {/* Labels */}
175
- <BmInformation>
176
- <BmAccordicon dropdown onClick={toggling} isOpen={isOpen}>
177
- <h3>Labels</h3>
178
- <a
179
- onClick={() => {
180
- setShowModal(true);
181
- }}
182
- >
183
- Manage Labels
184
- </a>
185
- </BmAccordicon>
186
- <BmInfoContent isOpen={isOpen}>
187
- <BmInfoContentItem>
188
- <BmLabelInfo>
189
- {/* SearchIcon */}
190
- <BmAddNote type="text" placeholder="Add Note" />
191
- <h4>Added Labels</h4>
192
- <BmLabels>
193
- <BmTag variant="#33b1ba" trailingIcon={<Delete />}>
194
- A
195
- </BmTag>
196
- <BmTag variant="purple" trailingIcon={<Delete />}>
197
- B
198
- </BmTag>
199
- <BmTag variant="orange" trailingIcon={<Delete />}>
200
- C
201
- </BmTag>
202
- </BmLabels>
203
- </BmLabelInfo>
204
- </BmInfoContentItem>
205
- </BmInfoContent>
206
- </BmInformation>
207
- </BmCustomerInfoAccordicon>
208
- </BmCustomerBar>
209
- <Modal
210
- show={showModal}
211
- setShowModal={() => {
212
- setShowModal(!showModal);
213
- }}
214
- >
215
- <ModalHeader>
216
- <HeaderText>Add Labels</HeaderText>
217
- <CloseModal
218
- onClick={() => {
219
- setShowModal(!showModal);
220
- }}
221
- />
222
- </ModalHeader>
223
- <ModalBody>
224
- <BmAddLabel type="text" placeholder="Add label" />
225
- <BmColorLabel>
226
- {["#33b1ba", "#000000", "#F62E48", "#8CC63F"].map((color) => (
227
- <BmColorLabelPicker
228
- color={color}
229
- onClick={() => {
230
- alert(color);
231
- }}
232
- />
233
- ))}
234
- </BmColorLabel>
235
- </ModalBody>
236
- <ModalFooter>
237
- <BmFooterButtons>
238
- <BmButton variant="primary" size="medium">
239
- Save
240
- </BmButton>
241
- </BmFooterButtons>
242
- </ModalFooter>
243
- </Modal>
244
- </>
245
- );
246
- };
247
-
248
- export default CustomerInformation;
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"/></svg>
Binary file
@@ -1,43 +0,0 @@
1
- import React from "react";
2
- import styled from "styled-components";
3
- import { BmPrimaryWhite, BmGrey400 } from "./colors";
4
- import { BmDropdownIcon, BmDropupIcon } from "./iconStyles";
5
-
6
- export const BmAccordiconMenu = styled.div`
7
- display: flex;
8
- flex-direction: row;
9
- ${"" /* justify-content: space-between; */}
10
- padding: 0.571rem 1.143rem;
11
- background: ${BmPrimaryWhite};
12
- box-shadow: ${(isOpen) => {
13
- if (isOpen) return `inset 0rem 0.071rem 0rem ${BmGrey400}`;
14
- return `inset 0rem -0.071rem 0rem ${BmGrey400}, inset 0rem 0.071rem 0rem ${BmGrey400};`;
15
- }};
16
- > *:not(:last-child) {
17
- margin-right: 0.5rem;
18
- }
19
- `;
20
-
21
- export const BmAccordiconDetails = styled.div`
22
- display: flex;
23
- justify-content: space-between;
24
- width: 100%;
25
- `;
26
-
27
- export const BmAccordicon = ({
28
- children,
29
- isOpen,
30
- dropdown,
31
- trailingIcon,
32
- ...rest
33
- }) => {
34
- return (
35
- <>
36
- <BmAccordiconMenu {...rest}>
37
- {dropdown &&
38
- (isOpen ? <BmDropupIcon {...rest} /> : <BmDropdownIcon {...rest} />)}
39
- <BmAccordiconDetails>{children}</BmAccordiconDetails>
40
- </BmAccordiconMenu>
41
- </>
42
- );
43
- };