beem-component 2.1.6 → 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.
- package/dist/components/Alert/Alert.js +2 -2
- package/dist/components/Alert/Alert.stories.js +1 -1
- package/dist/components/BmCustomCardTitle/CustomCardTitle.js +17 -17
- package/dist/components/InfoPanel/InfoPanel.js +1 -1
- package/dist/components/globalStyles.js +1 -1
- package/dist/components/index.js +7 -0
- package/dist/components/text.js +11 -10
- package/dist/components/typography.js +3 -2
- package/package.json +1 -1
- package/public/index.html +1 -0
- package/src/App.js +13 -7
- package/src/fonts/Inter-Black.woff2 +0 -0
- package/src/fonts/Inter-Bold.woff2 +0 -0
- package/src/fonts/Inter-ExtraBold.woff2 +0 -0
- package/src/fonts/Inter-ExtraLight.woff2 +0 -0
- package/src/fonts/Inter-Light.woff2 +0 -0
- package/src/fonts/Inter-Medium.woff2 +0 -0
- package/src/fonts/Inter-Regular.woff2 +0 -0
- package/src/fonts/Inter-SemiBold.woff2 +0 -0
- package/src/fonts/Inter-Thin.woff2 +0 -0
- package/src/fonts/Inter-VariableFont_opsz,wght.ttf +0 -0
- package/src/fonts/InterDisplay-Black.woff2 +0 -0
- package/src/fonts/InterDisplay-Bold.woff2 +0 -0
- package/src/fonts/InterDisplay-ExtraBold.woff2 +0 -0
- package/src/fonts/InterDisplay-ExtraLight.woff2 +0 -0
- package/src/fonts/InterDisplay-Light.woff2 +0 -0
- package/src/fonts/InterDisplay-Medium.woff2 +0 -0
- package/src/fonts/InterDisplay-SemiBold.woff2 +0 -0
- package/src/fonts/InterDisplay-Thin.woff2 +0 -0
- package/src/fonts.scss +6 -0
- package/src/lib/components/Alert/Alert.js +2 -2
- package/src/lib/components/Alert/Alert.stories.jsx +5 -5
- package/src/lib/components/BmCustomCardTitle/CustomCardTitle.js +1 -1
- package/src/lib/components/InfoPanel/InfoPanel.js +1 -1
- package/src/lib/components/globalStyles.js +2 -1
- package/src/lib/components/index.js +2 -0
- package/src/lib/components/text.js +17 -11
- package/src/lib/components/typography.js +1 -0
|
@@ -65,7 +65,7 @@ const Title = _styledComponents.default.h3.withConfig({
|
|
|
65
65
|
const Description = _styledComponents.default.p.withConfig({
|
|
66
66
|
displayName: "Alert__Description"
|
|
67
67
|
})(["color:#6b7280;font-size:0.75rem;@media (min-width:640px){font-size:0.875rem;}"]);
|
|
68
|
-
const
|
|
68
|
+
const BmAlertBox = _ref6 => {
|
|
69
69
|
let {
|
|
70
70
|
icon: Icon,
|
|
71
71
|
themeColor = '#EF4444',
|
|
@@ -80,4 +80,4 @@ const AlertBox = _ref6 => {
|
|
|
80
80
|
themeColor: themeColor
|
|
81
81
|
}, title), /*#__PURE__*/_react.default.createElement(Description, null, description))));
|
|
82
82
|
};
|
|
83
|
-
var _default = exports.default =
|
|
83
|
+
var _default = exports.default = BmAlertBox;
|
|
@@ -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:", ";
|
|
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
|
-
|
|
65
|
+
variant
|
|
66
66
|
} = _ref7;
|
|
67
|
-
return
|
|
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' ? '
|
|
77
|
+
return variant === 'confirmation' ? '0.75rem' : '1rem';
|
|
78
78
|
}, _ref0 => {
|
|
79
79
|
let {
|
|
80
80
|
variant
|
|
81
81
|
} = _ref0;
|
|
82
|
-
return variant === 'confirmation' ? '
|
|
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' ? '
|
|
92
|
+
return variant === 'confirmation' ? '1rem' : '1.25rem';
|
|
93
93
|
}, _ref11 => {
|
|
94
94
|
let {
|
|
95
95
|
variant
|
|
96
96
|
} = _ref11;
|
|
97
|
-
return variant === 'confirmation' ? '
|
|
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
|
-
|
|
105
|
+
themeColor
|
|
106
106
|
} = _ref13;
|
|
107
|
-
return
|
|
107
|
+
return themeColor;
|
|
108
108
|
}, _ref14 => {
|
|
109
109
|
let {
|
|
110
|
-
|
|
110
|
+
variant
|
|
111
111
|
} = _ref14;
|
|
112
|
-
return
|
|
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:", ";}"],
|
|
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.
|
|
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);
|
package/dist/components/index.js
CHANGED
|
@@ -9,6 +9,12 @@ Object.defineProperty(exports, "BmAccordion", {
|
|
|
9
9
|
return _Accordion.default;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
|
+
Object.defineProperty(exports, "BmAlertBox", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () {
|
|
15
|
+
return _Alert.default;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
12
18
|
Object.defineProperty(exports, "BmAlertIcon", {
|
|
13
19
|
enumerable: true,
|
|
14
20
|
get: function () {
|
|
@@ -472,5 +478,6 @@ var _Card = require("./Card_v2/Card");
|
|
|
472
478
|
var _InfoPanel = _interopRequireDefault(require("./InfoPanel/InfoPanel"));
|
|
473
479
|
var _BmSelector = _interopRequireDefault(require("./BmSelector/BmSelector"));
|
|
474
480
|
var _CustomCardTitle = _interopRequireDefault(require("./BmCustomCardTitle/CustomCardTitle"));
|
|
481
|
+
var _Alert = _interopRequireDefault(require("./Alert/Alert"));
|
|
475
482
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
476
483
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
package/dist/components/text.js
CHANGED
|
@@ -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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
28
|
-
const input = exports.input = " font-family: ".concat(_typography.
|
|
29
|
-
const a = exports.a = "font-family: ".concat(_typography.
|
|
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
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
|
|
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
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
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
|
|
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
|
}
|
|
@@ -85,7 +85,7 @@ const Description = styled.p`
|
|
|
85
85
|
}
|
|
86
86
|
`;
|
|
87
87
|
|
|
88
|
-
const
|
|
88
|
+
const BmAlertBox = ({
|
|
89
89
|
icon: Icon,
|
|
90
90
|
themeColor = '#EF4444',
|
|
91
91
|
title,
|
|
@@ -108,4 +108,4 @@ const AlertBox = ({
|
|
|
108
108
|
);
|
|
109
109
|
};
|
|
110
110
|
|
|
111
|
-
export default
|
|
111
|
+
export default BmAlertBox;
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import AccessTimeIcon from '@mui/icons-material/AccessTime';
|
|
3
3
|
import PersonIcon from '@mui/icons-material/Person';
|
|
4
4
|
import CalendarTodayOutlinedIcon from '@mui/icons-material/CalendarTodayOutlined';
|
|
5
|
-
import
|
|
5
|
+
import BmAlertBox from './Alert';
|
|
6
6
|
|
|
7
7
|
const iconOptions = {
|
|
8
8
|
AccessTimeIcon,
|
|
@@ -14,7 +14,7 @@ const iconOptions = {
|
|
|
14
14
|
const Template = (args) => {
|
|
15
15
|
return (
|
|
16
16
|
<div style={{ maxWidth: 500, margin: '2rem auto' }}>
|
|
17
|
-
<
|
|
17
|
+
<BmAlertBox {...args} />
|
|
18
18
|
</div>
|
|
19
19
|
);
|
|
20
20
|
};
|
|
@@ -49,14 +49,14 @@ Default.argTypes = {
|
|
|
49
49
|
};
|
|
50
50
|
|
|
51
51
|
export default {
|
|
52
|
-
title: 'Components/
|
|
53
|
-
component:
|
|
52
|
+
title: 'Components/BmAlertBox',
|
|
53
|
+
component: BmAlertBox,
|
|
54
54
|
argTypes: Default.argTypes,
|
|
55
55
|
};
|
|
56
56
|
|
|
57
57
|
export const Example = () => {
|
|
58
58
|
return (
|
|
59
|
-
<
|
|
59
|
+
<BmAlertBox
|
|
60
60
|
icon={AccessTimeIcon}
|
|
61
61
|
themeColor="#DC2626"
|
|
62
62
|
title="Payment Error"
|
|
@@ -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
|
|
|
@@ -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
|
`;
|
|
@@ -82,6 +82,7 @@ import { BmCardv2 } from './Card_v2/Card';
|
|
|
82
82
|
import BmInfoPanel from './InfoPanel/InfoPanel';
|
|
83
83
|
import BmSelector from './BmSelector/BmSelector';
|
|
84
84
|
import BmCustomCardTitle from './BmCustomCardTitle/CustomCardTitle';
|
|
85
|
+
import BmAlertBox from './Alert/Alert';
|
|
85
86
|
|
|
86
87
|
export {
|
|
87
88
|
BmAccordion,
|
|
@@ -161,4 +162,5 @@ export {
|
|
|
161
162
|
BmProgressIndicator,
|
|
162
163
|
BmSelector,
|
|
163
164
|
BmCustomCardTitle,
|
|
165
|
+
BmAlertBox,
|
|
164
166
|
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { Inter } from './typography';
|
|
3
2
|
// 32px
|
|
4
|
-
export const h1 = `font-family: ${
|
|
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: ${
|
|
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: ${
|
|
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: ${
|
|
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: ${
|
|
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: ${
|
|
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: ${
|
|
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
|
|
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
|
|
72
|
+
export const span = `font-family: ${Inter};
|
|
67
73
|
font-style: normal;
|
|
68
74
|
font-weight: normal;
|
|
69
75
|
font-size: 1rem;
|