Skip to content

Commit

Permalink
feat(icons): latest icons from alfa-ui-primitives (#1126)
Browse files Browse the repository at this point in the history
  • Loading branch information
SiebenSieben committed Apr 4, 2020
1 parent f086ecc commit bd2fe7f
Show file tree
Hide file tree
Showing 75 changed files with 540 additions and 72 deletions.
47 changes: 33 additions & 14 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@
"@typescript-eslint/eslint-plugin": "2.16.0",
"@typescript-eslint/parser": "2.16.0",
"acorn": "^6.1.1",
"alfa-ui-primitives": "2.6.0",
"alfa-ui-primitives": "2.8.0",
"arui-demo": "3.0.0",
"arui-presets": "^5.1.0",
"arui-presets-lint": "^2.0.0",
Expand Down
42 changes: 42 additions & 0 deletions src/icon/__snapshots__/icon.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2700,6 +2700,48 @@ exports[`icon render undefined without problems 450`] = `
</ContextConsumer>
`;

exports[`icon render undefined without problems 451`] = `
<ContextConsumer>
<Component />
</ContextConsumer>
`;

exports[`icon render undefined without problems 452`] = `
<ContextConsumer>
<Component />
</ContextConsumer>
`;

exports[`icon render undefined without problems 453`] = `
<ContextConsumer>
<Component />
</ContextConsumer>
`;

exports[`icon render undefined without problems 454`] = `
<ContextConsumer>
<Component />
</ContextConsumer>
`;

exports[`icon render undefined without problems 455`] = `
<ContextConsumer>
<Component />
</ContextConsumer>
`;

exports[`icon render undefined without problems 456`] = `
<ContextConsumer>
<Component />
</ContextConsumer>
`;

exports[`icon render undefined without problems 457`] = `
<ContextConsumer>
<Component />
</ContextConsumer>
`;

exports[`icon renders without problems 1`] = `
<ContextConsumer>
<Component />
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions src/icon/banking/payment-error/payment-error.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
background-image: url('./icon_payment-error_m_white.svg');
}

.icon_size_s.icon_name_payment-error.icon_theme_alfa-on-color {
background-image: url('./icon_payment-error_s_white.svg');
}

.icon_size_xl.icon_name_payment-error.icon_theme_alfa-on-white {
background-image: url('./icon_payment-error_xl_black.svg');
}
Expand Down
1 change: 1 addition & 0 deletions src/icon/banking/sign/icon_sign_xl_black.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/icon/banking/sign/icon_sign_xl_white.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/icon/banking/sign/icon_sign_xxl_black.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/icon/banking/sign/icon_sign_xxl_white.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

import './format-docx.css';
import './sign.css';
import '../../../icon';

export * from './format-docx';
export { default } from './format-docx';
export * from './sign';
export { default } from './sign';
19 changes: 19 additions & 0 deletions src/icon/banking/sign/sign.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

.icon_size_xl.icon_name_sign.icon_theme_alfa-on-white {
background-image: url('./icon_sign_xl_black.svg');
}

.icon_size_xl.icon_name_sign.icon_theme_alfa-on-color {
background-image: url('./icon_sign_xl_white.svg');
}

.icon_size_xxl.icon_name_sign.icon_theme_alfa-on-white {
background-image: url('./icon_sign_xxl_black.svg');
}

.icon_size_xxl.icon_name_sign.icon_theme_alfa-on-color {
background-image: url('./icon_sign_xxl_white.svg');
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@ import { withTheme } from '../../../cn';
import Icon from '../../../icon';
import { IconProps } from '../../../icon/icon';

class IconFormatDocx extends React.PureComponent<IconProps> {
class IconSign extends React.PureComponent<IconProps> {
render() {
return (
<Icon
{ ...this.props }
name='format-docx'
name='sign'
/>
);
}
}

class ThemedIconFormatDocx extends IconFormatDocx {}
(ThemedIconFormatDocx as any) = withTheme(IconFormatDocx);
export default ThemedIconFormatDocx;
class ThemedIconSign extends IconSign {}
(ThemedIconSign as any) = withTheme(IconSign);
export default ThemedIconSign;
11 changes: 11 additions & 0 deletions src/icon/category/category-game/category-game.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

.icon_size_xxl.icon_name_category-game.icon_theme_alfa-on-white {
background-image: url('./icon_category-game_xxl_black.svg');
}

.icon_size_xxl.icon_name_category-game.icon_theme_alfa-on-color {
background-image: url('./icon_category-game_xxl_white.svg');
}
23 changes: 23 additions & 0 deletions src/icon/category/category-game/category-game.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

import React from 'react';
import { withTheme } from '../../../cn';
import Icon from '../../../icon';
import { IconProps } from '../../../icon/icon';

class IconCategoryGame extends React.PureComponent<IconProps> {
render() {
return (
<Icon
{ ...this.props }
name='category-game'
/>
);
}
}

class ThemedIconCategoryGame extends IconCategoryGame {}
(ThemedIconCategoryGame as any) = withTheme(IconCategoryGame);
export default ThemedIconCategoryGame;
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions src/icon/category/category-game/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

import './category-game.css';
import '../../../icon';

export * from './category-game';
export { default } from './category-game';
12 changes: 12 additions & 0 deletions src/icon/entity/cashback/cashback.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,26 @@
background-image: url('./icon_cashback_l_black.svg');
}

.icon_size_l.icon_name_cashback.icon_theme_alfa-on-color {
background-image: url('./icon_cashback_l_white.svg');
}

.icon_size_m.icon_name_cashback.icon_theme_alfa-on-white {
background-image: url('./icon_cashback_m_black.svg');
}

.icon_size_m.icon_name_cashback.icon_theme_alfa-on-color {
background-image: url('./icon_cashback_m_white.svg');
}

.icon_size_s.icon_name_cashback.icon_theme_alfa-on-white {
background-image: url('./icon_cashback_s_black.svg');
}

.icon_size_s.icon_name_cashback.icon_theme_alfa-on-color {
background-image: url('./icon_cashback_s_white.svg');
}

.icon_size_xs.icon_name_cashback.icon_theme_alfa-on-color {
background-image: url('./icon_cashback_xs_white.svg');
}
1 change: 1 addition & 0 deletions src/icon/entity/cashback/icon_cashback_l_white.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit bd2fe7f

Please sign in to comment.