diff --git a/generated/components.json b/generated/components.json
index 33b144b663a..fdfbaf7ff30 100644
--- a/generated/components.json
+++ b/generated/components.json
@@ -1845,24 +1845,28 @@
"code": "() => (\n
\n \n Repositories\n \n \n A subtitle could appear here to give extra context to the data.\n \n {\n return {uppercase(row.type)} \n },\n },\n {\n header: 'Updated',\n field: 'updatedAt',\n renderCell: (row) => {\n return \n },\n },\n {\n header: 'Dependabot',\n field: 'securityFeatures.dependabot',\n renderCell: (row) => {\n return row.securityFeatures.dependabot.length > 0 ? (\n \n {row.securityFeatures.dependabot.map((feature) => {\n return {uppercase(feature)} \n })}\n \n ) : null\n },\n },\n {\n header: 'Code scanning',\n field: 'securityFeatures.codeScanning',\n renderCell: (row) => {\n return row.securityFeatures.codeScanning.length > 0 ? (\n \n {row.securityFeatures.codeScanning.map((feature) => {\n return {uppercase(feature)} \n })}\n \n ) : null\n },\n },\n ]}\n />\n \n)"
},
{
- "id": "drafts-components-datatable--with-title",
+ "id": "components-datatable-features--with-title",
"code": "() => (\n \n \n Repositories\n \n {\n return {uppercase(row.type)} \n },\n },\n {\n header: 'Updated',\n field: 'updatedAt',\n renderCell: (row) => {\n return \n },\n },\n {\n header: 'Dependabot',\n field: 'securityFeatures.dependabot',\n renderCell: (row) => {\n return row.securityFeatures.dependabot.length > 0 ? (\n \n {row.securityFeatures.dependabot.map((feature) => {\n return {uppercase(feature)} \n })}\n \n ) : null\n },\n },\n {\n header: 'Code scanning',\n field: 'securityFeatures.codeScanning',\n renderCell: (row) => {\n return row.securityFeatures.codeScanning.length > 0 ? (\n \n {row.securityFeatures.codeScanning.map((feature) => {\n return {uppercase(feature)} \n })}\n \n ) : null\n },\n },\n ]}\n />\n \n)"
},
{
- "id": "drafts-components-datatable--with-title-and-subtitle",
+ "id": "components-datatable-features--with-title-and-subtitle",
"code": "() => (\n \n \n Repositories\n \n \n A subtitle could appear here to give extra context to the data.\n \n {\n return {uppercase(row.type)} \n },\n },\n {\n header: 'Updated',\n field: 'updatedAt',\n renderCell: (row) => {\n return \n },\n },\n {\n header: 'Dependabot',\n field: 'securityFeatures.dependabot',\n renderCell: (row) => {\n return row.securityFeatures.dependabot.length > 0 ? (\n \n {row.securityFeatures.dependabot.map((feature) => {\n return {uppercase(feature)} \n })}\n \n ) : null\n },\n },\n {\n header: 'Code scanning',\n field: 'securityFeatures.codeScanning',\n renderCell: (row) => {\n return row.securityFeatures.codeScanning.length > 0 ? (\n \n {row.securityFeatures.codeScanning.map((feature) => {\n return {uppercase(feature)} \n })}\n \n ) : null\n },\n },\n ]}\n />\n \n)"
},
{
- "id": "drafts-components-datatable--with-sorting",
+ "id": "components-datatable-features--with-sorting",
"code": "() => {\n const rows = Array.from(data).sort((a, b) => {\n return b.updatedAt - a.updatedAt\n })\n return (\n \n \n Repositories\n \n \n A subtitle could appear here to give extra context to the data.\n \n {\n return {uppercase(row.type)} \n },\n },\n {\n header: 'Updated',\n field: 'updatedAt',\n sortBy: true,\n renderCell: (row) => {\n return \n },\n },\n {\n header: 'Dependabot',\n field: 'securityFeatures.dependabot',\n renderCell: (row) => {\n return row.securityFeatures.dependabot.length > 0 ? (\n \n {row.securityFeatures.dependabot.map((feature) => {\n return {uppercase(feature)} \n })}\n \n ) : null\n },\n },\n {\n header: 'Code scanning',\n field: 'securityFeatures.codeScanning',\n renderCell: (row) => {\n return row.securityFeatures.codeScanning.length > 0 ? (\n \n {row.securityFeatures.codeScanning.map((feature) => {\n return {uppercase(feature)} \n })}\n \n ) : null\n },\n },\n ]}\n initialSortColumn=\"updatedAt\"\n initialSortDirection=\"DESC\"\n />\n \n )\n}"
},
{
- "id": "drafts-components-datatable--with-actions",
+ "id": "components-datatable-features--with-actions",
"code": "() => (\n \n \n Repositories\n \n \n \n \n \n \n \n A subtitle could appear here to give extra context to the data.\n \n {\n return {uppercase(row.type)} \n },\n },\n {\n header: 'Updated',\n field: 'updatedAt',\n renderCell: (row) => {\n return \n },\n },\n {\n header: 'Dependabot',\n field: 'securityFeatures.dependabot',\n renderCell: (row) => {\n return row.securityFeatures.dependabot.length > 0 ? (\n \n {row.securityFeatures.dependabot.map((feature) => {\n return {uppercase(feature)} \n })}\n \n ) : null\n },\n },\n {\n header: 'Code scanning',\n field: 'securityFeatures.codeScanning',\n renderCell: (row) => {\n return row.securityFeatures.codeScanning.length > 0 ? (\n \n {row.securityFeatures.codeScanning.map((feature) => {\n return {uppercase(feature)} \n })}\n \n ) : null\n },\n },\n ]}\n />\n \n)"
},
{
- "id": "drafts-components-datatable--with-action",
+ "id": "components-datatable-features--with-action",
"code": "() => (\n \n \n Repositories\n \n \n Action \n \n \n \n A subtitle could appear here to give extra context to the data.\n \n {\n return {uppercase(row.type)} \n },\n },\n {\n header: 'Updated',\n field: 'updatedAt',\n renderCell: (row) => {\n return \n },\n },\n {\n header: 'Dependabot',\n field: 'securityFeatures.dependabot',\n renderCell: (row) => {\n return row.securityFeatures.dependabot.length > 0 ? (\n \n {row.securityFeatures.dependabot.map((feature) => {\n return {uppercase(feature)} \n })}\n \n ) : null\n },\n },\n {\n header: 'Code scanning',\n field: 'securityFeatures.codeScanning',\n renderCell: (row) => {\n return row.securityFeatures.codeScanning.length > 0 ? (\n \n {row.securityFeatures.codeScanning.map((feature) => {\n return {uppercase(feature)} \n })}\n \n ) : null\n },\n },\n ]}\n />\n \n)"
+ },
+ {
+ "id": "components-datatable-features--with-custom-heading",
+ "code": "() => (\n <>\n \n Security coverage\n \n \n Organization members can only see data for the most recently-updated\n repositories. To see all repositories, talk to your organization\n administrator about becoming a security manager.\n
\n \n {\n return {uppercase(row.type)} \n },\n },\n {\n header: 'Updated',\n field: 'updatedAt',\n renderCell: (row) => {\n return \n },\n },\n {\n header: 'Dependabot',\n field: 'securityFeatures.dependabot',\n renderCell: (row) => {\n return row.securityFeatures.dependabot.length > 0 ? (\n \n {row.securityFeatures.dependabot.map((feature) => {\n return {uppercase(feature)} \n })}\n \n ) : null\n },\n },\n {\n header: 'Code scanning',\n field: 'securityFeatures.codeScanning',\n renderCell: (row) => {\n return row.securityFeatures.codeScanning.length > 0 ? (\n \n {row.securityFeatures.codeScanning.map((feature) => {\n return {uppercase(feature)} \n })}\n \n ) : null\n },\n },\n ]}\n />\n \n >\n)"
}
],
"props": [
@@ -1918,7 +1922,7 @@
]
},
{
- "name": "TableHead",
+ "name": "Table.Head",
"props": [
{
"name": "children",
@@ -1927,7 +1931,7 @@
]
},
{
- "name": "TableBody",
+ "name": "Table.Body",
"props": [
{
"name": "children",
@@ -1936,7 +1940,7 @@
]
},
{
- "name": "TableRow",
+ "name": "Table.Row",
"props": [
{
"name": "children",
@@ -1945,7 +1949,7 @@
]
},
{
- "name": "TableHeader",
+ "name": "Table.Header",
"props": [
{
"name": "children",
@@ -1954,7 +1958,7 @@
]
},
{
- "name": "TableCell",
+ "name": "Table.Cell",
"props": [
{
"name": "children",
@@ -1968,7 +1972,7 @@
]
},
{
- "name": "TableContainer",
+ "name": "Table.Container",
"props": [
{
"name": "children",
@@ -1977,7 +1981,7 @@
]
},
{
- "name": "TableTitle",
+ "name": "Table.Title",
"props": [
{
"name": "children",
@@ -1991,7 +1995,7 @@
]
},
{
- "name": "TableSubtitle",
+ "name": "Table.Subtitle",
"props": [
{
"name": "children",
diff --git a/src/DataTable/DataTable.docs.json b/src/DataTable/DataTable.docs.json
index fd2c937f69e..88a45f4466d 100644
--- a/src/DataTable/DataTable.docs.json
+++ b/src/DataTable/DataTable.docs.json
@@ -5,19 +5,22 @@
"a11yReviewed": false,
"stories": [
{
- "id": "drafts-components-datatable--with-title"
+ "id": "components-datatable-features--with-title"
},
{
- "id": "drafts-components-datatable--with-title-and-subtitle"
+ "id": "components-datatable-features--with-title-and-subtitle"
},
{
- "id": "drafts-components-datatable--with-sorting"
+ "id": "components-datatable-features--with-sorting"
},
{
- "id": "drafts-components-datatable--with-actions"
+ "id": "components-datatable-features--with-actions"
},
{
- "id": "drafts-components-datatable--with-action"
+ "id": "components-datatable-features--with-action"
+ },
+ {
+ "id": "components-datatable-features--with-custom-heading"
}
],
"props": [
@@ -73,7 +76,7 @@
]
},
{
- "name": "TableHead",
+ "name": "Table.Head",
"props": [
{
"name": "children",
@@ -82,7 +85,7 @@
]
},
{
- "name": "TableBody",
+ "name": "Table.Body",
"props": [
{
"name": "children",
@@ -91,7 +94,7 @@
]
},
{
- "name": "TableRow",
+ "name": "Table.Row",
"props": [
{
"name": "children",
@@ -100,7 +103,7 @@
]
},
{
- "name": "TableHeader",
+ "name": "Table.Header",
"props": [
{
"name": "children",
@@ -109,7 +112,7 @@
]
},
{
- "name": "TableCell",
+ "name": "Table.Cell",
"props": [
{
"name": "children",
@@ -123,7 +126,7 @@
]
},
{
- "name": "TableContainer",
+ "name": "Table.Container",
"props": [
{
"name": "children",
@@ -132,7 +135,7 @@
]
},
{
- "name": "TableTitle",
+ "name": "Table.Title",
"props": [
{
"name": "children",
@@ -146,7 +149,7 @@
]
},
{
- "name": "TableSubtitle",
+ "name": "Table.Subtitle",
"props": [
{
"name": "children",
diff --git a/src/DataTable/DataTable.features.stories.tsx b/src/DataTable/DataTable.features.stories.tsx
index 13b0b05296e..259984e47af 100644
--- a/src/DataTable/DataTable.features.stories.tsx
+++ b/src/DataTable/DataTable.features.stories.tsx
@@ -9,7 +9,7 @@ import LabelGroup from '../LabelGroup'
import RelativeTime from '../RelativeTime'
export default {
- title: 'Drafts/Components/DataTable/Features',
+ title: 'Components/DataTable/Features',
component: DataTable,
} as Meta
diff --git a/src/DataTable/DataTable.stories.tsx b/src/DataTable/DataTable.stories.tsx
index 36f8a5dda8f..1b50a6b6b67 100644
--- a/src/DataTable/DataTable.stories.tsx
+++ b/src/DataTable/DataTable.stories.tsx
@@ -6,7 +6,7 @@ import LabelGroup from '../LabelGroup'
import RelativeTime from '../RelativeTime'
export default {
- title: 'Drafts/Components/DataTable',
+ title: 'Components/DataTable',
component: DataTable,
} as Meta