beem-component 1.2.3 → 1.2.4

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.
@@ -0,0 +1,42 @@
1
+ $breakpoints: ( xs: 0, sm: 480px, md: 720px, lg: 960px, xl: 1200px, xxl: 1400px);
2
+ @mixin xs {
3
+ @media (min-width: map-get($breakpoints, 'xs')) {
4
+ @content;
5
+ }
6
+ }
7
+
8
+ @mixin sm {
9
+ @media (min-width: map-get($breakpoints, 'sm')) {
10
+ @content;
11
+ }
12
+ }
13
+
14
+ @mixin md {
15
+ @media (min-width: map-get($breakpoints, 'md')) {
16
+ @content;
17
+ }
18
+ }
19
+
20
+ @mixin lg {
21
+ @media (min-width: map-get($breakpoints, 'lg')) {
22
+ @content;
23
+ }
24
+ }
25
+
26
+ @mixin xl {
27
+ @media (min-width: map-get($breakpoints, 'xl')) {
28
+ @content;
29
+ }
30
+ }
31
+
32
+ @mixin xxl {
33
+ @media (min-width: map-get($breakpoints, 'xxl')) {
34
+ @content;
35
+ }
36
+ }
37
+
38
+ @mixin breakpoint($bp: 0) {
39
+ @media (min-width: $bp) {
40
+ @content;
41
+ }
42
+ }
@@ -41,11 +41,9 @@ var BmChat = _styledComponents.default.div(_templateObject || (_templateObject =
41
41
  /* border: 0.071rem solid ${BmGrey400}; */
42
42
  );
43
43
 
44
- BmChat.Body = _styledComponents.default.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n padding: 0rem 1.5rem;\n flex-grow: 1;\n overflow: auto;\n"])));
44
+ BmChat.Body = _styledComponents.default.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column-reverse;\n padding: 0rem 1.5rem;\n flex-grow: 1;\n overflow: auto;\n height: 100%;\n"])));
45
45
 
46
- var Details = _styledComponents.default.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n display: flex;\n ", "\n justify-content: ", ";\n > *:not(:last-child) {\n margin-right: 1rem;\n margin-bottom: 0.5rem;\n }\n overflow-wrap: break-word !important;\n word-wrap: break-word !important;\n margin: 0rem;\n flex-grow: 1;\n"])), ""
47
- /* align-items: center; */
48
- , function (_ref) {
46
+ var Details = _styledComponents.default.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n display: flex;\n justify-content: ", ";\n > *:not(:last-child) {\n margin-right: 1rem;\n margin-bottom: 0.5rem;\n }\n overflow-wrap: break-word !important;\n word-wrap: break-word !important;\n margin: 0rem;\n flex-grow: 1;\n"])), function (_ref) {
49
47
  var state = _ref.state;
50
48
 
51
49
  if (state === "inbound") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "beem-component",
3
- "version": "1.2.3",
3
+ "version": "1.2.4",
4
4
  "private": false,
5
5
  "main": "dist/components/index.js",
6
6
  "scripts": {
@@ -73,4 +73,4 @@
73
73
  "@storybook/theming": "^6.4.9",
74
74
  "storybook-addon-jsx": "^7.3.14"
75
75
  }
76
- }
76
+ }
@@ -0,0 +1,42 @@
1
+ $breakpoints: ( xs: 0, sm: 480px, md: 720px, lg: 960px, xl: 1200px, xxl: 1400px);
2
+ @mixin xs {
3
+ @media (min-width: map-get($breakpoints, 'xs')) {
4
+ @content;
5
+ }
6
+ }
7
+
8
+ @mixin sm {
9
+ @media (min-width: map-get($breakpoints, 'sm')) {
10
+ @content;
11
+ }
12
+ }
13
+
14
+ @mixin md {
15
+ @media (min-width: map-get($breakpoints, 'md')) {
16
+ @content;
17
+ }
18
+ }
19
+
20
+ @mixin lg {
21
+ @media (min-width: map-get($breakpoints, 'lg')) {
22
+ @content;
23
+ }
24
+ }
25
+
26
+ @mixin xl {
27
+ @media (min-width: map-get($breakpoints, 'xl')) {
28
+ @content;
29
+ }
30
+ }
31
+
32
+ @mixin xxl {
33
+ @media (min-width: map-get($breakpoints, 'xxl')) {
34
+ @content;
35
+ }
36
+ }
37
+
38
+ @mixin breakpoint($bp: 0) {
39
+ @media (min-width: $bp) {
40
+ @content;
41
+ }
42
+ }
@@ -23,15 +23,15 @@ const BmChat = styled.div`
23
23
 
24
24
  BmChat.Body = styled.div`
25
25
  display: flex;
26
- flex-direction: column;
26
+ flex-direction: column-reverse;
27
27
  padding: 0rem 1.5rem;
28
28
  flex-grow: 1;
29
29
  overflow: auto;
30
+ height: 100%;
30
31
  `;
31
32
 
32
33
  const Details = styled.div`
33
34
  display: flex;
34
- ${"" /* align-items: center; */}
35
35
  justify-content: ${({ state }) => {
36
36
  if (state === "inbound") {
37
37
  return "flex-start";