Skip to content

Commit

Permalink
Merge pull request #1137 from appfolio/debt-270-add-fa-brands-to-reac…
Browse files Browse the repository at this point in the history
…t-gears-iconstyle

270 react-gears - add icon style to include cc brands
  • Loading branch information
emcpete authored Feb 27, 2023
2 parents fd017ce + b0ad9ed commit 440bf24
Show file tree
Hide file tree
Showing 31 changed files with 719 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/Icon/FontAwesomeAPM.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export interface FontAwesomeAPMProps extends React.HTMLAttributes<any> {
spin?: boolean;
stack?: '1x' | '2x';
tag?: keyof JSX.IntrinsicElements;
iconStyle?: 'regular' | 'solid' | 'thin' | 'light' | 'duotone';
iconStyle?: 'regular' | 'solid' | 'thin' | 'light' | 'duotone' | 'brands';
}

/**
Expand Down
6 changes: 5 additions & 1 deletion src/components/Icon/Icon.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ export const LiveExample = () => (
rotate={select('rotate', ['', '90', '180', '270'], '')}
flip={select('flip', ['', 'horizontal', 'vertical'], '')}
border={boolean('border', false)}
iconStyle={select('iconStyle', ['regular', 'solid', 'thin', 'light', 'duotone'], 'solid')}
iconStyle={select(
'iconStyle',
['regular', 'solid', 'thin', 'light', 'duotone', 'brands'],
'solid'
)}
/>
);

Expand Down
8 changes: 7 additions & 1 deletion src/components/Input/CreditCardNumber.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,18 @@ const CreditCardNumber: FC<CreditCardNumberProps> = ({
const { type, value, ...inputProps } = props;

const ccType = getType(value);
const ccIconName = typeToIconName(ccType);

return (
<InputGroup className={className}>
<Input value={value || ''} onChange={onChangeHandler} {...inputProps} />
<InputGroupText className="p-0 px-2">
<Icon name={typeToIconName(ccType)} iconStyle="regular" fixedWidth size="lg" />
<Icon
name={ccIconName}
iconStyle={ccIconName === 'credit-card' ? 'regular' : 'brands'}
fixedWidth
size="lg"
/>
</InputGroupText>
</InputGroup>
);
Expand Down
1 change: 1 addition & 0 deletions storybook-static/0.9c000ad5.iframe.bundle.js

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

2 changes: 2 additions & 0 deletions storybook-static/0.fb776b5f1335c2d06199.manager.bundle.js

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/**
* Prism: Lightweight, robust, elegant syntax highlighting
*
* @license MIT <https://opensource.org/licenses/MIT>
* @author Lea Verou <https://lea.verou.me>
* @namespace
* @public
*/
1 change: 1 addition & 0 deletions storybook-static/1.b6076b2cf00d42270d75.manager.bundle.js

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions storybook-static/4.9ca8ac60.iframe.bundle.js

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions storybook-static/4.9ca8ac60.iframe.bundle.js.LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/*! axe v4.4.3
* Copyright (c) 2022 Deque Systems, Inc.
*
* Your use of 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/.
*
* This entire copyright notice must appear in every copy of this file you
* distribute or in any file that contains substantial portions of this source
* code.
*/
1 change: 1 addition & 0 deletions storybook-static/4.9ca8ac60.iframe.bundle.js.map

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

1 change: 1 addition & 0 deletions storybook-static/5.24e4163f.iframe.bundle.js

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions storybook-static/5.956589af6925434194c9.manager.bundle.js

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/

/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/

/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/

/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
1 change: 1 addition & 0 deletions storybook-static/6.36628fa0425908a2065a.manager.bundle.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions storybook-static/7.9139ae008d99a3b03b74.manager.bundle.js

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

2 changes: 2 additions & 0 deletions storybook-static/8.685724e59a26dd81bd6b.manager.bundle.js

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/*!
* OverlayScrollbars
* https://github.com/KingSora/OverlayScrollbars
*
* Version: 1.13.0
*
* Copyright KingSora | Rene Haas.
* https://github.com/KingSora
*
* Released under the MIT license.
* Date: 02.08.2020
*/
1 change: 1 addition & 0 deletions storybook-static/9.d13dfe5c13e4f5b46b69.manager.bundle.js

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

Binary file added storybook-static/favicon.ico
Binary file not shown.
Loading

0 comments on commit 440bf24

Please sign in to comment.