diff --git a/README.md b/README.md index 3cf61576..003b27c4 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,30 @@ yarn install ``` +## Font variables setup +Required!: Add scss font variables to your project + +``` +$s-font-family-default-path: '~@soramitsu/soramitsu-js-ui/lib/assets/fonts/Sora-VariableFont_wght.ttf' !default; +$s-font-family-mono-path: '~@soramitsu/soramitsu-js-ui/lib/assets/fonts/JetBrainsMono-Regular.woff' !default; +$s-font-family-icons-path: '~@soramitsu/soramitsu-js-ui/lib/assets/fonts/soramitsu-icons-1.0.0.ttf' !default; +``` + +## Custom components, directives setup +Import "Components" enum from library, and pass the list of needed components to SoramitsuElements options + +Note: Without customization all library components and directives are registering global + +``` +import Vue from 'vue' +import SoramitsuElements, { Components, Directives } from '@soramitsu/soramitsu-js-ui' + +Vue.use(SoramitsuElements, { + components: [Components.Button, Components.Input], + directives: [Directives.Float] +}) +``` + ### Compiles and hot-reloads storybook with components for development ``` yarn storybook:serve diff --git a/package.json b/package.json index 6ea348a8..166b8858 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@soramitsu/soramitsu-js-ui", - "version": "0.9.11", + "version": "0.9.12", "private": false, "publishConfig": { "registry": "https://nexus.iroha.tech/repository/npm-soramitsu/" @@ -32,6 +32,7 @@ "v-jsoneditor": "^1.4.1", "vue": "^2.6.11", "vue-class-component": "^7.2.3", + "vue-i18n": "^8.11.2", "vue-property-decorator": "^9.1.2", "vuex": "^3.1.3", "vuex-class": "^0.3.2" @@ -83,7 +84,6 @@ "ts-jest": "^26.0.0", "typescript": "~3.8.3", "vue-cli-plugin-storybook": "~1.2.2", - "vue-i18n": "^8.11.2", "vue-router": "^3.3.4", "vue-template-compiler": "^2.6.11" }, diff --git a/src/components/Input/SJsonInput.vue b/src/components/Input/SJsonInput.vue index 41259f0b..5af0417f 100644 --- a/src/components/Input/SJsonInput.vue +++ b/src/components/Input/SJsonInput.vue @@ -30,8 +30,13 @@