@patternfly/react-core 3.144.1 → 3.146.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +46 -0
- package/dist/esm/components/DataToolbar/DataToolbarFilter.js +16 -5
- package/dist/esm/components/Drawer/Drawer.js +26 -36
- package/dist/esm/components/Drawer/DrawerActions.js +28 -0
- package/dist/esm/components/Drawer/DrawerCloseButton.js +36 -0
- package/dist/esm/components/Drawer/DrawerContent.js +9 -6
- package/dist/esm/components/Drawer/DrawerContentBody.js +30 -0
- package/dist/esm/components/Drawer/DrawerHead.js +33 -0
- package/dist/esm/components/Drawer/DrawerMain.js +28 -0
- package/dist/esm/components/Drawer/DrawerPanelBody.js +30 -0
- package/dist/esm/components/Drawer/DrawerPanelContent.js +12 -8
- package/dist/esm/components/Drawer/DrawerSection.js +28 -0
- package/dist/esm/components/Drawer/index.js +7 -1
- package/dist/esm/components/Dropdown/Toggle.js +3 -1
- package/dist/esm/components/FileUpload/FileUpload.js +123 -0
- package/dist/esm/components/FileUpload/FileUploadField.js +123 -0
- package/dist/esm/components/FileUpload/index.js +3 -0
- package/dist/esm/components/Modal/ModalBoxDescription.js +30 -0
- package/dist/esm/components/Modal/ModalContent.js +2 -3
- package/dist/esm/components/Select/Select.js +70 -36
- package/dist/esm/components/Select/SelectMenu.js +34 -25
- package/dist/esm/components/Select/SelectOption.js +15 -5
- package/dist/esm/components/Select/SelectToggle.js +6 -3
- package/dist/esm/components/index.js +1 -0
- package/dist/esm/helpers/fileUtils.js +32 -0
- package/dist/esm/helpers/util.js +1 -1
- package/dist/js/components/DataToolbar/DataToolbarFilter.d.ts +8 -2
- package/dist/js/components/DataToolbar/DataToolbarFilter.js +21 -12
- package/dist/js/components/Drawer/Drawer.d.ts +7 -6
- package/dist/js/components/Drawer/Drawer.js +32 -67
- package/dist/js/components/Drawer/DrawerActions.d.ts +8 -0
- package/dist/js/components/Drawer/DrawerActions.js +44 -0
- package/dist/js/components/Drawer/DrawerCloseButton.d.ts +10 -0
- package/dist/js/components/Drawer/DrawerCloseButton.js +58 -0
- package/dist/js/components/Drawer/DrawerContent.d.ts +3 -1
- package/dist/js/components/Drawer/DrawerContent.js +9 -5
- package/dist/js/components/Drawer/DrawerContentBody.d.ts +10 -0
- package/dist/js/components/Drawer/DrawerContentBody.js +47 -0
- package/dist/js/components/Drawer/DrawerHead.d.ts +10 -0
- package/dist/js/components/Drawer/DrawerHead.js +51 -0
- package/dist/js/components/Drawer/DrawerMain.d.ts +8 -0
- package/dist/js/components/Drawer/DrawerMain.js +44 -0
- package/dist/js/components/Drawer/DrawerPanelBody.d.ts +10 -0
- package/dist/js/components/Drawer/DrawerPanelBody.js +47 -0
- package/dist/js/components/Drawer/DrawerPanelContent.d.ts +3 -4
- package/dist/js/components/Drawer/DrawerPanelContent.js +16 -10
- package/dist/js/components/Drawer/DrawerSection.d.ts +8 -0
- package/dist/js/components/Drawer/DrawerSection.js +44 -0
- package/dist/js/components/Drawer/index.d.ts +7 -1
- package/dist/js/components/Drawer/index.js +75 -3
- package/dist/js/components/Dropdown/Toggle.js +2 -1
- package/dist/js/components/FileUpload/FileUpload.d.ts +57 -0
- package/dist/js/components/FileUpload/FileUpload.js +151 -0
- package/dist/js/components/FileUpload/FileUploadField.d.ts +57 -0
- package/dist/js/components/FileUpload/FileUploadField.js +167 -0
- package/dist/js/components/FileUpload/index.d.ts +2 -0
- package/dist/js/components/FileUpload/index.js +30 -0
- package/dist/js/components/Modal/ModalBoxDescription.d.ts +10 -0
- package/dist/js/components/Modal/ModalBoxDescription.js +49 -0
- package/dist/js/components/Modal/ModalContent.js +3 -4
- package/dist/js/components/Select/Select.d.ts +2 -0
- package/dist/js/components/Select/Select.js +79 -35
- package/dist/js/components/Select/SelectMenu.d.ts +3 -1
- package/dist/js/components/Select/SelectMenu.js +30 -14
- package/dist/js/components/Select/SelectOption.d.ts +2 -0
- package/dist/js/components/Select/SelectOption.js +15 -5
- package/dist/js/components/Select/SelectToggle.d.ts +2 -0
- package/dist/js/components/Select/SelectToggle.js +6 -3
- package/dist/js/components/index.d.ts +1 -0
- package/dist/js/components/index.js +12 -0
- package/dist/js/helpers/fileUtils.d.ts +12 -0
- package/dist/js/helpers/fileUtils.js +45 -0
- package/dist/js/helpers/util.js +3 -1
- package/dist/umd/components/DataToolbar/DataToolbarFilter.js +16 -5
- package/dist/umd/components/Drawer/Drawer.js +27 -50
- package/dist/umd/components/Drawer/DrawerActions.js +154 -0
- package/dist/umd/components/Drawer/DrawerCloseButton.js +162 -0
- package/dist/umd/components/Drawer/DrawerContent.js +12 -10
- package/dist/umd/components/Drawer/DrawerContentBody.js +156 -0
- package/dist/umd/components/Drawer/DrawerHead.js +158 -0
- package/dist/umd/components/Drawer/DrawerMain.js +154 -0
- package/dist/umd/components/Drawer/DrawerPanelBody.js +156 -0
- package/dist/umd/components/Drawer/DrawerPanelContent.js +16 -13
- package/dist/umd/components/Drawer/DrawerSection.js +154 -0
- package/dist/umd/components/Drawer/index.js +60 -6
- package/dist/umd/components/Dropdown/Toggle.js +3 -1
- package/dist/umd/components/FileUpload/FileUpload.js +291 -0
- package/dist/umd/components/FileUpload/FileUploadField.js +243 -0
- package/dist/umd/components/FileUpload/index.js +38 -0
- package/dist/umd/components/Modal/ModalBoxDescription.js +156 -0
- package/dist/umd/components/Modal/ModalContent.js +5 -8
- package/dist/umd/components/Select/Select.js +71 -38
- package/dist/umd/components/Select/SelectMenu.js +37 -29
- package/dist/umd/components/Select/SelectOption.js +15 -5
- package/dist/umd/components/Select/SelectToggle.js +6 -3
- package/dist/umd/components/index.js +13 -4
- package/dist/umd/helpers/fileUtils.js +52 -0
- package/dist/umd/helpers/util.js +1 -1
- package/package.json +7 -6
- package/src/components/ApplicationLauncher/__tests__/__snapshots__/ApplicationLauncher.test.tsx.snap +0 -6
- package/src/components/DataToolbar/DataToolbarFilter.tsx +18 -6
- package/src/components/DataToolbar/__tests__/__snapshots__/DataToolbar.test.tsx.snap +16 -0
- package/src/components/Drawer/Drawer.tsx +36 -31
- package/src/components/Drawer/DrawerActions.tsx +21 -0
- package/src/components/Drawer/DrawerCloseButton.tsx +28 -0
- package/src/components/Drawer/DrawerContent.tsx +11 -4
- package/src/components/Drawer/DrawerContentBody.tsx +24 -0
- package/src/components/Drawer/DrawerHead.tsx +27 -0
- package/src/components/Drawer/DrawerMain.tsx +21 -0
- package/src/components/Drawer/DrawerPanelBody.tsx +24 -0
- package/src/components/Drawer/DrawerPanelContent.tsx +19 -8
- package/src/components/Drawer/DrawerSection.tsx +21 -0
- package/src/components/Drawer/__tests__/Drawer.test.tsx +24 -13
- package/src/components/Drawer/__tests__/Generated/__snapshots__/Drawer.test.tsx.snap +13 -5
- package/src/components/Drawer/__tests__/Generated/__snapshots__/DrawerContent.test.tsx.snap +8 -6
- package/src/components/Drawer/__tests__/Generated/__snapshots__/DrawerPanelContent.test.tsx.snap +3 -11
- package/src/components/Drawer/__tests__/__snapshots__/Drawer.test.tsx.snap +764 -69
- package/src/components/Drawer/examples/Drawer.md +434 -11
- package/src/components/Drawer/index.ts +7 -1
- package/src/components/Dropdown/Toggle.tsx +2 -0
- package/src/components/Dropdown/__tests__/__snapshots__/Dropdown.test.tsx.snap +0 -14
- package/src/components/Dropdown/__tests__/__snapshots__/DropdownToggle.test.tsx.snap +0 -5
- package/src/components/Dropdown/__tests__/__snapshots__/Toggle.test.tsx.snap +0 -2
- package/src/components/FileUpload/FileUpload.tsx +150 -0
- package/src/components/FileUpload/FileUploadField.tsx +176 -0
- package/src/components/FileUpload/__tests__/FileUpload.test.tsx +22 -0
- package/src/components/FileUpload/__tests__/FileUploadField.test.tsx +27 -0
- package/src/components/FileUpload/__tests__/__snapshots__/FileUpload.test.tsx.snap +16 -0
- package/src/components/FileUpload/__tests__/__snapshots__/FileUploadField.test.tsx.snap +60 -0
- package/src/components/FileUpload/examples/FileUpload.md +283 -0
- package/src/components/FileUpload/index.ts +2 -0
- package/src/components/Modal/ModalBoxDescription.tsx +23 -0
- package/src/components/Modal/ModalContent.tsx +2 -6
- package/src/components/Modal/__tests__/__snapshots__/ModalContent.test.tsx.snap +2 -3
- package/src/components/OptionsMenu/__tests__/__snapshots__/OptionsMenu.test.tsx.snap +0 -7
- package/src/components/Pagination/__tests__/__snapshots__/Pagination.test.tsx.snap +0 -13
- package/src/components/Select/Select.tsx +74 -33
- package/src/components/Select/SelectMenu.tsx +28 -23
- package/src/components/Select/SelectOption.tsx +28 -3
- package/src/components/Select/SelectToggle.tsx +6 -1
- package/src/components/Select/__tests__/Select.test.tsx +16 -0
- package/src/components/Select/__tests__/__snapshots__/Select.test.tsx.snap +911 -174
- package/src/components/Select/__tests__/__snapshots__/SelectOption.test.tsx.snap +7 -7
- package/src/components/Select/__tests__/__snapshots__/SelectToggle.test.tsx.snap +3 -0
- package/src/components/Select/examples/Select.md +109 -6
- package/src/components/index.ts +1 -0
- package/src/helpers/__tests__/fileUtils.test.ts +17 -0
- package/src/helpers/fileUtils.ts +26 -0
- package/src/helpers/util.ts +1 -1
- package/src/components/Drawer/Drawer.test.tsx +0 -22
- package/src/components/Drawer/__snapshots__/Drawer.test.tsx.snap +0 -121
|
@@ -2,18 +2,16 @@
|
|
|
2
2
|
title: 'Drawer'
|
|
3
3
|
cssPrefix: 'pf-c-drawer'
|
|
4
4
|
typescript: true
|
|
5
|
-
propComponents: ['Drawer', '
|
|
5
|
+
propComponents: ['Drawer', 'DrawerContent', 'DrawerPanelContent', DrawerContentBody, DrawerPanelBody, DrawerSection, DrawerHead, DrawerActions, DrawerCloseButton]
|
|
6
6
|
section: 'components'
|
|
7
7
|
beta: true
|
|
8
8
|
---
|
|
9
|
-
import { Drawer, DrawerPanelContent, DrawerContent } from '@patternfly/react-core';
|
|
10
|
-
import { Alert } from '@patternfly/react-core';
|
|
9
|
+
import { Drawer, DrawerPanelContent, DrawerContent, DrawerContentBody, DrawerPanelBody, DrawerSection, DrawerHead, DrawerActions, DrawerCloseButton } from '@patternfly/react-core';
|
|
11
10
|
|
|
12
11
|
## Examples
|
|
13
12
|
```js title=Basic
|
|
14
13
|
import React, { ReactFragment } from 'react';
|
|
15
|
-
import { Drawer, DrawerPanelContent, DrawerContent } from '@patternfly/react-core';
|
|
16
|
-
import { Button } from '@patternfly/react-core';
|
|
14
|
+
import { Drawer, DrawerPanelContent, DrawerContent, DrawerContentBody, DrawerPanelBody, DrawerHead, DrawerActions, DrawerCloseButton, Button } from '@patternfly/react-core';
|
|
17
15
|
|
|
18
16
|
class SimpleDrawer extends React.Component {
|
|
19
17
|
|
|
@@ -29,18 +27,86 @@ class SimpleDrawer extends React.Component {
|
|
|
29
27
|
isExpanded
|
|
30
28
|
});
|
|
31
29
|
};
|
|
30
|
+
|
|
31
|
+
this.onCloseClick = () => {
|
|
32
|
+
this.setState({
|
|
33
|
+
isExpanded: false
|
|
34
|
+
});
|
|
35
|
+
};
|
|
32
36
|
}
|
|
33
37
|
|
|
34
38
|
render() {
|
|
35
39
|
const { isExpanded } = this.state;
|
|
40
|
+
const panelContent = (
|
|
41
|
+
<DrawerPanelContent>
|
|
42
|
+
<DrawerHead>
|
|
43
|
+
<span>drawer-panel</span>
|
|
44
|
+
<DrawerActions>
|
|
45
|
+
<DrawerCloseButton onClick={this.onCloseClick}/>
|
|
46
|
+
</DrawerActions>
|
|
47
|
+
</DrawerHead>
|
|
48
|
+
</DrawerPanelContent>);
|
|
36
49
|
|
|
37
50
|
const drawerContent = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus pretium est a porttitor vehicula. Quisque vel commodo urna. Morbi mattis rutrum ante, id vehicula ex accumsan ut. Morbi viverra, eros vel porttitor facilisis, eros purus aliquet erat,nec lobortis felis elit pulvinar sem. Vivamus vulputate, risus eget commodo eleifend, eros nibh porta quam, vitae lacinia leo libero at magna. Maecenas aliquam sagittis orci, et posuere nisi ultrices sit amet. Aliquam ex odio, malesuada sed posuere quis, pellentesque at mauris. Phasellus venenatis massa ex, eget pulvinar libero auctor pretium. Aliquam erat volutpat. Duis euismod justo in quam ullamcorper, in commodo massa vulputate.";
|
|
38
51
|
|
|
39
52
|
return (<React.Fragment>
|
|
40
53
|
<Button onClick={this.onClick}>Toggle Drawer</Button>
|
|
41
54
|
<Drawer isExpanded={isExpanded}>
|
|
42
|
-
<DrawerContent
|
|
43
|
-
|
|
55
|
+
<DrawerContent panelContent={panelContent}>
|
|
56
|
+
<DrawerContentBody>{drawerContent}</DrawerContentBody>
|
|
57
|
+
</DrawerContent>
|
|
58
|
+
</Drawer>
|
|
59
|
+
</React.Fragment>);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
```js title=Panel-on-left
|
|
65
|
+
import React, { ReactFragment } from 'react';
|
|
66
|
+
import { Drawer, DrawerPanelContent, DrawerContent, DrawerContentBody, DrawerPanelBody, DrawerHead, DrawerActions, DrawerCloseButton, Button } from '@patternfly/react-core';
|
|
67
|
+
|
|
68
|
+
class SimpleDrawerPanelLeft extends React.Component {
|
|
69
|
+
|
|
70
|
+
constructor(props) {
|
|
71
|
+
super(props);
|
|
72
|
+
this.state = {
|
|
73
|
+
isExpanded: false
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
this.onClick = () => {
|
|
77
|
+
const isExpanded = !this.state.isExpanded;
|
|
78
|
+
this.setState({
|
|
79
|
+
isExpanded
|
|
80
|
+
});
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
this.onCloseClick = () => {
|
|
84
|
+
this.setState({
|
|
85
|
+
isExpanded: false
|
|
86
|
+
});
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
render() {
|
|
91
|
+
const { isExpanded } = this.state;
|
|
92
|
+
const panelContent = (
|
|
93
|
+
<DrawerPanelContent>
|
|
94
|
+
<DrawerHead>
|
|
95
|
+
<span>drawer-panel</span>
|
|
96
|
+
<DrawerActions>
|
|
97
|
+
<DrawerCloseButton onClick={this.onCloseClick}/>
|
|
98
|
+
</DrawerActions>
|
|
99
|
+
</DrawerHead>
|
|
100
|
+
</DrawerPanelContent>);
|
|
101
|
+
|
|
102
|
+
const drawerContent = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus pretium est a porttitor vehicula. Quisque vel commodo urna. Morbi mattis rutrum ante, id vehicula ex accumsan ut. Morbi viverra, eros vel porttitor facilisis, eros purus aliquet erat,nec lobortis felis elit pulvinar sem. Vivamus vulputate, risus eget commodo eleifend, eros nibh porta quam, vitae lacinia leo libero at magna. Maecenas aliquam sagittis orci, et posuere nisi ultrices sit amet. Aliquam ex odio, malesuada sed posuere quis, pellentesque at mauris. Phasellus venenatis massa ex, eget pulvinar libero auctor pretium. Aliquam erat volutpat. Duis euismod justo in quam ullamcorper, in commodo massa vulputate.";
|
|
103
|
+
|
|
104
|
+
return (<React.Fragment>
|
|
105
|
+
<Button onClick={this.onClick}>Toggle Drawer</Button>
|
|
106
|
+
<Drawer isExpanded={isExpanded} position="left">
|
|
107
|
+
<DrawerContent panelContent={panelContent}>
|
|
108
|
+
<DrawerContentBody>{drawerContent}</DrawerContentBody>
|
|
109
|
+
</DrawerContent>
|
|
44
110
|
</Drawer>
|
|
45
111
|
</React.Fragment>);
|
|
46
112
|
}
|
|
@@ -49,8 +115,7 @@ class SimpleDrawer extends React.Component {
|
|
|
49
115
|
|
|
50
116
|
```js title=Basic-inline
|
|
51
117
|
import React, { ReactFragment } from 'react';
|
|
52
|
-
import { Drawer, DrawerPanelContent, DrawerContent } from '@patternfly/react-core';
|
|
53
|
-
import { Button } from '@patternfly/react-core';
|
|
118
|
+
import { Drawer, DrawerPanelContent, DrawerContent, DrawerContentBody, DrawerPanelBody, DrawerHead, DrawerActions, DrawerCloseButton, Button } from '@patternfly/react-core';
|
|
54
119
|
|
|
55
120
|
class SimpleDrawerInlineContent extends React.Component {
|
|
56
121
|
|
|
@@ -66,20 +131,378 @@ class SimpleDrawerInlineContent extends React.Component {
|
|
|
66
131
|
isExpanded
|
|
67
132
|
});
|
|
68
133
|
};
|
|
134
|
+
|
|
135
|
+
this.onCloseClick = () => {
|
|
136
|
+
this.setState({
|
|
137
|
+
isExpanded: false
|
|
138
|
+
});
|
|
139
|
+
};
|
|
69
140
|
}
|
|
70
141
|
|
|
71
142
|
render() {
|
|
72
143
|
const { isExpanded } = this.state;
|
|
144
|
+
const panelContent = (
|
|
145
|
+
<DrawerPanelContent>
|
|
146
|
+
<DrawerHead>
|
|
147
|
+
<span>drawer-panel</span>
|
|
148
|
+
<DrawerActions>
|
|
149
|
+
<DrawerCloseButton onClick={this.onCloseClick}/>
|
|
150
|
+
</DrawerActions>
|
|
151
|
+
</DrawerHead>
|
|
152
|
+
</DrawerPanelContent>);
|
|
73
153
|
|
|
74
154
|
const drawerContent = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus pretium est a porttitor vehicula. Quisque vel commodo urna. Morbi mattis rutrum ante, id vehicula ex accumsan ut. Morbi viverra, eros vel porttitor facilisis, eros purus aliquet erat,nec lobortis felis elit pulvinar sem. Vivamus vulputate, risus eget commodo eleifend, eros nibh porta quam, vitae lacinia leo libero at magna. Maecenas aliquam sagittis orci, et posuere nisi ultrices sit amet. Aliquam ex odio, malesuada sed posuere quis, pellentesque at mauris. Phasellus venenatis massa ex, eget pulvinar libero auctor pretium. Aliquam erat volutpat. Duis euismod justo in quam ullamcorper, in commodo massa vulputate.";
|
|
75
155
|
|
|
76
156
|
return (<React.Fragment>
|
|
77
157
|
<Button onClick={this.onClick}>Toggle Drawer</Button>
|
|
78
158
|
<Drawer isExpanded={isExpanded} isInline>
|
|
79
|
-
<DrawerContent
|
|
80
|
-
|
|
159
|
+
<DrawerContent panelContent={panelContent}>
|
|
160
|
+
<DrawerContentBody>{drawerContent}</DrawerContentBody>
|
|
161
|
+
</DrawerContent>
|
|
162
|
+
</Drawer>
|
|
163
|
+
</React.Fragment>);
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
```js title=-Inline-panel-on-left
|
|
169
|
+
import React, { ReactFragment } from 'react';
|
|
170
|
+
import { Drawer, DrawerPanelContent, DrawerContent, DrawerContentBody, DrawerPanelBody, DrawerHead, DrawerActions, DrawerCloseButton, Button } from '@patternfly/react-core';
|
|
171
|
+
|
|
172
|
+
class DrawerInlineContentPanelLeft extends React.Component {
|
|
173
|
+
|
|
174
|
+
constructor(props) {
|
|
175
|
+
super(props);
|
|
176
|
+
this.state = {
|
|
177
|
+
isExpanded: false
|
|
178
|
+
};
|
|
179
|
+
|
|
180
|
+
this.onClick = () => {
|
|
181
|
+
const isExpanded = !this.state.isExpanded;
|
|
182
|
+
this.setState({
|
|
183
|
+
isExpanded
|
|
184
|
+
});
|
|
185
|
+
};
|
|
186
|
+
|
|
187
|
+
this.onCloseClick = () => {
|
|
188
|
+
this.setState({
|
|
189
|
+
isExpanded: false
|
|
190
|
+
});
|
|
191
|
+
};
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
render() {
|
|
195
|
+
const { isExpanded } = this.state;
|
|
196
|
+
const panelContent = (
|
|
197
|
+
<DrawerPanelContent>
|
|
198
|
+
<DrawerHead>
|
|
199
|
+
<span>drawer-panel</span>
|
|
200
|
+
<DrawerActions>
|
|
201
|
+
<DrawerCloseButton onClick={this.onCloseClick}/>
|
|
202
|
+
</DrawerActions>
|
|
203
|
+
</DrawerHead>
|
|
204
|
+
</DrawerPanelContent>);
|
|
205
|
+
|
|
206
|
+
const drawerContent = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus pretium est a porttitor vehicula. Quisque vel commodo urna. Morbi mattis rutrum ante, id vehicula ex accumsan ut. Morbi viverra, eros vel porttitor facilisis, eros purus aliquet erat,nec lobortis felis elit pulvinar sem. Vivamus vulputate, risus eget commodo eleifend, eros nibh porta quam, vitae lacinia leo libero at magna. Maecenas aliquam sagittis orci, et posuere nisi ultrices sit amet. Aliquam ex odio, malesuada sed posuere quis, pellentesque at mauris. Phasellus venenatis massa ex, eget pulvinar libero auctor pretium. Aliquam erat volutpat. Duis euismod justo in quam ullamcorper, in commodo massa vulputate.";
|
|
207
|
+
|
|
208
|
+
return (<React.Fragment>
|
|
209
|
+
<Button onClick={this.onClick}>Toggle Drawer</Button>
|
|
210
|
+
<Drawer isExpanded={isExpanded} isInline position='left'>
|
|
211
|
+
<DrawerContent panelContent={panelContent}>
|
|
212
|
+
<DrawerContentBody>{drawerContent}</DrawerContentBody>
|
|
213
|
+
</DrawerContent>
|
|
214
|
+
</Drawer>
|
|
215
|
+
</React.Fragment>);
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
```
|
|
219
|
+
|
|
220
|
+
```js title=Stacked-content-body-elements
|
|
221
|
+
import React, { ReactFragment } from 'react';
|
|
222
|
+
import { Drawer, DrawerPanelContent, DrawerContent, DrawerContentBody, DrawerPanelBody, DrawerHead, DrawerActions, DrawerCloseButton, Button } from '@patternfly/react-core';
|
|
223
|
+
|
|
224
|
+
class DrawerStackedContentBodyElements extends React.Component {
|
|
225
|
+
|
|
226
|
+
constructor(props) {
|
|
227
|
+
super(props);
|
|
228
|
+
this.state = {
|
|
229
|
+
isExpanded: false
|
|
230
|
+
};
|
|
231
|
+
|
|
232
|
+
this.onClick = () => {
|
|
233
|
+
const isExpanded = !this.state.isExpanded;
|
|
234
|
+
this.setState({
|
|
235
|
+
isExpanded
|
|
236
|
+
});
|
|
237
|
+
};
|
|
238
|
+
|
|
239
|
+
this.onCloseClick = () => {
|
|
240
|
+
this.setState({
|
|
241
|
+
isExpanded: false
|
|
242
|
+
});
|
|
243
|
+
};
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
render() {
|
|
247
|
+
const { isExpanded } = this.state;
|
|
248
|
+
const panelContent = (
|
|
249
|
+
<DrawerPanelContent>
|
|
250
|
+
<DrawerHead>
|
|
251
|
+
<DrawerActions>
|
|
252
|
+
<DrawerCloseButton onClick={this.onCloseClick}/>
|
|
253
|
+
</DrawerActions>
|
|
254
|
+
drawer-panel
|
|
255
|
+
</DrawerHead>
|
|
256
|
+
<DrawerPanelBody noPadding>drawer-panel with no padding</DrawerPanelBody>
|
|
257
|
+
<DrawerPanelBody>drawer-panel</DrawerPanelBody>
|
|
258
|
+
</DrawerPanelContent>);
|
|
259
|
+
|
|
260
|
+
return (<React.Fragment>
|
|
261
|
+
<Button onClick={this.onClick}>Toggle Drawer</Button>
|
|
262
|
+
<Drawer isExpanded={isExpanded}>
|
|
263
|
+
<DrawerContent panelContent={panelContent}>
|
|
264
|
+
<DrawerContentBody>content-body</DrawerContentBody>
|
|
265
|
+
<DrawerContentBody hasPadding>content-body with padding</DrawerContentBody>
|
|
266
|
+
<DrawerContentBody>content-body</DrawerContentBody>
|
|
267
|
+
</DrawerContent>
|
|
81
268
|
</Drawer>
|
|
82
269
|
</React.Fragment>);
|
|
83
270
|
}
|
|
84
271
|
}
|
|
85
272
|
```
|
|
273
|
+
|
|
274
|
+
```js title=Modified-content-padding
|
|
275
|
+
import React, { ReactFragment } from 'react';
|
|
276
|
+
import { Drawer, DrawerPanelContent, DrawerContent, DrawerContentBody, DrawerPanelBody, DrawerHead, DrawerActions, DrawerCloseButton, Button } from '@patternfly/react-core';
|
|
277
|
+
|
|
278
|
+
class DrawerModifiedContentPadding extends React.Component {
|
|
279
|
+
|
|
280
|
+
constructor(props) {
|
|
281
|
+
super(props);
|
|
282
|
+
this.state = {
|
|
283
|
+
isExpanded: false
|
|
284
|
+
};
|
|
285
|
+
|
|
286
|
+
this.onClick = () => {
|
|
287
|
+
const isExpanded = !this.state.isExpanded;
|
|
288
|
+
this.setState({
|
|
289
|
+
isExpanded
|
|
290
|
+
});
|
|
291
|
+
};
|
|
292
|
+
|
|
293
|
+
this.onCloseClick = () => {
|
|
294
|
+
this.setState({
|
|
295
|
+
isExpanded: false
|
|
296
|
+
});
|
|
297
|
+
};
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
render() {
|
|
301
|
+
const { isExpanded } = this.state;
|
|
302
|
+
const panelContent = (
|
|
303
|
+
<DrawerPanelContent>
|
|
304
|
+
<DrawerHead>
|
|
305
|
+
<span>drawer-panel</span>
|
|
306
|
+
<DrawerActions>
|
|
307
|
+
<DrawerCloseButton onClick={this.onCloseClick}/>
|
|
308
|
+
</DrawerActions>
|
|
309
|
+
</DrawerHead>
|
|
310
|
+
</DrawerPanelContent>);
|
|
311
|
+
|
|
312
|
+
const drawerContent = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus pretium est a porttitor vehicula. Quisque vel commodo urna. Morbi mattis rutrum ante, id vehicula ex accumsan ut. Morbi viverra, eros vel porttitor facilisis, eros purus aliquet erat,nec lobortis felis elit pulvinar sem. Vivamus vulputate, risus eget commodo eleifend, eros nibh porta quam, vitae lacinia leo libero at magna. Maecenas aliquam sagittis orci, et posuere nisi ultrices sit amet. Aliquam ex odio, malesuada sed posuere quis, pellentesque at mauris. Phasellus venenatis massa ex, eget pulvinar libero auctor pretium. Aliquam erat volutpat. Duis euismod justo in quam ullamcorper, in commodo massa vulputate.";
|
|
313
|
+
|
|
314
|
+
return (<React.Fragment>
|
|
315
|
+
<Button onClick={this.onClick}>Toggle Drawer</Button>
|
|
316
|
+
<Drawer isExpanded={isExpanded}>
|
|
317
|
+
<DrawerContent panelContent={panelContent}>
|
|
318
|
+
<DrawerContentBody hasPadding><b>Drawer content padding.</b> {drawerContent}</DrawerContentBody>
|
|
319
|
+
</DrawerContent>
|
|
320
|
+
</Drawer>
|
|
321
|
+
</React.Fragment>);
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
```
|
|
325
|
+
|
|
326
|
+
```js title=Modified-panel-padding
|
|
327
|
+
import React, { ReactFragment } from 'react';
|
|
328
|
+
import { Drawer, DrawerPanelContent, DrawerContent, DrawerContentBody, DrawerPanelBody, DrawerHead, DrawerActions, DrawerCloseButton, Button } from '@patternfly/react-core';
|
|
329
|
+
|
|
330
|
+
class DrawerModifiedPanelPadding extends React.Component {
|
|
331
|
+
|
|
332
|
+
constructor(props) {
|
|
333
|
+
super(props);
|
|
334
|
+
this.state = {
|
|
335
|
+
isExpanded: false
|
|
336
|
+
};
|
|
337
|
+
|
|
338
|
+
this.onClick = () => {
|
|
339
|
+
const isExpanded = !this.state.isExpanded;
|
|
340
|
+
this.setState({
|
|
341
|
+
isExpanded
|
|
342
|
+
});
|
|
343
|
+
};
|
|
344
|
+
|
|
345
|
+
this.onCloseClick = () => {
|
|
346
|
+
this.setState({
|
|
347
|
+
isExpanded: false
|
|
348
|
+
});
|
|
349
|
+
};
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
render() {
|
|
353
|
+
const { isExpanded } = this.state;
|
|
354
|
+
const panelContent = (
|
|
355
|
+
<DrawerPanelContent>
|
|
356
|
+
<DrawerHead noPadding>
|
|
357
|
+
<span>drawer-panel</span>
|
|
358
|
+
<DrawerActions>
|
|
359
|
+
<DrawerCloseButton onClick={this.onCloseClick}/>
|
|
360
|
+
</DrawerActions>
|
|
361
|
+
</DrawerHead>
|
|
362
|
+
</DrawerPanelContent>);
|
|
363
|
+
|
|
364
|
+
const drawerContent = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus pretium est a porttitor vehicula. Quisque vel commodo urna. Morbi mattis rutrum ante, id vehicula ex accumsan ut. Morbi viverra, eros vel porttitor facilisis, eros purus aliquet erat,nec lobortis felis elit pulvinar sem. Vivamus vulputate, risus eget commodo eleifend, eros nibh porta quam, vitae lacinia leo libero at magna. Maecenas aliquam sagittis orci, et posuere nisi ultrices sit amet. Aliquam ex odio, malesuada sed posuere quis, pellentesque at mauris. Phasellus venenatis massa ex, eget pulvinar libero auctor pretium. Aliquam erat volutpat. Duis euismod justo in quam ullamcorper, in commodo massa vulputate.";
|
|
365
|
+
|
|
366
|
+
return (<React.Fragment>
|
|
367
|
+
<Button onClick={this.onClick}>Toggle Drawer</Button>
|
|
368
|
+
<Drawer isExpanded={isExpanded}>
|
|
369
|
+
<DrawerContent panelContent={panelContent}>
|
|
370
|
+
<DrawerContentBody>{drawerContent}</DrawerContentBody>
|
|
371
|
+
</DrawerContent>
|
|
372
|
+
</Drawer>
|
|
373
|
+
</React.Fragment>);
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
```
|
|
377
|
+
|
|
378
|
+
```js title=Modified-panel-border
|
|
379
|
+
import React, { ReactFragment } from 'react';
|
|
380
|
+
import { Drawer, DrawerPanelContent, DrawerContent, DrawerContentBody, DrawerPanelBody, DrawerHead, DrawerActions, DrawerCloseButton, Button } from '@patternfly/react-core';
|
|
381
|
+
|
|
382
|
+
class DrawerPanelBorder extends React.Component {
|
|
383
|
+
|
|
384
|
+
constructor(props) {
|
|
385
|
+
super(props);
|
|
386
|
+
this.state = {
|
|
387
|
+
isExpanded: false
|
|
388
|
+
};
|
|
389
|
+
|
|
390
|
+
this.onClick = () => {
|
|
391
|
+
const isExpanded = !this.state.isExpanded;
|
|
392
|
+
this.setState({
|
|
393
|
+
isExpanded
|
|
394
|
+
});
|
|
395
|
+
};
|
|
396
|
+
|
|
397
|
+
this.onCloseClick = () => {
|
|
398
|
+
this.setState({
|
|
399
|
+
isExpanded: false
|
|
400
|
+
});
|
|
401
|
+
};
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
render() {
|
|
405
|
+
const { isExpanded } = this.state;
|
|
406
|
+
const panelContent = (
|
|
407
|
+
<DrawerPanelContent hasBorder>
|
|
408
|
+
<DrawerHead>
|
|
409
|
+
<span>drawer-panel</span>
|
|
410
|
+
<DrawerActions>
|
|
411
|
+
<DrawerCloseButton onClick={this.onCloseClick}/>
|
|
412
|
+
</DrawerActions>
|
|
413
|
+
</DrawerHead>
|
|
414
|
+
</DrawerPanelContent>);
|
|
415
|
+
|
|
416
|
+
const drawerContent = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus pretium est a porttitor vehicula. Quisque vel commodo urna. Morbi mattis rutrum ante, id vehicula ex accumsan ut. Morbi viverra, eros vel porttitor facilisis, eros purus aliquet erat,nec lobortis felis elit pulvinar sem. Vivamus vulputate, risus eget commodo eleifend, eros nibh porta quam, vitae lacinia leo libero at magna. Maecenas aliquam sagittis orci, et posuere nisi ultrices sit amet. Aliquam ex odio, malesuada sed posuere quis, pellentesque at mauris. Phasellus venenatis massa ex, eget pulvinar libero auctor pretium. Aliquam erat volutpat. Duis euismod justo in quam ullamcorper, in commodo massa vulputate.";
|
|
417
|
+
|
|
418
|
+
return (<React.Fragment>
|
|
419
|
+
<Button onClick={this.onClick}>Toggle Drawer</Button>
|
|
420
|
+
<Drawer isExpanded={isExpanded}>
|
|
421
|
+
<DrawerContent panelContent={panelContent}>
|
|
422
|
+
<DrawerContentBody>{drawerContent}</DrawerContentBody>
|
|
423
|
+
</DrawerContent>
|
|
424
|
+
</Drawer>
|
|
425
|
+
</React.Fragment>);
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
```
|
|
429
|
+
|
|
430
|
+
```js title=Additional-section-above-drawer-content
|
|
431
|
+
import React, { ReactFragment } from 'react';
|
|
432
|
+
import { Drawer, DrawerPanelContent, DrawerContent, DrawerContentBody, DrawerPanelBody, DrawerHead, DrawerActions, DrawerCloseButton, DrawerSection, Button } from '@patternfly/react-core';
|
|
433
|
+
|
|
434
|
+
class DrawerWithSection extends React.Component {
|
|
435
|
+
|
|
436
|
+
constructor(props) {
|
|
437
|
+
super(props);
|
|
438
|
+
this.state = {
|
|
439
|
+
isExpanded: false
|
|
440
|
+
};
|
|
441
|
+
|
|
442
|
+
this.onClick = () => {
|
|
443
|
+
const isExpanded = !this.state.isExpanded;
|
|
444
|
+
this.setState({
|
|
445
|
+
isExpanded
|
|
446
|
+
});
|
|
447
|
+
};
|
|
448
|
+
|
|
449
|
+
this.onCloseClick = () => {
|
|
450
|
+
this.setState({
|
|
451
|
+
isExpanded: false
|
|
452
|
+
});
|
|
453
|
+
};
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
render() {
|
|
457
|
+
const { isExpanded } = this.state;
|
|
458
|
+
const panelContent = (
|
|
459
|
+
<DrawerPanelContent>
|
|
460
|
+
<DrawerHead>
|
|
461
|
+
<span>drawer-panel</span>
|
|
462
|
+
<DrawerActions>
|
|
463
|
+
<DrawerCloseButton onClick={this.onCloseClick}/>
|
|
464
|
+
</DrawerActions>
|
|
465
|
+
</DrawerHead>
|
|
466
|
+
</DrawerPanelContent>);
|
|
467
|
+
|
|
468
|
+
const drawerContent = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus pretium est a porttitor vehicula. Quisque vel commodo urna. Morbi mattis rutrum ante, id vehicula ex accumsan ut. Morbi viverra, eros vel porttitor facilisis, eros purus aliquet erat,nec lobortis felis elit pulvinar sem. Vivamus vulputate, risus eget commodo eleifend, eros nibh porta quam, vitae lacinia leo libero at magna. Maecenas aliquam sagittis orci, et posuere nisi ultrices sit amet. Aliquam ex odio, malesuada sed posuere quis, pellentesque at mauris. Phasellus venenatis massa ex, eget pulvinar libero auctor pretium. Aliquam erat volutpat. Duis euismod justo in quam ullamcorper, in commodo massa vulputate.";
|
|
469
|
+
|
|
470
|
+
return (<React.Fragment>
|
|
471
|
+
<Button onClick={this.onClick}>Toggle Drawer</Button>
|
|
472
|
+
<Drawer isExpanded={isExpanded}>
|
|
473
|
+
<DrawerSection>drawer-section</DrawerSection>
|
|
474
|
+
<DrawerContent panelContent={panelContent}>
|
|
475
|
+
<DrawerContentBody>{drawerContent}</DrawerContentBody>
|
|
476
|
+
</DrawerContent>
|
|
477
|
+
</Drawer>
|
|
478
|
+
</React.Fragment>);
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
```
|
|
482
|
+
|
|
483
|
+
```js title=Static-drawer
|
|
484
|
+
import React, { ReactFragment } from 'react';
|
|
485
|
+
import { Drawer, DrawerPanelContent, DrawerContent, DrawerContentBody, DrawerPanelBody, DrawerHead, DrawerActions, DrawerCloseButton } from '@patternfly/react-core';
|
|
486
|
+
|
|
487
|
+
StaticDrawer = () => {
|
|
488
|
+
const panelContent = (
|
|
489
|
+
<DrawerPanelContent>
|
|
490
|
+
<DrawerHead>
|
|
491
|
+
<span>drawer-panel</span>
|
|
492
|
+
<DrawerActions>
|
|
493
|
+
<DrawerCloseButton onClick={this.onClick}/>
|
|
494
|
+
</DrawerActions>
|
|
495
|
+
</DrawerHead>
|
|
496
|
+
</DrawerPanelContent>);
|
|
497
|
+
|
|
498
|
+
const drawerContent = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus pretium est a porttitor vehicula. Quisque vel commodo urna. Morbi mattis rutrum ante, id vehicula ex accumsan ut. Morbi viverra, eros vel porttitor facilisis, eros purus aliquet erat,nec lobortis felis elit pulvinar sem. Vivamus vulputate, risus eget commodo eleifend, eros nibh porta quam, vitae lacinia leo libero at magna. Maecenas aliquam sagittis orci, et posuere nisi ultrices sit amet. Aliquam ex odio, malesuada sed posuere quis, pellentesque at mauris. Phasellus venenatis massa ex, eget pulvinar libero auctor pretium. Aliquam erat volutpat. Duis euismod justo in quam ullamcorper, in commodo massa vulputate.";
|
|
499
|
+
|
|
500
|
+
return (
|
|
501
|
+
<Drawer isStatic>
|
|
502
|
+
<DrawerContent panelContent={panelContent}>
|
|
503
|
+
<DrawerContentBody>{drawerContent}</DrawerContentBody>
|
|
504
|
+
</DrawerContent>
|
|
505
|
+
</Drawer>
|
|
506
|
+
);
|
|
507
|
+
}
|
|
508
|
+
```
|
|
@@ -1,3 +1,9 @@
|
|
|
1
1
|
export * from './Drawer';
|
|
2
|
-
export * from './
|
|
2
|
+
export * from './DrawerActions';
|
|
3
|
+
export * from './DrawerCloseButton';
|
|
3
4
|
export * from './DrawerContent';
|
|
5
|
+
export * from './DrawerContentBody';
|
|
6
|
+
export * from './DrawerHead';
|
|
7
|
+
export * from './DrawerPanelBody';
|
|
8
|
+
export * from './DrawerPanelContent';
|
|
9
|
+
export * from './DrawerSection';
|
|
@@ -131,6 +131,8 @@ export class Toggle extends React.Component<ToggleProps> {
|
|
|
131
131
|
isPrimary,
|
|
132
132
|
isSplitButton,
|
|
133
133
|
ariaHasPopup,
|
|
134
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
135
|
+
bubbleEvent,
|
|
134
136
|
onToggle,
|
|
135
137
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
136
138
|
onEnter,
|
|
@@ -163,7 +163,6 @@ exports[`KebabToggle basic 1`] = `
|
|
|
163
163
|
aria-expanded={true}
|
|
164
164
|
aria-haspopup={false}
|
|
165
165
|
aria-label="Actions"
|
|
166
|
-
bubbleEvent={false}
|
|
167
166
|
className="pf-c-dropdown__toggle"
|
|
168
167
|
disabled={false}
|
|
169
168
|
id="Dropdown Toggle"
|
|
@@ -899,7 +898,6 @@ exports[`KebabToggle dropup + right aligned 1`] = `
|
|
|
899
898
|
aria-expanded={false}
|
|
900
899
|
aria-haspopup={true}
|
|
901
900
|
aria-label="Actions"
|
|
902
|
-
bubbleEvent={false}
|
|
903
901
|
className="pf-c-dropdown__toggle"
|
|
904
902
|
disabled={false}
|
|
905
903
|
id="Dropdown Toggle"
|
|
@@ -1610,7 +1608,6 @@ exports[`KebabToggle dropup 1`] = `
|
|
|
1610
1608
|
aria-expanded={false}
|
|
1611
1609
|
aria-haspopup={true}
|
|
1612
1610
|
aria-label="Actions"
|
|
1613
|
-
bubbleEvent={false}
|
|
1614
1611
|
className="pf-c-dropdown__toggle"
|
|
1615
1612
|
disabled={false}
|
|
1616
1613
|
id="Dropdown Toggle"
|
|
@@ -2471,7 +2468,6 @@ exports[`KebabToggle expanded 1`] = `
|
|
|
2471
2468
|
aria-expanded={true}
|
|
2472
2469
|
aria-haspopup={true}
|
|
2473
2470
|
aria-label="Actions"
|
|
2474
|
-
bubbleEvent={false}
|
|
2475
2471
|
className="pf-c-dropdown__toggle"
|
|
2476
2472
|
disabled={false}
|
|
2477
2473
|
id="Dropdown Toggle"
|
|
@@ -3451,7 +3447,6 @@ exports[`KebabToggle plain 1`] = `
|
|
|
3451
3447
|
aria-expanded={false}
|
|
3452
3448
|
aria-haspopup={true}
|
|
3453
3449
|
aria-label="Actions"
|
|
3454
|
-
bubbleEvent={false}
|
|
3455
3450
|
className="pf-c-dropdown__toggle pf-m-plain"
|
|
3456
3451
|
disabled={false}
|
|
3457
3452
|
id="Dropdown Toggle"
|
|
@@ -4159,7 +4154,6 @@ exports[`KebabToggle regular 1`] = `
|
|
|
4159
4154
|
aria-expanded={false}
|
|
4160
4155
|
aria-haspopup={true}
|
|
4161
4156
|
aria-label="Actions"
|
|
4162
|
-
bubbleEvent={false}
|
|
4163
4157
|
className="pf-c-dropdown__toggle"
|
|
4164
4158
|
disabled={false}
|
|
4165
4159
|
id="Dropdown Toggle"
|
|
@@ -4870,7 +4864,6 @@ exports[`KebabToggle right aligned 1`] = `
|
|
|
4870
4864
|
aria-expanded={false}
|
|
4871
4865
|
aria-haspopup={true}
|
|
4872
4866
|
aria-label="Actions"
|
|
4873
|
-
bubbleEvent={false}
|
|
4874
4867
|
className="pf-c-dropdown__toggle"
|
|
4875
4868
|
disabled={false}
|
|
4876
4869
|
id="Dropdown Toggle"
|
|
@@ -5093,7 +5086,6 @@ exports[`dropdown basic 1`] = `
|
|
|
5093
5086
|
<button
|
|
5094
5087
|
aria-expanded={true}
|
|
5095
5088
|
aria-haspopup={false}
|
|
5096
|
-
bubbleEvent={false}
|
|
5097
5089
|
className="pf-c-dropdown__toggle"
|
|
5098
5090
|
disabled={false}
|
|
5099
5091
|
id="Dropdown Toggle"
|
|
@@ -5852,7 +5844,6 @@ exports[`dropdown dropup + right aligned 1`] = `
|
|
|
5852
5844
|
<button
|
|
5853
5845
|
aria-expanded={false}
|
|
5854
5846
|
aria-haspopup={true}
|
|
5855
|
-
bubbleEvent={false}
|
|
5856
5847
|
className="pf-c-dropdown__toggle"
|
|
5857
5848
|
disabled={false}
|
|
5858
5849
|
id="Dropdown Toggle"
|
|
@@ -6586,7 +6577,6 @@ exports[`dropdown dropup 1`] = `
|
|
|
6586
6577
|
<button
|
|
6587
6578
|
aria-expanded={false}
|
|
6588
6579
|
aria-haspopup={true}
|
|
6589
|
-
bubbleEvent={false}
|
|
6590
6580
|
className="pf-c-dropdown__toggle"
|
|
6591
6581
|
disabled={false}
|
|
6592
6582
|
id="Dropdown Toggle"
|
|
@@ -7470,7 +7460,6 @@ exports[`dropdown expanded 1`] = `
|
|
|
7470
7460
|
<button
|
|
7471
7461
|
aria-expanded={true}
|
|
7472
7462
|
aria-haspopup={true}
|
|
7473
|
-
bubbleEvent={false}
|
|
7474
7463
|
className="pf-c-dropdown__toggle"
|
|
7475
7464
|
disabled={false}
|
|
7476
7465
|
id="Dropdown Toggle"
|
|
@@ -8475,7 +8464,6 @@ exports[`dropdown primary 1`] = `
|
|
|
8475
8464
|
<button
|
|
8476
8465
|
aria-expanded={false}
|
|
8477
8466
|
aria-haspopup={true}
|
|
8478
|
-
bubbleEvent={false}
|
|
8479
8467
|
className="pf-c-dropdown__toggle pf-m-primary"
|
|
8480
8468
|
disabled={false}
|
|
8481
8469
|
id="Dropdown Toggle"
|
|
@@ -9206,7 +9194,6 @@ exports[`dropdown regular 1`] = `
|
|
|
9206
9194
|
<button
|
|
9207
9195
|
aria-expanded={false}
|
|
9208
9196
|
aria-haspopup={true}
|
|
9209
|
-
bubbleEvent={false}
|
|
9210
9197
|
className="pf-c-dropdown__toggle"
|
|
9211
9198
|
disabled={false}
|
|
9212
9199
|
id="Dropdown Toggle"
|
|
@@ -9940,7 +9927,6 @@ exports[`dropdown right aligned 1`] = `
|
|
|
9940
9927
|
<button
|
|
9941
9928
|
aria-expanded={false}
|
|
9942
9929
|
aria-haspopup={true}
|
|
9943
|
-
bubbleEvent={false}
|
|
9944
9930
|
className="pf-c-dropdown__toggle"
|
|
9945
9931
|
disabled={false}
|
|
9946
9932
|
id="Dropdown Toggle"
|
|
@@ -24,7 +24,6 @@ exports[`state active 1`] = `
|
|
|
24
24
|
>
|
|
25
25
|
<button
|
|
26
26
|
aria-expanded={false}
|
|
27
|
-
bubbleEvent={false}
|
|
28
27
|
className="pf-c-dropdown__toggle pf-m-active"
|
|
29
28
|
disabled={false}
|
|
30
29
|
id="Dropdown Toggle"
|
|
@@ -94,7 +93,6 @@ exports[`state class changes 1`] = `
|
|
|
94
93
|
>
|
|
95
94
|
<button
|
|
96
95
|
aria-expanded={false}
|
|
97
|
-
bubbleEvent={false}
|
|
98
96
|
className="pf-c-dropdown__toggle pf-m-focus"
|
|
99
97
|
disabled={false}
|
|
100
98
|
id="Dropdown Toggle"
|
|
@@ -164,7 +162,6 @@ exports[`state class changes 2`] = `
|
|
|
164
162
|
>
|
|
165
163
|
<button
|
|
166
164
|
aria-expanded={false}
|
|
167
|
-
bubbleEvent={false}
|
|
168
165
|
className="pf-c-dropdown__toggle pf-m-focus"
|
|
169
166
|
disabled={false}
|
|
170
167
|
id="Dropdown Toggle"
|
|
@@ -234,7 +231,6 @@ exports[`state focus 1`] = `
|
|
|
234
231
|
>
|
|
235
232
|
<button
|
|
236
233
|
aria-expanded={false}
|
|
237
|
-
bubbleEvent={false}
|
|
238
234
|
className="pf-c-dropdown__toggle pf-m-focus"
|
|
239
235
|
disabled={false}
|
|
240
236
|
id="Dropdown Toggle"
|
|
@@ -304,7 +300,6 @@ exports[`state hover 1`] = `
|
|
|
304
300
|
>
|
|
305
301
|
<button
|
|
306
302
|
aria-expanded={false}
|
|
307
|
-
bubbleEvent={false}
|
|
308
303
|
className="pf-c-dropdown__toggle pf-m-hover"
|
|
309
304
|
disabled={false}
|
|
310
305
|
id="Dropdown Toggle"
|
|
@@ -22,7 +22,6 @@ exports[`Dropdown toggle 1`] = `
|
|
|
22
22
|
>
|
|
23
23
|
<button
|
|
24
24
|
aria-expanded={false}
|
|
25
|
-
bubbleEvent={false}
|
|
26
25
|
className="pf-c-dropdown__toggle"
|
|
27
26
|
disabled={false}
|
|
28
27
|
id="Dropdown Toggle"
|
|
@@ -92,7 +91,6 @@ exports[`Kebab toggle 1`] = `
|
|
|
92
91
|
<button
|
|
93
92
|
aria-expanded={false}
|
|
94
93
|
aria-label="Actions"
|
|
95
|
-
bubbleEvent={false}
|
|
96
94
|
className="pf-c-dropdown__toggle"
|
|
97
95
|
disabled={false}
|
|
98
96
|
id="Dropdown Toggle"
|