@patternfly/react-core 4.157.2 → 4.157.6
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 +38 -0
- package/dist/esm/components/DataList/DataList.d.ts +7 -5
- package/dist/esm/components/DataList/DataList.d.ts.map +1 -1
- package/dist/esm/components/DataList/DataList.js +11 -10
- package/dist/esm/components/DataList/DataList.js.map +1 -1
- package/dist/esm/components/DragDrop/DragDrop.d.ts +3 -0
- package/dist/esm/components/DragDrop/DragDrop.d.ts.map +1 -1
- package/dist/esm/components/DragDrop/DragDrop.js +2 -1
- package/dist/esm/components/DragDrop/DragDrop.js.map +1 -1
- package/dist/esm/components/DragDrop/Draggable.d.ts +2 -0
- package/dist/esm/components/DragDrop/Draggable.d.ts.map +1 -1
- package/dist/esm/components/DragDrop/Draggable.js +27 -18
- package/dist/esm/components/DragDrop/Draggable.js.map +1 -1
- package/dist/esm/components/DragDrop/Droppable.d.ts +2 -0
- package/dist/esm/components/DragDrop/Droppable.d.ts.map +1 -1
- package/dist/esm/components/DragDrop/Droppable.js +3 -3
- package/dist/esm/components/DragDrop/Droppable.js.map +1 -1
- package/dist/esm/components/Nav/Nav.d.ts +1 -5
- package/dist/esm/components/Nav/Nav.d.ts.map +1 -1
- package/dist/esm/components/Nav/Nav.js +3 -7
- package/dist/esm/components/Nav/Nav.js.map +1 -1
- package/dist/esm/components/Nav/NavItem.d.ts +0 -4
- package/dist/esm/components/Nav/NavItem.d.ts.map +1 -1
- package/dist/esm/components/Nav/NavItem.js +6 -98
- package/dist/esm/components/Nav/NavItem.js.map +1 -1
- package/dist/esm/components/Nav/NavList.d.ts +0 -2
- package/dist/esm/components/Nav/NavList.d.ts.map +1 -1
- package/dist/esm/components/Sidebar/Sidebar.d.ts +4 -0
- package/dist/esm/components/Sidebar/Sidebar.d.ts.map +1 -1
- package/dist/esm/components/Sidebar/Sidebar.js.map +1 -1
- package/dist/esm/components/Sidebar/SidebarContent.d.ts +1 -0
- package/dist/esm/components/Sidebar/SidebarContent.d.ts.map +1 -1
- package/dist/esm/components/Sidebar/SidebarContent.js.map +1 -1
- package/dist/esm/components/Sidebar/SidebarPanel.d.ts +3 -0
- package/dist/esm/components/Sidebar/SidebarPanel.d.ts.map +1 -1
- package/dist/esm/components/Sidebar/SidebarPanel.js.map +1 -1
- package/dist/js/components/DataList/DataList.d.ts +7 -5
- package/dist/js/components/DataList/DataList.d.ts.map +1 -1
- package/dist/js/components/DataList/DataList.js +11 -10
- package/dist/js/components/DataList/DataList.js.map +1 -1
- package/dist/js/components/DragDrop/DragDrop.d.ts +3 -0
- package/dist/js/components/DragDrop/DragDrop.d.ts.map +1 -1
- package/dist/js/components/DragDrop/DragDrop.js +2 -1
- package/dist/js/components/DragDrop/DragDrop.js.map +1 -1
- package/dist/js/components/DragDrop/Draggable.d.ts +2 -0
- package/dist/js/components/DragDrop/Draggable.d.ts.map +1 -1
- package/dist/js/components/DragDrop/Draggable.js +27 -18
- package/dist/js/components/DragDrop/Draggable.js.map +1 -1
- package/dist/js/components/DragDrop/Droppable.d.ts +2 -0
- package/dist/js/components/DragDrop/Droppable.d.ts.map +1 -1
- package/dist/js/components/DragDrop/Droppable.js +3 -3
- package/dist/js/components/DragDrop/Droppable.js.map +1 -1
- package/dist/js/components/Nav/Nav.d.ts +1 -5
- package/dist/js/components/Nav/Nav.d.ts.map +1 -1
- package/dist/js/components/Nav/Nav.js +3 -7
- package/dist/js/components/Nav/Nav.js.map +1 -1
- package/dist/js/components/Nav/NavItem.d.ts +0 -4
- package/dist/js/components/Nav/NavItem.d.ts.map +1 -1
- package/dist/js/components/Nav/NavItem.js +6 -98
- package/dist/js/components/Nav/NavItem.js.map +1 -1
- package/dist/js/components/Nav/NavList.d.ts +0 -2
- package/dist/js/components/Nav/NavList.d.ts.map +1 -1
- package/dist/js/components/Sidebar/Sidebar.d.ts +4 -0
- package/dist/js/components/Sidebar/Sidebar.d.ts.map +1 -1
- package/dist/js/components/Sidebar/Sidebar.js.map +1 -1
- package/dist/js/components/Sidebar/SidebarContent.d.ts +1 -0
- package/dist/js/components/Sidebar/SidebarContent.d.ts.map +1 -1
- package/dist/js/components/Sidebar/SidebarContent.js.map +1 -1
- package/dist/js/components/Sidebar/SidebarPanel.d.ts +3 -0
- package/dist/js/components/Sidebar/SidebarPanel.d.ts.map +1 -1
- package/dist/js/components/Sidebar/SidebarPanel.js.map +1 -1
- package/dist/umd/react-core.css +9715 -9715
- package/dist/umd/react-core.js +52 -135
- package/dist/umd/react-core.min.css +15301 -15301
- package/dist/umd/react-core.min.js +2 -2
- package/package.json +2 -2
- package/src/components/DataList/DataList.tsx +19 -15
- package/src/components/DataList/examples/DataList.md +78 -111
- package/src/components/DragDrop/DragDrop.tsx +7 -1
- package/src/components/DragDrop/Draggable.tsx +49 -41
- package/src/components/DragDrop/Droppable.tsx +21 -7
- package/src/components/DragDrop/__tests__/__snapshots__/DragDrop.test.tsx.snap +1 -0
- package/src/components/Nav/Nav.tsx +7 -17
- package/src/components/Nav/NavItem.tsx +3 -127
- package/src/components/Nav/__tests__/Generated/__snapshots__/Nav.test.tsx.snap +0 -2
- package/src/components/Nav/__tests__/Generated/__snapshots__/NavItem.test.tsx.snap +0 -1
- package/src/components/Nav/__tests__/__snapshots__/Nav.test.tsx.snap +0 -49
- package/src/components/Nav/examples/Nav.md +0 -63
- package/src/components/Nav/examples/nav.css +1 -6
- package/src/components/Page/__tests__/__snapshots__/Page.test.tsx.snap +0 -15
- package/src/components/Sidebar/Sidebar.tsx +4 -0
- package/src/components/Sidebar/SidebarContent.tsx +1 -0
- package/src/components/Sidebar/SidebarPanel.tsx +3 -0
- package/src/components/Sidebar/examples/Sidebar.md +3 -2
|
@@ -1092,7 +1092,6 @@ exports[`Check page to verify grouped nav and breadcrumb - new components syntax
|
|
|
1092
1092
|
data-ouia-component-id="OUIA-Generated-NavItem-6"
|
|
1093
1093
|
data-ouia-component-type="PF4/NavItem"
|
|
1094
1094
|
data-ouia-safe={true}
|
|
1095
|
-
onMouseOver={[Function]}
|
|
1096
1095
|
>
|
|
1097
1096
|
<a
|
|
1098
1097
|
aria-current="page"
|
|
@@ -1112,7 +1111,6 @@ exports[`Check page to verify grouped nav and breadcrumb - new components syntax
|
|
|
1112
1111
|
data-ouia-component-id="OUIA-Generated-NavItem-7"
|
|
1113
1112
|
data-ouia-component-type="PF4/NavItem"
|
|
1114
1113
|
data-ouia-safe={true}
|
|
1115
|
-
onMouseOver={[Function]}
|
|
1116
1114
|
>
|
|
1117
1115
|
<a
|
|
1118
1116
|
aria-current={null}
|
|
@@ -1132,7 +1130,6 @@ exports[`Check page to verify grouped nav and breadcrumb - new components syntax
|
|
|
1132
1130
|
data-ouia-component-id="OUIA-Generated-NavItem-8"
|
|
1133
1131
|
data-ouia-component-type="PF4/NavItem"
|
|
1134
1132
|
data-ouia-safe={true}
|
|
1135
|
-
onMouseOver={[Function]}
|
|
1136
1133
|
>
|
|
1137
1134
|
<a
|
|
1138
1135
|
aria-current={null}
|
|
@@ -1152,7 +1149,6 @@ exports[`Check page to verify grouped nav and breadcrumb - new components syntax
|
|
|
1152
1149
|
data-ouia-component-id="OUIA-Generated-NavItem-9"
|
|
1153
1150
|
data-ouia-component-type="PF4/NavItem"
|
|
1154
1151
|
data-ouia-safe={true}
|
|
1155
|
-
onMouseOver={[Function]}
|
|
1156
1152
|
>
|
|
1157
1153
|
<a
|
|
1158
1154
|
aria-current={null}
|
|
@@ -1172,7 +1168,6 @@ exports[`Check page to verify grouped nav and breadcrumb - new components syntax
|
|
|
1172
1168
|
data-ouia-component-id="OUIA-Generated-NavItem-10"
|
|
1173
1169
|
data-ouia-component-type="PF4/NavItem"
|
|
1174
1170
|
data-ouia-safe={true}
|
|
1175
|
-
onMouseOver={[Function]}
|
|
1176
1171
|
>
|
|
1177
1172
|
<a
|
|
1178
1173
|
aria-current={null}
|
|
@@ -1486,7 +1481,6 @@ exports[`Check page to verify grouped nav and breadcrumb - old / props syntax 1`
|
|
|
1486
1481
|
data-ouia-component-id="OUIA-Generated-NavItem-11"
|
|
1487
1482
|
data-ouia-component-type="PF4/NavItem"
|
|
1488
1483
|
data-ouia-safe={true}
|
|
1489
|
-
onMouseOver={[Function]}
|
|
1490
1484
|
>
|
|
1491
1485
|
<a
|
|
1492
1486
|
aria-current="page"
|
|
@@ -1506,7 +1500,6 @@ exports[`Check page to verify grouped nav and breadcrumb - old / props syntax 1`
|
|
|
1506
1500
|
data-ouia-component-id="OUIA-Generated-NavItem-12"
|
|
1507
1501
|
data-ouia-component-type="PF4/NavItem"
|
|
1508
1502
|
data-ouia-safe={true}
|
|
1509
|
-
onMouseOver={[Function]}
|
|
1510
1503
|
>
|
|
1511
1504
|
<a
|
|
1512
1505
|
aria-current={null}
|
|
@@ -1526,7 +1519,6 @@ exports[`Check page to verify grouped nav and breadcrumb - old / props syntax 1`
|
|
|
1526
1519
|
data-ouia-component-id="OUIA-Generated-NavItem-13"
|
|
1527
1520
|
data-ouia-component-type="PF4/NavItem"
|
|
1528
1521
|
data-ouia-safe={true}
|
|
1529
|
-
onMouseOver={[Function]}
|
|
1530
1522
|
>
|
|
1531
1523
|
<a
|
|
1532
1524
|
aria-current={null}
|
|
@@ -1546,7 +1538,6 @@ exports[`Check page to verify grouped nav and breadcrumb - old / props syntax 1`
|
|
|
1546
1538
|
data-ouia-component-id="OUIA-Generated-NavItem-14"
|
|
1547
1539
|
data-ouia-component-type="PF4/NavItem"
|
|
1548
1540
|
data-ouia-safe={true}
|
|
1549
|
-
onMouseOver={[Function]}
|
|
1550
1541
|
>
|
|
1551
1542
|
<a
|
|
1552
1543
|
aria-current={null}
|
|
@@ -1566,7 +1557,6 @@ exports[`Check page to verify grouped nav and breadcrumb - old / props syntax 1`
|
|
|
1566
1557
|
data-ouia-component-id="OUIA-Generated-NavItem-15"
|
|
1567
1558
|
data-ouia-component-type="PF4/NavItem"
|
|
1568
1559
|
data-ouia-safe={true}
|
|
1569
|
-
onMouseOver={[Function]}
|
|
1570
1560
|
>
|
|
1571
1561
|
<a
|
|
1572
1562
|
aria-current={null}
|
|
@@ -1966,7 +1956,6 @@ exports[`Check page to verify nav is created - PageNavigation syntax 1`] = `
|
|
|
1966
1956
|
data-ouia-component-id="OUIA-Generated-NavItem-1"
|
|
1967
1957
|
data-ouia-component-type="PF4/NavItem"
|
|
1968
1958
|
data-ouia-safe={true}
|
|
1969
|
-
onMouseOver={[Function]}
|
|
1970
1959
|
>
|
|
1971
1960
|
<a
|
|
1972
1961
|
aria-current="page"
|
|
@@ -1986,7 +1975,6 @@ exports[`Check page to verify nav is created - PageNavigation syntax 1`] = `
|
|
|
1986
1975
|
data-ouia-component-id="OUIA-Generated-NavItem-2"
|
|
1987
1976
|
data-ouia-component-type="PF4/NavItem"
|
|
1988
1977
|
data-ouia-safe={true}
|
|
1989
|
-
onMouseOver={[Function]}
|
|
1990
1978
|
>
|
|
1991
1979
|
<a
|
|
1992
1980
|
aria-current={null}
|
|
@@ -2006,7 +1994,6 @@ exports[`Check page to verify nav is created - PageNavigation syntax 1`] = `
|
|
|
2006
1994
|
data-ouia-component-id="OUIA-Generated-NavItem-3"
|
|
2007
1995
|
data-ouia-component-type="PF4/NavItem"
|
|
2008
1996
|
data-ouia-safe={true}
|
|
2009
|
-
onMouseOver={[Function]}
|
|
2010
1997
|
>
|
|
2011
1998
|
<a
|
|
2012
1999
|
aria-current={null}
|
|
@@ -2026,7 +2013,6 @@ exports[`Check page to verify nav is created - PageNavigation syntax 1`] = `
|
|
|
2026
2013
|
data-ouia-component-id="OUIA-Generated-NavItem-4"
|
|
2027
2014
|
data-ouia-component-type="PF4/NavItem"
|
|
2028
2015
|
data-ouia-safe={true}
|
|
2029
|
-
onMouseOver={[Function]}
|
|
2030
2016
|
>
|
|
2031
2017
|
<a
|
|
2032
2018
|
aria-current={null}
|
|
@@ -2046,7 +2032,6 @@ exports[`Check page to verify nav is created - PageNavigation syntax 1`] = `
|
|
|
2046
2032
|
data-ouia-component-id="OUIA-Generated-NavItem-5"
|
|
2047
2033
|
data-ouia-component-type="PF4/NavItem"
|
|
2048
2034
|
data-ouia-safe={true}
|
|
2049
|
-
onMouseOver={[Function]}
|
|
2050
2035
|
>
|
|
2051
2036
|
<a
|
|
2052
2037
|
aria-current={null}
|
|
@@ -4,9 +4,13 @@ import styles from '@patternfly/react-styles/css/components/Sidebar/sidebar';
|
|
|
4
4
|
|
|
5
5
|
export interface SidebarProps extends React.HTMLProps<HTMLDivElement> {
|
|
6
6
|
children?: React.ReactNode;
|
|
7
|
+
/** Indicates the direction of the layout. Default orientation is stack on small screens, and split on medium screens and above. */
|
|
7
8
|
orientation?: 'stack' | 'split';
|
|
9
|
+
/** Indicates that the panel is displayed to the right of the content when the oritentation is split. */
|
|
8
10
|
isPanelRight?: boolean;
|
|
11
|
+
/** Adds space between the panel and content. */
|
|
9
12
|
hasGutter?: boolean;
|
|
13
|
+
/** Removes the background color. */
|
|
10
14
|
hasNoBackground?: boolean;
|
|
11
15
|
}
|
|
12
16
|
|
|
@@ -5,8 +5,11 @@ import { formatBreakpointMods } from '../../helpers/util';
|
|
|
5
5
|
|
|
6
6
|
export interface SidebarPanelProps extends Omit<React.HTMLProps<HTMLDivElement>, 'width'> {
|
|
7
7
|
children: React.ReactNode;
|
|
8
|
+
/** Indicates whether the panel is positioned statically or sticky to the top. Default is sticky on small screens when the orientation is stack, and static on medium and above screens when the orientation is split. */
|
|
8
9
|
variant?: 'default' | 'sticky' | 'static';
|
|
10
|
+
/** Removes the background color. */
|
|
9
11
|
hasNoBackground?: boolean;
|
|
12
|
+
/** Sets the panel width at various breakpoints. Default is 250px when the orientation is split. */
|
|
10
13
|
width?: {
|
|
11
14
|
default?: 'default' | 'width_25' | 'width_33' | 'width_50' | 'width_66' | 'width_75' | 'width_100';
|
|
12
15
|
sm?: 'default' | 'width_25' | 'width_33' | 'width_50' | 'width_66' | 'width_75' | 'width_100';
|
|
@@ -3,6 +3,7 @@ id: Sidebar
|
|
|
3
3
|
beta: true
|
|
4
4
|
cssPrefix: pf-c-sidebar
|
|
5
5
|
section: components
|
|
6
|
+
propComponents: ['Sidebar', 'SidebarContent', 'SidebarPanel']
|
|
6
7
|
---
|
|
7
8
|
|
|
8
9
|
## Examples
|
|
@@ -27,7 +28,7 @@ import { Sidebar, SidebarContent, SidebarPanel } from '@patternfly/react-core';
|
|
|
27
28
|
import React from 'react';
|
|
28
29
|
import { Sidebar, SidebarContent, SidebarPanel } from '@patternfly/react-core';
|
|
29
30
|
|
|
30
|
-
<Sidebar
|
|
31
|
+
<Sidebar orientation="stack">
|
|
31
32
|
<SidebarPanel>
|
|
32
33
|
Sidebar panel stacked on top
|
|
33
34
|
</SidebarPanel>
|
|
@@ -43,7 +44,7 @@ import { Sidebar, SidebarContent, SidebarPanel } from '@patternfly/react-core';
|
|
|
43
44
|
import React from 'react';
|
|
44
45
|
import { Sidebar, SidebarContent, SidebarPanel } from '@patternfly/react-core';
|
|
45
46
|
|
|
46
|
-
<Sidebar
|
|
47
|
+
<Sidebar isPanelRight hasGutter>
|
|
47
48
|
<SidebarPanel>
|
|
48
49
|
Sidebar panel on the right
|
|
49
50
|
</SidebarPanel>
|