├── .nvmrc
├── .husky
└── pre-commit
├── tests
├── utils
│ ├── styleMock.js
│ └── components
│ │ └── Simple.vue
└── unit
│ ├── components
│ ├── __snapshots__
│ │ ├── VtTransition.spec.ts.snap
│ │ ├── VtProgressBar.spec.ts.snap
│ │ ├── VtCloseButton.spec.ts.snap
│ │ ├── VtIcon.spec.ts.snap
│ │ ├── VtToastContainer.spec.ts.snap
│ │ └── VtToast.spec.ts.snap
│ ├── icons
│ │ ├── VtInfoIcon.spec.ts
│ │ ├── VtErrorIcon.spec.ts
│ │ ├── VtSuccessIcon.spec.ts
│ │ ├── VtWarningIcon.spec.ts
│ │ └── __snapshots__
│ │ │ ├── VtSuccessIcon.spec.ts.snap
│ │ │ ├── VtWarningIcon.spec.ts.snap
│ │ │ ├── VtInfoIcon.spec.ts.snap
│ │ │ └── VtErrorIcon.spec.ts.snap
│ ├── VtTransition.spec.ts
│ ├── VtCloseButton.spec.ts
│ ├── VtProgressBar.spec.ts
│ └── VtIcon.spec.ts
│ ├── index.spec.ts
│ └── ts
│ ├── composables
│ ├── useHoverable.spec.ts
│ ├── useFocusable.spec.ts
│ ├── useToast.spec.ts
│ └── useDraggable.spec.ts
│ ├── eventBus.spec.ts
│ ├── plugin.spec.ts
│ ├── interface.spec.ts
│ └── utils.spec.ts
├── demo
├── public
│ └── favicon.ico
├── src
│ ├── assets
│ │ └── logo.png
│ ├── main.ts
│ └── App.vue
└── index.html
├── .eslintignore
├── .prettierrc
├── tsconfig.build.json
├── src
├── types
│ ├── shims-vue.d.ts
│ ├── vue-helper.ts
│ ├── plugin.ts
│ ├── common.ts
│ ├── toastContainer.ts
│ └── toast.ts
├── scss
│ ├── index.scss
│ ├── _icon.scss
│ ├── _progressBar.scss
│ ├── _closeButton.scss
│ ├── _variables.scss
│ ├── _toast.scss
│ ├── _toastContainer.scss
│ └── animations
│ │ ├── _fade.scss
│ │ ├── _bounce.scss
│ │ └── _slideBlurred.scss
├── ts
│ ├── plugin.ts
│ ├── constants.ts
│ ├── composables
│ │ ├── useFocusable.ts
│ │ ├── useHoverable.ts
│ │ ├── useToast.ts
│ │ └── useDraggable.ts
│ ├── propValidators.ts
│ ├── eventBus.ts
│ ├── utils.ts
│ └── interface.ts
├── index.ts
└── components
│ ├── icons
│ ├── VtSuccessIcon.vue
│ ├── VtWarningIcon.vue
│ ├── VtInfoIcon.vue
│ └── VtErrorIcon.vue
│ ├── VtTransition.vue
│ ├── VtCloseButton.vue
│ ├── VtProgressBar.vue
│ ├── VtIcon.vue
│ ├── VtToast.vue
│ └── VtToastContainer.vue
├── .gitignore
├── jest.config.js
├── .github
├── ISSUE_TEMPLATE
│ ├── feature_request.md
│ └── bug_report.md
├── PULL_REQUEST_TEMPLATE.md
└── workflows
│ └── cicd.yml
├── tsconfig.json
├── LICENCE
├── vite.config.ts
├── .eslintrc.js
├── package.json
├── CODE_OF_CONDUCT.md
└── CONTRIBUTING.md
/.nvmrc:
--------------------------------------------------------------------------------
1 | 14
2 |
--------------------------------------------------------------------------------
/.husky/pre-commit:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | . "$(dirname "$0")/_/husky.sh"
3 |
4 | yarn lint-staged
5 |
--------------------------------------------------------------------------------
/tests/utils/styleMock.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | process() {
3 | return ""
4 | },
5 | }
6 |
--------------------------------------------------------------------------------
/demo/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Maronato/vue-toastification/HEAD/demo/public/favicon.ico
--------------------------------------------------------------------------------
/demo/src/assets/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Maronato/vue-toastification/HEAD/demo/src/assets/logo.png
--------------------------------------------------------------------------------
/.eslintignore:
--------------------------------------------------------------------------------
1 | examples/
2 | nuxt/plugin.js
3 | node_modules/
4 | dist/
5 | coverage/
6 | .github/
7 | .vscode/
8 |
--------------------------------------------------------------------------------
/.prettierrc:
--------------------------------------------------------------------------------
1 | {
2 | "semi": false,
3 | "arrowParens": "avoid",
4 | "htmlWhitespaceSensitivity": "css"
5 | }
6 |
--------------------------------------------------------------------------------
/tsconfig.build.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "./tsconfig.json",
3 | "include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"]
4 | }
5 |
--------------------------------------------------------------------------------
/demo/src/main.ts:
--------------------------------------------------------------------------------
1 | import { createApp } from "vue"
2 |
3 | import Toast from "../../src"
4 |
5 | import App from "./App.vue"
6 |
7 | createApp(App).use(Toast).mount("#app")
8 |
--------------------------------------------------------------------------------
/tests/utils/components/Simple.vue:
--------------------------------------------------------------------------------
1 |
2 |
