diff --git a/packages/materialdesign-components/package.json b/packages/materialdesign-components/package.json index 48fc769d26..543fbcdf59 100644 --- a/packages/materialdesign-components/package.json +++ b/packages/materialdesign-components/package.json @@ -41,6 +41,7 @@ "gitHead": "115189f72a850bfb52b65ec61d932531bf327072", "dependencies": { "@material/checkbox": "^4.0.0", + "@material/data-table": "^5.0.0", "@material/form-field": "^4.0.0", "@material/radio": "^4.0.0", "@material/textfield": "^4.0.0" diff --git a/packages/materialdesign-components/src/Datatable/Datatable.svelte b/packages/materialdesign-components/src/Datatable/Datatable.svelte new file mode 100644 index 0000000000..1e15eb25bb --- /dev/null +++ b/packages/materialdesign-components/src/Datatable/Datatable.svelte @@ -0,0 +1,44 @@ + + +
+ + + + Id + First Name + Second Name + Gender + Address + + + + + 123456 + Conor + McKeown + Male + 1 Cool Street + + +
+
diff --git a/packages/materialdesign-components/src/Datatable/DatatableCell.svelte b/packages/materialdesign-components/src/Datatable/DatatableCell.svelte new file mode 100644 index 0000000000..beb078d7cb --- /dev/null +++ b/packages/materialdesign-components/src/Datatable/DatatableCell.svelte @@ -0,0 +1,23 @@ + + +{#if isHeader} + + + +{:else} + + + +{/if} diff --git a/packages/materialdesign-components/src/Datatable/DatatableRow.svelte b/packages/materialdesign-components/src/Datatable/DatatableRow.svelte new file mode 100644 index 0000000000..5cb03366f3 --- /dev/null +++ b/packages/materialdesign-components/src/Datatable/DatatableRow.svelte @@ -0,0 +1,18 @@ + + + (selected = !selected)}> + + diff --git a/packages/materialdesign-components/src/Datatable/_style.scss b/packages/materialdesign-components/src/Datatable/_style.scss new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/materialdesign-components/src/Datatable/index.js b/packages/materialdesign-components/src/Datatable/index.js new file mode 100644 index 0000000000..e69de29bb2