Skip to content

Commit 434ecf7

Browse files
committed
fix(pf4): module build was pointing towards umd.
1 parent b4b6cd3 commit 434ecf7

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

packages/parsers/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "0.4.2",
44
"description": "Parsers for Data Driven Forms.",
55
"main": "dist/cjs/index.js",
6-
"module": "dist/umd/index.js",
6+
"module": "dist/esm/index.js",
77
"license": "Apache-2.0",
88
"scripts": {
99
"build": "rollup -c ./rollup.config.js"

packages/pf4-component-mapper/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "0.4.2",
44
"description": "Starter pf4-component-mapper for data-driven-forms.",
55
"main": "dist/cjs/index.js",
6-
"module": "dist/umd/index.js",
6+
"module": "dist/esm/index.js",
77
"license": "Apache-2.0",
88
"scripts": {
99
"start": "webpack-dev-server --env dev --config ./config/webpack.config.js --open --hot",
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import React from 'react';
2-
import { FormGroup as Pf4FormGroup, TextContent, Text, TextVariants } from '@patternfly/react-core';
2+
import { FormGroup, TextContent, Text } from '@patternfly/react-core';
33
import PropTypes from 'prop-types';
44

5-
const FormGroup = ({ label, isRequired, helperText, meta, description, hideLabel, children, id }) => {
5+
const Pf4FormGroup = ({ label, isRequired, helperText, meta, description, hideLabel, children, id }) => {
66
const { error, touched } = meta;
77
const showError = touched && error;
88
return (
9-
<Pf4FormGroup
9+
<FormGroup
1010
isRequired={isRequired}
1111
label={!hideLabel && label}
1212
fieldId={id}
@@ -16,15 +16,15 @@ const FormGroup = ({ label, isRequired, helperText, meta, description, hideLabel
1616
>
1717
{description && (
1818
<TextContent>
19-
<Text component={TextVariants.small}>{description}</Text>
19+
<Text component="small">{description}</Text>
2020
</TextContent>
2121
)}
2222
{children}
23-
</Pf4FormGroup>
23+
</FormGroup>
2424
);
2525
};
2626

27-
FormGroup.propTypes = {
27+
Pf4FormGroup.propTypes = {
2828
label: PropTypes.string,
2929
isRequired: PropTypes.bool,
3030
helperText: PropTypes.string,
@@ -35,9 +35,9 @@ FormGroup.propTypes = {
3535
children: PropTypes.oneOfType([PropTypes.element, PropTypes.arrayOf(PropTypes.element)]).isRequired
3636
};
3737

38-
FormGroup.defaultProps = {
38+
Pf4FormGroup.defaultProps = {
3939
isRequired: false,
4040
description: undefined
4141
};
4242

43-
export default FormGroup;
43+
export default Pf4FormGroup;

0 commit comments

Comments
 (0)