@globalbrain/sefirot
Advanced tools
Comparing version 0.43.0 to 0.44.0
@@ -0,1 +1,8 @@ | ||
# [0.44.0](https://github.com/globalbrain/sefirot/compare/v0.43.0...v0.44.0) (2021-03-15) | ||
### Features | ||
* **alert:** add composable ([#43](https://github.com/globalbrain/sefirot/issues/43)) ([4c17e94](https://github.com/globalbrain/sefirot/commit/4c17e940d6045a2ee9e4ba02ad85ad68b1b55c0b)) | ||
* **card:** remove module option from card ([f83de4e](https://github.com/globalbrain/sefirot/commit/f83de4e23e0f1c04824866f4b479ee4804c46a0b)) | ||
# [0.43.0](https://github.com/globalbrain/sefirot/compare/v0.42.0...v0.43.0) (2021-03-01) | ||
@@ -2,0 +9,0 @@ |
@@ -13,3 +13,2 @@ import { Values } from '../types/Utils' | ||
header?: Header | ||
modules?: Module[] | ||
footer?: Footer | ||
@@ -38,7 +37,2 @@ round?: number | ||
export interface Module { | ||
component: any | ||
data?: Record<string, any> | ||
} | ||
export interface Footer { | ||
@@ -52,8 +46,4 @@ actions: Action[] | ||
export function useModule(module: Module): Module { | ||
return module | ||
} | ||
export function useFooter(footer: Footer): Footer { | ||
return footer | ||
} |
import { ActionTree, ActionContext } from 'vuex' | ||
import { State as RootState } from '../Sefirot' | ||
export interface PayloadOpen { | ||
type?: 'info' | 'success' | 'warning' | 'danger' | 'error' | ||
title: string | ||
text: string | ||
actions: Action[] | ||
} | ||
export interface Action { | ||
type?: 'primary' | 'mute' | ||
mode?: 'neutral' | 'info' | 'success' | 'warning' | 'danger' | ||
label: string | ||
callback: Function | ||
} | ||
export const actions: ActionTree<any, RootState> = { | ||
@@ -19,0 +5,0 @@ open(context: ActionContext<any, RootState>, { type = 'info', title, text, actions }): void { |
{ | ||
"name": "@globalbrain/sefirot", | ||
"version": "0.43.0", | ||
"version": "0.44.0", | ||
"description": "Vue Components for Global Brain Design System.", | ||
@@ -13,11 +13,10 @@ "files": [ | ||
"generate": "nuxt generate", | ||
"lint": "eslint --fix --ignore-path .gitignore './{lib,docs,test}/**/*.{js,ts,vue}'", | ||
"lint:fail": "eslint --ignore-path .gitignore './{lib,docs,test}/**/*.{js,ts,vue}'", | ||
"jest": "jest --config test/jest.config.js", | ||
"lint": "eslint --fix --ignore-path .gitignore './{lib,docs,test}/**/*.{ts,vue}'", | ||
"lint:fail": "eslint --ignore-path .gitignore './{lib,docs,test}/**/*.{ts,vue}'", | ||
"test": "yarn lint && yarn coverage", | ||
"coverage": "yarn jest --collect-coverage", | ||
"coverage": "jest --collect-coverage", | ||
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s", | ||
"release": "node scripts/release.js", | ||
"docs:deploy": "yarn generate && push-dir --dir=dist --branch=gh-pages --cleanup", | ||
"clean": "rm -rf {.nuxt,node_modules,yarn.lock,yarn-error.log}" | ||
"clean": "rm -rf {.nuxt,node_modules,coverage,yarn-error.log}" | ||
}, | ||
@@ -39,5 +38,2 @@ "repository": { | ||
"devDependencies": { | ||
"@babel/core": "^7.13.1", | ||
"@babel/plugin-proposal-object-rest-spread": "^7.13.0", | ||
"@babel/preset-env": "^7.13.5", | ||
"@juggle/resize-observer": "^3.3.0", | ||
@@ -60,4 +56,2 @@ "@nuxt/types": "^2.15.2", | ||
"babel-core": "^7.0.0-bridge.0", | ||
"babel-eslint": "^10.1.0", | ||
"babel-jest": "^26.6.3", | ||
"body-scroll-lock": "^3.1.5", | ||
@@ -74,3 +68,2 @@ "codecov": "^3.8.1", | ||
"lodash-es": "^4.17.21", | ||
"mutation-observer": "^1.0.3", | ||
"normalize.css": "^8.0.1", | ||
@@ -92,5 +85,4 @@ "nuxt": "^2.15.2", | ||
"vue-server-renderer": "^2.6.12", | ||
"vue-template-compiler": "^2.6.12", | ||
"vuelidate": "^0.7.6" | ||
"vue-template-compiler": "^2.6.12" | ||
} | ||
} |
@@ -23,3 +23,3 @@ <p align="center"> | ||
That's being said, feel free to leverage any component within this project. You may customize them however you want, and if maybe, some component might be valuable to you. Any suggestion, request, or questions are welcome. | ||
That being said, feel free to leverage any component within this project. You may customize them however you want, and maybe, some component might be valuable to you. Any suggestions, requests, and questions are welcome. | ||
@@ -44,3 +44,3 @@ ## Documentation | ||
```bash | ||
$ npm run serve | ||
$ yarn serve | ||
``` | ||
@@ -51,3 +51,3 @@ | ||
```bash | ||
$ npm run lint | ||
$ yarn lint | ||
``` | ||
@@ -58,12 +58,12 @@ | ||
```bash | ||
$ npm run jest | ||
$ yarn test | ||
``` | ||
Run the test. | ||
Run the tests. | ||
```bash | ||
$ npm run coverage | ||
$ yarn coverage | ||
``` | ||
Generate test coverage in `coverage` directory. | ||
Output test coverage in `coverage` directory. | ||
@@ -70,0 +70,0 @@ ## License |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
45
256717
188
1740