Skip to content

Commit

Permalink
feat(table): discovery-154 pf4 table wrapper (#139)
Browse files Browse the repository at this point in the history
* table, pf4 composable wrapper
* tableEmpty, empty results placeholder
* tableHelpers, generate props, data parse
  • Loading branch information
cdcabrera authored Aug 12, 2022
1 parent fa41d0b commit 306781a
Show file tree
Hide file tree
Showing 12 changed files with 3,181 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@
"@patternfly/react-core": "4.221.3",
"@patternfly/react-icons": "4.72.3",
"@patternfly/react-styles": "4.71.3",
"@patternfly/react-table": "4.71.37",
"@patternfly/react-tokens": "4.73.3",
"axios": "^0.27.2",
"bootstrap": "^5.1.3",
Expand Down
21 changes: 21 additions & 0 deletions src/components/i18n/__tests__/__snapshots__/i18n.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,19 @@ Array [
},
],
},
Object {
"file": "./src/components/table/tableEmpty.js",
"keys": Array [
Object {
"key": "table.empty-state_title",
"match": "t('table.empty-state_title', 'No results found')",
},
Object {
"key": "table.empty-state_description",
"match": "t('table.empty-state_description', 'Clear all filters and try again.')",
},
],
},
]
`;

Expand Down Expand Up @@ -647,6 +660,14 @@ Array [
"file": "./src/components/sources/sourcesEmptyState.js",
"key": "view.empty-state",
},
Object {
"file": "./src/components/table/tableEmpty.js",
"key": "table.empty-state_title",
},
Object {
"file": "./src/components/table/tableEmpty.js",
"key": "table.empty-state_description",
},
]
`;

Expand Down
Loading

0 comments on commit 306781a

Please sign in to comment.