forstok-ui-lib 6.7.5 → 6.7.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "forstok-ui-lib",
3
- "version": "6.7.5",
3
+ "version": "6.7.6",
4
4
  "description": "Forstok UI Components Library",
5
5
  "path": "dist",
6
6
  "main": "dist/index.js",
@@ -1,5 +1,7 @@
1
1
  import styled, { css } from 'styled-components';
2
2
  import { buttonActiveStyle, buttonHoverStyle, buttonStyle } from '../../assets';
3
+ import IconAgent from '../../assets/images/icons/agent.svg'
4
+ import IconReport from '../../assets/images/icons/report.svg'
3
5
 
4
6
  const IconStyles = css`
5
7
  display: inline-block;
@@ -256,6 +258,30 @@ const getButtonModifiedStyled = ({ $mode, $isIndicatorArrow, $isShown, $isLoadin
256
258
  font-size: 16px;
257
259
  }
258
260
  `
261
+ } else if ($iconLeft === 'agent') {
262
+ style += `
263
+ &:before {
264
+ content: url(${IconAgent});
265
+ position: absolute;
266
+ left: 12px;
267
+ top: 50%;
268
+ margin-top: -8px;
269
+ width: 14px;
270
+ height: 16px;
271
+ }
272
+ `
273
+ } else if ($iconLeft === 'report') {
274
+ style += `
275
+ &:before {
276
+ content: url(${IconReport});
277
+ position: absolute;
278
+ left: 12px;
279
+ top: 50%;
280
+ margin-top: -8px;
281
+ width: 14px;
282
+ height: 16px;
283
+ }
284
+ `
259
285
  }
260
286
  }
261
287
  if ($isIndicatorArrow) {