diff --git a/packages/materialdesign-components/package.json b/packages/materialdesign-components/package.json index 69e08883ce..15d80d9e50 100644 --- a/packages/materialdesign-components/package.json +++ b/packages/materialdesign-components/package.json @@ -38,5 +38,8 @@ ], "version": "0.0.15", "license": "MIT", - "gitHead": "115189f72a850bfb52b65ec61d932531bf327072" + "gitHead": "115189f72a850bfb52b65ec61d932531bf327072", + "dependencies": { + "@material/textfield": "^4.0.0" + } } diff --git a/packages/materialdesign-components/public/index.html b/packages/materialdesign-components/public/index.html index 0008e34ed7..0571dbd6ee 100644 --- a/packages/materialdesign-components/public/index.html +++ b/packages/materialdesign-components/public/index.html @@ -4,7 +4,8 @@ - Svelte app + Budibase-Material Design + diff --git a/packages/materialdesign-components/rollup.testconfig.js b/packages/materialdesign-components/rollup.testconfig.js index dcbc392563..33c668b66a 100644 --- a/packages/materialdesign-components/rollup.testconfig.js +++ b/packages/materialdesign-components/rollup.testconfig.js @@ -5,15 +5,31 @@ import livereload from "rollup-plugin-livereload" import { terser } from "rollup-plugin-terser" import json from "rollup-plugin-json" import alias from "rollup-plugin-alias" +import postcss from "rollup-plugin-postcss"; import path from "path" const aliases = { resolve: [".js", ".svelte"], entries: [ - { find: "@BBMD", replacement: path.resolve(__dirname, "dist/index.js") }, + // { find: "@BBMD", replacement: path.resolve(__dirname, "dist/index.js") }, + { find: "@BBMD", replacement: path.resolve(__dirname, "src/index.js") }, ], } +const postcssOptions = () => ({ + extensions: [".scss", ".sass"], + extract: false, + minimize: true, + use: [ + [ + "sass", + { + includePaths: ["./node_modules"], + }, + ], + ], +}) + const production = !process.env.ROLLUP_WATCH const lodash_fp_exports = [ @@ -142,6 +158,7 @@ export default { // If we're building for production (npm run build // instead of npm run dev), minify production && terser(), + postcss(postcssOptions()), ], watch: { clearScreen: false, diff --git a/packages/materialdesign-components/src/Button/Button.svelte b/packages/materialdesign-components/src/Button/Button.svelte index 1bd40b2d78..eee93cac6d 100644 --- a/packages/materialdesign-components/src/Button/Button.svelte +++ b/packages/materialdesign-components/src/Button/Button.svelte @@ -13,7 +13,7 @@ export let href = "" export let icon = "" export let trailingIcon = false - export let fullBleed = false + export let fullwidth = false export let text = "" export let disabled = false @@ -40,7 +40,7 @@