Skip to content

Commit 440bf24

Browse files
authored
Merge pull request #1137 from appfolio/debt-270-add-fa-brands-to-react-gears-iconstyle
270 react-gears - add icon style to include cc brands
2 parents fd017ce + b0ad9ed commit 440bf24

31 files changed

+719
-3
lines changed

src/components/Icon/FontAwesomeAPM.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export interface FontAwesomeAPMProps extends React.HTMLAttributes<any> {
2828
spin?: boolean;
2929
stack?: '1x' | '2x';
3030
tag?: keyof JSX.IntrinsicElements;
31-
iconStyle?: 'regular' | 'solid' | 'thin' | 'light' | 'duotone';
31+
iconStyle?: 'regular' | 'solid' | 'thin' | 'light' | 'duotone' | 'brands';
3232
}
3333

3434
/**

src/components/Icon/Icon.stories.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,11 @@ export const LiveExample = () => (
2121
rotate={select('rotate', ['', '90', '180', '270'], '')}
2222
flip={select('flip', ['', 'horizontal', 'vertical'], '')}
2323
border={boolean('border', false)}
24-
iconStyle={select('iconStyle', ['regular', 'solid', 'thin', 'light', 'duotone'], 'solid')}
24+
iconStyle={select(
25+
'iconStyle',
26+
['regular', 'solid', 'thin', 'light', 'duotone', 'brands'],
27+
'solid'
28+
)}
2529
/>
2630
);
2731

src/components/Input/CreditCardNumber.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,18 @@ const CreditCardNumber: FC<CreditCardNumberProps> = ({
8989
const { type, value, ...inputProps } = props;
9090

9191
const ccType = getType(value);
92+
const ccIconName = typeToIconName(ccType);
9293

9394
return (
9495
<InputGroup className={className}>
9596
<Input value={value || ''} onChange={onChangeHandler} {...inputProps} />
9697
<InputGroupText className="p-0 px-2">
97-
<Icon name={typeToIconName(ccType)} iconStyle="regular" fixedWidth size="lg" />
98+
<Icon
99+
name={ccIconName}
100+
iconStyle={ccIconName === 'credit-card' ? 'regular' : 'brands'}
101+
fixedWidth
102+
size="lg"
103+
/>
98104
</InputGroupText>
99105
</InputGroup>
100106
);

storybook-static/0.9c000ad5.iframe.bundle.js

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

storybook-static/0.fb776b5f1335c2d06199.manager.bundle.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/**
2+
* Prism: Lightweight, robust, elegant syntax highlighting
3+
*
4+
* @license MIT <https://opensource.org/licenses/MIT>
5+
* @author Lea Verou <https://lea.verou.me>
6+
* @namespace
7+
* @public
8+
*/

storybook-static/1.b6076b2cf00d42270d75.manager.bundle.js

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

storybook-static/4.9ca8ac60.iframe.bundle.js

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/*! axe v4.4.3
2+
* Copyright (c) 2022 Deque Systems, Inc.
3+
*
4+
* Your use of this Source Code Form is subject to the terms of the Mozilla Public
5+
* License, v. 2.0. If a copy of the MPL was not distributed with this
6+
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
7+
*
8+
* This entire copyright notice must appear in every copy of this file you
9+
* distribute or in any file that contains substantial portions of this source
10+
* code.
11+
*/

storybook-static/4.9ca8ac60.iframe.bundle.js.map

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

storybook-static/5.24e4163f.iframe.bundle.js

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

storybook-static/5.956589af6925434194c9.manager.bundle.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
/**
2+
* @license
3+
* Copyright Google Inc. All Rights Reserved.
4+
*
5+
* Use of this source code is governed by an MIT-style license that can be
6+
* found in the LICENSE file at https://angular.io/license
7+
*/
8+
9+
/**
10+
* @license
11+
* Copyright Google Inc. All Rights Reserved.
12+
*
13+
* Use of this source code is governed by an MIT-style license that can be
14+
* found in the LICENSE file at https://angular.io/license
15+
*/
16+
17+
/**
18+
* @license
19+
* Copyright Google Inc. All Rights Reserved.
20+
*
21+
* Use of this source code is governed by an MIT-style license that can be
22+
* found in the LICENSE file at https://angular.io/license
23+
*/
24+
25+
/**
26+
* @license
27+
* Copyright Google Inc. All Rights Reserved.
28+
*
29+
* Use of this source code is governed by an MIT-style license that can be
30+
* found in the LICENSE file at https://angular.io/license
31+
*/

storybook-static/6.36628fa0425908a2065a.manager.bundle.js

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

storybook-static/7.9139ae008d99a3b03b74.manager.bundle.js

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

storybook-static/8.685724e59a26dd81bd6b.manager.bundle.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/*!
2+
* OverlayScrollbars
3+
* https://github.com/KingSora/OverlayScrollbars
4+
*
5+
* Version: 1.13.0
6+
*
7+
* Copyright KingSora | Rene Haas.
8+
* https://github.com/KingSora
9+
*
10+
* Released under the MIT license.
11+
* Date: 02.08.2020
12+
*/

storybook-static/9.d13dfe5c13e4f5b46b69.manager.bundle.js

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

storybook-static/favicon.ico

32.2 KB
Binary file not shown.

0 commit comments

Comments
 (0)