@patternfly/react-table 5.0.0-alpha.87 → 5.0.0-alpha.89
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 +8 -0
- package/components/package.json +1 -1
- package/deprecated/package.json +1 -1
- package/dist/js/components/Table/package.json +1 -1
- package/dist/js/components/Table/utils/decorators/package.json +1 -1
- package/dist/js/components/Table/utils/package.json +1 -1
- package/dist/js/components/package.json +1 -1
- package/dist/js/deprecated/components/Table/base/package.json +1 -1
- package/dist/js/deprecated/components/Table/package.json +1 -1
- package/dist/js/deprecated/components/package.json +1 -1
- package/dist/js/deprecated/package.json +1 -1
- package/dist/js/package.json +1 -1
- package/package.json +3 -3
- package/src/docs/demos/Table.md +131 -152
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [5.0.0-alpha.89](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-table@5.0.0-alpha.88...@patternfly/react-table@5.0.0-alpha.89) (2023-05-03)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @patternfly/react-table
|
|
9
|
+
|
|
10
|
+
# [5.0.0-alpha.88](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-table@5.0.0-alpha.87...@patternfly/react-table@5.0.0-alpha.88) (2023-05-03)
|
|
11
|
+
|
|
12
|
+
**Note:** Version bump only for package @patternfly/react-table
|
|
13
|
+
|
|
6
14
|
# [5.0.0-alpha.87](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-table@5.0.0-alpha.86...@patternfly/react-table@5.0.0-alpha.87) (2023-05-02)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @patternfly/react-table
|
package/components/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@patternfly/react-table-components-esm","main":"index.js","module":"./components/index.js","typings":"index.d.ts","version":"5.0.0-alpha.
|
|
1
|
+
{"name":"@patternfly/react-table-components-esm","main":"index.js","module":"./components/index.js","typings":"index.d.ts","version":"5.0.0-alpha.88"}
|
package/deprecated/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@patternfly/react-table-deprecated-deprecated-esm","main":"index.js","module":"./deprecated/index.js","typings":"index.d.ts","version":"5.0.0-alpha.
|
|
1
|
+
{"name":"@patternfly/react-table-deprecated-deprecated-esm","main":"index.js","module":"./deprecated/index.js","typings":"index.d.ts","version":"5.0.0-alpha.88"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@patternfly/react-table-table-cjs","main":"index.js","module":"./dist/js/components/Table/index.js","typings":"index.d.ts","version":"5.0.0-alpha.
|
|
1
|
+
{"name":"@patternfly/react-table-table-cjs","main":"index.js","module":"./dist/js/components/Table/index.js","typings":"index.d.ts","version":"5.0.0-alpha.88"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@patternfly/react-table-decorators-cjs","main":"index.js","module":"./dist/js/components/Table/utils/decorators/index.js","typings":"index.d.ts","version":"5.0.0-alpha.
|
|
1
|
+
{"name":"@patternfly/react-table-decorators-cjs","main":"index.js","module":"./dist/js/components/Table/utils/decorators/index.js","typings":"index.d.ts","version":"5.0.0-alpha.88"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@patternfly/react-table-utils-cjs","main":"index.js","module":"./dist/js/components/Table/utils/index.js","typings":"index.d.ts","version":"5.0.0-alpha.
|
|
1
|
+
{"name":"@patternfly/react-table-utils-cjs","main":"index.js","module":"./dist/js/components/Table/utils/index.js","typings":"index.d.ts","version":"5.0.0-alpha.88"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@patternfly/react-table-components-cjs","main":"index.js","module":"./dist/js/components/index.js","typings":"index.d.ts","version":"5.0.0-alpha.
|
|
1
|
+
{"name":"@patternfly/react-table-components-cjs","main":"index.js","module":"./dist/js/components/index.js","typings":"index.d.ts","version":"5.0.0-alpha.88"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@patternfly/react-table-base-deprecated-cjs","main":"index.js","module":"./dist/js/deprecated/components/Table/base/index.js","typings":"index.d.ts","version":"5.0.0-alpha.
|
|
1
|
+
{"name":"@patternfly/react-table-base-deprecated-cjs","main":"index.js","module":"./dist/js/deprecated/components/Table/base/index.js","typings":"index.d.ts","version":"5.0.0-alpha.88"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@patternfly/react-table-table-deprecated-cjs","main":"index.js","module":"./dist/js/deprecated/components/Table/index.js","typings":"index.d.ts","version":"5.0.0-alpha.
|
|
1
|
+
{"name":"@patternfly/react-table-table-deprecated-cjs","main":"index.js","module":"./dist/js/deprecated/components/Table/index.js","typings":"index.d.ts","version":"5.0.0-alpha.88"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@patternfly/react-table-components-deprecated-cjs","main":"index.js","module":"./dist/js/deprecated/components/index.js","typings":"index.d.ts","version":"5.0.0-alpha.
|
|
1
|
+
{"name":"@patternfly/react-table-components-deprecated-cjs","main":"index.js","module":"./dist/js/deprecated/components/index.js","typings":"index.d.ts","version":"5.0.0-alpha.88"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@patternfly/react-table-deprecated-deprecated-cjs","main":"index.js","module":"./dist/js/deprecated/index.js","typings":"index.d.ts","version":"5.0.0-alpha.
|
|
1
|
+
{"name":"@patternfly/react-table-deprecated-deprecated-cjs","main":"index.js","module":"./dist/js/deprecated/index.js","typings":"index.d.ts","version":"5.0.0-alpha.88"}
|
package/dist/js/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@patternfly/react-table-js-cjs","main":"index.js","module":"./dist/js/index.js","typings":"index.d.ts","version":"5.0.0-alpha.
|
|
1
|
+
{"name":"@patternfly/react-table-js-cjs","main":"index.js","module":"./dist/js/index.js","typings":"index.d.ts","version":"5.0.0-alpha.88"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@patternfly/react-table",
|
|
3
|
-
"version": "5.0.0-alpha.
|
|
3
|
+
"version": "5.0.0-alpha.89",
|
|
4
4
|
"description": "This library provides a set of React table components for use with the PatternFly 4",
|
|
5
5
|
"main": "dist/js/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"subpaths": "node scripts/createSubpaths.js"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@patternfly/react-core": "^5.0.0-alpha.
|
|
43
|
+
"@patternfly/react-core": "^5.0.0-alpha.87",
|
|
44
44
|
"@patternfly/react-icons": "^5.0.0-alpha.12",
|
|
45
45
|
"@patternfly/react-styles": "^5.0.0-alpha.8",
|
|
46
46
|
"@patternfly/react-tokens": "^5.0.0-alpha.7",
|
|
@@ -55,5 +55,5 @@
|
|
|
55
55
|
"react": "^17 || ^18",
|
|
56
56
|
"react-dom": "^17 || ^18"
|
|
57
57
|
},
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "696a96df36af68e169c0f4900b467e624114b9b2"
|
|
59
59
|
}
|
package/src/docs/demos/Table.md
CHANGED
|
@@ -1736,188 +1736,167 @@ These examples demonstrate the use of an [Empty State component](/components/emp
|
|
|
1736
1736
|
|
|
1737
1737
|
```js isFullscreen
|
|
1738
1738
|
import React from 'react';
|
|
1739
|
+
import { Table, Thead, Tr, Th, Tbody, Td } from '@patternfly/react-table';
|
|
1739
1740
|
import {
|
|
1741
|
+
Bullseye,
|
|
1740
1742
|
Button,
|
|
1741
1743
|
Card,
|
|
1744
|
+
DashboardWrapper,
|
|
1742
1745
|
EmptyState,
|
|
1746
|
+
EmptyStateVariant,
|
|
1743
1747
|
EmptyStateIcon,
|
|
1744
1748
|
EmptyStateBody,
|
|
1749
|
+
EmptyStateHeader,
|
|
1750
|
+
EmptyStateFooter,
|
|
1745
1751
|
EmptyStateActions,
|
|
1746
|
-
PageSection
|
|
1747
|
-
Title
|
|
1752
|
+
PageSection
|
|
1748
1753
|
} from '@patternfly/react-core';
|
|
1749
1754
|
import SearchIcon from '@patternfly/react-icons/dist/esm/icons/search-icon';
|
|
1750
|
-
import { Table as TableDeprecated, TableHeader, TableBody } from '@patternfly/react-table/deprecated';
|
|
1751
|
-
import DashboardWrapper from '@patternfly/react-core/src/demos/examples/DashboardWrapper';
|
|
1752
|
-
|
|
1753
|
-
class EmptyStateDemo extends React.Component {
|
|
1754
|
-
render() {
|
|
1755
|
-
const columns = [
|
|
1756
|
-
{ title: 'Repositories' },
|
|
1757
|
-
{ title: 'Branches' },
|
|
1758
|
-
{ title: 'Pull requests' },
|
|
1759
|
-
{ title: 'Workspaces' },
|
|
1760
|
-
{ title: 'Last commit' }
|
|
1761
|
-
];
|
|
1762
|
-
|
|
1763
|
-
const rows = [
|
|
1764
|
-
{
|
|
1765
|
-
heightAuto: true,
|
|
1766
|
-
cells: [
|
|
1767
|
-
{
|
|
1768
|
-
props: { colSpan: 8 },
|
|
1769
|
-
title: (
|
|
1770
|
-
<EmptyState>
|
|
1771
|
-
<EmptyStateHeader
|
|
1772
|
-
titleText="No results found"
|
|
1773
|
-
headingLevel="h2"
|
|
1774
|
-
icon={<EmptyStateIcon icon={SearchIcon} />}
|
|
1775
|
-
/>
|
|
1776
|
-
<EmptyStateBody>No results match this filter criteria. Clear all filters and try again.</EmptyStateBody>
|
|
1777
|
-
<EmptyStateFooter>
|
|
1778
|
-
<EmptyStateActions>
|
|
1779
|
-
<Button variant="link" onClick={() => {}}>
|
|
1780
|
-
Clear all filters
|
|
1781
|
-
</Button>
|
|
1782
|
-
</EmptyStateActions>
|
|
1783
|
-
</EmptyStateFooter>
|
|
1784
|
-
</EmptyState>
|
|
1785
|
-
)
|
|
1786
|
-
}
|
|
1787
|
-
]
|
|
1788
|
-
}
|
|
1789
|
-
];
|
|
1790
1755
|
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1756
|
+
export const TableEmptyState: React.FunctionComponent = () => (
|
|
1757
|
+
<DashboardWrapper hasPageTemplateTitle>
|
|
1758
|
+
<PageSection padding={{ default: 'noPadding', xl: 'padding' }}>
|
|
1759
|
+
<Card component="div">
|
|
1760
|
+
<Table aria-label="Empty state table">
|
|
1761
|
+
<Thead>
|
|
1762
|
+
<Tr>
|
|
1763
|
+
<Th>Repositories</Th>
|
|
1764
|
+
<Th>Branches</Th>
|
|
1765
|
+
<Th>Pull requests</Th>
|
|
1766
|
+
<Th>Workspaces</Th>
|
|
1767
|
+
<Th>Last commit</Th>
|
|
1768
|
+
</Tr>
|
|
1769
|
+
</Thead>
|
|
1770
|
+
<Tbody>
|
|
1771
|
+
<Tr>
|
|
1772
|
+
<Td colSpan={8}>
|
|
1773
|
+
<Bullseye>
|
|
1774
|
+
<EmptyState variant={EmptyStateVariant.sm}>
|
|
1775
|
+
<EmptyStateHeader
|
|
1776
|
+
icon={<EmptyStateIcon icon={SearchIcon} />}
|
|
1777
|
+
titleText="No results found"
|
|
1778
|
+
headingLevel="h2"
|
|
1779
|
+
/>
|
|
1780
|
+
<EmptyStateBody>No results match this filter criteria. Clear all filters and try again.</EmptyStateBody>
|
|
1781
|
+
<EmptyStateFooter>
|
|
1782
|
+
<EmptyStateActions>
|
|
1783
|
+
<Button variant="link">Clear all filters</Button>
|
|
1784
|
+
</EmptyStateActions>
|
|
1785
|
+
</EmptyStateFooter>
|
|
1786
|
+
</EmptyState>
|
|
1787
|
+
</Bullseye>
|
|
1788
|
+
</Td>
|
|
1789
|
+
</Tr>
|
|
1790
|
+
</Tbody>
|
|
1791
|
+
</Table>
|
|
1792
|
+
</Card>
|
|
1793
|
+
</PageSection>
|
|
1794
|
+
</DashboardWrapper>
|
|
1795
|
+
);
|
|
1805
1796
|
```
|
|
1806
1797
|
|
|
1807
1798
|
### Loading
|
|
1808
1799
|
|
|
1809
1800
|
```js isFullscreen
|
|
1810
1801
|
import React from 'react';
|
|
1811
|
-
import {
|
|
1812
|
-
import {
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
{ title: 'Last commit' }
|
|
1824
|
-
];
|
|
1825
|
-
const rows = [
|
|
1826
|
-
{
|
|
1827
|
-
heightAuto: true,
|
|
1828
|
-
cells: [
|
|
1829
|
-
{
|
|
1830
|
-
props: { colSpan: 8 },
|
|
1831
|
-
title: (
|
|
1832
|
-
<Bullseye>
|
|
1833
|
-
<EmptyState>
|
|
1834
|
-
<EmptyStateHeader titleText="Loading" headingLevel="h2" icon={<EmptyStateIcon icon={Spinner} />} />
|
|
1835
|
-
</EmptyState>
|
|
1836
|
-
</Bullseye>
|
|
1837
|
-
)
|
|
1838
|
-
}
|
|
1839
|
-
]
|
|
1840
|
-
}
|
|
1841
|
-
];
|
|
1802
|
+
import { Table, Thead, Tr, Th, Tbody, Td } from '@patternfly/react-table';
|
|
1803
|
+
import {
|
|
1804
|
+
Bullseye,
|
|
1805
|
+
Card,
|
|
1806
|
+
DashboardWrapper,
|
|
1807
|
+
EmptyState,
|
|
1808
|
+
EmptyStateIcon,
|
|
1809
|
+
EmptyStateBody,
|
|
1810
|
+
EmptyStateHeader,
|
|
1811
|
+
PageSection,
|
|
1812
|
+
Spinner
|
|
1813
|
+
} from '@patternfly/react-core';
|
|
1842
1814
|
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1815
|
+
export const LoadingStateDemo: React.FunctionComponent = () => (
|
|
1816
|
+
<DashboardWrapper hasPageTemplateTitle>
|
|
1817
|
+
<PageSection padding={{ default: 'noPadding', xl: 'padding' }}>
|
|
1818
|
+
<Card component="div">
|
|
1819
|
+
<Table aria-label="Loading table demo">
|
|
1820
|
+
<Thead>
|
|
1821
|
+
<Tr>
|
|
1822
|
+
<Th>Repositories</Th>
|
|
1823
|
+
<Th>Branches</Th>
|
|
1824
|
+
<Th>Pull requests</Th>
|
|
1825
|
+
<Th>Workspaces</Th>
|
|
1826
|
+
<Th>Last commit</Th>
|
|
1827
|
+
</Tr>
|
|
1828
|
+
</Thead>
|
|
1829
|
+
<Tbody>
|
|
1830
|
+
<Tr>
|
|
1831
|
+
<Td colSpan={8}>
|
|
1832
|
+
<Bullseye>
|
|
1833
|
+
<EmptyState>
|
|
1834
|
+
<EmptyStateHeader titleText="Loading" headingLevel="h2" icon={<EmptyStateIcon icon={Spinner} />} />
|
|
1835
|
+
</EmptyState>
|
|
1836
|
+
</Bullseye>
|
|
1837
|
+
</Td>
|
|
1838
|
+
</Tr>
|
|
1839
|
+
</Tbody>
|
|
1840
|
+
</Table>
|
|
1841
|
+
</Card>
|
|
1842
|
+
</PageSection>
|
|
1843
|
+
</DashboardWrapper>
|
|
1844
|
+
);
|
|
1857
1845
|
```
|
|
1858
1846
|
|
|
1859
1847
|
### Error
|
|
1860
1848
|
|
|
1861
1849
|
```js isFullscreen
|
|
1862
1850
|
import React from 'react';
|
|
1851
|
+
import { Table, Thead, Tr, Th, Tbody, Td } from '@patternfly/react-table';
|
|
1863
1852
|
import {
|
|
1853
|
+
Bullseye,
|
|
1864
1854
|
Card,
|
|
1855
|
+
DashboardWrapper,
|
|
1865
1856
|
EmptyState,
|
|
1857
|
+
EmptyStateVariant,
|
|
1866
1858
|
EmptyStateIcon,
|
|
1867
1859
|
EmptyStateBody,
|
|
1868
|
-
EmptyStateVariant,
|
|
1869
1860
|
EmptyStateHeader,
|
|
1870
|
-
PageSection
|
|
1871
|
-
Title
|
|
1861
|
+
PageSection
|
|
1872
1862
|
} from '@patternfly/react-core';
|
|
1873
|
-
import { Table as TableDeprecated, TableHeader, TableBody } from '@patternfly/react-table/deprecated';
|
|
1874
|
-
import DashboardWrapper from '@patternfly/react-core/src/demos/examples/DashboardWrapper';
|
|
1875
1863
|
import ExclamationCircleIcon from '@patternfly/react-icons/dist/esm/icons/exclamation-circle-icon';
|
|
1876
1864
|
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
<
|
|
1894
|
-
<
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
<TableHeader />
|
|
1915
|
-
<TableBody />
|
|
1916
|
-
</TableDeprecated>
|
|
1917
|
-
</Card>
|
|
1918
|
-
</PageSection>
|
|
1919
|
-
</DashboardWrapper>
|
|
1920
|
-
);
|
|
1921
|
-
}
|
|
1922
|
-
}
|
|
1865
|
+
export const ErrorStateDemo: React.FunctionComponent = () => (
|
|
1866
|
+
<DashboardWrapper hasPageTemplateTitle>
|
|
1867
|
+
<PageSection padding={{ default: 'noPadding', xl: 'padding' }}>
|
|
1868
|
+
<Card component="div">
|
|
1869
|
+
<Table aria-label="Loading table demo">
|
|
1870
|
+
<Thead>
|
|
1871
|
+
<Tr>
|
|
1872
|
+
<Th>Repositories</Th>
|
|
1873
|
+
<Th>Branches</Th>
|
|
1874
|
+
<Th>Pull requests</Th>
|
|
1875
|
+
<Th>Workspaces</Th>
|
|
1876
|
+
<Th>Last commit</Th>
|
|
1877
|
+
</Tr>
|
|
1878
|
+
</Thead>
|
|
1879
|
+
<Tbody>
|
|
1880
|
+
<Tr>
|
|
1881
|
+
<Td colSpan={8}>
|
|
1882
|
+
<Bullseye>
|
|
1883
|
+
<EmptyState variant={EmptyStateVariant.sm}>
|
|
1884
|
+
<EmptyStateHeader
|
|
1885
|
+
titleText="Unable to connect"
|
|
1886
|
+
icon={<EmptyStateIcon icon={ExclamationCircleIcon} color={globalDangerColor200.value} />}
|
|
1887
|
+
headingLevel="h2"
|
|
1888
|
+
/>
|
|
1889
|
+
<EmptyStateBody>
|
|
1890
|
+
There was an error retrieving data. Check your connection and reload the page.
|
|
1891
|
+
</EmptyStateBody>
|
|
1892
|
+
</EmptyState>
|
|
1893
|
+
</Bullseye>
|
|
1894
|
+
</Td>
|
|
1895
|
+
</Tr>
|
|
1896
|
+
</Tbody>
|
|
1897
|
+
</Table>
|
|
1898
|
+
</Card>
|
|
1899
|
+
</PageSection>
|
|
1900
|
+
</DashboardWrapper>
|
|
1901
|
+
);
|
|
1923
1902
|
```
|