beem-component 2.1.7 → 2.1.8

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 (32) hide show
  1. package/dist/components/BmCustomCardTitle/CustomCardTitle.js +17 -17
  2. package/dist/components/InfoPanel/InfoPanel.js +1 -1
  3. package/dist/components/globalStyles.js +1 -1
  4. package/dist/components/text.js +11 -10
  5. package/dist/components/typography.js +3 -2
  6. package/package.json +1 -1
  7. package/public/index.html +1 -0
  8. package/src/App.js +13 -7
  9. package/src/fonts/Inter-Black.woff2 +0 -0
  10. package/src/fonts/Inter-Bold.woff2 +0 -0
  11. package/src/fonts/Inter-ExtraBold.woff2 +0 -0
  12. package/src/fonts/Inter-ExtraLight.woff2 +0 -0
  13. package/src/fonts/Inter-Light.woff2 +0 -0
  14. package/src/fonts/Inter-Medium.woff2 +0 -0
  15. package/src/fonts/Inter-Regular.woff2 +0 -0
  16. package/src/fonts/Inter-SemiBold.woff2 +0 -0
  17. package/src/fonts/Inter-Thin.woff2 +0 -0
  18. package/src/fonts/Inter-VariableFont_opsz,wght.ttf +0 -0
  19. package/src/fonts/InterDisplay-Black.woff2 +0 -0
  20. package/src/fonts/InterDisplay-Bold.woff2 +0 -0
  21. package/src/fonts/InterDisplay-ExtraBold.woff2 +0 -0
  22. package/src/fonts/InterDisplay-ExtraLight.woff2 +0 -0
  23. package/src/fonts/InterDisplay-Light.woff2 +0 -0
  24. package/src/fonts/InterDisplay-Medium.woff2 +0 -0
  25. package/src/fonts/InterDisplay-SemiBold.woff2 +0 -0
  26. package/src/fonts/InterDisplay-Thin.woff2 +0 -0
  27. package/src/fonts.scss +6 -0
  28. package/src/lib/components/BmCustomCardTitle/CustomCardTitle.js +1 -1
  29. package/src/lib/components/InfoPanel/InfoPanel.js +1 -1
  30. package/src/lib/components/globalStyles.js +2 -1
  31. package/src/lib/components/text.js +17 -11
  32. package/src/lib/components/typography.js +1 -0
@@ -55,16 +55,16 @@ const CardContainer = _styledComponents.default.div.withConfig({
55
55
  })(["background-color:", ";padding:1rem;border-radius:0.75rem;@media (min-width:640px){padding:1.5rem;}"], hexToRgba('#ffffff', 0.7));
