diff --git a/packages/materialdesign-components/package.json b/packages/materialdesign-components/package.json index 42bea7428c..9a6fc7c616 100644 --- a/packages/materialdesign-components/package.json +++ b/packages/materialdesign-components/package.json @@ -17,6 +17,7 @@ "@material/button": "^4.0.0", "@material/checkbox": "^4.0.0", "@material/data-table": "4.0.0", + "@material/dialog": "4.0.0", "@material/form-field": "^4.0.0", "@material/icon-button": "4.0.0", "@material/list": "4.0.0", diff --git a/packages/materialdesign-components/src/Button/Button.svelte b/packages/materialdesign-components/src/Button/Button.svelte index 80b3ddd792..a2948613ea 100644 --- a/packages/materialdesign-components/src/Button/Button.svelte +++ b/packages/materialdesign-components/src/Button/Button.svelte @@ -33,15 +33,16 @@ if (!href) modifiers = { variant } - let props = { modifiers, customs, extras } + $: props = { modifiers, customs, extras } - let blockClasses = cb.build({ props }) + $: blockClasses = cb.build({ props }) const labelClass = cb.elem("label") const clicked = () => _bb.call(onClick) $: renderLeadingIcon = !!icon && !trailingIcon $: renderTrailingIcon = !!icon && trailingIcon + $: console.log(blockClasses) {#if href} diff --git a/packages/materialdesign-components/src/Dialog/Dialog.svelte b/packages/materialdesign-components/src/Dialog/Dialog.svelte new file mode 100644 index 0000000000..c316c6a249 --- /dev/null +++ b/packages/materialdesign-components/src/Dialog/Dialog.svelte @@ -0,0 +1,44 @@ + + +
+
+
+
+
(open = false)} /> +
diff --git a/packages/materialdesign-components/src/Dialog/DialogActions.svelte b/packages/materialdesign-components/src/Dialog/DialogActions.svelte new file mode 100644 index 0000000000..1bb23cee44 --- /dev/null +++ b/packages/materialdesign-components/src/Dialog/DialogActions.svelte @@ -0,0 +1,13 @@ + + +