beem-component 1.5.6 → 1.5.7
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/fb.png +0 -0
- package/dist/assets/insta.png +0 -0
- package/dist/assets/wa.png +0 -0
- package/dist/components/ChatComponents/ContactCards/contactCards.stories.js +1 -1
- package/dist/components/Modals/modal.js +7 -6
- package/dist/components/Modals/modals.stories.js +24 -2
- package/dist/components/ProfileIcon/ProfileIcon.js +97 -0
- package/dist/components/ProfileIcon/profileIcon.stories.js +82 -0
- package/dist/components/examples/App.js +137 -0
- package/dist/components/examples/InfoAccordion.js +24 -0
- package/dist/components/examples/chatBodyExample.js +72 -0
- package/dist/components/examples/selectExample.js +77 -0
- package/dist/components/globalStyles.js +1 -1
- package/dist/components/text.js +15 -6
- package/package.json +3 -2
- package/src/App.js +28 -175
- 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/ChatComponents/ContactCards/contactCards.stories.js +1 -1
- package/src/lib/components/Modals/modal.js +11 -3
- package/src/lib/components/Modals/modals.stories.js +25 -0
- package/src/lib/components/ProfileIcon/ProfileIcon.js +78 -0
- package/src/lib/components/ProfileIcon/profileIcon.stories.js +57 -0
- package/src/lib/components/examples/App.js +181 -0
- package/src/{InfoAccordion.js → lib/components/examples/InfoAccordion.js} +0 -0
- 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 +3 -4
- package/src/lib/components/text.js +16 -2
- 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/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,123 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import styled from "styled-components";
|
|
3
|
-
import {
|
|
4
|
-
BmGrey400,
|
|
5
|
-
BmPrimaryBlack,
|
|
6
|
-
BmPrimaryBlue,
|
|
7
|
-
BmPrimaryWhite,
|
|
8
|
-
} from "./colors";
|
|
9
|
-
import { BmButtonIcon } from "./iconStyles";
|
|
10
|
-
|
|
11
|
-
export const BmTabItem = styled.div`
|
|
12
|
-
display: flex;
|
|
13
|
-
flex-direction: row;
|
|
14
|
-
align-items: center;
|
|
15
|
-
justify-content: space-around;
|
|
16
|
-
padding: 0rem !important;
|
|
17
|
-
flex-wrap: wrap;
|
|
18
|
-
`;
|
|
19
|
-
|
|
20
|
-
export const BmTabWrapper = styled.button`
|
|
21
|
-
display: flex;
|
|
22
|
-
flex-direction: row;
|
|
23
|
-
justify-content: center;
|
|
24
|
-
align-items: center;
|
|
25
|
-
padding: 0.714rem 1.714rem;
|
|
26
|
-
background: ${BmPrimaryWhite};
|
|
27
|
-
box-shadow: inset 0rem -0.214rem 0rem ${({ state }) => {
|
|
28
|
-
if (state === "active") return `${BmPrimaryBlue}`;
|
|
29
|
-
if (state === "active") return `${BmPrimaryBlue}`;
|
|
30
|
-
if (state === "disabled") return "transparent";
|
|
31
|
-
return "transparent";
|
|
32
|
-
}};
|
|
33
|
-
&:hover {
|
|
34
|
-
box-shadow: inset 0rem -0.214rem 0rem ${({ state }) => {
|
|
35
|
-
if (state === "disabled") return "transparent";
|
|
36
|
-
return `${BmGrey400}`;
|
|
37
|
-
}};
|
|
38
|
-
}
|
|
39
|
-
border: none;
|
|
40
|
-
`;
|
|
41
|
-
|
|
42
|
-
export const BmTabText = styled.h3`
|
|
43
|
-
letter-spacing: -0.02em;
|
|
44
|
-
color: ${({ state, color }) => {
|
|
45
|
-
if (state === "disabled") return `${BmGrey400}`;
|
|
46
|
-
if (color && state !== "disabled") return color;
|
|
47
|
-
return `${BmPrimaryBlack}`;
|
|
48
|
-
}};
|
|
49
|
-
flex: none;
|
|
50
|
-
order: 0;
|
|
51
|
-
flex-grow: 0;
|
|
52
|
-
`;
|
|
53
|
-
|
|
54
|
-
export const BmLeftTabIcon = styled.div`
|
|
55
|
-
padding-right: 0.714rem !important;
|
|
56
|
-
`;
|
|
57
|
-
|
|
58
|
-
export const BmRightTabIcon = styled.div`
|
|
59
|
-
padding-left: 0.714rem !important;
|
|
60
|
-
`;
|
|
61
|
-
|
|
62
|
-
export const BmTab = (props) => {
|
|
63
|
-
const {
|
|
64
|
-
variant,
|
|
65
|
-
size,
|
|
66
|
-
disabled,
|
|
67
|
-
children,
|
|
68
|
-
leadingIcon,
|
|
69
|
-
trailingIcon,
|
|
70
|
-
color,
|
|
71
|
-
state,
|
|
72
|
-
...rest
|
|
73
|
-
} = props;
|
|
74
|
-
const IconColor =
|
|
75
|
-
state === "disabled"
|
|
76
|
-
? `${BmGrey400}`
|
|
77
|
-
: color && state !== "disabled"
|
|
78
|
-
? color
|
|
79
|
-
: `${BmPrimaryBlack}`;
|
|
80
|
-
return (
|
|
81
|
-
<BmTabWrapper
|
|
82
|
-
size={size}
|
|
83
|
-
variant={variant}
|
|
84
|
-
disabled={state === "disabled" ? true : false}
|
|
85
|
-
state={state}
|
|
86
|
-
{...rest}
|
|
87
|
-
>
|
|
88
|
-
{leadingIcon && (
|
|
89
|
-
<BmLeftTabIcon>
|
|
90
|
-
<BmButtonIcon
|
|
91
|
-
icon={leadingIcon}
|
|
92
|
-
disabled={state === "disabled" ? true : false}
|
|
93
|
-
variant={variant}
|
|
94
|
-
size={size}
|
|
95
|
-
state={state}
|
|
96
|
-
color={IconColor}
|
|
97
|
-
/>
|
|
98
|
-
</BmLeftTabIcon>
|
|
99
|
-
)}
|
|
100
|
-
<BmTabText
|
|
101
|
-
disabled={state === "disabled" ? true : false}
|
|
102
|
-
variant={variant}
|
|
103
|
-
size={size}
|
|
104
|
-
state={state}
|
|
105
|
-
color={color}
|
|
106
|
-
>
|
|
107
|
-
{children}
|
|
108
|
-
</BmTabText>
|
|
109
|
-
{trailingIcon && (
|
|
110
|
-
<BmRightTabIcon>
|
|
111
|
-
<BmButtonIcon
|
|
112
|
-
icon={trailingIcon}
|
|
113
|
-
disabled={state === "disabled" ? true : false}
|
|
114
|
-
state={state}
|
|
115
|
-
variant={variant}
|
|
116
|
-
size={size}
|
|
117
|
-
color={IconColor}
|
|
118
|
-
/>
|
|
119
|
-
</BmRightTabIcon>
|
|
120
|
-
)}
|
|
121
|
-
</BmTabWrapper>
|
|
122
|
-
);
|
|
123
|
-
};
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import styled from "styled-components";
|
|
3
|
-
import {
|
|
4
|
-
BmPrimaryWhite,
|
|
5
|
-
BmSecondaryDarkGreen,
|
|
6
|
-
BmSecondaryRed,
|
|
7
|
-
BmPrimaryBlack,
|
|
8
|
-
BmGrey100,
|
|
9
|
-
BmGrey400,
|
|
10
|
-
BmPrimaryGold,
|
|
11
|
-
} from "../components/colors";
|
|
12
|
-
import { BmTagIcon } from "../components/iconStyles";
|
|
13
|
-
|
|
14
|
-
const BeemTag = styled.button`
|
|
15
|
-
display: flex;
|
|
16
|
-
flex-direction: row;
|
|
17
|
-
justify-content: center;
|
|
18
|
-
align-items: center;
|
|
19
|
-
border-radius: 0.25rem;
|
|
20
|
-
height: ${({ size }) => {
|
|
21
|
-
if (size === "small") return "1.286rem";
|
|
22
|
-
if (size === "default") return "1.714rem";
|
|
23
|
-
return "1.714rem";
|
|
24
|
-
}};
|
|
25
|
-
padding: ${({ size }) => {
|
|
26
|
-
if (size === "small") return "0.071rem 0.571rem";
|
|
27
|
-
if (size === "default") return "0.214rem 0.571rem";
|
|
28
|
-
return "0.214rem 0.571rem";
|
|
29
|
-
}};
|
|
30
|
-
background: ${({ variant }) => {
|
|
31
|
-
if (variant === "neutral") return `${BmGrey100}`;
|
|
32
|
-
if (variant === "success") return `${BmSecondaryDarkGreen}`;
|
|
33
|
-
if (variant === "warning") return `${BmPrimaryGold}`;
|
|
34
|
-
if (variant === "error") return `${BmSecondaryRed}`;
|
|
35
|
-
if (variant === "light") return `${BmPrimaryWhite}`;
|
|
36
|
-
if (variant === undefined) return `${BmGrey100}`;
|
|
37
|
-
return variant;
|
|
38
|
-
}};
|
|
39
|
-
border: 0.071rem solid
|
|
40
|
-
${({ variant }) => {
|
|
41
|
-
if (variant === "neutral") return `${BmGrey100}`;
|
|
42
|
-
if (variant === "success") return `${BmSecondaryDarkGreen}`;
|
|
43
|
-
if (variant === "warning") return `${BmPrimaryGold}`;
|
|
44
|
-
if (variant === "error") return `${BmSecondaryRed}`;
|
|
45
|
-
if (variant === "light") return `${BmGrey400}`;
|
|
46
|
-
return `${BmGrey100}`;
|
|
47
|
-
}};
|
|
48
|
-
border-radius: 0.25rem;
|
|
49
|
-
`;
|
|
50
|
-
|
|
51
|
-
const TagText = styled.p`
|
|
52
|
-
color: ${({ variant }) => {
|
|
53
|
-
if (variant === "light" || variant === "neutral")
|
|
54
|
-
return `${BmPrimaryBlack}`;
|
|
55
|
-
return `${BmPrimaryWhite}`;
|
|
56
|
-
}};
|
|
57
|
-
text-transform: uppercase;
|
|
58
|
-
`;
|
|
59
|
-
|
|
60
|
-
export const BmLeftIcon = styled(BmTagIcon)`
|
|
61
|
-
margin-right: 0.643rem;
|
|
62
|
-
`;
|
|
63
|
-
|
|
64
|
-
export const BmRightIcon = styled(BmTagIcon)`
|
|
65
|
-
margin-left: 0.643rem;
|
|
66
|
-
`;
|
|
67
|
-
|
|
68
|
-
export const BmTag = (props) => {
|
|
69
|
-
const {
|
|
70
|
-
variant,
|
|
71
|
-
size,
|
|
72
|
-
disabled,
|
|
73
|
-
children,
|
|
74
|
-
leadingIcon,
|
|
75
|
-
trailingIcon,
|
|
76
|
-
...rest
|
|
77
|
-
} = props;
|
|
78
|
-
return (
|
|
79
|
-
<BeemTag size={size} variant={variant} disabled={disabled} {...rest}>
|
|
80
|
-
{leadingIcon && (
|
|
81
|
-
<BmLeftIcon
|
|
82
|
-
disabled={disabled}
|
|
83
|
-
icon={leadingIcon}
|
|
84
|
-
variant={variant}
|
|
85
|
-
size={size}
|
|
86
|
-
/>
|
|
87
|
-
)}
|
|
88
|
-
<TagText disabled={disabled} variant={variant} size={size}>
|
|
89
|
-
{children}
|
|
90
|
-
</TagText>
|
|
91
|
-
{trailingIcon && (
|
|
92
|
-
<BmRightIcon
|
|
93
|
-
icon={trailingIcon}
|
|
94
|
-
disabled={disabled}
|
|
95
|
-
variant={variant}
|
|
96
|
-
size={size}
|
|
97
|
-
/>
|
|
98
|
-
)}
|
|
99
|
-
</BeemTag>
|
|
100
|
-
);
|
|
101
|
-
};
|
package/src/lib/images/azam.png
DELETED
|
Binary file
|
package/src/lib/images/azam1.png
DELETED
|
Binary file
|
package/src/list.scss
DELETED