Skip to content

Commit c7e6284

Browse files
committed
feat(pf4): add duallist component
1 parent bd81937 commit c7e6284

File tree

11 files changed

+969
-5
lines changed

11 files changed

+969
-5
lines changed

packages/pf4-component-mapper/demo/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="UTF-8">
55
<meta name="viewport" content="width=device-width, initial-scale=1.0">
66
<meta http-equiv="X-UA-Compatible" content="ie=edge">
7-
<link rel="stylesheet" type="text/css" href="https://unpkg.com/@patternfly/patternfly@2.43.0/patternfly-base.css"/>
7+
<link rel="stylesheet" type="text/css" href="https://unpkg.com/@patternfly/patternfly@2.67.0/patternfly-base.css"/>
88
<title>Data driven forms</title>
99
</head>
1010
<body>

packages/pf4-component-mapper/src/components/component-mapper.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import DatePicker from './date-picker';
1313
import TimePicker from './time-picker';
1414
import Switch from './switch';
1515
import PlainText from './plain-text';
16+
import DualListSelect from './dual-list-select';
1617

1718
const mapper = {
1819
[componentTypes.TEXT_FIELD]: TextField,
@@ -27,7 +28,8 @@ const mapper = {
2728
[componentTypes.WIZARD]: Wizard,
2829
[componentTypes.SWITCH]: Switch,
2930
[componentTypes.PLAIN_TEXT]: PlainText,
30-
[componentTypes.FIELD_ARRAY]: FieldArray
31+
[componentTypes.FIELD_ARRAY]: FieldArray,
32+
'dual-list-select': DualListSelect
3133
};
3234

3335
export default mapper;
@@ -41,7 +43,8 @@ export const components = {
4143
DatePicker,
4244
TimePicker,
4345
Switch,
44-
PlainText
46+
PlainText,
47+
DualListSelect
4548
};
4649

4750
export const rawComponents = {

0 commit comments

Comments
 (0)