beem-component 1.0.7 → 1.1.1
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/dist/assets/css/sidebar.css +68 -0
- package/dist/components/Buttons/buttonIconsOnly.js +1 -1
- package/dist/components/Buttons/buttons.js +1 -1
- package/dist/components/Cards/cards.js +1 -1
- package/dist/components/ChatBody/chatBody.js +6 -4
- package/dist/components/ChatHeader/chatHeader.js +4 -3
- package/dist/components/Chats/chat.js +2 -2
- package/dist/components/Chats/chatInput.js +1 -1
- package/dist/components/ContactCards/contactCards.js +1 -1
- package/dist/components/InfoTab/infoTab.js +4 -3
- package/dist/components/Lists/listBox.js +1 -1
- package/dist/components/Tags/tags.js +116 -0
- package/dist/components/Tags/tags.stories.js +62 -0
- package/dist/components/dropdown.js +1 -1
- package/dist/components/dropdownItems.js +1 -1
- package/dist/components/index.js +8 -0
- package/dist/components/input.js +1 -1
- package/dist/components/search.js +1 -1
- package/dist/components/tags.js +3 -3
- package/package.json +1 -1
- package/src/App.js +25 -81
- package/src/Chat.js +120 -0
- package/src/ChatHeader.js +19 -0
- package/src/CustomerInfo.js +46 -0
- package/src/SideBar.js +80 -0
- package/src/lib/assets/css/sidebar.css +68 -0
- package/src/lib/components/Buttons/buttonIconsOnly.js +1 -1
- package/src/lib/components/Buttons/buttons.js +1 -1
- package/src/lib/components/Cards/cards.js +1 -1
- package/src/lib/components/ChatBody/chatBody.js +5 -1
- package/src/lib/components/ChatBody/chatBody.stories.js +27 -27
- package/src/lib/components/ChatHeader/chatHeader.js +2 -2
- package/src/lib/components/Chats/chat.js +2 -2
- package/src/lib/components/Chats/chatInput.js +1 -1
- package/src/lib/components/ContactCards/contactCards.js +1 -0
- package/src/lib/components/InfoTab/infoTab.js +2 -2
- package/src/lib/components/Lists/listBox.js +1 -1
- package/src/lib/components/Tags/tags.js +109 -0
- package/src/lib/components/Tags/tags.stories.js +37 -0
- package/src/lib/components/dropdown.js +1 -1
- package/src/lib/components/dropdownItems.js +1 -1
- package/src/lib/components/index.js +3 -1
- package/src/lib/components/input.js +1 -1
- package/src/lib/components/search.js +1 -1
- package/src/lib/components/tags.js +4 -4
- package/storybook-static/main.3c8d8027.iframe.bundle.js +1 -1
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/* eslint-disable import/no-anonymous-default-export */
|
|
2
|
+
import { Favorite, Home, KeyboardArrowDown } from "@material-ui/icons";
|
|
3
|
+
import React from "react";
|
|
4
|
+
import { BmTag } from "./tags";
|
|
5
|
+
|
|
6
|
+
export default {
|
|
7
|
+
component: BmTag,
|
|
8
|
+
title: "components/Tags",
|
|
9
|
+
argTypes: {
|
|
10
|
+
color: {
|
|
11
|
+
control: { type: "text" },
|
|
12
|
+
description: "Color of the Icons and Text, will work only if variant is not present",
|
|
13
|
+
},
|
|
14
|
+
size: {
|
|
15
|
+
options: ["xsmall", "small", "medium", "large", "xlarge"],
|
|
16
|
+
control: { type: "select" },
|
|
17
|
+
description: "Size of the icons",
|
|
18
|
+
defaultValue: { summary: "small" },
|
|
19
|
+
},
|
|
20
|
+
variant: {
|
|
21
|
+
options: ["success", "warning", "danger", "light", "neutral", undefined],
|
|
22
|
+
control: { type: "select" },
|
|
23
|
+
description: "Type of tag",
|
|
24
|
+
defaultValue: { summary: "neutral" },
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
const MainTab = (args) => <BmTag {...args} />;
|
|
30
|
+
|
|
31
|
+
export const Tabs = MainTab.bind({});
|
|
32
|
+
Tabs.args = {
|
|
33
|
+
children: <p>Tabs</p>,
|
|
34
|
+
leadingIcon: <Favorite />,
|
|
35
|
+
trailingIcon: <Favorite />,
|
|
36
|
+
variant: 'success',
|
|
37
|
+
};
|
|
@@ -13,7 +13,7 @@ const BmDropdownWrapper = styled.div`
|
|
|
13
13
|
padding: 0.5rem 1.143rem;
|
|
14
14
|
background: ${BmPrimaryWhite};
|
|
15
15
|
border: 0.071rem solid ${BmGrey400};
|
|
16
|
-
border-radius: 0.
|
|
16
|
+
border-radius: 0.25rem;
|
|
17
17
|
${'' /* box-shadow: inset 0.071rem 0rem 0rem #afafaf; */}
|
|
18
18
|
`;
|
|
19
19
|
|
|
@@ -17,7 +17,7 @@ export const BmButtonDropdownItem = styled.div`
|
|
|
17
17
|
background: ${BmPrimaryWhite};
|
|
18
18
|
border: 0.071rem solid ${BmGrey400};
|
|
19
19
|
box-shadow: 0rem 0.286rem 0.286rem rgba(0, 0, 0, 0.25);
|
|
20
|
-
border-radius: 0.
|
|
20
|
+
border-radius: 0.25rem;
|
|
21
21
|
z-index: 99999;
|
|
22
22
|
position: absolute;
|
|
23
23
|
cursor: pointer;
|
|
@@ -17,6 +17,7 @@ import { BmTab } from "./Tabs/tabs";
|
|
|
17
17
|
import * as BmColors from "./colors";
|
|
18
18
|
import { BmLoader } from "./Loader/loader";
|
|
19
19
|
import { BmCheckbox } from "./checkbox";
|
|
20
|
+
import { BmTag } from "../components/Tags/tags";
|
|
20
21
|
import {
|
|
21
22
|
BmTagIcon,
|
|
22
23
|
BmAvatarIcon,
|
|
@@ -55,11 +56,12 @@ export {
|
|
|
55
56
|
BmTab,
|
|
56
57
|
GlobalStyle,
|
|
57
58
|
MainWrapper,
|
|
59
|
+
BmLoader,
|
|
58
60
|
// Old components to be refactored
|
|
59
61
|
BmButtonDropDown,
|
|
60
62
|
BmCheckbox,
|
|
61
63
|
BmInput,
|
|
62
|
-
|
|
64
|
+
BmTag,
|
|
63
65
|
//Icons (Remove unused ones and check on the sizing for custom icons)
|
|
64
66
|
BmAvatarIcon,
|
|
65
67
|
BmIcons,
|
|
@@ -31,7 +31,7 @@ const BmSearchWrapper = styled.div`
|
|
|
31
31
|
background: ${BmPrimaryWhite};
|
|
32
32
|
border: 0.071rem solid ${BmGrey400};
|
|
33
33
|
box-sizing: border-box;
|
|
34
|
-
border-radius: 0.
|
|
34
|
+
border-radius: 0.25rem;
|
|
35
35
|
${"" /* height: 2.929rem; */}
|
|
36
36
|
padding: ${({ dropdown }) => {
|
|
37
37
|
if (dropdown === "yes") {
|
|
@@ -8,15 +8,15 @@ import {
|
|
|
8
8
|
BmGrey100,
|
|
9
9
|
BmGrey400,
|
|
10
10
|
BmPrimaryGold,
|
|
11
|
-
} from "
|
|
12
|
-
import { BmTagIcon } from "
|
|
11
|
+
} from "../components/colors";
|
|
12
|
+
import { BmTagIcon } from "../components/iconStyles";
|
|
13
13
|
|
|
14
14
|
const BeemTag = styled.button`
|
|
15
15
|
display: flex;
|
|
16
16
|
flex-direction: row;
|
|
17
17
|
justify-content: center;
|
|
18
18
|
align-items: center;
|
|
19
|
-
border-radius: 0.
|
|
19
|
+
border-radius: 0.25rem;
|
|
20
20
|
height: ${({ size }) => {
|
|
21
21
|
if (size === "small") return "1.286rem";
|
|
22
22
|
if (size === "default") return "1.714rem";
|
|
@@ -45,7 +45,7 @@ const BeemTag = styled.button`
|
|
|
45
45
|
if (variant === "light") return `${BmGrey400}`;
|
|
46
46
|
return `${BmGrey100}`;
|
|
47
47
|
}};
|
|
48
|
-
border-radius: 0.
|
|
48
|
+
border-radius: 0.25rem;
|
|
49
49
|
`;
|
|
50
50
|
|
|
51
51
|
const TagText = styled.p`
|