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.
- package/.babelrc +17 -0
- package/.eslintrc +62 -0
- package/.prettierrc +6 -0
- package/dist/assets/fb.png +0 -0
- package/dist/assets/insta.png +0 -0
- package/dist/assets/wa.png +0 -0
- package/dist/components/Accordion/Accordion.js +31 -64
- package/dist/components/Accordion/Accordion.stories.js +29 -29
- package/dist/components/Avatars/avatars.js +31 -46
- package/dist/components/Avatars/avatars.stories.js +18 -18
- package/dist/components/BannerCard/bannerCard.stories.js +14 -14
- package/dist/components/BannerCard/bannerCards.js +30 -48
- package/dist/components/Buttons/Stories/basicbutton.stories.js +24 -24
- package/dist/components/Buttons/Stories/buttonAlertIcons.stories.js +17 -17
- package/dist/components/Buttons/Stories/buttonIconsOnly.stories.js +17 -17
- package/dist/components/Buttons/buttonAlertIcons.js +28 -44
- package/dist/components/Buttons/buttonDropdown copy.js +15 -18
- package/dist/components/Buttons/buttonDropdown.js +2 -2
- package/dist/components/Buttons/buttonIconsOnly.js +35 -49
- package/dist/components/Buttons/buttons.js +75 -86
- package/dist/components/Cards/cards.js +15 -11
- package/dist/components/Cards/cards.stories.js +8 -8
- package/dist/components/ChatComponents/ChatBody/chatBody.js +80 -69
- package/dist/components/ChatComponents/ChatBody/chatBody.stories.js +6 -6
- package/dist/components/ChatComponents/ChatBody/sessionDetails.js +9 -16
- package/dist/components/ChatComponents/ChatHeader/chatHeader.js +5 -7
- package/dist/components/ChatComponents/ChatHeader/chatHeader.stories.js +3 -3
- package/dist/components/ChatComponents/ColorPicker/colorPicker.js +5 -7
- package/dist/components/ChatComponents/ColorPicker/colorPicker.stories.js +7 -3
- package/dist/components/ChatComponents/ContactCards/contactCards.js +15 -12
- package/dist/components/ChatComponents/ContactCards/contactCards.stories.js +4 -4
- package/dist/components/ChatComponents/FormAccordion/FormAccordion.js +14 -10
- package/dist/components/ChatComponents/FormAccordion/FormAccordion.stories.js +9 -5
- package/dist/components/ChatComponents/InfoTab/infoTab.js +11 -9
- package/dist/components/ChatComponents/InfoTab/infoTab.stories.js +6 -6
- package/dist/components/ChatComponents/LabelAccordion/LabelAccordion.js +5 -7
- package/dist/components/ChatComponents/LabelAccordion/LabelAccordion.stories.js +12 -7
- package/dist/components/ChatComponents/NoteAccordion/NoteAccordion.js +11 -9
- package/dist/components/ChatComponents/NoteAccordion/NoteAccordion.stories.js +15 -13
- package/dist/components/Chats/chat.js +41 -32
- package/dist/components/Chats/chatInput.js +18 -14
- package/dist/components/Chats/chatwrapper.js +20 -12
- package/dist/components/Checkbox/checkboxToggler.js +61 -0
- package/dist/components/Checkbox/checkboxToggler.stories.js +81 -0
- package/dist/components/Lists/listBox.js +14 -30
- package/dist/components/Lists/listBox.stories.js +12 -23
- package/dist/components/Lists/listHeader.stories.js +13 -13
- package/dist/components/Lists/listheader.js +12 -27
- package/dist/components/Lists/rowLabels.js +19 -30
- package/dist/components/Lists/rowLabels.stories.js +22 -25
- package/dist/components/Loader/loader.js +17 -31
- package/dist/components/Loader/loader.stories.js +13 -13
- package/dist/components/MainWrapper/index.js +5 -7
- package/dist/components/MessageCounter/MessageCounter.stories.js +14 -14
- package/dist/components/MessageCounter/messageCounter.js +16 -18
- package/dist/components/Modals/modal.js +38 -57
- package/dist/components/Modals/modals.stories.js +38 -29
- package/dist/components/NoteBar/noteBar.js +28 -57
- package/dist/components/NoteBar/noteBar.stories.js +17 -17
- package/dist/components/PerformanceIndicator/performaceIndicator.stories.js +15 -15
- package/dist/components/PerformanceIndicator/performanceIndicator.js +21 -34
- package/dist/components/Pills/pills.js +24 -56
- package/dist/components/Pills/pills.stories.js +21 -23
- package/dist/components/ProfileIcon/ProfileIcon.js +96 -0
- package/dist/components/ProfileIcon/profileIcon.stories.js +82 -0
- package/dist/components/ProgressBar/progressbar.js +15 -17
- package/dist/components/ProgressBar/progressbar.stories.js +8 -10
- package/dist/components/ProgressRing/progressRing.js +38 -54
- package/dist/components/ProgressRing/progressRing.stories.js +16 -16
- package/dist/components/RouteLink/link.js +8 -10
- package/dist/components/RouteLink/link.stories.js +3 -3
- package/dist/components/ScrollBar/scrollBar.js +19 -17
- package/dist/components/SuperFluid/Content/index.js +5 -7
- package/dist/components/SuperFluid/ContentTitle.js/index.js +14 -10
- package/dist/components/SuperFluid/SegmentCard/index.js +22 -13
- package/dist/components/Tabs/tabs.js +16 -35
- package/dist/components/Tabs/tabs.stories.js +19 -19
- package/dist/components/Tags/tags.js +33 -65
- package/dist/components/Tags/tags.stories.js +18 -18
- package/dist/components/breakpoints.js +3 -3
- package/dist/components/chatHeader.js +17 -11
- package/dist/components/checkbox.js +27 -26
- package/dist/components/colors.js +32 -30
- package/dist/components/contacts.js +39 -25
- package/dist/components/dropdown.js +29 -35
- package/dist/components/dropdownButton.js +50 -53
- package/dist/components/dropdownItems.js +26 -19
- package/dist/components/examples/App.js +137 -0
- package/dist/components/examples/InfoAccordion.js +23 -0
- package/dist/components/examples/chatBodyExample.js +68 -0
- package/dist/components/examples/selectExample.js +63 -0
- package/dist/components/globalStyles.js +1 -5
- package/dist/components/iconStyles.js +56 -58
- package/dist/components/index.js +35 -23
- package/dist/components/input.js +33 -36
- package/dist/components/logo.js +9 -16
- package/dist/components/navbar.js +24 -13
- package/dist/components/search.js +20 -21
- package/dist/components/text.js +15 -6
- package/dist/components/typography.js +14 -14
- package/dist/components/wrapper.js +8 -8
- package/package.json +54 -30
- package/src/App.js +31 -175
- package/src/index.js +6 -8
- package/src/lib/assets/fb.png +0 -0
- package/src/lib/assets/insta.png +0 -0
- package/src/lib/assets/wa.png +0 -0
- package/src/lib/components/Accordion/Accordion.js +32 -14
- package/src/lib/components/Accordion/Accordion.stories.js +31 -31
- package/src/lib/components/Avatars/avatars.js +33 -28
- package/src/lib/components/Avatars/avatars.stories.js +18 -18
- package/src/lib/components/BannerCard/bannerCard.stories.js +16 -17
- package/src/lib/components/BannerCard/bannerCards.js +18 -18
- package/src/lib/components/Buttons/Stories/basicbutton.stories.js +29 -29
- package/src/lib/components/Buttons/Stories/buttonAlertIcons.stories.js +17 -17
- package/src/lib/components/Buttons/Stories/buttonIconsOnly.stories.js +24 -24
- package/src/lib/components/Buttons/buttonAlertIcons.js +22 -25
- package/src/lib/components/Buttons/buttonIconsOnly.js +32 -28
- package/src/lib/components/Buttons/buttons.js +70 -73
- package/src/lib/components/Cards/cards.js +2 -3
- package/src/lib/components/Cards/cards.stories.js +10 -10
- package/src/lib/components/ChatComponents/ChatBody/chatBody.js +46 -45
- package/src/lib/components/ChatComponents/ChatBody/chatBody.stories.js +34 -28
- package/src/lib/components/ChatComponents/ChatBody/sessionDetails.js +2 -2
- package/src/lib/components/ChatComponents/ChatHeader/chatHeader.js +2 -2
- package/src/lib/components/ChatComponents/ChatHeader/chatHeader.stories.js +4 -4
- package/src/lib/components/ChatComponents/ColorPicker/colorPicker.js +2 -2
- package/src/lib/components/ChatComponents/ColorPicker/colorPicker.stories.js +4 -3
- package/src/lib/components/ChatComponents/ContactCards/contactCards.js +7 -5
- package/src/lib/components/ChatComponents/ContactCards/contactCards.stories.js +6 -6
- package/src/lib/components/ChatComponents/FormAccordion/FormAccordion.js +3 -3
- package/src/lib/components/ChatComponents/FormAccordion/FormAccordion.stories.js +4 -3
- package/src/lib/components/ChatComponents/InfoTab/infoTab.js +2 -2
- package/src/lib/components/ChatComponents/InfoTab/infoTab.stories.js +7 -7
- package/src/lib/components/ChatComponents/LabelAccordion/LabelAccordion.stories.js +5 -3
- package/src/lib/components/ChatComponents/NoteAccordion/NoteAccordion.js +2 -2
- package/src/lib/components/ChatComponents/NoteAccordion/NoteAccordion.stories.js +6 -5
- package/src/lib/components/Checkbox/checkboxToggler.js +89 -0
- package/src/lib/components/Checkbox/checkboxToggler.stories.js +48 -0
- package/src/lib/components/Lists/listBox.js +7 -7
- package/src/lib/components/Lists/listBox.stories.js +8 -11
- package/src/lib/components/Lists/listHeader.stories.js +13 -13
- package/src/lib/components/Lists/listheader.js +7 -7
- package/src/lib/components/Lists/rowLabels.js +6 -6
- package/src/lib/components/Lists/rowLabels.stories.js +18 -18
- package/src/lib/components/Loader/loader.js +13 -13
- package/src/lib/components/Loader/loader.stories.js +14 -14
- package/src/lib/components/MainWrapper/index.js +2 -2
- package/src/lib/components/MessageCounter/MessageCounter.stories.js +14 -14
- package/src/lib/components/MessageCounter/messageCounter.js +16 -16
- package/src/lib/components/Modals/modal.js +33 -23
- package/src/lib/components/Modals/modals.stories.js +34 -9
- package/src/lib/components/NoteBar/noteBar.js +20 -20
- package/src/lib/components/NoteBar/noteBar.stories.js +18 -17
- package/src/lib/components/PerformanceIndicator/performaceIndicator.stories.js +15 -15
- package/src/lib/components/PerformanceIndicator/performanceIndicator.js +11 -10
- package/src/lib/components/Pills/pills.js +16 -16
- package/src/lib/components/Pills/pills.stories.js +22 -23
- package/src/lib/components/ProfileIcon/ProfileIcon.js +76 -0
- package/src/lib/components/ProfileIcon/profileIcon.stories.js +57 -0
- package/src/lib/components/ProgressBar/progressbar.js +4 -5
- package/src/lib/components/ProgressBar/progressbar.stories.js +8 -9
- package/src/lib/components/ProgressRing/progressRing.js +25 -24
- package/src/lib/components/ProgressRing/progressRing.stories.js +18 -18
- package/src/lib/components/RouteLink/link.js +10 -8
- package/src/lib/components/RouteLink/link.stories.js +4 -4
- package/src/lib/components/ScrollBar/scrollBar.js +15 -14
- package/src/lib/components/SuperFluid/Content/index.js +2 -2
- package/src/lib/components/SuperFluid/ContentTitle.js/index.js +2 -2
- package/src/lib/components/SuperFluid/SegmentCard/index.js +9 -8
- package/src/lib/components/Tabs/tabs.js +11 -11
- package/src/lib/components/Tabs/tabs.stories.js +20 -20
- package/src/lib/components/Tags/tags.js +26 -24
- package/src/lib/components/Tags/tags.stories.js +19 -19
- package/src/lib/components/breakpoints.js +3 -3
- package/src/lib/components/checkbox.js +7 -6
- package/src/lib/components/colors.js +30 -28
- package/src/lib/components/dropdownButton.js +36 -39
- package/src/lib/components/examples/App.js +181 -0
- package/src/{InfoAccordion.js → lib/components/examples/InfoAccordion.js} +1 -1
- package/src/{App1.js → lib/components/examples/chatBodyExample.js} +2 -2
- package/src/{App copy.js → lib/components/examples/selectExample.js} +0 -0
- package/src/lib/components/globalStyles.js +4 -5
- package/src/lib/components/iconStyles.js +45 -48
- package/src/lib/components/index.js +48 -45
- package/src/lib/components/input.js +20 -20
- package/src/lib/components/text.js +17 -3
- package/src/lib/components/typography.js +14 -14
- package/src/reportWebVitals.js +1 -1
- package/babel.config.js +0 -12
- package/dist/components/checkboxToggler.js +0 -50
- package/dist/components/example.js +0 -47
- package/dist/components/sidebar.js +0 -32
- package/dist/components/tabs.js +0 -106
- package/dist/components/tags.js +0 -100
- package/dist/images/azam.png +0 -0
- package/dist/images/azam1.png +0 -0
- package/src/ChatHeader.js +0 -22
- package/src/CustomerInfo.js +0 -46
- package/src/MainChat.js +0 -41
- package/src/SideBar.js +0 -81
- package/src/lib/components/checkboxToggler.js +0 -19
- package/src/lib/components/example.js +0 -30
- package/src/lib/components/sidebar.js +0 -33
- package/src/lib/components/tabs.js +0 -123
- package/src/lib/components/tags.js +0 -101
- package/src/lib/images/azam.png +0 -0
- package/src/lib/images/azam1.png +0 -0
- package/src/list.scss +0 -4
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
/* eslint-disable import/no-anonymous-default-export */
|
|
2
|
-
import { Favorite } from
|
|
3
|
-
import React from
|
|
4
|
-
import { BmTag } from
|
|
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:
|
|
8
|
+
title: 'components/Tags',
|
|
9
9
|
argTypes: {
|
|
10
10
|
color: {
|
|
11
|
-
control: { type:
|
|
11
|
+
control: { type: 'text' },
|
|
12
12
|
description:
|
|
13
|
-
|
|
13
|
+
'Color of the Icons and Text, will work only if variant is not present',
|
|
14
14
|
},
|
|
15
15
|
closeButton: {
|
|
16
|
-
control: { type:
|
|
17
|
-
description:
|
|
16
|
+
control: { type: 'boolean' },
|
|
17
|
+
description: 'Will display (x) - Optional',
|
|
18
18
|
},
|
|
19
19
|
onHide: {
|
|
20
20
|
description:
|
|
21
|
-
|
|
21
|
+
'Handles closing of tags, will only work if closeButton is present (Optional)',
|
|
22
22
|
},
|
|
23
23
|
size: {
|
|
24
|
-
options: [
|
|
25
|
-
control: { type:
|
|
26
|
-
description:
|
|
27
|
-
defaultValue: { summary:
|
|
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: [
|
|
31
|
-
control: { type:
|
|
32
|
-
description:
|
|
33
|
-
defaultValue: { summary:
|
|
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:
|
|
45
|
+
variant: 'success',
|
|
46
46
|
};
|
|
47
47
|
|
|
48
48
|
export const TagsWithCloseButton = () => {
|
|
49
49
|
return (
|
|
50
|
-
<BmTag variant="light" closeButton onHide={() =>
|
|
50
|
+
<BmTag variant="light" closeButton onHide={() => alert('Hide Tag')}>
|
|
51
51
|
<p>TAG</p>
|
|
52
52
|
</BmTag>
|
|
53
53
|
);
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
/* eslint-disable jsx-a11y/label-has-associated-control */
|
|
1
2
|
import React from 'react';
|
|
2
|
-
import styled from
|
|
3
|
-
import { BmGrey400, BmPrimaryBlack, BmPrimaryBlue, BmGrey100 } from
|
|
3
|
+
import styled from 'styled-components';
|
|
4
|
+
import { BmGrey400, BmPrimaryBlack, BmPrimaryBlue, BmGrey100 } from './colors';
|
|
4
5
|
|
|
5
|
-
const HiddenCheckbox = styled.input.attrs({ type:
|
|
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
|
|
40
|
+
if (disabled && checked) return 'none';
|
|
40
41
|
return `${BmGrey400}`;
|
|
41
42
|
}};
|
|
42
43
|
${Icon} {
|
|
43
|
-
visibility: ${(props) => (props.checked ?
|
|
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 =
|
|
2
|
+
export const BmPrimaryBlue = '#33B1BA';
|
|
3
3
|
|
|
4
|
-
export const BmPrimaryGold =
|
|
4
|
+
export const BmPrimaryGold = '#F3A929';
|
|
5
5
|
|
|
6
|
-
export const BmPrimaryWhite =
|
|
6
|
+
export const BmPrimaryWhite = '#FFFFFF';
|
|
7
7
|
|
|
8
|
-
export const BmPrimaryBlack =
|
|
8
|
+
export const BmPrimaryBlack = '#000000';
|
|
9
9
|
|
|
10
10
|
// Secondary Colors
|
|
11
|
-
export const BmSecondaryCyan =
|
|
11
|
+
export const BmSecondaryCyan = '#56C5CE';
|
|
12
12
|
|
|
13
|
-
export const BmSecondaryGrey =
|
|
13
|
+
export const BmSecondaryGrey = '#575757';
|
|
14
14
|
|
|
15
|
-
export const BmSecondaryRed =
|
|
15
|
+
export const BmSecondaryRed = '#F62E48';
|
|
16
16
|
|
|
17
|
-
export const BmSecondaryGreen =
|
|
17
|
+
export const BmSecondaryGreen = '#8CC63F';
|
|
18
18
|
|
|
19
|
-
export const BmSecondaryYellow =
|
|
19
|
+
export const BmSecondaryYellow = '#FFB822';
|
|
20
20
|
|
|
21
|
-
export const BmSecondaryPurple =
|
|
21
|
+
export const BmSecondaryPurple = '#7A3FC6';
|
|
22
22
|
|
|
23
|
-
export const BmSecondaryDarkGreen =
|
|
23
|
+
export const BmSecondaryDarkGreen = '#04844B';
|
|
24
24
|
|
|
25
|
-
export const BmSecondaryGreen8 =
|
|
25
|
+
export const BmSecondaryGreen8 = 'rgba(4, 132, 75, 0.8)';
|
|
26
26
|
|
|
27
|
-
export const BmSecondaryRed8 =
|
|
27
|
+
export const BmSecondaryRed8 = 'rgba(246, 46, 72, 0.8)';
|
|
28
28
|
|
|
29
|
-
export const BmSecondaryRed15 =
|
|
29
|
+
export const BmSecondaryRed15 = 'rgba(246, 46, 72, 0.15)';
|
|
30
30
|
|
|
31
|
-
export const BmSecondaryGreen15 =
|
|
31
|
+
export const BmSecondaryGreen15 = 'rgba(4, 132, 75, 0.15)';
|
|
32
32
|
|
|
33
|
-
export const BmSecondaryGold15 =
|
|
33
|
+
export const BmSecondaryGold15 = 'rgba(243, 169, 41, 0.15)';
|
|
34
34
|
|
|
35
35
|
// #33B1BA 12%
|
|
36
|
-
export const BmSecondaryBlue12=
|
|
36
|
+
export const BmSecondaryBlue12 = 'rgba(51, 177, 186, 0.12)';
|
|
37
37
|
|
|
38
38
|
// Background Colors
|
|
39
|
-
export const BmBgLightBlue =
|
|
39
|
+
export const BmBgLightBlue = '#E1EAFC';
|
|
40
40
|
|
|
41
|
-
export const BmBgGreyBlue =
|
|
41
|
+
export const BmBgGreyBlue = '#F5F6FA';
|
|
42
42
|
|
|
43
|
-
export const BmBgGrey45 =
|
|
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 =
|
|
48
|
+
export const BmGrey600 = '#545454';
|
|
47
49
|
|
|
48
|
-
export const BmGrey500 =
|
|
50
|
+
export const BmGrey500 = '#757575';
|
|
49
51
|
|
|
50
|
-
export const BmGrey400 =
|
|
52
|
+
export const BmGrey400 = '#AFAFAF';
|
|
51
53
|
|
|
52
|
-
export const BmGrey200 =
|
|
54
|
+
export const BmGrey200 = '#E2E2E2';
|
|
53
55
|
|
|
54
|
-
export const BmGrey100 =
|
|
56
|
+
export const BmGrey100 = '#EEEEEE';
|
|
55
57
|
|
|
56
|
-
export const BmGrey50 =
|
|
58
|
+
export const BmGrey50 = '#F6F6F6';
|
|
57
59
|
|
|
58
60
|
// Pictogram Colors
|
|
59
|
-
export const BmPictogramBlue =
|
|
61
|
+
export const BmPictogramBlue = '#CCEAEB';
|
|
60
62
|
|
|
61
|
-
export const BmPictogramGold =
|
|
63
|
+
export const BmPictogramGold = '#F8D8A2';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { KeyboardArrowDown } from
|
|
3
|
-
import styled from
|
|
4
|
-
import { BmBtnIcon } from
|
|
5
|
-
import { BmButton } from
|
|
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
|
|
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 ===
|
|
25
|
-
if (variant ===
|
|
26
|
-
if (variant ===
|
|
27
|
-
if (variant ===
|
|
28
|
-
if (variant ===
|
|
29
|
-
if (variant ===
|
|
30
|
-
return `${color
|
|
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 ===
|
|
42
|
-
if (variant ===
|
|
43
|
-
if (variant ===
|
|
44
|
-
if (variant ===
|
|
45
|
-
if (variant ===
|
|
46
|
-
if (variant ===
|
|
47
|
-
return `${color
|
|
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 ===
|
|
58
|
-
if (variant ===
|
|
59
|
-
if (variant ===
|
|
60
|
-
if (variant ===
|
|
61
|
-
if (variant ===
|
|
62
|
-
if (variant ===
|
|
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,7 +1,7 @@
|
|
|
1
1
|
import React, { useState } from "react";
|
|
2
|
-
import { GlobalStyle, BmChat } from "
|
|
2
|
+
import { GlobalStyle, BmChat } from "..";
|
|
3
3
|
import "./list.scss";
|
|
4
|
-
import { ScrollbarWrapper } from "
|
|
4
|
+
import { ScrollbarWrapper } from "../ScrollBar/scrollBar";
|
|
5
5
|
|
|
6
6
|
const App = () => {
|
|
7
7
|
return (
|
|
File without changes
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { createGlobalStyle } from
|
|
2
|
-
import { h1, h2, h3, h4, p, input, a } from
|
|
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
|
`;
|