@patternfly/react-core 4.192.19 → 4.194.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 +41 -0
- package/dist/esm/components/DescriptionList/DescriptionListTerm.d.ts +2 -0
- package/dist/esm/components/DescriptionList/DescriptionListTerm.d.ts.map +1 -1
- package/dist/esm/components/DescriptionList/DescriptionListTerm.js +2 -1
- package/dist/esm/components/DescriptionList/DescriptionListTerm.js.map +1 -1
- package/dist/esm/components/MenuToggle/MenuToggle.d.ts +3 -0
- package/dist/esm/components/MenuToggle/MenuToggle.d.ts.map +1 -1
- package/dist/esm/components/MenuToggle/MenuToggle.js +3 -2
- package/dist/esm/components/MenuToggle/MenuToggle.js.map +1 -1
- package/dist/esm/components/Progress/Progress.js +1 -1
- package/dist/esm/components/Progress/Progress.js.map +1 -1
- package/dist/esm/components/TimePicker/TimePicker.js +1 -1
- package/dist/esm/components/TimePicker/TimePicker.js.map +1 -1
- package/dist/esm/components/TimePicker/TimePickerUtils.d.ts +1 -1
- package/dist/esm/components/TimePicker/TimePickerUtils.d.ts.map +1 -1
- package/dist/esm/components/TimePicker/TimePickerUtils.js +2 -2
- package/dist/esm/components/TimePicker/TimePickerUtils.js.map +1 -1
- package/dist/js/components/DescriptionList/DescriptionListTerm.d.ts +2 -0
- package/dist/js/components/DescriptionList/DescriptionListTerm.d.ts.map +1 -1
- package/dist/js/components/DescriptionList/DescriptionListTerm.js +2 -1
- package/dist/js/components/DescriptionList/DescriptionListTerm.js.map +1 -1
- package/dist/js/components/MenuToggle/MenuToggle.d.ts +3 -0
- package/dist/js/components/MenuToggle/MenuToggle.d.ts.map +1 -1
- package/dist/js/components/MenuToggle/MenuToggle.js +3 -2
- package/dist/js/components/MenuToggle/MenuToggle.js.map +1 -1
- package/dist/js/components/Progress/Progress.js +1 -1
- package/dist/js/components/Progress/Progress.js.map +1 -1
- package/dist/js/components/TimePicker/TimePicker.js +1 -1
- package/dist/js/components/TimePicker/TimePicker.js.map +1 -1
- package/dist/js/components/TimePicker/TimePickerUtils.d.ts +1 -1
- package/dist/js/components/TimePicker/TimePickerUtils.d.ts.map +1 -1
- package/dist/js/components/TimePicker/TimePickerUtils.js +2 -2
- package/dist/js/components/TimePicker/TimePickerUtils.js.map +1 -1
- package/dist/umd/react-core.css +137 -77
- package/dist/umd/react-core.js +10 -7
- package/dist/umd/react-core.min.css +68 -8
- package/dist/umd/react-core.min.js +2 -2
- package/package.json +6 -6
- package/src/components/DescriptionList/DescriptionListTerm.tsx +4 -0
- package/src/components/DescriptionList/examples/DescriptionList.md +55 -0
- package/src/components/Menu/examples/Menu.md +11 -204
- package/src/components/Menu/examples/MenuDrilldown.tsx +179 -0
- package/src/components/Menu/examples/MenuDrilldownInitialState.tsx +179 -0
- package/src/components/MenuToggle/MenuToggle.tsx +16 -1
- package/src/components/MenuToggle/__tests__/__snapshots__/MenuToggle.test.tsx.snap +9 -0
- package/src/components/MenuToggle/examples/MenuToggle.md +13 -0
- package/src/components/Progress/Progress.tsx +1 -1
- package/src/components/TimePicker/TimePicker.tsx +1 -1
- package/src/components/TimePicker/TimePickerUtils.tsx +3 -2
- package/src/components/TimePicker/examples/TimePicker.md +3 -3
- package/src/demos/PrimaryDetail.md +4 -4
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Menu, MenuContent, MenuList, MenuItem, Divider, DrilldownMenu } from '@patternfly/react-core';
|
|
3
|
+
import StorageDomainIcon from '@patternfly/react-icons/dist/esm/icons/storage-domain-icon';
|
|
4
|
+
import CodeBranchIcon from '@patternfly/react-icons/dist/esm/icons/code-branch-icon';
|
|
5
|
+
import LayerGroupIcon from '@patternfly/react-icons/dist/esm/icons/layer-group-icon';
|
|
6
|
+
import CubeIcon from '@patternfly/react-icons/dist/esm/icons/cube-icon';
|
|
7
|
+
|
|
8
|
+
export const MenuDrilldownInitialState: React.FunctionComponent = () => {
|
|
9
|
+
const [menuDrilledIn, setMenuDrilledIn] = React.useState<string[]>(['rootMenu', 'drilldownMenuStart']);
|
|
10
|
+
const [drilldownPath, setDrilldownPath] = React.useState<string[]>(['group:start_rollout', 'group:app_grouping']);
|
|
11
|
+
const [menuHeights, setMenuHeights] = React.useState<any>({ rootMenu: 216 }); // The root menu height must be defined when starting from a drilled in state
|
|
12
|
+
const [activeMenu, setActiveMenu] = React.useState<string>('drilldownMenuStartGrouping');
|
|
13
|
+
|
|
14
|
+
const drillIn = (fromMenuId: string, toMenuId: string, pathId: string) => {
|
|
15
|
+
setMenuDrilledIn([...menuDrilledIn, fromMenuId]);
|
|
16
|
+
setDrilldownPath([...drilldownPath, pathId]);
|
|
17
|
+
setActiveMenu(toMenuId);
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
const drillOut = (toMenuId: string) => {
|
|
21
|
+
const menuDrilledInSansLast = menuDrilledIn.slice(0, menuDrilledIn.length - 1);
|
|
22
|
+
const pathSansLast = drilldownPath.slice(0, drilldownPath.length - 1);
|
|
23
|
+
setMenuDrilledIn(menuDrilledInSansLast);
|
|
24
|
+
setDrilldownPath(pathSansLast);
|
|
25
|
+
setActiveMenu(toMenuId);
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
const setHeight = (menuId: string, height: number) => {
|
|
29
|
+
if (menuHeights[menuId] === undefined || (menuId !== 'rootMenu' && menuHeights[menuId] !== height)) {
|
|
30
|
+
setMenuHeights({ ...menuHeights, [menuId]: height });
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
return (
|
|
35
|
+
<Menu
|
|
36
|
+
id="rootMenu"
|
|
37
|
+
containsDrilldown
|
|
38
|
+
drilldownItemPath={drilldownPath}
|
|
39
|
+
drilledInMenus={menuDrilledIn}
|
|
40
|
+
activeMenu={activeMenu}
|
|
41
|
+
onDrillIn={drillIn}
|
|
42
|
+
onDrillOut={drillOut}
|
|
43
|
+
onGetMenuHeight={setHeight}
|
|
44
|
+
>
|
|
45
|
+
<MenuContent menuHeight={`${menuHeights[activeMenu]}px`}>
|
|
46
|
+
<MenuList>
|
|
47
|
+
<MenuItem
|
|
48
|
+
itemId="group:start_rollout"
|
|
49
|
+
direction="down"
|
|
50
|
+
drilldownMenu={
|
|
51
|
+
<DrilldownMenu id="drilldownMenuStart">
|
|
52
|
+
<MenuItem itemId="group:start_rollout_breadcrumb" direction="up">
|
|
53
|
+
Start rollout
|
|
54
|
+
</MenuItem>
|
|
55
|
+
<Divider component="li" />
|
|
56
|
+
<MenuItem
|
|
57
|
+
itemId="group:app_grouping"
|
|
58
|
+
description="Groups A-C"
|
|
59
|
+
direction="down"
|
|
60
|
+
drilldownMenu={
|
|
61
|
+
<DrilldownMenu id="drilldownMenuStartGrouping">
|
|
62
|
+
<MenuItem itemId="group:app_grouping_breadcrumb" direction="up">
|
|
63
|
+
Application grouping
|
|
64
|
+
</MenuItem>
|
|
65
|
+
<Divider component="li" />
|
|
66
|
+
<MenuItem itemId="group_a">Group A</MenuItem>
|
|
67
|
+
<MenuItem itemId="group_b">Group B</MenuItem>
|
|
68
|
+
<MenuItem itemId="group_c">Group C</MenuItem>
|
|
69
|
+
</DrilldownMenu>
|
|
70
|
+
}
|
|
71
|
+
>
|
|
72
|
+
Application grouping
|
|
73
|
+
</MenuItem>
|
|
74
|
+
<MenuItem itemId="count">Count</MenuItem>
|
|
75
|
+
<MenuItem
|
|
76
|
+
itemId="group:labels"
|
|
77
|
+
direction="down"
|
|
78
|
+
drilldownMenu={
|
|
79
|
+
<DrilldownMenu id="drilldownMenuStartLabels">
|
|
80
|
+
<MenuItem itemId="group:labels_breadcrumb" direction="up">
|
|
81
|
+
Labels
|
|
82
|
+
</MenuItem>
|
|
83
|
+
<Divider component="li" />
|
|
84
|
+
<MenuItem itemId="label_1">Label 1</MenuItem>
|
|
85
|
+
<MenuItem itemId="label_2">Label 2</MenuItem>
|
|
86
|
+
<MenuItem itemId="label_3">Label 3</MenuItem>
|
|
87
|
+
</DrilldownMenu>
|
|
88
|
+
}
|
|
89
|
+
>
|
|
90
|
+
Labels
|
|
91
|
+
</MenuItem>
|
|
92
|
+
<MenuItem itemId="annotations">Annotations</MenuItem>
|
|
93
|
+
</DrilldownMenu>
|
|
94
|
+
}
|
|
95
|
+
>
|
|
96
|
+
Start rollout
|
|
97
|
+
</MenuItem>
|
|
98
|
+
<MenuItem
|
|
99
|
+
itemId="group:pause_rollout"
|
|
100
|
+
direction="down"
|
|
101
|
+
drilldownMenu={
|
|
102
|
+
<DrilldownMenu id="drilldownMenuPause">
|
|
103
|
+
<MenuItem itemId="group:pause_rollout_breadcrumb" direction="up">
|
|
104
|
+
Pause rollouts
|
|
105
|
+
</MenuItem>
|
|
106
|
+
<Divider component="li" />
|
|
107
|
+
<MenuItem
|
|
108
|
+
itemId="group:app_grouping"
|
|
109
|
+
description="Groups A-C"
|
|
110
|
+
direction="down"
|
|
111
|
+
drilldownMenu={
|
|
112
|
+
<DrilldownMenu id="drilldownMenuGrouping">
|
|
113
|
+
<MenuItem itemId="group:app_grouping_breadcrumb" direction="up">
|
|
114
|
+
Application grouping
|
|
115
|
+
</MenuItem>
|
|
116
|
+
<Divider component="li" />
|
|
117
|
+
<MenuItem itemId="group_a">Group A</MenuItem>
|
|
118
|
+
<MenuItem itemId="group_b">Group B</MenuItem>
|
|
119
|
+
<MenuItem itemId="group_c">Group C</MenuItem>
|
|
120
|
+
</DrilldownMenu>
|
|
121
|
+
}
|
|
122
|
+
>
|
|
123
|
+
Application grouping
|
|
124
|
+
</MenuItem>
|
|
125
|
+
<MenuItem itemId="count">Count</MenuItem>
|
|
126
|
+
<MenuItem
|
|
127
|
+
itemId="group:labels"
|
|
128
|
+
direction="down"
|
|
129
|
+
drilldownMenu={
|
|
130
|
+
<DrilldownMenu id="drilldownMenuLabels">
|
|
131
|
+
<MenuItem itemId="group:labels_breadcrumb" direction="up">
|
|
132
|
+
Labels
|
|
133
|
+
</MenuItem>
|
|
134
|
+
<Divider component="li" />
|
|
135
|
+
<MenuItem itemId="label_1">Label 1</MenuItem>
|
|
136
|
+
<MenuItem itemId="label_2">Label 2</MenuItem>
|
|
137
|
+
<MenuItem itemId="label_3">Label 3</MenuItem>
|
|
138
|
+
</DrilldownMenu>
|
|
139
|
+
}
|
|
140
|
+
>
|
|
141
|
+
Labels
|
|
142
|
+
</MenuItem>
|
|
143
|
+
<MenuItem itemId="annotations">Annotations</MenuItem>
|
|
144
|
+
</DrilldownMenu>
|
|
145
|
+
}
|
|
146
|
+
>
|
|
147
|
+
Pause rollouts
|
|
148
|
+
</MenuItem>
|
|
149
|
+
<MenuItem
|
|
150
|
+
itemId="group:storage"
|
|
151
|
+
icon={<StorageDomainIcon aria-hidden />}
|
|
152
|
+
direction="down"
|
|
153
|
+
drilldownMenu={
|
|
154
|
+
<DrilldownMenu id="drilldownMenuStorage">
|
|
155
|
+
<MenuItem itemId="group:storage_breadcrumb" icon={<StorageDomainIcon aria-hidden />} direction="up">
|
|
156
|
+
Add storage
|
|
157
|
+
</MenuItem>
|
|
158
|
+
<Divider component="li" />
|
|
159
|
+
<MenuItem icon={<CodeBranchIcon aria-hidden />} itemId="git">
|
|
160
|
+
From git
|
|
161
|
+
</MenuItem>
|
|
162
|
+
<MenuItem icon={<LayerGroupIcon aria-hidden />} itemId="container">
|
|
163
|
+
Container image
|
|
164
|
+
</MenuItem>
|
|
165
|
+
<MenuItem icon={<CubeIcon aria-hidden />} itemId="docker">
|
|
166
|
+
Docker file
|
|
167
|
+
</MenuItem>
|
|
168
|
+
</DrilldownMenu>
|
|
169
|
+
}
|
|
170
|
+
>
|
|
171
|
+
Add storage
|
|
172
|
+
</MenuItem>
|
|
173
|
+
<MenuItem itemId="edit">Edit</MenuItem>
|
|
174
|
+
<MenuItem itemId="delete_deployment">Delete deployment config</MenuItem>
|
|
175
|
+
</MenuList>
|
|
176
|
+
</MenuContent>
|
|
177
|
+
</Menu>
|
|
178
|
+
);
|
|
179
|
+
};
|
|
@@ -14,6 +14,8 @@ export interface MenuToggleProps
|
|
|
14
14
|
isExpanded?: boolean;
|
|
15
15
|
/** Flag indicating the toggle is disabled */
|
|
16
16
|
isDisabled?: boolean;
|
|
17
|
+
/** Flag indicating the toggle is full height */
|
|
18
|
+
isFullHeight?: boolean;
|
|
17
19
|
/** Variant styles of the menu toggle */
|
|
18
20
|
variant?: 'default' | 'plain' | 'primary' | 'plainText';
|
|
19
21
|
/** Optional icon rendered inside the toggle, before the children content */
|
|
@@ -30,11 +32,23 @@ export class MenuToggleBase extends React.Component<MenuToggleProps> {
|
|
|
30
32
|
className: '',
|
|
31
33
|
isExpanded: false,
|
|
32
34
|
isDisabled: false,
|
|
35
|
+
isFullHeight: false,
|
|
33
36
|
variant: 'default'
|
|
34
37
|
};
|
|
35
38
|
|
|
36
39
|
render() {
|
|
37
|
-
const {
|
|
40
|
+
const {
|
|
41
|
+
children,
|
|
42
|
+
className,
|
|
43
|
+
icon,
|
|
44
|
+
badge,
|
|
45
|
+
isExpanded,
|
|
46
|
+
isDisabled,
|
|
47
|
+
isFullHeight,
|
|
48
|
+
variant,
|
|
49
|
+
innerRef,
|
|
50
|
+
...props
|
|
51
|
+
} = this.props;
|
|
38
52
|
|
|
39
53
|
const isPlain = variant === 'plain';
|
|
40
54
|
const isPlainText = variant === 'plainText';
|
|
@@ -59,6 +73,7 @@ export class MenuToggleBase extends React.Component<MenuToggleProps> {
|
|
|
59
73
|
variant === 'primary' && styles.modifiers.primary,
|
|
60
74
|
(isPlain || isPlainText) && styles.modifiers.plain,
|
|
61
75
|
isPlainText && styles.modifiers.text,
|
|
76
|
+
isFullHeight && styles.modifiers.fullHeight,
|
|
62
77
|
className
|
|
63
78
|
)}
|
|
64
79
|
type="button"
|
|
@@ -9,6 +9,7 @@ exports[`menu toggle passes additional classes 1`] = `
|
|
|
9
9
|
innerRef={null}
|
|
10
10
|
isDisabled={false}
|
|
11
11
|
isExpanded={false}
|
|
12
|
+
isFullHeight={false}
|
|
12
13
|
variant="default"
|
|
13
14
|
>
|
|
14
15
|
<button
|
|
@@ -66,6 +67,7 @@ exports[`menu toggle renders successfully 1`] = `
|
|
|
66
67
|
innerRef={null}
|
|
67
68
|
isDisabled={false}
|
|
68
69
|
isExpanded={false}
|
|
70
|
+
isFullHeight={false}
|
|
69
71
|
variant="default"
|
|
70
72
|
>
|
|
71
73
|
<button
|
|
@@ -134,6 +136,7 @@ exports[`menu toggle shows badge 1`] = `
|
|
|
134
136
|
innerRef={null}
|
|
135
137
|
isDisabled={false}
|
|
136
138
|
isExpanded={false}
|
|
139
|
+
isFullHeight={false}
|
|
137
140
|
variant="default"
|
|
138
141
|
>
|
|
139
142
|
<button
|
|
@@ -217,6 +220,7 @@ exports[`menu toggle shows icon 1`] = `
|
|
|
217
220
|
innerRef={null}
|
|
218
221
|
isDisabled={false}
|
|
219
222
|
isExpanded={false}
|
|
223
|
+
isFullHeight={false}
|
|
220
224
|
variant="default"
|
|
221
225
|
>
|
|
222
226
|
<button
|
|
@@ -304,6 +308,7 @@ exports[`menu toggle shows isDisabled 1`] = `
|
|
|
304
308
|
innerRef={null}
|
|
305
309
|
isDisabled={true}
|
|
306
310
|
isExpanded={false}
|
|
311
|
+
isFullHeight={false}
|
|
307
312
|
variant="default"
|
|
308
313
|
>
|
|
309
314
|
<button
|
|
@@ -364,6 +369,7 @@ exports[`menu toggle shows isExpanded 1`] = `
|
|
|
364
369
|
innerRef={null}
|
|
365
370
|
isDisabled={false}
|
|
366
371
|
isExpanded={true}
|
|
372
|
+
isFullHeight={false}
|
|
367
373
|
variant="default"
|
|
368
374
|
>
|
|
369
375
|
<button
|
|
@@ -423,6 +429,7 @@ exports[`menu toggle shows isPlain 1`] = `
|
|
|
423
429
|
innerRef={null}
|
|
424
430
|
isDisabled={false}
|
|
425
431
|
isExpanded={false}
|
|
432
|
+
isFullHeight={false}
|
|
426
433
|
variant="plain"
|
|
427
434
|
>
|
|
428
435
|
<button
|
|
@@ -468,6 +475,7 @@ exports[`menu toggle shows isPrimary 1`] = `
|
|
|
468
475
|
innerRef={null}
|
|
469
476
|
isDisabled={false}
|
|
470
477
|
isExpanded={false}
|
|
478
|
+
isFullHeight={false}
|
|
471
479
|
variant="primary"
|
|
472
480
|
>
|
|
473
481
|
<button
|
|
@@ -527,6 +535,7 @@ exports[`menu toggle shows plain text 1`] = `
|
|
|
527
535
|
innerRef={null}
|
|
528
536
|
isDisabled={false}
|
|
529
537
|
isExpanded={false}
|
|
538
|
+
isFullHeight={false}
|
|
530
539
|
variant="plainText"
|
|
531
540
|
>
|
|
532
541
|
<button
|
|
@@ -122,3 +122,16 @@ import { MenuToggle } from '@patternfly/react-core';
|
|
|
122
122
|
</MenuToggle>
|
|
123
123
|
</React.Fragment>
|
|
124
124
|
```
|
|
125
|
+
|
|
126
|
+
### Full height
|
|
127
|
+
|
|
128
|
+
```ts
|
|
129
|
+
import React from 'react';
|
|
130
|
+
import { MenuToggle } from '@patternfly/react-core';
|
|
131
|
+
|
|
132
|
+
<div style={{ height: "80px" }}>
|
|
133
|
+
<MenuToggle isFullHeight aria-label="Full height menu toggle">
|
|
134
|
+
Full height
|
|
135
|
+
</MenuToggle>
|
|
136
|
+
</div>
|
|
137
|
+
```
|
|
@@ -113,7 +113,7 @@ export class Progress extends React.Component<ProgressProps> {
|
|
|
113
113
|
);
|
|
114
114
|
}
|
|
115
115
|
|
|
116
|
-
const scaledValue = Math.min(100, Math.max(0, Math.floor(((value - min) / (max - min)) * 100)));
|
|
116
|
+
const scaledValue = Math.min(100, Math.max(0, Math.floor(((value - min) / (max - min)) * 100))) || 0;
|
|
117
117
|
return (
|
|
118
118
|
<div
|
|
119
119
|
{...props}
|
|
@@ -425,7 +425,7 @@ export class TimePicker extends React.Component<TimePickerProps, TimePickerState
|
|
|
425
425
|
} = this.props;
|
|
426
426
|
const { timeState, isOpen, isInvalid, minTimeState, maxTimeState } = this.state;
|
|
427
427
|
const style = { '--pf-c-date-picker__input--c-form-control--Width': width } as React.CSSProperties;
|
|
428
|
-
const options = makeTimeOptions(stepMinutes, !is24Hour, delimiter, minTimeState, maxTimeState);
|
|
428
|
+
const options = makeTimeOptions(stepMinutes, !is24Hour, delimiter, minTimeState, maxTimeState, includeSeconds);
|
|
429
429
|
const isValidFormat = this.isValidFormat(timeState);
|
|
430
430
|
const randomId = id || getUniqueId('time-picker');
|
|
431
431
|
|
|
@@ -6,7 +6,8 @@ export const makeTimeOptions = (
|
|
|
6
6
|
hour12: boolean,
|
|
7
7
|
delimiter: string,
|
|
8
8
|
minTime: string,
|
|
9
|
-
maxTime: string
|
|
9
|
+
maxTime: string,
|
|
10
|
+
includeSeconds: boolean
|
|
10
11
|
) => {
|
|
11
12
|
const res = [];
|
|
12
13
|
const iter = new Date(new Date().setHours(0, 0, 0, 0));
|
|
@@ -31,7 +32,7 @@ export const makeTimeOptions = (
|
|
|
31
32
|
.padStart(2, '0');
|
|
32
33
|
const timeOption = `${hour}${delimiter}${minutes}${hour12 ? suffix : ''}`;
|
|
33
34
|
// time option is valid if within min/max constraints
|
|
34
|
-
if (isWithinMinMax(minTime, maxTime, timeOption, delimiter)) {
|
|
35
|
+
if (isWithinMinMax(minTime, maxTime, timeOption, delimiter, includeSeconds)) {
|
|
35
36
|
res.push(timeOption);
|
|
36
37
|
}
|
|
37
38
|
iter.setMinutes(iter.getMinutes() + stepMinutes);
|
|
@@ -64,14 +64,14 @@ import { TimePicker } from '@patternfly/react-core';
|
|
|
64
64
|
import React from 'react';
|
|
65
65
|
import { TimePicker } from '@patternfly/react-core';
|
|
66
66
|
|
|
67
|
-
|
|
67
|
+
<TimePicker time="3:35:20 PM" includeSeconds />;
|
|
68
68
|
```
|
|
69
69
|
|
|
70
|
-
### 24 hours with seconds
|
|
70
|
+
### Basic 24 hours with seconds
|
|
71
71
|
|
|
72
72
|
```js
|
|
73
73
|
import React from 'react';
|
|
74
74
|
import { TimePicker } from '@patternfly/react-core';
|
|
75
75
|
|
|
76
|
-
|
|
76
|
+
<TimePicker time="12:35:50" includeSeconds is24Hour />;
|
|
77
77
|
```
|
|
@@ -275,7 +275,7 @@ class PrimaryDetailFullPage extends React.Component {
|
|
|
275
275
|
);
|
|
276
276
|
const drawerContent = (
|
|
277
277
|
<React.Fragment>
|
|
278
|
-
<Toolbar id="full-page-data-toolbar"
|
|
278
|
+
<Toolbar id="full-page-data-toolbar" usePageInsets>
|
|
279
279
|
<ToolbarContent>{ToolbarItems}</ToolbarContent>
|
|
280
280
|
</Toolbar>
|
|
281
281
|
<DataList
|
|
@@ -736,7 +736,7 @@ class PrimaryDetailContentPadding extends React.Component {
|
|
|
736
736
|
|
|
737
737
|
const drawerContent = (
|
|
738
738
|
<React.Fragment>
|
|
739
|
-
<Toolbar id="content-padding-data-toolbar"
|
|
739
|
+
<Toolbar id="content-padding-data-toolbar" usePageInsets>
|
|
740
740
|
<ToolbarContent>{ToolbarItems}</ToolbarContent>
|
|
741
741
|
</Toolbar>
|
|
742
742
|
<DataList
|
|
@@ -1633,7 +1633,7 @@ class PrimaryDetailDataListInCard extends React.Component {
|
|
|
1633
1633
|
|
|
1634
1634
|
const drawerContent = (
|
|
1635
1635
|
<React.Fragment>
|
|
1636
|
-
<Toolbar id="data-list-data-toolbar"
|
|
1636
|
+
<Toolbar id="data-list-data-toolbar" usePageInsets>
|
|
1637
1637
|
<ToolbarContent>
|
|
1638
1638
|
<ToolbarItem>
|
|
1639
1639
|
<Dropdown
|
|
@@ -1998,7 +1998,7 @@ class PrimaryDetailInlineModifier extends React.Component {
|
|
|
1998
1998
|
);
|
|
1999
1999
|
const drawerContent = (
|
|
2000
2000
|
<React.Fragment>
|
|
2001
|
-
<Toolbar id="inline-modifier-data-toolbar"
|
|
2001
|
+
<Toolbar id="inline-modifier-data-toolbar" usePageInsets>
|
|
2002
2002
|
<ToolbarContent>{ToolbarItems}</ToolbarContent>
|
|
2003
2003
|
</Toolbar>
|
|
2004
2004
|
<DataList
|