@scalar/use-toasts 0.5.3 → 0.5.4
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.
- package/CHANGELOG.md +6 -0
- package/dist/index.js +7 -7
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
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-629fda8f] {\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 color: var(--theme-color-1, var(--default-theme-color-1));\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-629fda8f] {\n grid-area: title;\n font-weight: var(--theme-font-semibold, var(--default-theme-font-semibold));\n display: flex;\n align-items: center;\n}\n.toast-description[data-v-629fda8f] {\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-629fda8f] {\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-629fda8f] > * {\n width: 14px;\n height: 14px;\n}\n.toast-timeout[data-v-629fda8f] {\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-629fda8f],\n.toast-error .toast-title[data-v-629fda8f] {\n color: var(--theme-error-color, var(--default-theme-color-red));\n}\n\n.toast[data-v-6bb5e575] {\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 font-family: var(--theme-font, var(--default-theme-font));\n width: 380px;\n}\n\n.toast-container[data-v-b333466d] {\n width: 100vw;\n height: 100vh;\n position: fixed;\n z-index: 10000;\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-b333466d],\n.toasts-enter-active[data-v-b333466d],\n.toasts-leave-active[data-v-b333466d] {\n transition: all 0.5s ease;\n}\n.toasts-enter-from[data-v-b333466d],\n.toasts-leave-to[data-v-b333466d] {\n opacity: 0;\n transform: translateX(30px);\n}\n.toast-leave-active[data-v-b333466d] {\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_629fda8f_lang = "";
|
|
164
|
+
const FlowToastLayout = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-629fda8f"]]);
|
|
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_6bb5e575_lang = "";
|
|
222
|
+
const FlowToast = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-6bb5e575"]]);
|
|
223
223
|
const _hoisted_1 = { class: "toast-container" };
|
|
224
224
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
225
225
|
__name: "FlowToastContainer",
|
|
@@ -242,8 +242,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
242
242
|
};
|
|
243
243
|
}
|
|
244
244
|
});
|
|
245
|
-
const
|
|
246
|
-
const FlowToastContainer = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
245
|
+
const FlowToastContainer_vue_vue_type_style_index_0_scoped_b333466d_lang = "";
|
|
246
|
+
const FlowToastContainer = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-b333466d"]]);
|
|
247
247
|
export {
|
|
248
248
|
FlowToastContainer,
|
|
249
249
|
addCustomToast,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scalar/use-toasts",
|
|
3
3
|
"description": "display toasts in Vue",
|
|
4
|
-
"version": "0.5.
|
|
4
|
+
"version": "0.5.4",
|
|
5
5
|
"author": "Scalar (https://github.com/scalar)",
|
|
6
6
|
"bugs": "https://github.com/scalar/scalar/issues/new",
|
|
7
7
|
"dependencies": {
|
|
@@ -50,6 +50,6 @@
|
|
|
50
50
|
"preview": "vite preview",
|
|
51
51
|
"test": "vitest",
|
|
52
52
|
"types:build": "vue-tsc -p tsconfig.build.json",
|
|
53
|
-
"types:check": "vue-tsc --noEmit --skipLibCheck"
|
|
53
|
+
"types:check": "vue-tsc --noEmit --skipLibCheck --composite false"
|
|
54
54
|
}
|
|
55
55
|
}
|