beem-component 1.0.1 → 1.0.5
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.
- package/.storybook/favicon.ico +0 -0
- package/.storybook/logo-blue.png +0 -0
- package/.storybook/main.js +15 -0
- package/.storybook/manager-head.html +14 -0
- package/.storybook/manager.js +6 -0
- package/.storybook/preview.js +10 -0
- package/.storybook/theme.js +10 -0
- package/Dockerfile +30 -0
- package/Jenkinsfile +73 -0
- package/build-storybook.log +14621 -0
- package/dist/assets/beem.jpeg +0 -0
- package/dist/components/{Accordion.js → Accordion/Accordion.js} +12 -6
- package/dist/components/Accordion/Accordion.stories.js +86 -0
- package/dist/components/{avatars.js → Avatars/avatars.js} +31 -11
- package/dist/components/Avatars/avatars.stories.js +69 -0
- package/dist/components/Buttons/Stories/basicbutton.stories.js +67 -0
- package/dist/components/Buttons/Stories/buttonAlertIcons.stories.js +65 -0
- package/dist/components/Buttons/Stories/buttonIconsOnly.stories.js +65 -0
- package/dist/components/{buttonAlertIcons.js → Buttons/buttonAlertIcons.js} +17 -9
- package/dist/components/{buttonIconsOnly.js → Buttons/buttonIconsOnly.js} +13 -4
- package/dist/components/{buttons.js → Buttons/buttons.js} +11 -10
- package/dist/components/{Reports → Cards}/cards.js +9 -24
- package/dist/components/Cards/cards.stories.js +61 -0
- package/dist/components/Chats/chat.js +1 -1
- package/dist/components/Chats/chatInput.js +1 -1
- package/dist/components/Chats/chatwrapper.js +1 -1
- package/dist/components/Lists/listBox.js +41 -0
- package/dist/components/Lists/listBox.stories.js +78 -0
- package/dist/components/Lists/listHeader.stories.js +58 -0
- package/dist/components/Lists/listheader.js +17 -12
- package/dist/components/Lists/rowLabels.js +34 -16
- package/dist/components/Lists/rowLabels.stories.js +85 -0
- package/dist/components/{loaders.js → Loader/loader.js} +13 -7
- package/dist/components/Loader/loader.stories.js +52 -0
- package/dist/components/{Reports/buttons.js → MainWrapper/index.js} +5 -3
- package/dist/components/Modals/modal copy.js +160 -0
- package/dist/components/Modals/modal.js +166 -0
- package/dist/components/Modals/modals.stories.js +117 -0
- package/dist/components/{infoNote.js → NoteBar.js/noteBar.js} +23 -19
- package/dist/components/NoteBar.js/noteBar.stories.js +66 -0
- package/dist/components/PerformanceIndicator/performaceIndicator.stories.js +66 -0
- package/dist/components/PerformanceIndicator/performanceIndicator.js +68 -0
- package/dist/components/Pills/pills.js +126 -0
- package/dist/components/Pills/pills.stories.js +110 -0
- package/dist/components/{progressbar.js → ProgressBar/progressbar.js} +8 -2
- package/dist/components/ProgressBar/progressbar.stories.js +45 -0
- package/dist/components/{Link.js → RouteLink/link.js} +8 -3
- package/dist/components/RouteLink/link.stories.js +29 -0
- package/dist/components/SuperFluid/ContentTitle.js/index.js +1 -1
- package/dist/components/SuperFluid/SegmentCard/index.js +1 -1
- package/dist/components/Tabs/tabs.js +85 -0
- package/dist/components/Tabs/tabs.stories.js +59 -0
- package/dist/components/breakpoints.js +18 -0
- package/dist/components/chatHeader.js +1 -1
- package/dist/components/checkboxToggler.js +2 -2
- package/dist/components/colors.js +5 -3
- package/dist/components/contacts.js +1 -1
- package/dist/components/dropdown.js +1 -1
- package/dist/components/dropdownButton.js +3 -3
- package/dist/components/dropdownItems.js +1 -1
- package/dist/components/example.js +47 -0
- package/dist/components/iconStyles.js +69 -119
- package/dist/components/index-copy.js +1285 -0
- package/dist/components/index.js +80 -1155
- package/dist/components/input.js +9 -3
- package/dist/components/logo.js +1 -1
- package/dist/components/navbar.js +1 -1
- package/dist/components/sidebar.js +2 -2
- package/dist/components/tabs.js +1 -1
- package/dist/components/text.js +1 -1
- package/dist/components/typography.js +1 -1
- package/nginx.conf +17 -0
- package/package.json +30 -11
- package/public/favicon.ico +0 -0
- package/public/index.html +1 -1
- package/src/App.js +12 -29
- package/src/examples/Navbar.js +1 -1
- package/src/lib/assets/beem.jpeg +0 -0
- package/src/lib/components/{Accordion.js → Accordion/Accordion.js} +5 -4
- package/src/lib/components/Accordion/Accordion.stories.js +63 -0
- package/src/lib/components/{avatars.js → Avatars/avatars.js} +24 -8
- package/src/lib/components/Avatars/avatars.stories.js +45 -0
- package/src/lib/components/Buttons/Stories/basicbutton.stories.js +51 -0
- package/src/lib/components/Buttons/Stories/buttonAlertIcons.stories.js +42 -0
- package/src/lib/components/Buttons/Stories/buttonIconsOnly.stories.js +49 -0
- package/src/lib/components/{buttonAlertIcons.js → Buttons/buttonAlertIcons.js} +20 -9
- package/src/lib/components/{buttonIconsOnly.js → Buttons/buttonIconsOnly.js} +12 -2
- package/src/lib/components/{buttons.js → Buttons/buttons.js} +10 -10
- package/src/lib/components/{Reports → Cards}/cards.js +10 -18
- package/src/lib/components/Cards/cards.stories.js +52 -0
- package/src/lib/components/Lists/listBox.js +34 -0
- package/src/lib/components/Lists/listBox.stories.js +47 -0
- package/src/lib/components/Lists/listHeader.stories.js +36 -0
- package/src/lib/components/Lists/listheader.js +17 -11
- package/src/lib/components/Lists/rowLabels.js +47 -16
- package/src/lib/components/Lists/rowLabels.stories.js +59 -0
- package/src/lib/components/{loaders.js → Loader/loader.js} +18 -7
- package/src/lib/components/Loader/loader.stories.js +30 -0
- package/src/lib/components/MainWrapper/index.js +7 -0
- package/src/lib/components/Modals/modal copy.js +159 -0
- package/src/lib/components/Modals/modal.js +152 -0
- package/src/lib/components/Modals/modals.stories.js +82 -0
- package/src/lib/components/{infoNote.js → NoteBar.js/noteBar.js} +24 -25
- package/src/lib/components/NoteBar.js/noteBar.stories.js +40 -0
- package/src/lib/components/PerformanceIndicator/performaceIndicator.stories.js +40 -0
- package/src/lib/components/PerformanceIndicator/performanceIndicator.js +56 -0
- package/src/lib/components/Pills/pills.js +91 -0
- package/src/lib/components/Pills/pills.stories.js +74 -0
- package/src/lib/components/{progressbar.js → ProgressBar/progressbar.js} +8 -1
- package/src/lib/components/ProgressBar/progressbar.stories.js +26 -0
- package/src/lib/components/{Link.js → RouteLink/link.js} +5 -4
- package/src/lib/components/RouteLink/link.stories.js +21 -0
- package/src/lib/components/Tabs/tabs.js +84 -0
- package/src/lib/components/Tabs/tabs.stories.js +36 -0
- package/src/lib/components/breakpoints.js +11 -0
- package/src/lib/components/colors.js +2 -0
- package/src/lib/components/dropdownButton.js +2 -2
- package/src/lib/components/example.js +30 -0
- package/src/lib/components/iconStyles.js +46 -101
- package/src/lib/components/index-copy.js +468 -0
- package/src/lib/components/index.js +38 -445
- package/src/lib/components/input.js +8 -2
- package/src/lib/components/sidebar.js +1 -1
- package/storybook-static/0.00c62ec79c260aedbb98.manager.bundle.js +2 -0
- package/storybook-static/0.00c62ec79c260aedbb98.manager.bundle.js.LICENSE.txt +8 -0
- package/storybook-static/0.96c45dd8.iframe.bundle.js +1 -0
- package/storybook-static/1.dc6acfa9.iframe.bundle.js +3 -0
- package/storybook-static/1.dc6acfa9.iframe.bundle.js.LICENSE.txt +8 -0
- package/storybook-static/1.dc6acfa9.iframe.bundle.js.map +1 -0
- package/storybook-static/1.dc7dcdaec2def2f224fd.manager.bundle.js +1 -0
- package/storybook-static/2.24353ddc.iframe.bundle.js +1 -0
- package/storybook-static/3.8bb2173c.iframe.bundle.js +1 -0
- package/storybook-static/5.0779e3847d325dece216.manager.bundle.js +1 -0
- package/storybook-static/6.8bd405c2576206749a16.manager.bundle.js +2 -0
- package/storybook-static/6.8bd405c2576206749a16.manager.bundle.js.LICENSE.txt +12 -0
- package/storybook-static/7.9d4ba19cf58425e7ff0d.manager.bundle.js +1 -0
- package/storybook-static/7.f0cfc757.iframe.bundle.js +1 -0
- package/storybook-static/8.91de97de.iframe.bundle.js +3 -0
- package/storybook-static/8.91de97de.iframe.bundle.js.LICENSE.txt +12 -0
- package/storybook-static/8.91de97de.iframe.bundle.js.map +1 -0
- package/storybook-static/8.b4e9ec0ec7648e02a923.manager.bundle.js +1 -0
- package/storybook-static/9.40ec65d6.iframe.bundle.js +1 -0
- package/storybook-static/asset-manifest.json +30 -0
- package/storybook-static/favicon.ico +0 -0
- package/storybook-static/iframe.html +348 -0
- package/storybook-static/index.html +110 -0
- package/storybook-static/main.3c8d8027.iframe.bundle.js +1 -0
- package/storybook-static/main.3e5804fe56d1f580b088.manager.bundle.js +1 -0
- package/storybook-static/runtime~main.d3a18d6a.iframe.bundle.js +1 -0
- package/storybook-static/runtime~main.ff106120648356c6069d.manager.bundle.js +1 -0
- package/storybook-static/static/css/main.b44a190d.chunk.css +4 -0
- package/storybook-static/static/css/main.b44a190d.chunk.css.map +1 -0
- package/storybook-static/static/media/OpenSans-Regular.1b0809d5.ttf +0 -0
- package/storybook-static/static/media/PoppinsBold.1eae2d48.woff2 +0 -0
- package/storybook-static/static/media/PoppinsBold.53ff6749.eot +0 -0
- package/storybook-static/static/media/PoppinsBold.53ff971f.ttf +0 -0
- package/storybook-static/static/media/PoppinsBold.850fc4f3.svg +3066 -0
- package/storybook-static/static/media/PoppinsBold.b33c148b.woff +0 -0
- package/storybook-static/static/media/PoppinsMedium.0ba26f6c.woff +0 -0
- package/storybook-static/static/media/PoppinsMedium.49b46ace.eot +0 -0
- package/storybook-static/static/media/PoppinsMedium.57a99fa8.woff2 +0 -0
- package/storybook-static/static/media/PoppinsMedium.b7e43707.svg +3103 -0
- package/storybook-static/static/media/PoppinsMedium.c98dddbd.ttf +0 -0
- package/storybook-static/static/media/PoppinsRegular.13b9af9c.eot +0 -0
- package/storybook-static/static/media/PoppinsRegular.43e9b50d.svg +3138 -0
- package/storybook-static/static/media/PoppinsRegular.4a4d5420.woff +0 -0
- package/storybook-static/static/media/PoppinsRegular.9a7cc7ec.woff2 +0 -0
- package/storybook-static/static/media/PoppinsRegular.e1bc9021.ttf +0 -0
- package/storybook-static/static/media/PoppinsSemiBold.5692c77f.ttf +0 -0
- package/storybook-static/static/media/PoppinsSemiBold.80138c67.woff +0 -0
- package/storybook-static/static/media/PoppinsSemiBold.c442695a.eot +0 -0
- package/storybook-static/static/media/PoppinsSemiBold.e1948d56.svg +3098 -0
- package/storybook-static/static/media/PoppinsSemiBold.f27050e2.woff2 +0 -0
- package/storybook-static/static/media/logo-blue.bfc5ba6d.png +0 -0
- package/storybook-static/vendors~main.1750028c2d68e574fb1d.manager.bundle.js +2 -0
- package/storybook-static/vendors~main.1750028c2d68e574fb1d.manager.bundle.js.LICENSE.txt +104 -0
- package/storybook-static/vendors~main.7fe78cc2.iframe.bundle.js +3 -0
- package/storybook-static/vendors~main.7fe78cc2.iframe.bundle.js.LICENSE.txt +122 -0
- package/storybook-static/vendors~main.7fe78cc2.iframe.bundle.js.map +1 -0
- package/dist/assets/content_copy_black.svg +0 -1
- package/dist/assets/profile-pic.jpg +0 -0
- package/dist/components/Accordicon.js +0 -51
- package/dist/components/CustomerInfo/customerInfo.js +0 -89
- package/dist/components/CustomerInfo/customerInfoBar.js +0 -24
- package/dist/components/CustomerInfo/infoAccordion.js +0 -78
- package/dist/components/CustomerInfo/labelsInfo.js +0 -37
- package/dist/components/CustomerInfo/notesInfo.js +0 -39
- package/dist/components/Modals/modalBody.js +0 -61
- package/dist/components/Modals/noteModalBody.js +0 -20
- package/dist/components/Modals/noteModalFooter.js +0 -24
- package/dist/components/Modals/noteModalHeader.js +0 -93
- package/dist/components/Reports/charts.js +0 -70
- package/dist/components/Reports/infoHeader.js +0 -65
- package/dist/components/Reports/reportsBody.js +0 -28
- package/dist/components/Reports/title.js +0 -28
- package/dist/components/performanceIndicator.js +0 -41
- package/dist/components/pills.js +0 -73
- package/src/App1.js +0 -229
- package/src/CHAT.js +0 -170
- package/src/Complete.js +0 -48
- package/src/CreateSegments.js +0 -48
- package/src/FileUploadSFL.js +0 -110
- package/src/examples/CustomerInfo.js +0 -248
- package/src/lib/assets/content_copy_black.svg +0 -1
- package/src/lib/assets/profile-pic.jpg +0 -0
- package/src/lib/components/Accordicon.js +0 -43
- package/src/lib/components/CustomerInfo/customerInfo.js +0 -91
- package/src/lib/components/CustomerInfo/customerInfoBar.js +0 -23
- package/src/lib/components/CustomerInfo/infoAccordion.js +0 -96
- package/src/lib/components/CustomerInfo/labelsInfo.js +0 -37
- package/src/lib/components/CustomerInfo/notesInfo.js +0 -61
- package/src/lib/components/Modals/modalBody.js +0 -66
- package/src/lib/components/Modals/noteModalBody.js +0 -10
- package/src/lib/components/Modals/noteModalFooter.js +0 -16
- package/src/lib/components/Modals/noteModalHeader.js +0 -103
- package/src/lib/components/Reports/buttons.js +0 -5
- package/src/lib/components/Reports/charts.js +0 -79
- package/src/lib/components/Reports/infoHeader.js +0 -63
- package/src/lib/components/Reports/reportsBody.js +0 -29
- package/src/lib/components/Reports/title.js +0 -19
- package/src/lib/components/performanceIndicator.js +0 -27
- package/src/lib/components/pills.js +0 -65
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import styled from "styled-components";
|
|
3
|
-
import {
|
|
4
|
-
BmGrey400,
|
|
5
|
-
BmPrimaryBlack,
|
|
6
|
-
BmPrimaryWhite,
|
|
7
|
-
BmSecondaryGrey,
|
|
8
|
-
} from "../colors";
|
|
9
|
-
import { BmButtonIcon } from "../iconStyles";
|
|
10
|
-
import MoreVertIcon from "@material-ui/icons/MoreVert";
|
|
11
|
-
import { BmBtnIcon } from "../buttonIconsOnly";
|
|
12
|
-
|
|
13
|
-
// Outer Box
|
|
14
|
-
export const BmCustomerDetails = styled.div`
|
|
15
|
-
display: flex;
|
|
16
|
-
flex-direction: row;
|
|
17
|
-
background: ${BmPrimaryWhite};
|
|
18
|
-
border-bottom: 0.071rem solid ${BmGrey400};
|
|
19
|
-
padding: 1.714rem;
|
|
20
|
-
`;
|
|
21
|
-
|
|
22
|
-
// Customer Info Header Wrapper
|
|
23
|
-
export const BmCustomerInfoHeader = styled.div`
|
|
24
|
-
display: flex;
|
|
25
|
-
flex-direction: column;
|
|
26
|
-
justify-content: space-between;
|
|
27
|
-
max-width: 100%;
|
|
28
|
-
width: 100%;
|
|
29
|
-
`;
|
|
30
|
-
|
|
31
|
-
// Customer Name Wrapper
|
|
32
|
-
export const BmCustomer = styled.div`
|
|
33
|
-
display: flex;
|
|
34
|
-
flex-direction: row;
|
|
35
|
-
justify-content: space-between;
|
|
36
|
-
`;
|
|
37
|
-
|
|
38
|
-
export const BmCustomerInfoName = styled.h2`
|
|
39
|
-
color: ${BmPrimaryBlack};
|
|
40
|
-
`;
|
|
41
|
-
|
|
42
|
-
export const BmMoreInfo = (props) => {
|
|
43
|
-
return (
|
|
44
|
-
<BmButtonIcon
|
|
45
|
-
icon={<MoreVertIcon />}
|
|
46
|
-
color={`${BmSecondaryGrey}`}
|
|
47
|
-
{...props}
|
|
48
|
-
/>
|
|
49
|
-
);
|
|
50
|
-
};
|
|
51
|
-
|
|
52
|
-
// Tag Details
|
|
53
|
-
export const BmBtnTag = styled.h4`
|
|
54
|
-
text-align: center;
|
|
55
|
-
color: ${BmPrimaryBlack};
|
|
56
|
-
margin: 0.571rem 0rem;
|
|
57
|
-
`;
|
|
58
|
-
|
|
59
|
-
export const BmInfoTabWrapper = styled.div`
|
|
60
|
-
display: flex;
|
|
61
|
-
flex-direction: column;
|
|
62
|
-
align-items: center;
|
|
63
|
-
padding: 0rem;
|
|
64
|
-
`;
|
|
65
|
-
|
|
66
|
-
export const BmIcon = styled.div`
|
|
67
|
-
display: flex;
|
|
68
|
-
flex-direction: row;
|
|
69
|
-
padding: 0rem 1.714rem;
|
|
70
|
-
justify-content: space-between;
|
|
71
|
-
`;
|
|
72
|
-
|
|
73
|
-
export const BmCustomerIcons = styled.div`
|
|
74
|
-
display: flex;
|
|
75
|
-
flex-direction: row;
|
|
76
|
-
align-items: center;
|
|
77
|
-
justify-content: space-between;
|
|
78
|
-
margin-top: 1.143rem;
|
|
79
|
-
flex-wrap: wrap;
|
|
80
|
-
`;
|
|
81
|
-
|
|
82
|
-
export const BmCustomerInfoTab = ({ icon, children, ...rest }) => {
|
|
83
|
-
return (
|
|
84
|
-
<>
|
|
85
|
-
<BmInfoTabWrapper>
|
|
86
|
-
{icon && <BmBtnIcon icon={icon} {...rest} />}
|
|
87
|
-
<BmBtnTag {...rest}>{children}</BmBtnTag>
|
|
88
|
-
</BmInfoTabWrapper>
|
|
89
|
-
</>
|
|
90
|
-
);
|
|
91
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import styled from "styled-components";
|
|
2
|
-
import { BmGrey400, BmPrimaryWhite } from "../colors";
|
|
3
|
-
|
|
4
|
-
export const BmCustomerBar = styled.div`
|
|
5
|
-
display: flex;
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
background: ${BmPrimaryWhite};
|
|
8
|
-
border: 0.071rem solid ${BmGrey400};
|
|
9
|
-
max-height: 100%;
|
|
10
|
-
height: 100%;
|
|
11
|
-
overflow: auto;
|
|
12
|
-
max-width: 30%;
|
|
13
|
-
width: 30%;
|
|
14
|
-
`;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
export const BmCustomerInfoAccordicon = styled.div`
|
|
18
|
-
display: flex;
|
|
19
|
-
flex-direction: column;
|
|
20
|
-
margin: 0rem;
|
|
21
|
-
overflow: auto;
|
|
22
|
-
height: 40vh;
|
|
23
|
-
`;
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import styled from "styled-components";
|
|
3
|
-
import {
|
|
4
|
-
BmGrey400,
|
|
5
|
-
BmPrimaryBlack,
|
|
6
|
-
BmPrimaryWhite,
|
|
7
|
-
BmSecondaryGrey,
|
|
8
|
-
} from "../colors";
|
|
9
|
-
import { BmDropdownIcon, BmDropupIcon } from "../iconStyles";
|
|
10
|
-
|
|
11
|
-
export const BmInfoAccordiconMenu = styled.div`
|
|
12
|
-
display: flex;
|
|
13
|
-
flex-direction: row;
|
|
14
|
-
justify-content: space-between;
|
|
15
|
-
`;
|
|
16
|
-
|
|
17
|
-
export const BmInformation = styled.div`
|
|
18
|
-
display: flex;
|
|
19
|
-
flex-direction: column;
|
|
20
|
-
cursor: pointer;
|
|
21
|
-
`;
|
|
22
|
-
|
|
23
|
-
export const BmInfoHeaderText = styled.h3`
|
|
24
|
-
color: ${BmPrimaryBlack};
|
|
25
|
-
`;
|
|
26
|
-
|
|
27
|
-
export const BmDropdownInfo = styled.div`
|
|
28
|
-
margin-right: 0.571rem;
|
|
29
|
-
`;
|
|
30
|
-
|
|
31
|
-
export const BmInfoHeaderWrapper = styled.div`
|
|
32
|
-
display: flex;
|
|
33
|
-
flex-direction: row;
|
|
34
|
-
padding: 0.571rem 1.143rem;
|
|
35
|
-
background: ${BmPrimaryWhite};
|
|
36
|
-
box-shadow: ${(isOpen) => {
|
|
37
|
-
if (isOpen) return `inset 0rem 0.071rem 0rem ${BmGrey400}`;
|
|
38
|
-
return `inset 0rem -0.071rem 0rem ${BmGrey400}, inset 0rem 0.071rem 0rem ${BmGrey400};`;
|
|
39
|
-
}};
|
|
40
|
-
`;
|
|
41
|
-
|
|
42
|
-
export const BmInfoHeader = ({ children, isOpen, ...rest }) => {
|
|
43
|
-
return (
|
|
44
|
-
<>
|
|
45
|
-
<BmInfoHeaderWrapper {...rest}>
|
|
46
|
-
<BmDropdownInfo {...rest}>
|
|
47
|
-
{isOpen ? <BmDropupIcon {...rest} /> : <BmDropdownIcon {...rest} />}
|
|
48
|
-
</BmDropdownInfo>
|
|
49
|
-
<BmInfoHeaderText {...rest}>{children}</BmInfoHeaderText>
|
|
50
|
-
</BmInfoHeaderWrapper>
|
|
51
|
-
</>
|
|
52
|
-
);
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
export const BmInfoContent = styled.div`
|
|
56
|
-
display: ${({ isOpen }) => (isOpen ? "flex" : "none")}};
|
|
57
|
-
flex-direction: column;
|
|
58
|
-
justify-content: space-between;
|
|
59
|
-
padding: 0rem 1.143rem 1.143rem;
|
|
60
|
-
`;
|
|
61
|
-
|
|
62
|
-
export const BmInfoContentItem = styled.div`
|
|
63
|
-
display: flex;
|
|
64
|
-
flex-direction: row;
|
|
65
|
-
align-items: center;
|
|
66
|
-
justify-content: space-between;
|
|
67
|
-
max-width: 100%;
|
|
68
|
-
margin-bottom: 0.571rem;
|
|
69
|
-
`;
|
|
70
|
-
|
|
71
|
-
export const BmInfoContentLabel = styled.h4`
|
|
72
|
-
color: ${BmPrimaryBlack};
|
|
73
|
-
margin: 0rem;
|
|
74
|
-
text-align: left;
|
|
75
|
-
width: 50%;
|
|
76
|
-
overflow: hidden;
|
|
77
|
-
text-overflow: ellipsis;
|
|
78
|
-
`;
|
|
79
|
-
|
|
80
|
-
export const BmInfoContentValue = styled.input`
|
|
81
|
-
text-align: right;
|
|
82
|
-
color: ${BmSecondaryGrey};
|
|
83
|
-
width: 40%;
|
|
84
|
-
overflow: hidden;
|
|
85
|
-
text-overflow: ellipsis;
|
|
86
|
-
border: none;
|
|
87
|
-
&:visited,
|
|
88
|
-
&:active,
|
|
89
|
-
&:hover,
|
|
90
|
-
&:focus {
|
|
91
|
-
outline: none !important;
|
|
92
|
-
text-decoration: none;
|
|
93
|
-
color: ${BmPrimaryBlack};
|
|
94
|
-
}
|
|
95
|
-
background: transparent;
|
|
96
|
-
`;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import styled from "styled-components";
|
|
2
|
-
import { BmInput } from "../input";
|
|
3
|
-
|
|
4
|
-
export const BmAddLabel = styled(BmInput)`
|
|
5
|
-
width: 100%;
|
|
6
|
-
margin-bottom: 0.5rem;
|
|
7
|
-
`;
|
|
8
|
-
|
|
9
|
-
export const BmLabels = styled.div`
|
|
10
|
-
display: flex;
|
|
11
|
-
flex-direction: row;
|
|
12
|
-
justify-content: space-between;
|
|
13
|
-
width: 100%;
|
|
14
|
-
flex-wrap: wrap;
|
|
15
|
-
`;
|
|
16
|
-
|
|
17
|
-
export const BmColorLabel = styled.div`
|
|
18
|
-
display: flex;
|
|
19
|
-
flex-direction: row;
|
|
20
|
-
justify-content: space-between;
|
|
21
|
-
`;
|
|
22
|
-
export const BmColorLabelPicker = styled.div`
|
|
23
|
-
width: 1.429rem;
|
|
24
|
-
height: 1.429rem;
|
|
25
|
-
border-radius: 50%;
|
|
26
|
-
margin: 0.5rem;
|
|
27
|
-
background: ${(props) => (props.color ? props.color : "green")};
|
|
28
|
-
`;
|
|
29
|
-
|
|
30
|
-
export const BmLabelInfo = styled.div`
|
|
31
|
-
display: flex;
|
|
32
|
-
flex-direction: column;
|
|
33
|
-
width: 100%;
|
|
34
|
-
> *:not(:first-child) {
|
|
35
|
-
margin-top: 1.143rem;
|
|
36
|
-
}
|
|
37
|
-
`;
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import styled from "styled-components";
|
|
2
|
-
import { BmGrey100, BmGrey400, BmSecondaryGrey } from "../colors";
|
|
3
|
-
import { BmInputField } from "../input";
|
|
4
|
-
|
|
5
|
-
export const BmAddNote = styled(BmInputField)`
|
|
6
|
-
padding: 1rem 1.143rem;
|
|
7
|
-
display: flex;
|
|
8
|
-
color: ${BmSecondaryGrey};
|
|
9
|
-
background: ${BmGrey100};
|
|
10
|
-
flex-grow: 1;
|
|
11
|
-
border: none !important;
|
|
12
|
-
&:visited,
|
|
13
|
-
&:active,
|
|
14
|
-
&:hover,
|
|
15
|
-
&:focus {
|
|
16
|
-
outline: none !important;
|
|
17
|
-
text-decoration: none !important;
|
|
18
|
-
}
|
|
19
|
-
`;
|
|
20
|
-
|
|
21
|
-
export const BmNoteInfo = styled.div`
|
|
22
|
-
display: flex;
|
|
23
|
-
flex-direction: column;
|
|
24
|
-
width: 100%;
|
|
25
|
-
${"" /* margin: 0rem 1.143rem; */}
|
|
26
|
-
`;
|
|
27
|
-
|
|
28
|
-
export const BmNote = styled.div`
|
|
29
|
-
display: flex;
|
|
30
|
-
flex-direction: column;
|
|
31
|
-
align-items: flex-start;
|
|
32
|
-
padding: 1rem 1.143rem;
|
|
33
|
-
margin-top: 1.143rem;
|
|
34
|
-
p {
|
|
35
|
-
color: ${BmSecondaryGrey};
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
border: 0.071rem solid ${BmGrey400};
|
|
39
|
-
border-radius: 0.21875rem;
|
|
40
|
-
`;
|
|
41
|
-
|
|
42
|
-
export const BmNoteDetails = styled.div`
|
|
43
|
-
display: flex;
|
|
44
|
-
flex-direction: row;
|
|
45
|
-
justify-content: space-between;
|
|
46
|
-
margin-top: 0.857rem;
|
|
47
|
-
width: 50%;
|
|
48
|
-
`;
|
|
49
|
-
|
|
50
|
-
export const BmNoteFooter = styled.div`
|
|
51
|
-
display: flex;
|
|
52
|
-
flex-direction: row;
|
|
53
|
-
justify-content: space-between;
|
|
54
|
-
margin-top: 0.857rem;
|
|
55
|
-
width: 100%;
|
|
56
|
-
> * {
|
|
57
|
-
&:last-child {
|
|
58
|
-
margin-left: auto;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
`;
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import styled from "styled-components";
|
|
2
|
-
import { BmAvatar } from "../avatars";
|
|
3
|
-
import { BmButton } from "../buttons";
|
|
4
|
-
import { BmPrimaryBlack } from "../colors";
|
|
5
|
-
import { BmPill } from "../pills";
|
|
6
|
-
import { BmSearch } from "../search";
|
|
7
|
-
|
|
8
|
-
export const BmAgentSearch = styled(BmSearch)`
|
|
9
|
-
width: 20vw;
|
|
10
|
-
max-width: 20vw;
|
|
11
|
-
display: flex-end;
|
|
12
|
-
`;
|
|
13
|
-
|
|
14
|
-
export const BmAgentName = styled.p`
|
|
15
|
-
color: ${BmPrimaryBlack};
|
|
16
|
-
margin-top: 1.714rem;
|
|
17
|
-
`;
|
|
18
|
-
|
|
19
|
-
export const BmAgentPill = styled(BmPill)`
|
|
20
|
-
margin-top: 0.571rem;
|
|
21
|
-
`;
|
|
22
|
-
|
|
23
|
-
export const BmAgentButton = styled(BmButton)`
|
|
24
|
-
margin-top: 1.143rem;
|
|
25
|
-
`;
|
|
26
|
-
|
|
27
|
-
export const BmPreviousAgentWrapper = styled.div`
|
|
28
|
-
display: flex;
|
|
29
|
-
flex-direction: column;
|
|
30
|
-
align-items: flex-start;
|
|
31
|
-
padding: 0rem;
|
|
32
|
-
margin: 1.714rem 0rem;
|
|
33
|
-
width: 100%;
|
|
34
|
-
`;
|
|
35
|
-
|
|
36
|
-
export const BmPreviousAgentTitle = styled.p`
|
|
37
|
-
color: ${BmPrimaryBlack};
|
|
38
|
-
display: flex;
|
|
39
|
-
`;
|
|
40
|
-
|
|
41
|
-
export const BmPreviousAgentContent = styled.div`
|
|
42
|
-
display: flex;
|
|
43
|
-
flex-direction: row;
|
|
44
|
-
align-items: center;
|
|
45
|
-
padding: 0rem;
|
|
46
|
-
margin-top: 0.571rem;
|
|
47
|
-
width: 100%;
|
|
48
|
-
`;
|
|
49
|
-
|
|
50
|
-
export const BmPreviousAgentIcon = styled(BmAvatar)`
|
|
51
|
-
margin-right: 1.143rem;
|
|
52
|
-
`;
|
|
53
|
-
|
|
54
|
-
export const BmPreviousAgent = styled.div`
|
|
55
|
-
display: flex;
|
|
56
|
-
flex-direction: column;
|
|
57
|
-
flex-grow: 1;
|
|
58
|
-
`;
|
|
59
|
-
|
|
60
|
-
export const BmPreviousAgentName = styled.h3`
|
|
61
|
-
color: ${BmPrimaryBlack};
|
|
62
|
-
`;
|
|
63
|
-
|
|
64
|
-
export const BmPreviousAgentMessage = styled.p`
|
|
65
|
-
color: ${BmPrimaryBlack};
|
|
66
|
-
`;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import styled from "styled-components";
|
|
2
|
-
|
|
3
|
-
export const ModalFooter = styled.div`
|
|
4
|
-
display: flex;
|
|
5
|
-
flex-direction: row;
|
|
6
|
-
padding: 1.143rem;
|
|
7
|
-
margin-top: 0.571rem;
|
|
8
|
-
`;
|
|
9
|
-
|
|
10
|
-
export const BmFooterButtons = styled.div`
|
|
11
|
-
display: flex;
|
|
12
|
-
margin-left: auto;
|
|
13
|
-
${'' /* width: 50%; */}
|
|
14
|
-
align-items: center;
|
|
15
|
-
justify-content: space-between;
|
|
16
|
-
`;
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
import React, { useEffect, useCallback } from "react";
|
|
2
|
-
import { Clear } from "@material-ui/icons";
|
|
3
|
-
import styled from "styled-components";
|
|
4
|
-
import { BmPrimaryBlack, BmPrimaryWhite } from "../colors";
|
|
5
|
-
import { BmIcons } from "../iconStyles";
|
|
6
|
-
|
|
7
|
-
export const Overlay = styled.div`
|
|
8
|
-
position: fixed;
|
|
9
|
-
top: 0;
|
|
10
|
-
left: 0;
|
|
11
|
-
z-index: 9999;
|
|
12
|
-
width: 100%;
|
|
13
|
-
height: 100%;
|
|
14
|
-
background-color: ${BmPrimaryBlack};
|
|
15
|
-
opacity: 0.5;
|
|
16
|
-
}
|
|
17
|
-
`;
|
|
18
|
-
export const ModalContent = styled.div`
|
|
19
|
-
display: flex;
|
|
20
|
-
flex-direction: column;
|
|
21
|
-
padding: 0rem 1.143rem;
|
|
22
|
-
border: 0.071rem solid black;
|
|
23
|
-
width: 30vw;
|
|
24
|
-
margin: auto;
|
|
25
|
-
background: ${BmPrimaryWhite};
|
|
26
|
-
`;
|
|
27
|
-
|
|
28
|
-
export const ModalWrapper = styled.div`
|
|
29
|
-
z-index: 9999;
|
|
30
|
-
overflow-x: auto;
|
|
31
|
-
overflow-y: auto;
|
|
32
|
-
outline: 0;
|
|
33
|
-
position: fixed;
|
|
34
|
-
height: auto;
|
|
35
|
-
top: 50%;
|
|
36
|
-
left: 50%;
|
|
37
|
-
transform: translate(-50%, -50%);
|
|
38
|
-
`;
|
|
39
|
-
|
|
40
|
-
export const HeaderWrapper = styled.div`
|
|
41
|
-
display: flex;
|
|
42
|
-
flex-direction: row;
|
|
43
|
-
justify-content: space-between;
|
|
44
|
-
padding: 1.143rem 0rem;
|
|
45
|
-
`;
|
|
46
|
-
|
|
47
|
-
export const HeaderText = styled.h2`
|
|
48
|
-
text-align: center;
|
|
49
|
-
display: flex;
|
|
50
|
-
color: ${BmPrimaryBlack};
|
|
51
|
-
margin-left: auto;
|
|
52
|
-
`;
|
|
53
|
-
|
|
54
|
-
export const Close = styled.div`
|
|
55
|
-
display: flex;
|
|
56
|
-
justify-content: flex-end;
|
|
57
|
-
margin-left: auto;
|
|
58
|
-
`;
|
|
59
|
-
|
|
60
|
-
export const CloseModal = ({ ...rest }) => {
|
|
61
|
-
return (
|
|
62
|
-
<Close>
|
|
63
|
-
<BmIcons size="xlarge" icon={<Clear />} {...rest} />
|
|
64
|
-
</Close>
|
|
65
|
-
);
|
|
66
|
-
};
|
|
67
|
-
|
|
68
|
-
export const ModalHeader = (props) => {
|
|
69
|
-
return (
|
|
70
|
-
<>
|
|
71
|
-
<HeaderWrapper>{props.children}</HeaderWrapper>
|
|
72
|
-
</>
|
|
73
|
-
);
|
|
74
|
-
};
|
|
75
|
-
|
|
76
|
-
export const Modal = ({ children, show, setShowModal }) => {
|
|
77
|
-
const keyPress = useCallback(
|
|
78
|
-
(e) => {
|
|
79
|
-
if (e.key === "Escape" && show) {
|
|
80
|
-
setShowModal(false);
|
|
81
|
-
}
|
|
82
|
-
},
|
|
83
|
-
[setShowModal, show],
|
|
84
|
-
);
|
|
85
|
-
|
|
86
|
-
useEffect(() => {
|
|
87
|
-
document.addEventListener("keydown", keyPress);
|
|
88
|
-
return () => document.removeEventListener("keydown", keyPress);
|
|
89
|
-
}, [keyPress]);
|
|
90
|
-
|
|
91
|
-
return (
|
|
92
|
-
<>
|
|
93
|
-
{show && (
|
|
94
|
-
<>
|
|
95
|
-
<Overlay />
|
|
96
|
-
<ModalWrapper showModal={show}>
|
|
97
|
-
<ModalContent>{children}</ModalContent>
|
|
98
|
-
</ModalWrapper>
|
|
99
|
-
</>
|
|
100
|
-
)}
|
|
101
|
-
</>
|
|
102
|
-
);
|
|
103
|
-
};
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import styled from "styled-components";
|
|
3
|
-
import { BmGrey400, BmPrimaryWhite, BmPrimaryBlack } from "../colors";
|
|
4
|
-
|
|
5
|
-
export const BmChart = styled.div`
|
|
6
|
-
display: inline-block;
|
|
7
|
-
flex-direction: column;
|
|
8
|
-
background: ${BmPrimaryWhite};
|
|
9
|
-
border: 0.0625rem solid ${BmGrey400};
|
|
10
|
-
border-radius: 0.21875rem;
|
|
11
|
-
width: calc(50% - 0.75rem);
|
|
12
|
-
`;
|
|
13
|
-
|
|
14
|
-
export const BmChartHeader = styled.div`
|
|
15
|
-
display: flex;
|
|
16
|
-
flex-direction: row;
|
|
17
|
-
justify-content: space-between;
|
|
18
|
-
align-items: center;
|
|
19
|
-
padding: 1rem 0rem 0rem 1rem;
|
|
20
|
-
`;
|
|
21
|
-
|
|
22
|
-
export const BmChartTitleText = styled.h3`
|
|
23
|
-
color: ${BmPrimaryBlack};
|
|
24
|
-
align-items: center;
|
|
25
|
-
`;
|
|
26
|
-
|
|
27
|
-
export const BmChartDetails = styled.div`
|
|
28
|
-
display: flex;
|
|
29
|
-
align-items: center;
|
|
30
|
-
`;
|
|
31
|
-
|
|
32
|
-
export const BmChartBody = styled.div`
|
|
33
|
-
display: flex;
|
|
34
|
-
flex-direction: row;
|
|
35
|
-
justify-content: space-between;
|
|
36
|
-
margin-top: 0.5rem;
|
|
37
|
-
margin-bottom: 1rem;
|
|
38
|
-
padding: 0rem 1rem;
|
|
39
|
-
`;
|
|
40
|
-
|
|
41
|
-
export const BmChartBodyText = styled.h1`
|
|
42
|
-
display: flex;
|
|
43
|
-
color: ${BmPrimaryBlack};
|
|
44
|
-
align-items: center;
|
|
45
|
-
`;
|
|
46
|
-
|
|
47
|
-
export const BmChartBodyDetails = styled.div`
|
|
48
|
-
display: flex;
|
|
49
|
-
align-items: center;
|
|
50
|
-
`;
|
|
51
|
-
|
|
52
|
-
export const BmChartHeading = styled.h4`
|
|
53
|
-
display: flex;
|
|
54
|
-
color: ${BmPrimaryBlack};
|
|
55
|
-
align-items: center;
|
|
56
|
-
padding: 0rem 1rem;
|
|
57
|
-
`;
|
|
58
|
-
|
|
59
|
-
export const BmMainChartWrapper = styled.div`
|
|
60
|
-
display: flex;
|
|
61
|
-
${"" /* background: ${BmPrimaryBlue}; */}
|
|
62
|
-
padding: 1rem;
|
|
63
|
-
`;
|
|
64
|
-
|
|
65
|
-
export const BmMainChartContent = styled.div`
|
|
66
|
-
display: flex;
|
|
67
|
-
${"" /* background: ${BmPrimaryBlue}; */}
|
|
68
|
-
${"" /* border: 0.0625rem solid ; */}
|
|
69
|
-
width: 100%;
|
|
70
|
-
height: 20vw;
|
|
71
|
-
`;
|
|
72
|
-
|
|
73
|
-
export const BmMainChart = (props) => {
|
|
74
|
-
return (
|
|
75
|
-
<BmMainChartWrapper>
|
|
76
|
-
<BmMainChartContent>{props.children}</BmMainChartContent>
|
|
77
|
-
</BmMainChartWrapper>
|
|
78
|
-
);
|
|
79
|
-
};
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import styled from "styled-components";
|
|
3
|
-
import {
|
|
4
|
-
BmGrey400,
|
|
5
|
-
BmPrimaryWhite,
|
|
6
|
-
BmPrimaryBlue,
|
|
7
|
-
BmSecondaryGrey,
|
|
8
|
-
} from "../colors";
|
|
9
|
-
import { BmIcons } from "../iconStyles";
|
|
10
|
-
import InfoIcon from "@material-ui/icons/Info";
|
|
11
|
-
import { Clear } from "@material-ui/icons";
|
|
12
|
-
|
|
13
|
-
export const BmReportsInfoHeader = styled.div`
|
|
14
|
-
display: flex;
|
|
15
|
-
flex-direction: row;
|
|
16
|
-
justify-content: space-between;
|
|
17
|
-
align-items: center;
|
|
18
|
-
padding: 0.5rem 1rem;
|
|
19
|
-
background: ${BmPrimaryWhite};
|
|
20
|
-
border: 0.0625rem solid ${BmGrey400};
|
|
21
|
-
border-radius: 0.21875rem;
|
|
22
|
-
`;
|
|
23
|
-
|
|
24
|
-
export const IconWrapper = styled.div`
|
|
25
|
-
margin-right: 0.5rem;
|
|
26
|
-
`;
|
|
27
|
-
|
|
28
|
-
export const CloseButtonWrapper = styled.div`
|
|
29
|
-
display: flex;
|
|
30
|
-
justify-content: flex-end;
|
|
31
|
-
margin-left: auto;
|
|
32
|
-
`;
|
|
33
|
-
|
|
34
|
-
export const CloseNote = () => {
|
|
35
|
-
return (
|
|
36
|
-
<CloseButtonWrapper>
|
|
37
|
-
<BmIcons icon={<Clear />} />
|
|
38
|
-
</CloseButtonWrapper>
|
|
39
|
-
);
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
export const TextHeaderWrapper = styled.div`
|
|
43
|
-
display: flex;
|
|
44
|
-
flex-direction: flex-start;
|
|
45
|
-
align-items: center;
|
|
46
|
-
`;
|
|
47
|
-
|
|
48
|
-
export const BmReportsHeaderNote = styled.h4`
|
|
49
|
-
color: ${BmSecondaryGrey};
|
|
50
|
-
`;
|
|
51
|
-
|
|
52
|
-
export const BmReportsHeaderText = (props) => {
|
|
53
|
-
return (
|
|
54
|
-
<>
|
|
55
|
-
<TextHeaderWrapper>
|
|
56
|
-
<IconWrapper props={props}>
|
|
57
|
-
<BmIcons color={`${BmPrimaryBlue}`} icon={<InfoIcon />} {...props} />
|
|
58
|
-
</IconWrapper>
|
|
59
|
-
<BmReportsHeaderNote>{props.children}</BmReportsHeaderNote>
|
|
60
|
-
</TextHeaderWrapper>
|
|
61
|
-
</>
|
|
62
|
-
);
|
|
63
|
-
};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import styled from "styled-components";
|
|
2
|
-
import { BmGrey50 } from "../colors";
|
|
3
|
-
|
|
4
|
-
export const BmReportsBody = styled.div`
|
|
5
|
-
background: ${BmGrey50};
|
|
6
|
-
border-radius: 0.21875rem;
|
|
7
|
-
justify-content: flex-start;
|
|
8
|
-
margin-top: 1rem;
|
|
9
|
-
display: flex;
|
|
10
|
-
flex-direction: column;
|
|
11
|
-
`;
|
|
12
|
-
|
|
13
|
-
export const BmOverviewCards = styled.div`
|
|
14
|
-
display: flex;
|
|
15
|
-
justify-content: space-between;
|
|
16
|
-
flex-direction: flex-start;
|
|
17
|
-
align-items: center;
|
|
18
|
-
margin-bottom: 1rem;
|
|
19
|
-
width: 100%;
|
|
20
|
-
`;
|
|
21
|
-
|
|
22
|
-
export const BmOverviewCharts = styled.div`
|
|
23
|
-
display: flex;
|
|
24
|
-
justify-content: space-between;
|
|
25
|
-
flex-direction: flex-start;
|
|
26
|
-
align-items: center;
|
|
27
|
-
margin-bottom: 1rem;
|
|
28
|
-
width: 100%;
|
|
29
|
-
`;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import styled from "styled-components";
|
|
2
|
-
import { BmPrimaryBlack, BmPrimaryWhite } from "../colors";
|
|
3
|
-
import { BmButtonDropDown } from "../dropdownButton";
|
|
4
|
-
|
|
5
|
-
export const BmReportsHeader = styled.div`
|
|
6
|
-
display: flex;
|
|
7
|
-
flex-direction: row;
|
|
8
|
-
justify-content: space-between;
|
|
9
|
-
align-items: center;
|
|
10
|
-
margin-bottom: 1rem;
|
|
11
|
-
`;
|
|
12
|
-
|
|
13
|
-
export const BmReportsTitle = styled.h1`
|
|
14
|
-
color: ${BmPrimaryBlack};
|
|
15
|
-
`;
|
|
16
|
-
|
|
17
|
-
export const BmReportsButtons = styled(BmButtonDropDown)`
|
|
18
|
-
background: ${BmPrimaryWhite};
|
|
19
|
-
`;
|