beem-component 1.5.3 → 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.
Files changed (53) hide show
  1. package/dist/assets/fb.png +0 -0
  2. package/dist/assets/insta.png +0 -0
  3. package/dist/assets/wa.png +0 -0
  4. package/dist/components/ChatComponents/ChatBody/chatBody.js +1 -1
  5. package/dist/components/ChatComponents/ContactCards/contactCards.stories.js +1 -1
  6. package/dist/components/Lists/listBox.js +13 -3
  7. package/dist/components/Modals/modal.js +7 -6
  8. package/dist/components/Modals/modals.stories.js +24 -2
  9. package/dist/components/ProfileIcon/ProfileIcon.js +97 -0
  10. package/dist/components/ProfileIcon/profileIcon.stories.js +82 -0
  11. package/dist/components/ScrollBar/scrollBar.js +44 -0
  12. package/dist/components/examples/App.js +137 -0
  13. package/dist/components/examples/InfoAccordion.js +24 -0
  14. package/dist/components/examples/chatBodyExample.js +72 -0
  15. package/dist/components/examples/selectExample.js +77 -0
  16. package/dist/components/globalStyles.js +1 -1
  17. package/dist/components/text.js +15 -6
  18. package/package.json +3 -2
  19. package/src/App.js +26 -14
  20. package/src/lib/assets/fb.png +0 -0
  21. package/src/lib/assets/insta.png +0 -0
  22. package/src/lib/assets/wa.png +0 -0
  23. package/src/lib/components/ChatComponents/ChatBody/chatBody.js +1 -1
  24. package/src/lib/components/ChatComponents/ContactCards/contactCards.stories.js +1 -1
  25. package/src/lib/components/Lists/listBox.js +2 -1
  26. package/src/lib/components/Modals/modal.js +11 -3
  27. package/src/lib/components/Modals/modals.stories.js +25 -0
  28. package/src/lib/components/ProfileIcon/ProfileIcon.js +78 -0
  29. package/src/lib/components/ProfileIcon/profileIcon.stories.js +57 -0
  30. package/src/lib/components/ScrollBar/scrollBar.js +26 -0
  31. package/src/{Chat.js → lib/components/examples/App.js} +1 -2
  32. package/src/{InfoAccordion.js → lib/components/examples/InfoAccordion.js} +0 -0
  33. package/src/lib/components/examples/chatBodyExample.js +75 -0
  34. package/src/{App copy.js → lib/components/examples/selectExample.js} +0 -0
  35. package/src/lib/components/globalStyles.js +3 -1
  36. package/src/lib/components/text.js +16 -2
  37. package/dist/components/example.js +0 -47
  38. package/dist/components/sidebar.js +0 -32
  39. package/dist/components/tabs.js +0 -106
  40. package/dist/components/tags.js +0 -100
  41. package/dist/images/azam.png +0 -0
  42. package/dist/images/azam1.png +0 -0
  43. package/src/ChatHeader.js +0 -22
  44. package/src/CustomerInfo.js +0 -46
  45. package/src/MainChat.js +0 -41
  46. package/src/SideBar.js +0 -81
  47. package/src/lib/components/example.js +0 -30
  48. package/src/lib/components/sidebar.js +0 -33
  49. package/src/lib/components/tabs.js +0 -123
  50. package/src/lib/components/tags.js +0 -101
  51. package/src/lib/images/azam.png +0 -0
  52. package/src/lib/images/azam1.png +0 -0
  53. package/src/list.scss +0 -4
@@ -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
- };
Binary file
Binary file
package/src/list.scss DELETED
@@ -1,4 +0,0 @@
1
- .listbox {
2
- position: relative;
3
- top: 1rem;
4
- }