beem-component 2.0.3 → 2.0.5

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.
@@ -23,6 +23,7 @@ var ButtonText = _styledComponents.default.div.withConfig({
23
23
  if (size === 'large') return "".concat(_text.h3);
24
24
  if (size === 'medium') return "".concat(_text.h3);
25
25
  if (size === 'small') return "".concat(_text.h4);
26
+ if (size === 'xsmall') return "".concat(_text.h6);
26
27
  return "".concat(_text.h3);
27
28
  }, function (_ref2) {
28
29
  var variant = _ref2.variant,
@@ -41,16 +42,24 @@ var ButtonText = _styledComponents.default.div.withConfig({
41
42
  });
42
43
  var BeemButton = _styledComponents.default.button.withConfig({
43
44
  displayName: "buttons__BeemButton"
44
- })(["display:flex;flex-direction:row;justify-content:center;align-items:center;border-radius:0.25rem;padding:", ";background:", ";border:0.071rem solid ", ";&:hover{background:", ";border:0.071rem solid ", ";}&:active{background:", ";box-shadow:", ";border:0.071rem solid ", ";}&:hover ", "{color:", ";}&:active ", "{color:", ";}"], function (_ref3) {
45
+ })(["display:flex;flex-direction:row;justify-content:center;align-items:center;border-radius:0.2857rem;padding:", ";line-height:", ";background:", ";border:0.071rem solid ", ";&:hover{background:", ";border:0.071rem solid ", ";}&:active{background:", ";box-shadow:", ";border:0.071rem solid ", ";}&:hover ", "{color:", ";}&:active ", "{color:", ";}"], function (_ref3) {
45
46
  var size = _ref3.size;
46
47
  if (size === 'large') return '0.625rem 1.5rem';
47
48
  if (size === 'medium') return '0.4375rem 1rem';
48
- if (size === 'small') return '0.375rem 0.75rem';
49
- return '0.625rem 1.5rem';
49
+ if (size === 'small') return '.375rem .75rem';
50
+ if (size === 'xsmall') return '.4286rem .8571rem';
51
+ return '.625rem 1.5rem';
50
52
  }, function (_ref4) {
51
- var variant = _ref4.variant,
52
- disabled = _ref4.disabled,
53
- color = _ref4.color;
53
+ var size = _ref4.size;
54
+ // if (size === 'large') return '0.625rem 1.5rem';
55
+ // if (size === 'medium') return '0.4375rem 1rem';
56
+ // if (size === 'small') return '.375rem .75rem';
57
+ if (size === 'xsmall') return '1.4286rem';
58
+ return 'normal';
59
+ }, function (_ref5) {
60
+ var variant = _ref5.variant,
61
+ disabled = _ref5.disabled,
62
+ color = _ref5.color;
54
63
  if (!disabled) {
55
64
  if (variant === 'primary') return "".concat(color || _colors.BmPrimaryBlue);
56
65
  if (variant === 'secondary') return 'none';
@@ -64,10 +73,10 @@ var BeemButton = _styledComponents.default.button.withConfig({
64
73
  if (variant === 'secondary') return 'none';
65
74
  if (variant === 'tertiary') return 'none';
66
75
  return "".concat(_colors.BmGrey100);
67
- }, function (_ref5) {
68
- var variant = _ref5.variant,
69
- disabled = _ref5.disabled,
70
- color = _ref5.color;
76
+ }, function (_ref6) {
77
+ var variant = _ref6.variant,
78
+ disabled = _ref6.disabled,
79
+ color = _ref6.color;
71
80
  if (!disabled) {
72
81
  if (variant === 'primary') return "".concat(color || _colors.BmPrimaryBlue);
73
82
  if (variant === 'secondary') return "".concat(color || _colors.BmPrimaryBlue);
@@ -80,10 +89,10 @@ var BeemButton = _styledComponents.default.button.withConfig({
80
89
  if (variant === 'primary') return "".concat(_colors.BmGrey100);
81
90
  if (variant === 'secondary') return "".concat(_colors.BmGrey400);
82
91
  if (variant === 'tertiary') return 'transparent';
83
- }, function (_ref6) {
84
- var variant = _ref6.variant,
85
- disabled = _ref6.disabled,
86
- color = _ref6.color;
92
+ }, function (_ref7) {
93
+ var variant = _ref7.variant,
94
+ disabled = _ref7.disabled,
95
+ color = _ref7.color;
87
96
  if (!disabled) {
88
97
  if (variant === 'primary') return "".concat((0, _polished.darken)(0.1, color || _colors.BmPrimaryBlue));
89
98
  if (variant === 'neutral') return "".concat(_colors.BmGrey50);
@@ -93,18 +102,18 @@ var BeemButton = _styledComponents.default.button.withConfig({
93
102
  return "".concat((0, _polished.darken)(0.1, color || _colors.BmPrimaryBlue));
94
103
  }
95
104
  }
96
- }, function (_ref7) {
97
- var variant = _ref7.variant,
98
- disabled = _ref7.disabled,
99
- color = _ref7.color;
100
- if (!disabled) {
101
- if (variant === 'secondary') return "".concat((0, _polished.darken)(0.1, color || _colors.BmPrimaryBlue));
102
- }
103
- return 'none';
104
105
  }, function (_ref8) {
105
106
  var variant = _ref8.variant,
106
107
  disabled = _ref8.disabled,
107
108
  color = _ref8.color;
109
+ if (!disabled) {
110
+ if (variant === 'secondary') return "".concat((0, _polished.darken)(0.1, color || _colors.BmPrimaryBlue));
111
+ }
112
+ return 'none';
113
+ }, function (_ref9) {
114
+ var variant = _ref9.variant,
115
+ disabled = _ref9.disabled,
116
+ color = _ref9.color;
108
117
  if (!disabled) {
109
118
  if (variant === 'primary') return "".concat((0, _polished.darken)(0.1, color || _colors.BmPrimaryBlue));
110
119
  if (variant === 'neutral') return "".concat(_colors.BmGrey100);
@@ -114,30 +123,23 @@ var BeemButton = _styledComponents.default.button.withConfig({
114
123
  return "".concat((0, _polished.darken)(0.1, color || _colors.BmPrimaryBlue));
115
124
  }
116
125
  }
117
- }, function (_ref9) {
118
- var variant = _ref9.variant,
119
- disabled = _ref9.disabled;
126
+ }, function (_ref10) {
127
+ var variant = _ref10.variant,
128
+ disabled = _ref10.disabled;
120
129
  if (!disabled) {
121
130
  if (variant === 'primary' || variant === 'success' || variant === 'destructive') return 'inset 0rem 0.125rem 0.25rem rgba(0, 0, 0, 0.25)';
122
131
  if (!variant) {
123
132
  return 'inset 0rem 0.125rem 0.25rem rgba(0, 0, 0, 0.25)';
124
133
  }
125
134
  }
126
- }, function (_ref10) {
127
- var variant = _ref10.variant,
128
- disabled = _ref10.disabled,
129
- color = _ref10.color;
130
- if (!disabled) {
131
- if (variant === 'secondary') return "".concat((0, _polished.darken)(0.1, color || _colors.BmPrimaryBlue));
132
- }
133
- return 'none';
134
- }, ButtonText, function (_ref11) {
135
+ }, function (_ref11) {
135
136
  var variant = _ref11.variant,
136
137
  disabled = _ref11.disabled,
137
138
  color = _ref11.color;
138
139
  if (!disabled) {
139
- if (variant === 'secondary' || variant === 'tertiary') return "".concat((0, _polished.darken)(0.1, color || _colors.BmPrimaryBlue));
140
+ if (variant === 'secondary') return "".concat((0, _polished.darken)(0.1, color || _colors.BmPrimaryBlue));
140
141
  }
142
+ return 'none';
141
143
  }, ButtonText, function (_ref12) {
142
144
  var variant = _ref12.variant,
143
145
  disabled = _ref12.disabled,
@@ -145,6 +147,13 @@ var BeemButton = _styledComponents.default.button.withConfig({
145
147
  if (!disabled) {
146
148
  if (variant === 'secondary' || variant === 'tertiary') return "".concat((0, _polished.darken)(0.1, color || _colors.BmPrimaryBlue));
147
149
  }
150
+ }, ButtonText, function (_ref13) {
151
+ var variant = _ref13.variant,
152
+ disabled = _ref13.disabled,
153
+ color = _ref13.color;
154
+ if (!disabled) {
155
+ if (variant === 'secondary' || variant === 'tertiary') return "".concat((0, _polished.darken)(0.1, color || _colors.BmPrimaryBlue));
156
+ }
148
157
  });
149
158
  var BmLeftIcon = (0, _styledComponents.default)(_iconStyles.BmButtonIcon).withConfig({
150
159
  displayName: "buttons__BmLeftIcon"
@@ -59,7 +59,7 @@ var Messages = _styledComponents.default.div.withConfig({
59
59
  return "".concat(_colors.BmPrimaryWhite);
60
60
  }
61
61
  if (state) {
62
- if (state === 'inbound') return "".concat(_colors.BmPrimaryWhite);
62
+ if (state === 'inbound') return "#F9FAFB";
63
63
  if (state === 'outbound') return "".concat(_colors.BmPrimaryBlue);
64
64
  }
65
65
  return "".concat(_colors.BmPrimaryWhite);
@@ -77,8 +77,8 @@ var Messages = _styledComponents.default.div.withConfig({
77
77
  return '0rem';
78
78
  }
79
79
  if (state) {
80
- if (state === 'inbound') return '0.21875rem 0.21875rem 0.21875rem 0rem';
81
- if (state === 'outbound') return '0.21875rem 0.21875rem 0rem 0.21875rem';
80
+ if (state === 'inbound') return '.5714rem .5714rem .5714rem 0rem';
81
+ if (state === 'outbound') return '.5714rem .5714rem 0rem .5714rem';
82
82
  }
83
83
  return "".concat(_colors.BmPrimaryWhite);
84
84
  }, function (_ref5) {
@@ -93,11 +93,15 @@ var Messages = _styledComponents.default.div.withConfig({
93
93
  }
94
94
  return '';
95
95
  }, function (_ref6) {
96
- var metadata = _ref6.metadata;
96
+ var metadata = _ref6.metadata,
97
+ state = _ref6.state;
97
98
  if (metadata) {
98
99
  return '';
99
100
  }
100
- return "0.071rem solid ".concat(_colors.BmGrey200, ";");
101
+ if (state) {
102
+ if (state === 'inbound') return "0.071rem solid ".concat(_colors.BmGrey200, ";");
103
+ }
104
+ return '';
101
105
  });
102
106
  var MessagesSubDetails = _styledComponents.default.div.withConfig({
103
107
  displayName: "chatBody__MessagesSubDetails"
@@ -142,10 +146,10 @@ var handleState = function handleState(_ref8) {
142
146
  // Start of File Attachment
143
147
  var FileAttachmentWrapper = _styledComponents.default.div.withConfig({
144
148
  displayName: "chatBody__FileAttachmentWrapper"
145
- })(["display:flex;cursor:pointer;flex-direction:row;padding:1rem;background:", ";color:", ";border-radius:", ";border:0.071rem solid ", ";> *{&:last-child{margin-left:auto;}:not(:last-child){margin-right:0.5rem;}}&&& > *{align-items:center;color:", ";}", " ", ""], function (_ref9) {
149
+ })(["display:flex;cursor:pointer;flex-direction:row;align-items:center;padding:1rem;background:", ";color:", ";border-radius:", ";border:", ";> *{&:last-child{margin-left:auto;}:not(:last-child){margin-right:0.5rem;}}&&& > *{align-items:center;color:", ";}", " ", ""], function (_ref9) {
146
150
  var state = _ref9.state;
147
151
  if (state) {
148
- if (state === 'inbound') return "".concat(_colors.BmPrimaryWhite);
152
+ if (state === 'inbound') return "#F9FAFB";
149
153
  if (state === 'outbound') return "".concat(_colors.BmPrimaryBlue);
150
154
  }
151
155
  return "".concat(_colors.BmPrimaryWhite);
@@ -157,14 +161,31 @@ var FileAttachmentWrapper = _styledComponents.default.div.withConfig({
157
161
  }
158
162
  return "".concat(_colors.BmPrimaryWhite);
159
163
  }, function (_ref11) {
160
- var state = _ref11.state;
164
+ var state = _ref11.state,
165
+ src = _ref11.src;
161
166
  if (state) {
162
- if (state === 'inbound') return '0.21875rem 0.21875rem 0.21875rem 0rem';
163
- if (state === 'outbound') return '0.21875rem 0.21875rem 0rem 0.21875rem';
167
+ if (state === 'inbound') {
168
+ if (src) {
169
+ return '0rem 0rem .5714rem 0rem';
170
+ }
171
+ return '.5714rem .5714rem .5714rem 0rem';
172
+ }
173
+ if (state === 'outbound') {
174
+ if (src) {
175
+ return '0rem 0rem 0rem .5714rem';
176
+ }
177
+ return '.5714rem .5714rem 0rem .5714rem';
178
+ }
164
179
  }
165
180
  return "".concat(_colors.BmPrimaryWhite);
166
- }, _colors.BmGrey200, function (_ref12) {
181
+ }, function (_ref12) {
167
182
  var state = _ref12.state;
183
+ if (state) {
184
+ if (state === 'inbound') return "0.071rem solid ".concat(_colors.BmGrey200, ";");
185
+ }
186
+ return '';
187
+ }, function (_ref13) {
188
+ var state = _ref13.state;
168
189
  if (state) {
169
190
  if (state === 'inbound') return "".concat(_colors.BmPrimaryBlue);
170
191
  if (state === 'outbound') return "".concat(_colors.BmPrimaryWhite);
@@ -172,61 +193,67 @@ var FileAttachmentWrapper = _styledComponents.default.div.withConfig({
172
193
  return "".concat(_colors.BmPrimaryWhite);
173
194
  }, '' /* max-width: 100%; */, '' /* max-height: 100%; */);
174
195
 
175
- var BmFileAttachment = function BmFileAttachment(_ref13) {
176
- var state = _ref13.state,
177
- file = _ref13.file,
178
- src = _ref13.src,
179
- fileName = _ref13.fileName,
180
- onDownload = _ref13.onDownload,
181
- link = _ref13.link,
182
- rest = _objectWithoutProperties(_ref13, _excluded);
196
+ var BmFileAttachment = function BmFileAttachment(_ref14) {
197
+ var state = _ref14.state,
198
+ file = _ref14.file,
199
+ src = _ref14.src,
200
+ fileName = _ref14.fileName,
201
+ onDownload = _ref14.onDownload,
202
+ link = _ref14.link,
203
+ rest = _objectWithoutProperties(_ref14, _excluded);
183
204
  return /*#__PURE__*/_react.default.createElement(FileAttachmentWrapper, _extends({
184
- state: state
205
+ state: state,
206
+ src: src
185
207
  }, rest), /*#__PURE__*/_react.default.createElement(_iconStyles.BmIcons, {
186
208
  icon: /*#__PURE__*/_react.default.createElement(_FilePresent.default, null)
187
209
  }), fileName, /*#__PURE__*/_react.default.createElement("a", {
188
210
  href: link,
189
211
  download: true
190
212
  }, /*#__PURE__*/_react.default.createElement(_iconStyles.BmIcons, {
213
+ style: {
214
+ color: state === 'inbound' ? "".concat(_colors.BmPrimaryBlue) : "".concat(_colors.BmPrimaryWhite)
215
+ },
191
216
  icon: /*#__PURE__*/_react.default.createElement(_Download.default, null)
192
217
  })));
193
218
  };
194
219
  // Start of Component for Images
195
220
  var BmImageWrapper = _styledComponents.default.div.withConfig({
196
221
  displayName: "chatBody__BmImageWrapper"
197
- })(["display:flex;flex-direction:column;color:", ";border-radius:", ";border:0.071rem solid ", ";"], function (_ref14) {
198
- var state = _ref14.state;
222
+ })(["display:flex;flex-direction:column;color:", ";"], function (_ref15) {
223
+ var state = _ref15.state;
199
224
  if (state) {
200
225
  if (state === 'inbound') return "".concat(_colors.BmPrimaryBlack);
201
226
  if (state === 'outbound') return "".concat(_colors.BmPrimaryWhite);
202
227
  }
203
228
  return "".concat(_colors.BmPrimaryWhite);
204
- }, function (_ref15) {
205
- var state = _ref15.state;
206
- if (state) {
207
- if (state === 'inbound') return '0.21875rem 0.21875rem 0.21875rem 0rem';
208
- if (state === 'outbound') return '0.21875rem 0.21875rem 0rem 0.21875rem';
209
- }
210
- return "".concat(_colors.BmPrimaryWhite);
211
- }, _colors.BmGrey200);
229
+ });
212
230
  exports.BmImageWrapper = BmImageWrapper;
213
231
  var BmImage = _styledComponents.default.img.withConfig({
214
232
  displayName: "chatBody__BmImage"
215
- })(["", " width:100%;object-fit:cover;flex-grow:1;"], '' /* Fix width */);
233
+ })(["", " width:100%;object-fit:cover;flex-grow:1;border-radius:", ";"], '' /* Fix width */, function (_ref16) {
234
+ var state = _ref16.state;
235
+ if (state) {
236
+ if (state === 'inbound') return '.5714rem .5714rem 0rem 0rem';
237
+ if (state === 'outbound') return '.5714rem .5714rem 0rem 0rem';
238
+ }
239
+ return "".concat(_colors.BmPrimaryWhite);
240
+ });
216
241
  exports.BmImage = BmImage;
217
- var BmImageChat = function BmImageChat(_ref16) {
218
- var state = _ref16.state,
219
- src = _ref16.src,
220
- fileName = _ref16.fileName,
221
- rest = _objectWithoutProperties(_ref16, _excluded2);
242
+ var BmImageChat = function BmImageChat(_ref17) {
243
+ var state = _ref17.state,
244
+ src = _ref17.src,
245
+ fileName = _ref17.fileName,
246
+ rest = _objectWithoutProperties(_ref17, _excluded2);
222
247
  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(BmImageWrapper, _extends({
223
248
  state: state
224
249
  }, rest), /*#__PURE__*/_react.default.createElement(BmImage, {
225
250
  src: src,
226
- alt: "src"
251
+ alt: "src",
252
+ state: state
227
253
  }), fileName && /*#__PURE__*/_react.default.createElement(BmFileAttachment, _extends({
228
254
  state: state,
229
255
  file: src,
256
+ src: src,
230
257
  fileName: fileName
231
258
  }, rest))));
232
259
  };
@@ -239,15 +266,15 @@ var MessageState = _styledComponents.default.div.withConfig({
239
266
  exports.MessageState = MessageState;
240
267
  var RepliedTextWrapper = _styledComponents.default.div.withConfig({
241
268
  displayName: "chatBody__RepliedTextWrapper"
242
- })(["display:flex;flex-direction:column;justify-content:center;padding:1.14286rem 1.14286rem 1.14286rem 0.35714rem;gap:1rem;border-radius:0.25rem 0.25rem 0.25rem 0.25rem;border:1px solid ", ";background:", ";color:", ";"], _colors.BmGrey200, function (_ref17) {
243
- var state = _ref17.state;
269
+ })(["display:flex;flex-direction:column;justify-content:center;padding:1.14286rem 1.14286rem 1.14286rem 0.35714rem;gap:1rem;border-radius:0.25rem 0.25rem 0.25rem 0.25rem;border:1px solid ", ";background:", ";color:", ";"], _colors.BmGrey200, function (_ref18) {
270
+ var state = _ref18.state;
244
271
  if (state) {
245
272
  if (state === 'inbound') return "".concat(_colors.BmPrimaryWhite);
246
273
  if (state === 'outbound') return "".concat(_colors.BmPrimaryBlue);
247
274
  }
248
275
  return "".concat(_colors.BmPrimaryWhite);
249
- }, function (_ref18) {
250
- var state = _ref18.state;
276
+ }, function (_ref19) {
277
+ var state = _ref19.state;
251
278
  if (state) {
252
279
  if (state === 'inbound') return "".concat(_colors.BmPrimaryBlack);
253
280
  if (state === 'outbound') return "".concat(_colors.BmPrimaryWhite);
@@ -255,21 +282,21 @@ var RepliedTextWrapper = _styledComponents.default.div.withConfig({
255
282
  return "".concat(_colors.BmPrimaryWhite);
256
283
  });
257
284
  exports.RepliedTextWrapper = RepliedTextWrapper;
258
- BmChat.Details = function (_ref19) {
259
- var children = _ref19.children,
260
- state = _ref19.state,
261
- displayTime = _ref19.displayTime,
262
- status = _ref19.status,
263
- session = _ref19.session,
264
- src = _ref19.src,
265
- file = _ref19.file,
266
- fileName = _ref19.fileName,
267
- sessionDetails = _ref19.sessionDetails,
268
- sessionTimeline = _ref19.sessionTimeline,
269
- feedPostComments = _ref19.feedPostComments,
270
- agentName = _ref19.agentName,
271
- metadata = _ref19.metadata,
272
- rest = _objectWithoutProperties(_ref19, _excluded3);
285
+ BmChat.Details = function (_ref20) {
286
+ var children = _ref20.children,
287
+ state = _ref20.state,
288
+ displayTime = _ref20.displayTime,
289
+ status = _ref20.status,
290
+ session = _ref20.session,
291
+ src = _ref20.src,
292
+ file = _ref20.file,
293
+ fileName = _ref20.fileName,
294
+ sessionDetails = _ref20.sessionDetails,
295
+ sessionTimeline = _ref20.sessionTimeline,
296
+ feedPostComments = _ref20.feedPostComments,
297
+ agentName = _ref20.agentName,
298
+ metadata = _ref20.metadata,
299
+ rest = _objectWithoutProperties(_ref20, _excluded3);
273
300
  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(Details, _extends({
274
301
  state: state
275
302
  }, rest), /*#__PURE__*/_react.default.createElement(MessageState, null, state === 'inbound' && session && handleState({
@@ -69,7 +69,7 @@ var BmContactCheckbox = function BmContactCheckbox(_ref4) {
69
69
  exports.BmContactCheckbox = BmContactCheckbox;
70
70
  var BmContactCard = _styledComponents.default.div.withConfig({
71
71
  displayName: "contactCards__BmContactCard"
72
- })(["display:flex;flex-direction:row;justify-content:space-between;> *:not(:last-child){margin-right:1rem;}&:hover{background:", ";", "{display:block;}}background:", ";", " cursor:pointer;padding:1rem 1.5rem;"], _colors.BmSecondaryBlue12, CheckboxContainer, function (_ref5) {
72
+ })(["display:flex;flex-direction:row;justify-content:space-between;> *:not(:last-child){margin-right:1rem;}&:hover{background:", ";", "{display:block;}}background:", ";", " cursor:pointer;padding:1rem 1.5rem;border-bottom:0.0357rem solid #f2f4f7;"], _colors.BmSecondaryBlue12, CheckboxContainer, function (_ref5) {
73
73
  var isVisible = _ref5.isVisible;
74
74
  return isVisible ? "".concat(_colors.BmSecondaryBlue12) : '';
75
75
  }, function (_ref6) {
@@ -42,7 +42,7 @@ var Color = function Color(_ref) {
42
42
  };
43
43
  var BeemTag = _styledComponents.default.button.withConfig({
44
44
  displayName: "tags__BeemTag"
45
- })(["", " display:", ";flex-direction:row;justify-content:center;align-items:center;padding:0.2143rem 0.5714rem;border-radius:0.4286rem;background:", ";border:0.1071rem solid ", ";> *{color:", ";text-transform:capitalize;}> *:not(:last-child){margin-right:0.5rem;}"], '' /* display: flex; */, function (_ref2) {
45
+ })(["", " display:", ";flex-direction:row;justify-content:center;align-items:center !important;padding:0.2143rem 0.5714rem;border-radius:0.4286rem;background:", ";border:0.1071rem solid ", ";> *{color:", ";text-transform:capitalize;}> *:not(:last-child){margin-right:0.5rem;}"], '' /* display: flex; */, function (_ref2) {
46
46
  var closeButton = _ref2.closeButton,
47
47
  show = _ref2.show;
48
48
  if (!closeButton) {
@@ -20,7 +20,7 @@ var Wrapper = _styledComponents.default.div.withConfig({
20
20
  })(["display:flex;padding:0rem;margin:0rem;"]);
21
21
  var Drop = (0, _styledComponents.default)(_buttonIconsOnly.BmBtnIcon).withConfig({
22
22
  displayName: "dropdownButton__Drop"
23
- })(["background:", ";border:0.071rem solid ", ";border-left:0.071rem solid ", ";border-top-left-radius:0.071rem;*/}border-bottom-left-radius:0.071rem;*/}padding:0rem */}"], function (_ref) {
23
+ })(["background:", ";border:0.071rem solid ", ";border-left:0.0857rem solid ", ";border-top-left-radius:0.071rem;border-bottom-left-radius:0.071rem;border-radius:none;padding:0rem;"], function (_ref) {
24
24
  var variant = _ref.variant,
25
25
  disabled = _ref.disabled,
26
26
  color = _ref.color;
@@ -73,11 +73,25 @@ var Drop = (0, _styledComponents.default)(_buttonIconsOnly.BmBtnIcon).withConfig
73
73
  exports.Drop = Drop;
74
74
  var Button = (0, _styledComponents.default)(_buttons.BmButton).withConfig({
75
75
  displayName: "dropdownButton__Button"
76
- })(["border-top-right-radius:0.071rem;*/}border-bottom-right-radius:0.071rem;*/}border-radius:none;border-right:none;"]);
76
+ })(["border-top-right-radius:0.071rem;border-bottom-right-radius:0.071rem;border-right:none;padding:", ";line-height:", ";"], function (_ref4) {
77
+ var size = _ref4.size;
78
+ // if (size === 'large') return '0.625rem 1.5rem';
79
+ // if (size === 'medium') return '0.4375rem 1rem';
80
+ // if (size === 'small') return '.375rem .75rem';
81
+ if (size === 'xsmall') return '.4286rem .8571rem';
82
+ return '.625rem 1.5rem';
83
+ }, function (_ref5) {
84
+ var size = _ref5.size;
85
+ // if (size === 'large') return '0.625rem 1.5rem';
86
+ // if (size === 'medium') return '0.4375rem 1rem';
87
+ // if (size === 'small') return '.375rem .75rem';
88
+ if (size === 'xsmall') return '1.4286rem';
89
+ return 'normal';
90
+ });
77
91
  exports.Button = Button;
78
- var BmButtonDropDown = function BmButtonDropDown(_ref4) {
79
- var children = _ref4.children,
80
- rest = _objectWithoutProperties(_ref4, _excluded);
92
+ var BmButtonDropDown = function BmButtonDropDown(_ref6) {
93
+ var children = _ref6.children,
94
+ rest = _objectWithoutProperties(_ref6, _excluded);
81
95
  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(Wrapper, rest, /*#__PURE__*/_react.default.createElement(Button, rest, children), /*#__PURE__*/_react.default.createElement(Drop, _extends({}, rest, {
82
96
  icon: /*#__PURE__*/_react.default.createElement(_icons.KeyboardArrowDown, null)
83
97
  }))));
@@ -6,27 +6,27 @@ Object.defineProperty(exports, "__esModule", {
6
6
  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
- var h1 = "font-family: ".concat(_typography.PoppinsMedium, ";\nfont-style: normal;\nfont-weight: 500;\nfont-size: 2.286rem;\nletter-spacing: -0.02rem;\nmargin: 0rem;");
9
+ var h1 = "font-family: ".concat(_typography.OpenSans, ";\nfont-style: normal;\nfont-weight: 500;\nfont-size: 2.286rem;\nletter-spacing: -0.02rem;\nmargin: 0rem;");
10
10
 
11
11
  // 24px
12
12
  exports.h1 = h1;
13
- var h2 = "font-family: ".concat(_typography.PoppinsMedium, ";\nfont-style: normal;\nfont-weight: 500;\nfont-size: 1.714rem;\nletter-spacing: -0.02em;\nmargin: 0rem;");
13
+ var h2 = "font-family: ".concat(_typography.OpenSans, ";\nfont-style: normal;\nfont-weight: 500;\nfont-size: 1.714rem;\nletter-spacing: -0.02em;\nmargin: 0rem;");
14
14
 
15
15
  // 18px
16
16
  exports.h2 = h2;
17
- var h3 = "font-family: ".concat(_typography.PoppinsMedium, ";\nfont-style: normal;\nfont-weight: 500;\nfont-size: 1.286rem;\nletter-spacing: -0.02rem;\nmargin: 0rem;");
17
+ var h3 = "font-family: ".concat(_typography.OpenSans, ";\nfont-style: normal;\nfont-weight: 500;\nfont-size: 1.286rem;\nletter-spacing: -0.02rem;\nmargin: 0rem;");
18
18
 
19
19
  // 16px
20
20
  exports.h3 = h3;
21
- var h4 = " font-family: ".concat(_typography.PoppinsMedium, ";\nfont-style: normal;\nfont-weight: 500;\nfont-size: 1.143rem;\nletter-spacing: -0.02rem;\nmargin: 0rem;");
21
+ var h4 = " font-family: ".concat(_typography.OpenSans, ";\nfont-style: normal;\nfont-weight: 500;\nfont-size: 1.143rem;\nletter-spacing: -0.02rem;\nmargin: 0rem;");
22
22
 
23
23
  // 14px
24
24
  exports.h4 = h4;
25
- var h5 = " font-family: ".concat(_typography.PoppinsMedium, ";\nfont-style: normal;\nfont-weight: 500;\nfont-size: 1rem;\nletter-spacing: -0.02rem;\nmargin: 0rem;");
25
+ var h5 = " font-family: ".concat(_typography.OpenSans, ";\nfont-style: normal;\nfont-weight: 500;\nfont-size: 1rem;\nletter-spacing: -0.02rem;\nmargin: 0rem;");
26
26
 
27
27
  // 12px
28
28
  exports.h5 = h5;
29
- var h6 = " font-family: ".concat(_typography.PoppinsMedium, ";\nfont-style: normal;\nfont-weight: 500;\nfont-size: 0.857rem;\nletter-spacing: -0.02rem;\nmargin: 0rem;");
29
+ var h6 = " font-family: ".concat(_typography.OpenSans, ";\nfont-style: normal;\nfont-weight: 500;\nfont-size: .857rem;\nletter-spacing: -0.02rem;\nmargin: 0rem;");
30
30
 
31
31
  // 14px
32
32
  exports.h6 = h6;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "beem-component",
3
- "version": "2.0.3",
3
+ "version": "2.0.5",
4
4
  "private": false,
5
5
  "main": "dist/components/index.js",
6
6
  "scripts": {
package/src/App.js CHANGED
@@ -15,9 +15,13 @@ import {
15
15
  BmChatAccordion,
16
16
  BmAccordion,
17
17
  BmChatForm,
18
+ BmButton,
19
+ BmButtonDropDown,
18
20
  } from './lib/components';
19
21
 
20
22
  const Chat = () => {
23
+ const image =
24
+ 'https://media4.giphy.com/media/v1.Y2lkPTc5MGI3NjExc2w1ZnI0OW5xdHk4eXU3bXg3ODFmMmxpZThnYmF2bnNudDN4dXlmaiZlcD12MV9naWZzX3NlYXJjaCZjdD1n/sGsoN9tI8a1k04pNcf/giphy.webp';
21
25
  const msg = [
22
26
  {
23
27
  message: 'Me as user replying to the beem message',
@@ -189,9 +193,10 @@ const Chat = () => {
189
193
  <BmCounter>10</BmCounter>
190
194
  </BmContactCard.SubDetails>
191
195
  <BmContactCard.SubDetails>
192
- <BmTag dot variant="success">
196
+ <BmTag dot>
193
197
  <p>{ms.id}</p>
194
198
  </BmTag>
199
+
195
200
  <p>10:00 am</p>
196
201
  </BmContactCard.SubDetails>
197
202
  </BmContactCard.Details>
@@ -255,10 +260,105 @@ const Chat = () => {
255
260
  >
256
261
  <p>Pending</p>
257
262
  </BmTag>
258
- <BmTag dot closeButton>
263
+ <BmTag dot>
259
264
  <p>Bot</p>
260
265
  </BmTag>
261
266
  </div>
267
+ <BmChat>
268
+ <BmChat.Body>
269
+ <BmChat.Details
270
+ state="inbound"
271
+ session="sms"
272
+ displayTime={<p>12:00pm</p>}
273
+ status="sent"
274
+ sessionDetails={{
275
+ message: <h3>Session Message</h3>,
276
+ time: <p>12:00pm</p>,
277
+ }}
278
+ >
279
+ <p>Inbound Text Message 1</p>
280
+ </BmChat.Details>
281
+ <BmChat.Details
282
+ state="inbound"
283
+ session="live"
284
+ displayTime={<p>12:00pm</p>}
285
+ status="sent"
286
+ fileName={<p>chat.png</p>}
287
+ src={image}
288
+ sessionDetails={{
289
+ message: <h3>Session Message</h3>,
290
+ time: <p>12:00pm</p>,
291
+ }}
292
+ />
293
+ <BmChat.Details
294
+ state="inbound"
295
+ session="live"
296
+ displayTime={<p>10:00am</p>}
297
+ status="failed"
298
+ fileName={<p>file.csv</p>}
299
+ file={image}
300
+ />
301
+ <BmChat.Details
302
+ state="outbound"
303
+ session="bot"
304
+ displayTime={<p>12:00pm</p>}
305
+ status="sent"
306
+ >
307
+ <p>Outbound Text Message</p>
308
+ </BmChat.Details>
309
+ <BmChat.Details
310
+ state="outbound"
311
+ session="live"
312
+ displayTime={<p>12:00pm</p>}
313
+ status="sent"
314
+ fileName={<p>chat.png</p>}
315
+ src={image}
316
+ />
317
+ <BmChat.Details
318
+ state="outbound"
319
+ session="live"
320
+ displayTime={<p>10:00am</p>}
321
+ status="failed"
322
+ fileName={<p>file.csv</p>}
323
+ file={image}
324
+ link={image}
325
+ onDownload={() => {
326
+ console.log('sdfsfs');
327
+ }}
328
+ />
329
+ </BmChat.Body>
330
+ {/* <BmChat.Footer>
331
+ <div className="chat-footer">
332
+ <BmIcons icon={<EmojiEmotionsIcon />} size="xlarge" />
333
+ <BmIcons icon={<AttachFileIcon />} size="xlarge" />
334
+ <BmIcons icon={<QuickreplyIcon />} size="xlarge" />
335
+ <BmInput placeholder="Enter Message" style={{ flex: '1' }} />
336
+ <BmIcons icon={<SendIcon />} size="xlarge" />
337
+ </div>
338
+ </BmChat.Footer> */}
339
+ <div className="w-20">
340
+ <BmButton size="xsmall" variant="neutral">
341
+ Hello
342
+ </BmButton>
343
+ <BmButton size="xsmall" variant="secondary">
344
+ Hello
345
+ </BmButton>
346
+ <BmButton size="xsmall" variant="primary">
347
+ Hello
348
+ </BmButton>
349
+ <BmButton size="xsmall" variant="destructive">
350
+ Hello
351
+ </BmButton>
352
+ <BmButton size="xsmall" variant="tertiary">
353
+ Hello
354
+ </BmButton>
355
+ <BmButton size="xsmall" variant="success">
356
+ Hello
357
+ </BmButton>
358
+ <BmButton variant="success">Test</BmButton>
359
+ <BmButtonDropDown size="xsmall">Test</BmButtonDropDown>
360
+ </div>
361
+ </BmChat>
262
362
  </>
263
363
  );
264
364
  };
@@ -16,13 +16,14 @@ import {
16
16
  BmSecondaryRed8,
17
17
  } from '../colors';
18
18
  import { BmButtonIcon } from '../iconStyles';
19
- import { h3, h4 } from '../text';
19
+ import { h3, h4, h6 } from '../text';
20
20
 
21
21
  const ButtonText = styled.div`
22
22
  ${({ size }) => {
23
23
  if (size === 'large') return `${h3}`;
24
24
  if (size === 'medium') return `${h3}`;
25
25
  if (size === 'small') return `${h4}`;
26
+ if (size === 'xsmall') return `${h6}`;
26
27
  return `${h3}`;
27
28
  }}
28
29
  text-align: center;
@@ -46,12 +47,20 @@ const BeemButton = styled.button`
46
47
  flex-direction: row;
47
48
  justify-content: center;
48
49
  align-items: center;
49
- border-radius: 0.25rem;
50
+ border-radius: 0.2857rem;
50
51
  padding: ${({ size }) => {
51
52
  if (size === 'large') return '0.625rem 1.5rem';
52
53
  if (size === 'medium') return '0.4375rem 1rem';
53
- if (size === 'small') return '0.375rem 0.75rem';
54
- return '0.625rem 1.5rem';
54
+ if (size === 'small') return '.375rem .75rem';
55
+ if (size === 'xsmall') return '.4286rem .8571rem';
56
+ return '.625rem 1.5rem';
57
+ }};
58
+ line-height: ${({ size }) => {
59
+ // if (size === 'large') return '0.625rem 1.5rem';
60
+ // if (size === 'medium') return '0.4375rem 1rem';
61
+ // if (size === 'small') return '.375rem .75rem';
62
+ if (size === 'xsmall') return '1.4286rem';
63
+ return 'normal';
55
64
  }};
56
65
  background: ${({ variant, disabled, color }) => {
57
66
  if (!disabled) {
@@ -83,7 +83,7 @@ const Messages = styled.div`
83
83
  return `${BmPrimaryWhite}`;
84
84
  }
85
85
  if (state) {
86
- if (state === 'inbound') return `${BmPrimaryWhite}`;
86
+ if (state === 'inbound') return `#F9FAFB`;
87
87
  if (state === 'outbound') return `${BmPrimaryBlue}`;
88
88
  }
89
89
  return `${BmPrimaryWhite}`;
@@ -100,8 +100,8 @@ const Messages = styled.div`
100
100
  return '0rem';
101
101
  }
102
102
  if (state) {
103
- if (state === 'inbound') return '0.21875rem 0.21875rem 0.21875rem 0rem';
104
- if (state === 'outbound') return '0.21875rem 0.21875rem 0rem 0.21875rem';
103
+ if (state === 'inbound') return '.5714rem .5714rem .5714rem 0rem';
104
+ if (state === 'outbound') return '.5714rem .5714rem 0rem .5714rem';
105
105
  }
106
106
  return `${BmPrimaryWhite}`;
107
107
  }};
@@ -116,11 +116,14 @@ const Messages = styled.div`
116
116
  return '';
117
117
  }};
118
118
 
119
- border: ${({ metadata }) => {
119
+ border: ${({ metadata, state }) => {
120
120
  if (metadata) {
121
121
  return '';
122
122
  }
123
- return `0.071rem solid ${BmGrey200};`;
123
+ if (state) {
124
+ if (state === 'inbound') return `0.071rem solid ${BmGrey200};`;
125
+ }
126
+ return '';
124
127
  }};
125
128
  word-break: break-word;
126
129
  margin: 0rem;
@@ -163,10 +166,11 @@ const FileAttachmentWrapper = styled.div`
163
166
  display: flex;
164
167
  cursor: pointer;
165
168
  flex-direction: row;
169
+ align-items: center;
166
170
  padding: 1rem;
167
171
  background: ${({ state }) => {
168
172
  if (state) {
169
- if (state === 'inbound') return `${BmPrimaryWhite}`;
173
+ if (state === 'inbound') return `#F9FAFB`;
170
174
  if (state === 'outbound') return `${BmPrimaryBlue}`;
171
175
  }
172
176
  return `${BmPrimaryWhite}`;
@@ -178,14 +182,30 @@ const FileAttachmentWrapper = styled.div`
178
182
  }
179
183
  return `${BmPrimaryWhite}`;
180
184
  }};
181
- border-radius: ${({ state }) => {
185
+ border-radius: ${({ state, src }) => {
182
186
  if (state) {
183
- if (state === 'inbound') return '0.21875rem 0.21875rem 0.21875rem 0rem';
184
- if (state === 'outbound') return '0.21875rem 0.21875rem 0rem 0.21875rem';
187
+ if (state === 'inbound') {
188
+ if (src) {
189
+ return '0rem 0rem .5714rem 0rem';
190
+ }
191
+
192
+ return '.5714rem .5714rem .5714rem 0rem';
193
+ }
194
+ if (state === 'outbound') {
195
+ if (src) {
196
+ return '0rem 0rem 0rem .5714rem';
197
+ }
198
+ return '.5714rem .5714rem 0rem .5714rem';
199
+ }
185
200
  }
186
201
  return `${BmPrimaryWhite}`;
187
202
  }};
188
- border: 0.071rem solid ${BmGrey200};
203
+ border: ${({ state }) => {
204
+ if (state) {
205
+ if (state === 'inbound') return `0.071rem solid ${BmGrey200};`;
206
+ }
207
+ return '';
208
+ }};
189
209
  > * {
190
210
  &:last-child {
191
211
  margin-left: auto;
@@ -218,12 +238,18 @@ const BmFileAttachment = ({
218
238
  ...rest
219
239
  }) => {
220
240
  return (
221
- <FileAttachmentWrapper state={state} {...rest}>
241
+ <FileAttachmentWrapper state={state} src={src} {...rest}>
222
242
  <BmIcons icon={<FilePresentIcon />} />
223
243
  {/* {fileName} */}
224
244
  {fileName}
225
245
  <a href={link} download>
226
- <BmIcons icon={<DownloadIcon />} />
246
+ <BmIcons
247
+ style={{
248
+ color:
249
+ state === 'inbound' ? `${BmPrimaryBlue}` : `${BmPrimaryWhite}`,
250
+ }}
251
+ icon={<DownloadIcon />}
252
+ />
227
253
  </a>
228
254
  </FileAttachmentWrapper>
229
255
  );
@@ -239,14 +265,6 @@ export const BmImageWrapper = styled.div`
239
265
  }
240
266
  return `${BmPrimaryWhite}`;
241
267
  }};
242
- border-radius: ${({ state }) => {
243
- if (state) {
244
- if (state === 'inbound') return '0.21875rem 0.21875rem 0.21875rem 0rem';
245
- if (state === 'outbound') return '0.21875rem 0.21875rem 0rem 0.21875rem';
246
- }
247
- return `${BmPrimaryWhite}`;
248
- }};
249
- border: 0.071rem solid ${BmGrey200};
250
268
  `;
251
269
 
252
270
  export const BmImage = styled.img`
@@ -254,17 +272,26 @@ export const BmImage = styled.img`
254
272
  width: 100%;
255
273
  object-fit: cover;
256
274
  flex-grow: 1;
275
+
276
+ border-radius: ${({ state }) => {
277
+ if (state) {
278
+ if (state === 'inbound') return '.5714rem .5714rem 0rem 0rem';
279
+ if (state === 'outbound') return '.5714rem .5714rem 0rem 0rem';
280
+ }
281
+ return `${BmPrimaryWhite}`;
282
+ }};
257
283
  `;
258
284
 
259
285
  export const BmImageChat = ({ state, src, fileName, ...rest }) => {
260
286
  return (
261
287
  <>
262
288
  <BmImageWrapper state={state} {...rest}>
263
- <BmImage src={src} alt="src" />
289
+ <BmImage src={src} alt="src" state={state} />
264
290
  {fileName && (
265
291
  <BmFileAttachment
266
292
  state={state}
267
293
  file={src}
294
+ src={src}
268
295
  fileName={fileName}
269
296
  {...rest}
270
297
  />
@@ -106,6 +106,7 @@ export const BmContactCard = styled.div`
106
106
  `}
107
107
  cursor: pointer;
108
108
  padding: 1rem 1.5rem;
109
+ border-bottom: 0.0357rem solid #f2f4f7;
109
110
  `;
110
111
 
111
112
  BmContactCard.Profile = styled.div`
@@ -41,7 +41,7 @@ const BeemTag = styled.button`
41
41
  }};
42
42
  flex-direction: row;
43
43
  justify-content: center;
44
- align-items: center;
44
+ align-items: center !important;
45
45
  padding: 0.2143rem 0.5714rem;
46
46
  border-radius: 0.4286rem;
47
47
  background: ${({ variant }) => {
@@ -49,7 +49,7 @@ export const Drop = styled(BmBtnIcon)`
49
49
  if (variant === 'secondary') return `${BmGrey400}`;
50
50
  if (variant === 'tertiary') return 'transparent';
51
51
  }};
52
- border-left: 0.071rem solid
52
+ border-left: 0.0857rem solid
53
53
  ${({ variant, disabled, color }) => {
54
54
  if (!disabled) {
55
55
  if (variant === 'primary') return `${BmPrimaryWhite}`;
@@ -64,16 +64,31 @@ export const Drop = styled(BmBtnIcon)`
64
64
  if (variant === 'secondary') return `${BmGrey400}`;
65
65
  if (variant === 'tertiary') return 'transparent';
66
66
  }};
67
- border-top-left-radius: 0.071rem; */}
68
- border-bottom-left-radius: 0.071rem; */}
69
- padding: 0rem */}
67
+ border-top-left-radius: 0.071rem;
68
+ border-bottom-left-radius: 0.071rem;
69
+ border-radius: none;
70
+ padding: 0rem;
70
71
  `;
71
72
 
72
73
  export const Button = styled(BmButton)`
73
- border-top-right-radius: 0.071rem; */}
74
- border-bottom-right-radius: 0.071rem; */}
75
- border-radius: none;
74
+ border-top-right-radius: 0.071rem;
75
+ border-bottom-right-radius: 0.071rem;
76
+ /* border-radius: none; */
76
77
  border-right: none;
78
+ padding: ${({ size }) => {
79
+ // if (size === 'large') return '0.625rem 1.5rem';
80
+ // if (size === 'medium') return '0.4375rem 1rem';
81
+ // if (size === 'small') return '.375rem .75rem';
82
+ if (size === 'xsmall') return '.4286rem .8571rem';
83
+ return '.625rem 1.5rem';
84
+ }};
85
+ line-height: ${({ size }) => {
86
+ // if (size === 'large') return '0.625rem 1.5rem';
87
+ // if (size === 'medium') return '0.4375rem 1rem';
88
+ // if (size === 'small') return '.375rem .75rem';
89
+ if (size === 'xsmall') return '1.4286rem';
90
+ return 'normal';
91
+ }};
77
92
  `;
78
93
 
79
94
  export const BmButtonDropDown = ({ children, ...rest }) => {
@@ -1,7 +1,7 @@
1
- import { PoppinsMedium, OpenSans } from './typography';
1
+ import { OpenSans } from './typography';
2
2
 
3
3
  // 32px
4
- export const h1 = `font-family: ${PoppinsMedium};
4
+ export const h1 = `font-family: ${OpenSans};
5
5
  font-style: normal;
6
6
  font-weight: 500;
7
7
  font-size: 2.286rem;
@@ -9,7 +9,7 @@ letter-spacing: -0.02rem;
9
9
  margin: 0rem;`;
10
10
 
11
11
  // 24px
12
- export const h2 = `font-family: ${PoppinsMedium};
12
+ export const h2 = `font-family: ${OpenSans};
13
13
  font-style: normal;
14
14
  font-weight: 500;
15
15
  font-size: 1.714rem;
@@ -17,7 +17,7 @@ letter-spacing: -0.02em;
17
17
  margin: 0rem;`;
18
18
 
19
19
  // 18px
20
- export const h3 = `font-family: ${PoppinsMedium};
20
+ export const h3 = `font-family: ${OpenSans};
21
21
  font-style: normal;
22
22
  font-weight: 500;
23
23
  font-size: 1.286rem;
@@ -25,7 +25,7 @@ letter-spacing: -0.02rem;
25
25
  margin: 0rem;`;
26
26
 
27
27
  // 16px
28
- export const h4 = ` font-family: ${PoppinsMedium};
28
+ export const h4 = ` font-family: ${OpenSans};
29
29
  font-style: normal;
30
30
  font-weight: 500;
31
31
  font-size: 1.143rem;
@@ -33,7 +33,7 @@ letter-spacing: -0.02rem;
33
33
  margin: 0rem;`;
34
34
 
35
35
  // 14px
36
- export const h5 = ` font-family: ${PoppinsMedium};
36
+ export const h5 = ` font-family: ${OpenSans};
37
37
  font-style: normal;
38
38
  font-weight: 500;
39
39
  font-size: 1rem;
@@ -41,10 +41,10 @@ letter-spacing: -0.02rem;
41
41
  margin: 0rem;`;
42
42
 
43
43
  // 12px
44
- export const h6 = ` font-family: ${PoppinsMedium};
44
+ export const h6 = ` font-family: ${OpenSans};
45
45
  font-style: normal;
46
46
  font-weight: 500;
47
- font-size: 0.857rem;
47
+ font-size: .857rem;
48
48
  letter-spacing: -0.02rem;
49
49
  margin: 0rem;`;
50
50