Skip to content

Commit 9392b0e

Browse files
authored
Merge pull request #98 from vrk-kpa/feature/estate-icons
[Feature] Add AuthoriseEstate and BehalfOfAnEstate icons
2 parents c7b8a8f + 264d4e8 commit 9392b0e

15 files changed

Lines changed: 183 additions & 7 deletions

File tree

Lines changed: 10 additions & 0 deletions
Loading
Lines changed: 24 additions & 0 deletions
Loading

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "suomifi-icons",
3-
"version": "7.8.0",
3+
"version": "7.9.0",
44
"main": "./cjs/src/index.js",
55
"module": "./esm/src/index.js",
66
"typings": "./types/src/index.d.ts",

src/IconLists.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ const baseIcons = [
1212
'ArrowheadUp',
1313
'Attachment',
1414
'AuthoriseCompany',
15+
'AuthoriseEstate',
1516
'Authorise',
1617
'Basket',
1718
'BasketAdd',
@@ -200,6 +201,7 @@ const illustrativeIcons = [
200201
'MoneyBag',
201202
'BehalfOfACompany',
202203
'BehalfOfAPerson',
204+
'BehalfOfAnEstate',
203205
'Organisation',
204206
'MobileText',
205207
'PiggyBank',

src/baseIcons/AuthoriseEstate.tsx

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
2+
import React from 'react';
3+
import { default as styled } from 'styled-components';
4+
import classnames from 'classnames';
5+
import { IconAuthoriseEstate as AuthoriseEstate } from '../../svgrComponents/baseIcons/';
6+
import { baseIconStyles } from '../utils/styles';
7+
import { BaseIconProps } from './iconInterface';
8+
import { baseClassName, cursorPointerClassName } from '../utils/classes';
9+
import { ariaFocusableNoLabel, ariaLabelOrHidden } from '../utils/aria';
10+
11+
const StyledIconAuthoriseEstate = styled((props: BaseIconProps) => {
12+
const { className, mousePointer, ariaLabel, color, fill, baseColor, highlightColor, ...passProps } =
13+
props;
14+
return (
15+
<AuthoriseEstate
16+
className={classnames(baseClassName, className, {
17+
[cursorPointerClassName]: !!mousePointer
18+
})}
19+
{...passProps}
20+
{...ariaLabelOrHidden(ariaLabel)}
21+
{...ariaFocusableNoLabel(ariaLabel)}
22+
/>
23+
);
24+
})`
25+
${baseIconStyles}
26+
`;
27+
28+
const IconAuthoriseEstate = (props: BaseIconProps) => {
29+
return <StyledIconAuthoriseEstate {...props}/>
30+
}
31+
32+
IconAuthoriseEstate.displayName = 'Icon';
33+
export { IconAuthoriseEstate };

src/baseIcons/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export { IconArrowheadDown } from './ArrowheadDown';
1111
export { IconArrowheadUp } from './ArrowheadUp';
1212
export { IconAttachment } from './Attachment';
1313
export { IconAuthoriseCompany } from './AuthoriseCompany';
14+
export { IconAuthoriseEstate } from './AuthoriseEstate';
1415
export { IconAuthorise } from './Authorise';
1516
export { IconBasket } from './Basket';
1617
export { IconBasketAdd } from './BasketAdd';

0 commit comments

Comments
 (0)