Skip to content

Commit 1ed71f6

Browse files
authored
Merge pull request #204 from data-driven-forms/next-remove-icons
Removed PF4 react-icons from code base.
2 parents 72ea94a + cf20509 commit 1ed71f6

File tree

19 files changed

+204
-74
lines changed

19 files changed

+204
-74
lines changed

packages/pf4-component-mapper/package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
"@babel/preset-react": "^7.0.0",
2424
"@data-driven-forms/react-form-renderer": "*",
2525
"@patternfly/react-core": "^3.104.0",
26-
"@patternfly/react-icons": "^3.14.2",
2726
"@semantic-release/git": "^7.0.5",
2827
"@semantic-release/npm": "^5.1.1",
2928
"babel-core": "^7.0.0-bridge.0",
@@ -85,8 +84,7 @@
8584
},
8685
"peerDependencies": {
8786
"@data-driven-forms/react-form-renderer": "^1.11.0",
88-
"@patternfly/react-core": "^3.104.0",
89-
"@patternfly/react-icons": "^3.14.2"
87+
"@patternfly/react-core": "^3.104.0"
9088
},
9189
"dependencies": {
9290
"@patternfly/patternfly-next": "^1.0.175",

packages/pf4-component-mapper/rollup.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ const globals = {
1212
react: 'React',
1313
'react-dom': 'ReactDOM',
1414
'@patternfly/react-core': 'PatternflyReact',
15-
'@patternfly/react-icons': 'PatternflyReactIcons',
1615
'@data-driven-forms/react-form-renderer': '@data-driven-forms/react-form-renderer',
1716
};
1817

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"dist/index.js": {
3-
"bundled": 346567,
4-
"minified": 141696,
5-
"gzipped": 39777
3+
"bundled": 354331,
4+
"minified": 147276,
5+
"gzipped": 42033
66
}
77
}

packages/pf4-component-mapper/src/form-fields/fieldArray/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
import React, { Fragment } from 'react';
22
import PropTypes from 'prop-types';
33
import { Grid, GridItem, Bullseye, FormHelperText } from '@patternfly/react-core';
4-
import { CloseIcon, AddCircleOIcon } from '@patternfly/react-icons';
4+
5+
import CloseIcon from '../../icons/close-icon';
6+
import AddCircleOIcon from '../../icons/add-circle-o-icon';
57

68
import './final-form-array.scss';
79

packages/pf4-component-mapper/src/form-fields/select/clear-indicator.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import React from 'react';
22
import PropTypes from 'prop-types';
3-
import { TimesCircleIcon } from '@patternfly/react-icons';
43
import { Button, ButtonVariant } from '@patternfly/react-core';
54

5+
import TimesCircleIcon from '../../icons/times-circle-icon';
6+
67
const ClearIndicator = ({
78
clearValue,
89
innerProps: { ref, ...restInnerProps },

packages/pf4-component-mapper/src/form-fields/select/dropdown-indicator.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import React from 'react';
22
import PropTypes from 'prop-types';
3-
import { CaretDownIcon, CircleNotchIcon } from '@patternfly/react-icons';
3+
4+
import CaretDownIcon from '../../icons/caret-down-icon';
5+
import CircleNotchIcon from '../../icons/circle-notch-icon';
46

57
const DropdownIndicator = ({ selectProps: { isFetching }}) => isFetching ? <CircleNotchIcon className="spinning" /> : <CaretDownIcon />;
68

packages/pf4-component-mapper/src/form-fields/select/multi-value-remove.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import React from 'react';
22
import { components } from 'react-select';
3-
import { TimesCircleIcon } from '@patternfly/react-icons';
3+
4+
import TimesCircleIcon from '../../icons/times-circle-icon';
45

56
const MultiValueRemove = props => (
67
<components.MultiValueRemove { ...props }>

packages/pf4-component-mapper/src/form-fields/select/option.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import React from 'react';
22
import { components } from 'react-select';
33
import PropTypes from 'prop-types';
4-
import { CheckIcon } from '@patternfly/react-icons';
54
import { Checkbox } from '@patternfly/react-core';
65

6+
import CheckIcon from '../../icons/check-icon';
7+
78
const Option = (props) => (
89
<div
910
className={ `ddorg__pf4-component-mapper__select__menu--option ${props.isFocused ? 'focused' : ''}` }
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import React from 'react';
2+
3+
const AddCircleOIcon = props => (
4+
<svg
5+
fill="currentColor"
6+
height="1em"
7+
width="1em"
8+
viewBox="0 64 1024 1024"
9+
aria-labelledby="icon-title-25"
10+
role="img"
11+
style={{ 'vertical-align': '-0.375em;' }}
12+
tabIndex="0"
13+
{ ...props }
14+
>
15+
<title id="icon-title-25">AddCircleOIcon</title>
16+
<path d="M512.059-73.143c-282.338 0-512.059 229.673-512.059 512.025 0 282.238 229.721 511.975 512.059 511.975 282.283 0 511.941-229.735 511.941-511.975 0.005-282.352-229.659-512.025-511.941-512.025zM512.059 826.523c-213.826 0-387.728-173.856-387.728-387.643 0-213.888 173.904-387.691 387.728-387.691 213.717 0 387.671 173.803 387.671 387.691 0.005 213.785-173.957 387.643-387.671 387.643zM726.283 506.777c-3.429 3.477-7.803 5.223-13.138 5.223h-128.005v128.007c0 5.333-1.739 9.71-5.218 13.138s-7.936 5.141-13.351 5.141h-109.143c-5.417 0-9.863-1.714-13.351-5.141-3.481-3.429-5.221-7.808-5.221-13.141v-128.005l-128.007-0.002c-5.333 0-9.71-1.737-13.138-5.218-3.426-3.477-5.141-7.934-5.141-13.351v-109.143c0-5.417 1.714-9.856 5.141-13.351 3.429-3.481 7.808-5.221 13.141-5.221l128.005 0.002v-128.009c0-5.335 1.744-9.707 5.225-13.134 3.477-3.429 7.927-5.145 13.344-5.145h109.143c5.417 0 9.858 1.717 13.351 5.145 3.477 3.429 5.223 7.803 5.223 13.138v128.002h128.007c5.335 0 9.707 1.742 13.134 5.225 3.429 3.477 5.145 7.927 5.145 13.344v109.143c0 5.417-1.717 9.863-5.145 13.351z" transform="rotate(180 0 512) scale(-1 1)"></path>
17+
</svg>
18+
);
19+
20+
export default AddCircleOIcon;
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import React from 'react';
2+
3+
const CaretDownIcon = props => (
4+
<svg
5+
fill="currentColor"
6+
height="1em"
7+
width="1em"
8+
viewBox="0 0 320 512"
9+
aria-labelledby="icon-title-219"
10+
role="img"
11+
style={{ 'vertical-align': '-0.375em;' }}
12+
tabIndex="0"
13+
{ ...props }
14+
>
15+
<title id="icon-title-219">CaretDownIcon</title>
16+
<path d="M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z" transform=""></path>
17+
</svg>
18+
);
19+
20+
export default CaretDownIcon;

0 commit comments

Comments
 (0)