56
56
  const IconWrapper = _styledComponents.default.div.withConfig({
57
57
  displayName: "CustomCardTitle__IconWrapper"
58
- })(["background-color:", ";border:2px solid ", ";height:", ";width:", ";border-radius:9999px;display:flex;align-items:center;justify-content:center;margin:0 auto ", ";@media (min-width:640px){height:", ";width:", ";margin-bottom:", ";}svg{height:", ";width:", ";color:", ";@media (min-width:640px){height:", ";width:", ";}}"], _ref6 => {
58
+ })(["background-color:", ";height:", ";width:", ";border-radius:9999px;display:flex;align-items:center;justify-content:center;margin:0 auto ", ";@media (min-width:640px){height:", ";width:", ";margin-bottom:", ";}svg{height:", ";width:", ";color:", ";@media (min-width:640px){height:", ";width:", ";}}"], _ref6 => {
59
59
  let {
60
60
  themeColor
61
61
  } = _ref6;
62
62
  return hexToRgba(themeColor, 0.1);
63
63
  }, _ref7 => {
64
64
  let {
65
- themeColor
65
+ variant
66
66
  } = _ref7;
67
- return themeColor;
67
+ return variant === 'confirmation' ? '3.5rem' : '4rem';
68
68
  }, _ref8 => {
69
69
  let {
70
70
  variant
@@ -74,12 +74,12 @@ const IconWrapper = _styledComponents.default.div.withConfig({
74
74
  let {
75
75
  variant
76
76
  } = _ref9;
77
- return variant === 'confirmation' ? '3.5rem' : '4rem';
77
+ return variant === 'confirmation' ? '0.75rem' : '1rem';
78
78
  }, _ref0 => {
79
79
  let {
80
80
  variant
81
81
  } = _ref0;
82
- return variant === 'confirmation' ? '0.75rem' : '1rem';
82
+ return variant === 'confirmation' ? '4rem' : '5rem';
83
83
  }, _ref1 => {
84
84
  let {
85
85
  variant
@@ -89,12 +89,12 @@ const IconWrapper = _styledComponents.default.div.withConfig({
89
89
  let {
90
90
  variant
91
91
  } = _ref10;
92
- return variant === 'confirmation' ? '4rem' : '5rem';
92
+ return variant === 'confirmation' ? '1rem' : '1.25rem';
93
93
  }, _ref11 => {
94
94
  let {
95
95
  variant
96
96
  } = _ref11;
97
- return variant === 'confirmation' ? '1rem' : '1.25rem';
97
+ return variant === 'confirmation' ? '1.75rem' : '2rem';
98
98
  }, _ref12 => {
99
99
  let {
100
100
  variant
@@ -102,28 +102,28 @@ const IconWrapper = _styledComponents.default.div.withConfig({
102
102
  return variant === 'confirmation' ? '1.75rem' : '2rem';
103
103
  }, _ref13 => {
104
104
  let {
105
- variant
105
+ themeColor
106
106
  } = _ref13;
107
- return variant === 'confirmation' ? '1.75rem' : '2rem';
107
+ return themeColor;
108
108
  }, _ref14 => {
109
109
  let {
110
- themeColor
110
+ variant
111
111
  } = _ref14;
112
- return themeColor;
112
+ return variant === 'confirmation' ? '2rem' : '2.5rem';
113
113
  }, _ref15 => {
114
114
  let {
115
115
  variant
116
116
  } = _ref15;
117
117
  return variant === 'confirmation' ? '2rem' : '2.5rem';
118
- }, _ref16 => {
119
- let {
120
- variant
121
- } = _ref16;
122
- return variant === 'confirmation' ? '2rem' : '2.5rem';
123
118
  });
124
119
  const Title = _styledComponents.default.h2.withConfig({
125
120
  displayName: "CustomCardTitle__Title"
126
- })(["text-align:center;font-size:1.125rem;margin-bottom:", ";@media (min-width:640px){font-size:1.25rem;margin-bottom:", ";}"], _ref17 => {
121
+ })(["text-align:center;font-size:1.125rem;color:", ";margin-bottom:", ";@media (min-width:640px){font-size:1.25rem;margin-bottom:", ";}"], _ref16 => {
122
+ let {
123
+ themeColor
124
+ } = _ref16;
125
+ return themeColor;
126
+ }, _ref17 => {
127
127
  let {
128
128
  variant
129
129
  } = _ref17;
@@ -63,7 +63,7 @@ const SummarySubtitle = _styledComponents.default.p.withConfig({
63
63
  });
64
64
  const SectionContainer = _styledComponents.default.div.withConfig({
65
65
  displayName: "InfoPanel__SectionContainer"
66
- })(["padding:0.75rem 1rem;display:flex;align-items:center;gap:0.5rem;", " @media (max-width:42.8571rem){padding:0.5rem 0.75rem;gap:0.25rem;}"], _ref5 => {
66
+ })(["padding:0.6rem 1rem;display:flex;align-items:center;gap:0.5rem;", " @media (max-width:42.8571rem){padding:0.5rem 0.75rem;gap:0.25rem;}"], _ref5 => {
67
67
  let {
68
68
  backgroundColor
69
69
  } = _ref5;
@@ -6,4 +6,4 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.GlobalStyle = void 0;
7
7
  var _styledComponents = require("styled-components");
8
8
  var _text = require("./text");
9
- const GlobalStyle = exports.GlobalStyle = (0, _styledComponents.createGlobalStyle)(["*{font-size:14px;cursor:pointer}h1{", "}h2{", "}h3{", "}h4{", "}h5{", "}h6{", "}p{", "}input{", "}a{", "}"], _text.h1, _text.h2, _text.h3, _text.h4, _text.h5, _text.h6, _text.p, _text.input, _text.a);
9
+ const GlobalStyle = exports.GlobalStyle = (0, _styledComponents.createGlobalStyle)(["*{font-size:14px;cursor:pointer}h1{", "}h2{", "}h3{", "}h4{", "}h5{", "}h6{", "}p{", "}input{", "}a{", "}span{", "}"], _text.h1, _text.h2, _text.h3, _text.h4, _text.h5, _text.h6, _text.p, _text.input, _text.a, _text.span);
@@ -3,27 +3,28 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.p = exports.input = exports.h6 = exports.h5 = exports.h4 = exports.h3 = exports.h2 = exports.h1 = exports.a = void 0;
6
+ exports.span = exports.p = exports.input = exports.h6 = exports.h5 = exports.h4 = exports.h3 = exports.h2 = exports.h1 = exports.a = void 0;
7
7
  var _typography = require("./typography");
8
8
  // 32px
9
- const h1 = exports.h1 = "font-family: ".concat(_typography.OpenSans, ";\nfont-style: normal;\nfont-weight: 500;\nfont-size: 2.286rem;\nletter-spacing: -0.02rem;\nmargin: 0rem;");
9
+ const h1 = exports.h1 = "font-family: ".concat(_typography.Inter, ";\nfont-style: normal;\nfont-weight: 500;\nfont-size: 2.286rem;\nletter-spacing: -0.02rem;\nmargin: 0rem;");
10
10
 
11
11
  // 24px
12
- const h2 = exports.h2 = "font-family: ".concat(_typography.OpenSans, ";\nfont-style: normal;\nfont-weight: 500;\nfont-size: 1.714rem;\nletter-spacing: -0.02em;\nmargin: 0rem;");
12
+ const h2 = exports.h2 = "font-family: ".concat(_typography.Inter, ";\nfont-style: normal;\nfont-weight: 500;\nfont-size: 1.714rem;\nletter-spacing: -0.02em;\nmargin: 0rem;");
13
13
 
14
14
  // 18px
15
- const h3 = exports.h3 = "font-family: ".concat(_typography.OpenSans, ";\nfont-style: normal;\nfont-weight: 500;\nfont-size: 1.286rem;\nletter-spacing: -0.02rem;\nmargin: 0rem;");
15
+ const h3 = exports.h3 = "font-family: ".concat(_typography.Inter, ";\nfont-style: normal;\nfont-weight: 500;\nfont-size: 1.286rem;\nletter-spacing: -0.02rem;\nmargin: 0rem;");
16
16
 
17
17
  // 16px
18
- const h4 = exports.h4 = " font-family: ".concat(_typography.OpenSans, ";\nfont-style: normal;\nfont-weight: 500;\nfont-size: 1.143rem;\nletter-spacing: -0.02rem;\nmargin: 0rem;");
18
+ const h4 = exports.h4 = " font-family: ".concat(_typography.Inter, ";\nfont-style: normal;\nfont-weight: 500;\nfont-size: 1.143rem;\nletter-spacing: -0.02rem;\nmargin: 0rem;");
19
19
 
20
20
  // 14px
21
- const h5 = exports.h5 = " font-family: ".concat(_typography.OpenSans, ";\nfont-style: normal;\nfont-weight: 500;\nfont-size: 1rem;\nletter-spacing: -0.02rem;\nmargin: 0rem;");
21
+ const h5 = exports.h5 = " font-family: ".concat(_typography.Inter, ";\nfont-style: normal;\nfont-weight: 500;\nfont-size: 1rem;\nletter-spacing: -0.02rem;\nmargin: 0rem;");
22
22
 
23
23
  // 12px
24
- const h6 = exports.h6 = " font-family: ".concat(_typography.OpenSans, ";\nfont-style: normal;\nfont-weight: 500;\nfont-size: .857rem;\nletter-spacing: -0.02rem;\nmargin: 0rem;");
24
+ const h6 = exports.h6 = " font-family: ".concat(_typography.Inter, ";\nfont-style: normal;\nfont-weight: 500;\nfont-size: .857rem;\nletter-spacing: -0.02rem;\nmargin: 0rem;");
25
25
 
26
26
  // 14px
27
- const p = exports.p = "font-family: ".concat(_typography.OpenSans, ";\nfont-style: normal;\nfont-weight: normal;\nfont-size: 1rem;\nletter-spacing: -0.02rem;\nmargin: 0rem;");
28
- const input = exports.input = " font-family: ".concat(_typography.OpenSans, ";\nfont-style: normal;\nfont-weight: normal;\nfont-size: 1rem;\nletter-spacing: -0.02rem;\nmargin: 0rem;");
29
- const a = exports.a = "font-family: ".concat(_typography.OpenSans, ";\nfont-style: normal;\nfont-weight: normal;\nfont-size: 1rem;\nletter-spacing: -0.02rem;\nmargin: 0rem;");
27
+ const p = exports.p = "font-family: ".concat(_typography.Inter, ";\nfont-style: normal;\nfont-weight: normal;\nfont-size: 1rem;\nletter-spacing: -0.02rem;\nmargin: 0rem;");
28
+ const input = exports.input = " font-family: ".concat(_typography.Inter, ";\nfont-style: normal;\nfont-weight: normal;\nfont-size: 1rem;\nletter-spacing: -0.02rem;\nmargin: 0rem;");
29
+ const a = exports.a = "font-family: ".concat(_typography.Inter, ";\nfont-style: normal;\nfont-weight: normal;\nfont-size: 1rem;\nletter-spacing: -0.02rem;\nmargin: 0rem;");
30
+ const span = exports.span = "font-family: ".concat(_typography.Inter, ";\nfont-style: normal;\nfont-weight: normal;\nfont-size: 1rem;\nletter-spacing: -0.02rem;\nmargin: 0rem;");
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.QuoteMark = exports.PullQuote = exports.PoppinsMedium = exports.Poppins = exports.P = exports.OpenSans = exports.Hero = exports.H6 = exports.H5 = exports.H4 = exports.H3 = exports.H2 = exports.H1 = exports.Captions = void 0;
6
+ exports.QuoteMark = exports.PullQuote = exports.PoppinsMedium = exports.Poppins = exports.P = exports.OpenSans = exports.Inter = exports.Hero = exports.H6 = exports.H5 = exports.H4 = exports.H3 = exports.H2 = exports.H1 = exports.Captions = void 0;
7
7
  const H1 = exports.H1 = '2.286rem';
8
8
  const H2 = exports.H2 = '1.714rem';
9
9
  const H3 = exports.H3 = '1.286rem';
@@ -17,4 +17,5 @@ const Captions = exports.Captions = '0.714rem';
17
17
  const Hero = exports.Hero = '1rem';
18
18
  const PoppinsMedium = exports.PoppinsMedium = 'PoppinsMedium';
19
19
  const Poppins = exports.Poppins = 'Poppins';
20
- const OpenSans = exports.OpenSans = 'OpenSans';
20
+ const OpenSans = exports.OpenSans = 'OpenSans';
21
+ const Inter = exports.Inter = 'Inter';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "beem-component",
3
- "version": "2.1.7",
3
+ "version": "2.1.8",
4
4
  "private": false,
5
5
  "main": "dist/components/index.js",
6
6
  "scripts": {
package/public/index.html CHANGED
@@ -4,6 +4,7 @@
4
4
  <head>
5
5
  <meta charset="utf-8" />
6
6
  <link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
7
+ <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400..700&display=swap" rel="stylesheet">
7
8
  <meta name="viewport" content="width=device-width, initial-scale=1" />
8
9
  <meta name="theme-color" content="#000000" />
9
10
  <meta name="description" content="Web site created using create-react-app" />
package/src/App.js CHANGED
@@ -1030,12 +1030,18 @@ const Chat = () => {
1030
1030
  icon={CalendarTodayOutlinedIcon}
1031
1031
  themeColor="#33B1BA"
1032
1032
  title="Book Your Medical Appointment"
1033
- description="Schedule a 30-minute consultation with our healthcare specialists"
1033
+ description="Schedule a 30-minute consultation with our healThcare specialists"
1034
1034
  variant="booking"
1035
1035
  withStripe
1036
1036
  />
1037
1037
  </div>
1038
1038
  <div>
1039
+ <BmInfoPanel.Section
1040
+ title="Appointment Details"
1041
+ icon={CalendarTodayOutlinedIcon}
1042
+ backgroundColor="#fcba03"
1043
+ iconColor="#fcba03"
1044
+ />
1039
1045
  <BmCustomCardTitle
1040
1046
  icon={CheckIcon}
1041
1047
  themeColor="#33B1BA"
@@ -1090,12 +1096,12 @@ const Chat = () => {
1090
1096
  themeColor="#33B1BA"
1091
1097
  />
1092
1098
  {/* <BmInfoPanel>
1093
- <BmInfoPanel.Section
1094
- title="Appointment Details"
1095
- icon={CalendarTodayIcon}
1096
- backgroundColor="#fcba03"
1097
- iconColor="#fcba03"
1098
- >
1099
+ // <BmInfoPanel.Section
1100
+ // title="Appointment Details"
1101
+ // icon={CalendarTodayIcon}
1102
+ // backgroundColor="#fcba03"
1103
+ // iconColor="#fcba03"
1104
+ // >
1099
1105
  <BmInfoPanel.SectionSummary
1100
1106
  iconColor="#33B1BA"
1101
1107
  textColor="#fcba03"
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
package/src/fonts.scss CHANGED
@@ -25,4 +25,10 @@
25
25
  @font-face {
26
26
  font-family: 'OpenSans';
27
27
  src: url('../src/fonts/OpenSans-Regular.ttf');
28
+ }
29
+
30
+
31
+ @font-face {
32
+ font-family: 'Inter';
33
+ src: url('../src/fonts/Inter-regular.woff2')format('woff2'),url('../src/fonts/Inter-Bold.woff2')format('woff2'),url('../src/fonts/Inter-ExtraBold.woff2')format('woff2'),url('../src/fonts/Inter-ExtraLight.woff2')format('woff2'),url('../src/fonts/Inter-medium.woff2')format('woff2'),url('../src/fonts/Inter-SemiBold.woff2')format('woff2');
28
34
  }
@@ -52,7 +52,6 @@ const CardContainer = styled.div`
52
52
 
53
53
  const IconWrapper = styled.div`
54
54
  background-color: ${({ themeColor }) => hexToRgba(themeColor, 0.1)};
55
- border: 2px solid ${({ themeColor }) => themeColor};
56
55
  height: ${({ variant }) => (variant === 'confirmation' ? '3.5rem' : '4rem')};
57
56
  width: ${({ variant }) => (variant === 'confirmation' ? '3.5rem' : '4rem')};
58
57
  border-radius: 9999px;
@@ -88,6 +87,7 @@ const IconWrapper = styled.div`
88
87
  const Title = styled.h2`
89
88
  text-align: center;
90
89
  font-size: 1.125rem;
90
+ color: ${({ themeColor }) => themeColor};
91
91
  margin-bottom: ${({ variant }) =>
92
92
  variant === 'confirmation' ? '0.25rem' : '0.5rem'};
93
93
 
@@ -81,7 +81,7 @@ const SummarySubtitle = styled.p`
81
81
  `;
82
82
 
83
83
  const SectionContainer = styled.div`
84
- padding: 0.75rem 1rem;
84
+ padding: 0.6rem 1rem;
85
85
  display: flex;
86
86
  align-items: center;
87
87
  gap: 0.5rem;
@@ -1,5 +1,5 @@
1
1
  import { createGlobalStyle } from 'styled-components';
2
- import { h1, h2, h3, h4, h5, h6, p, input, a } from './text';
2
+ import { h1, h2, h3, h4, h5, h6, p, input, a, span } from './text';
3
3
 
4
4
  export const GlobalStyle = createGlobalStyle`
5
5
  * { font-size: 14px; cursor: pointer}
@@ -12,4 +12,5 @@ export const GlobalStyle = createGlobalStyle`
12
12
  p { ${p} }
13
13
  input {${input}}
14
14
  a {${a}}
15
+ span {${span}}
15
16
  `;
@@ -1,7 +1,6 @@
1
- import { OpenSans } from './typography';
2
-
1
+ import { Inter } from './typography';
3
2
  // 32px
4
- export const h1 = `font-family: ${OpenSans};
3
+ export const h1 = `font-family: ${Inter};
5
4
  font-style: normal;
6
5
  font-weight: 500;
7
6
  font-size: 2.286rem;
@@ -9,7 +8,7 @@ letter-spacing: -0.02rem;
9
8
  margin: 0rem;`;
10
9
 
11
10
  // 24px
12
- export const h2 = `font-family: ${OpenSans};
11
+ export const h2 = `font-family: ${Inter};
13
12
  font-style: normal;
14
13
  font-weight: 500;
15
14
  font-size: 1.714rem;
@@ -17,7 +16,7 @@ letter-spacing: -0.02em;
17
16
  margin: 0rem;`;
18
17
 
19
18
  // 18px
20
- export const h3 = `font-family: ${OpenSans};
19
+ export const h3 = `font-family: ${Inter};
21
20
  font-style: normal;
22
21
  font-weight: 500;
23
22
  font-size: 1.286rem;
@@ -25,7 +24,7 @@ letter-spacing: -0.02rem;
25
24
  margin: 0rem;`;
26
25
 
27
26
  // 16px
28
- export const h4 = ` font-family: ${OpenSans};
27
+ export const h4 = ` font-family: ${Inter};
29
28
  font-style: normal;
30
29
  font-weight: 500;
31
30
  font-size: 1.143rem;
@@ -33,7 +32,7 @@ letter-spacing: -0.02rem;
33
32
  margin: 0rem;`;
34
33
 
35
34
  // 14px
36
- export const h5 = ` font-family: ${OpenSans};
35
+ export const h5 = ` font-family: ${Inter};
37
36
  font-style: normal;
38
37
  font-weight: 500;
39
38
  font-size: 1rem;
@@ -41,7 +40,7 @@ letter-spacing: -0.02rem;
41
40
  margin: 0rem;`;
42
41
 
43
42
  // 12px
44
- export const h6 = ` font-family: ${OpenSans};
43
+ export const h6 = ` font-family: ${Inter};
45
44
  font-style: normal;
46
45
  font-weight: 500;
47
46
  font-size: .857rem;
@@ -49,21 +48,28 @@ letter-spacing: -0.02rem;
49
48
  margin: 0rem;`;
50
49
 
51
50
  // 14px
52
- export const p = `font-family: ${OpenSans};
51
+ export const p = `font-family: ${Inter};
52
+ font-style: normal;
53
+ font-weight: normal;
54
+ font-size: 1rem;
55
+ letter-spacing: -0.02rem;
56
+ margin: 0rem;`;
57
+
58
+ export const input = ` font-family: ${Inter};
53
59
  font-style: normal;
54
60
  font-weight: normal;
55
61
  font-size: 1rem;
56
62
  letter-spacing: -0.02rem;
57
63
  margin: 0rem;`;
58
64
 
59
- export const input = ` font-family: ${OpenSans};
65
+ export const a = `font-family: ${Inter};
60
66
  font-style: normal;
61
67
  font-weight: normal;
62
68
  font-size: 1rem;
63
69
  letter-spacing: -0.02rem;
64
70
  margin: 0rem;`;
65
71
 
66
- export const a = `font-family: ${OpenSans};
72
+ export const span = `font-family: ${Inter};
67
73
  font-style: normal;
68
74
  font-weight: normal;
69
75
  font-size: 1rem;
@@ -14,3 +14,4 @@ export const Hero = '1rem';
14
14
  export const PoppinsMedium = 'PoppinsMedium';
15
15
  export const Poppins = 'Poppins';
16
16
  export const OpenSans = 'OpenSans';
17
+ export const Inter = 'Inter';