@scalar/use-toasts 0.4.1 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FlowProgressRing.vue.d.ts","sourceRoot":"","sources":["../src/FlowProgressRing.vue.ts"],"names":[],"mappings":";;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"FlowProgressRing.vue.d.ts","sourceRoot":"","sources":["../src/FlowProgressRing.vue.ts"],"names":[],"mappings":";;;;;;;;;;;AAsFA,wBAAkD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FlowToast.vue.d.ts","sourceRoot":"","sources":["../src/FlowToast.vue.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAe,KAAK,EAAE,MAAM,aAAa,CAAA;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"FlowToast.vue.d.ts","sourceRoot":"","sources":["../src/FlowToast.vue.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAe,KAAK,EAAE,MAAM,aAAa,CAAA;;;;;;;;;;;;AA0LrD,wBAAkD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FlowToastContainer.vue.d.ts","sourceRoot":"","sources":["../src/FlowToastContainer.vue.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"FlowToastContainer.vue.d.ts","sourceRoot":"","sources":["../src/FlowToastContainer.vue.ts"],"names":[],"mappings":";AA6FA,wBAAkD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FlowToastLayout.vue.d.ts","sourceRoot":"","sources":["../src/FlowToastLayout.vue.ts"],"names":[],"mappings":";;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"FlowToastLayout.vue.d.ts","sourceRoot":"","sources":["../src/FlowToastLayout.vue.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAuKA,wBAA8G;AAI9G,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
try {
|
|
4
4
|
if (typeof document != "undefined") {
|
|
5
5
|
var elementStyle = document.createElement("style");
|
|
6
|
-
elementStyle.appendChild(document.createTextNode(".progress-ring[data-v-6d218ca0] {\n transform: rotate(-90deg);\n transform-origin: 50% 50%;\n animation: linear turn-6d218ca0 reverse forwards;\n}\n@keyframes turn-6d218ca0 {\nfrom {\n stroke-dashoffset: var(--2d61a1b2);\n}\nto {\n stroke-dashoffset: 0;\n}\n}\n\n.toast-layout[data-v-
|
|
6
|
+
elementStyle.appendChild(document.createTextNode(".progress-ring[data-v-6d218ca0] {\n transform: rotate(-90deg);\n transform-origin: 50% 50%;\n animation: linear turn-6d218ca0 reverse forwards;\n}\n@keyframes turn-6d218ca0 {\nfrom {\n stroke-dashoffset: var(--2d61a1b2);\n}\nto {\n stroke-dashoffset: 0;\n}\n}\n\n.toast-layout[data-v-7b28d803] {\n pointer-events: initial;\n\n padding: 18px;\n background: var(--theme-background-1, var(--default-theme-background-1));\n border-radius: var(--theme-radius-lg, var(--default-theme-radius-lg));\n font-size: var(--theme-font-size-3, var(--default-theme-font-size-3));\n display: grid;\n grid-template-columns: auto 1fr auto;\n grid-template-areas:\n 'icon title timeout'\n '. description description';\n align-items: center;\n position: relative;\n\n width: 380px;\n}\n.toast-title[data-v-7b28d803] {\n grid-area: title;\n font-weight: var(--theme-font-medium, var(--default-theme-font-medium));\n display: flex;\n align-items: center;\n}\n.toast-description[data-v-7b28d803] {\n grid-area: description;\n margin-top: 5px;\n line-height: 1.45;\n color: var(--theme-color-2, var(--default-theme-color-2));\n}\n.toast-icon[data-v-7b28d803] {\n grid-area: icon;\n display: flex;\n align-items: center;\n justify-content: center;\n margin-right: 10px;\n color: var(--theme-color-2, var(--default-theme-color-2));\n}\n.toast-icon[data-v-7b28d803] > * {\n width: 14px;\n height: 14px;\n}\n.toast-timeout[data-v-7b28d803] {\n grid-area: timeout;\n margin-left: 10px;\n width: 16px;\n height: 16px;\n display: flex;\n color: var(--theme-color-ghost, var(--default-theme-color-ghost));\n}\n.toast-error .toast-icon[data-v-7b28d803],\n.toast-error .toast-title[data-v-7b28d803] {\n color: var(--theme-error-color, var(--default-theme-error-color));\n}\n\n.toast[data-v-6d9ab1ce] {\n pointer-events: initial;\n filter: brightness(\n var(--theme-lifted-brightness, var(--default-theme-lifted-brightness))\n );\n\n background: var(--theme-background-1, var(--default-theme-background-1));\n border-radius: var(--theme-radius-lg, var(--default-theme-radius-lg));\n box-shadow: var(--theme-shadow-2, var(--default-theme-shadow-2));\n\n width: 380px;\n}\n\n.toast-container[data-v-3e22820b] {\n width: 100vw;\n height: 100vh;\n position: fixed;\n z-index: 10000;\n\n pointer-events: none;\n\n display: flex;\n flex-direction: column;\n align-items: flex-end;\n justify-content: flex-end;\n gap: 12px;\n\n padding: 48px;\n}\n.toasts-move[data-v-3e22820b],\n.toasts-enter-active[data-v-3e22820b],\n.toasts-leave-active[data-v-3e22820b] {\n transition: all 0.5s ease;\n}\n.toasts-enter-from[data-v-3e22820b],\n.toasts-leave-to[data-v-3e22820b] {\n opacity: 0;\n transform: translateX(30px);\n}\n.toast-leave-active[data-v-3e22820b] {\n position: absolute;\n}"));
|
|
7
7
|
document.head.appendChild(elementStyle);
|
|
8
8
|
}
|
|
9
9
|
} catch (e) {
|
|
@@ -160,8 +160,8 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
160
160
|
};
|
|
161
161
|
}
|
|
162
162
|
});
|
|
163
|
-
const
|
|
164
|
-
const FlowToastLayout = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-
|
|
163
|
+
const FlowToastLayout_vue_vue_type_style_index_0_scoped_7b28d803_lang = "";
|
|
164
|
+
const FlowToastLayout = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-7b28d803"]]);
|
|
165
165
|
const _hoisted_1$1 = { class: "toast" };
|
|
166
166
|
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
167
167
|
__name: "FlowToast",
|
|
@@ -218,8 +218,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
218
218
|
};
|
|
219
219
|
}
|
|
220
220
|
});
|
|
221
|
-
const
|
|
222
|
-
const FlowToast = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-
|
|
221
|
+
const FlowToast_vue_vue_type_style_index_0_scoped_6d9ab1ce_lang = "";
|
|
222
|
+
const FlowToast = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-6d9ab1ce"]]);
|
|
223
223
|
const _hoisted_1 = { class: "toast-container" };
|
|
224
224
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
225
225
|
__name: "FlowToastContainer",
|
package/package.json
CHANGED
|
@@ -1,47 +1,46 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scalar/use-toasts",
|
|
3
3
|
"description": "display toasts in Vue",
|
|
4
|
-
"
|
|
5
|
-
"vue",
|
|
6
|
-
"vue3",
|
|
7
|
-
"composable",
|
|
8
|
-
"toast",
|
|
9
|
-
"notifcation"
|
|
10
|
-
],
|
|
11
|
-
"version": "0.4.1",
|
|
4
|
+
"version": "0.5.1",
|
|
12
5
|
"author": "Scalar (https://github.com/scalar)",
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"url": "https://github.com/scalar/scalar.git",
|
|
17
|
-
"directory": "packages/use-toasts"
|
|
6
|
+
"bugs": "https://github.com/scalar/scalar/issues/new",
|
|
7
|
+
"dependencies": {
|
|
8
|
+
"nanoid": "5.0.1"
|
|
18
9
|
},
|
|
19
|
-
"
|
|
20
|
-
"
|
|
10
|
+
"devDependencies": {
|
|
11
|
+
"@vitejs/plugin-vue": "4.3.4",
|
|
12
|
+
"@vitest/coverage-v8": "0.34.4",
|
|
13
|
+
"tsc-alias": "1.8.8",
|
|
14
|
+
"vite": "4.4.9",
|
|
15
|
+
"vite-plugin-css-injected-by-js": "3.3.0",
|
|
16
|
+
"vitest": "0.34.4",
|
|
17
|
+
"vue-tsc": "1.8.13"
|
|
21
18
|
},
|
|
22
|
-
"license": "MIT",
|
|
23
19
|
"engines": {
|
|
24
20
|
"node": ">=18"
|
|
25
21
|
},
|
|
26
|
-
"type": "module",
|
|
27
|
-
"main": "dist/index.js",
|
|
28
22
|
"files": [
|
|
29
23
|
"dist"
|
|
30
24
|
],
|
|
31
|
-
"
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
},
|
|
25
|
+
"homepage": "https://github.com/scalar/scalar",
|
|
26
|
+
"keywords": [
|
|
27
|
+
"composable",
|
|
28
|
+
"notifcation",
|
|
29
|
+
"toast",
|
|
30
|
+
"vue",
|
|
31
|
+
"vue3"
|
|
32
|
+
],
|
|
33
|
+
"license": "MIT",
|
|
34
|
+
"main": "dist/index.js",
|
|
42
35
|
"peerDependencies": {
|
|
43
36
|
"vue": "3.3.4"
|
|
44
37
|
},
|
|
38
|
+
"repository": {
|
|
39
|
+
"type": "git",
|
|
40
|
+
"url": "https://github.com/scalar/scalar.git",
|
|
41
|
+
"directory": "packages/use-toasts"
|
|
42
|
+
},
|
|
43
|
+
"type": "module",
|
|
45
44
|
"scripts": {
|
|
46
45
|
"build": "vite build && pnpm types:build && tsc-alias -p tsconfig.build.json",
|
|
47
46
|
"dev": "vite",
|