diff --git a/LICENSE.md b/LICENSE.md new file mode 100644 index 00000000..9ca2dab6 --- /dev/null +++ b/LICENSE.md @@ -0,0 +1,7 @@ +Copyright 2021 Storyblok + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file diff --git a/config/globals.js b/config/globals.js index 586f5d7e..281ccbb6 100644 --- a/config/globals.js +++ b/config/globals.js @@ -1,10 +1,12 @@ const path = require('path') const globalStyles = [ + path.resolve(__dirname, '../src/assets/styles/globals.scss'), + path.resolve(__dirname, '../src/assets/styles/resets.scss'), path.resolve(__dirname, '../src/assets/styles/variables.scss'), - path.resolve(__dirname, '../src/assets/styles/mixins.scss') + path.resolve(__dirname, '../src/assets/styles/mixins.scss'), ] module.exports = { - globalStyles + globalStyles, } diff --git a/package.json b/package.json index 7c002a24..647b0624 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,7 @@ { "name": "storyblok-design-system", "version": "0.0.0-development", + "license": "MIT", "scripts": { "serve": "vue-cli-service serve", "build": "vue-cli-service build --target lib ./src/main.js", diff --git a/src/assets/styles/global.scss b/src/assets/styles/global.scss index ddde1d1f..0dfa674a 100644 --- a/src/assets/styles/global.scss +++ b/src/assets/styles/global.scss @@ -1,4 +1,3 @@ -@import './resets'; @import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700&display=swap'); html { diff --git a/src/components/Menu/index.js b/src/components/Menu/index.js index 19048e97..8bfbea28 100644 --- a/src/components/Menu/index.js +++ b/src/components/Menu/index.js @@ -225,8 +225,10 @@ const SbMenuList = { default: 'bottom-end', }, // eslint-disable-next-line - reference: [String, Element, Object], - usePortal: Boolean, + reference: [String, Object, Element], + usePortal: { + type: Boolean, + }, zIndex: { type: Number, default: 5, diff --git a/src/components/Popover/index.js b/src/components/Popover/index.js index 77492320..de1dc5fb 100644 --- a/src/components/Popover/index.js +++ b/src/components/Popover/index.js @@ -66,7 +66,9 @@ const SbPopover = { }, // component itself properties - isOpen: Boolean, + isOpen: { + type: Boolean, + }, offset: { type: Array, default: () => [0, 8], @@ -78,9 +80,13 @@ const SbPopover = { // eslint-disable-next-line reference: [String, Element], // eslint-disable-next-line - useAnchorId: String, + useAnchorId: { + type: String, + }, // eslint-disable-next-line - usePortalTarget: String, + usePortalTarget: { + type: String, + }, usePortal: { type: Boolean, default: false, diff --git a/src/components/Slideover/Slideover.vue b/src/components/Slideover/Slideover.vue index d374d2c7..30e813a9 100644 --- a/src/components/Slideover/Slideover.vue +++ b/src/components/Slideover/Slideover.vue @@ -33,7 +33,9 @@ export default { SbBlokUi, }, props: { - isOpen: Boolean, + isOpen: { + type: Boolean, + }, orientation: { type: String, default: 'right',