@mekari/pixel3-toast 0.0.13-dev.0 → 0.0.13-dev.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.
- package/dist/chunk-IDFCRJI7.mjs +0 -0
- package/dist/{chunk-SVASSMS6.mjs → chunk-XZMWNATH.mjs} +10 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +10 -1
- package/dist/index.mjs +2 -1
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/modules/toast.types.mjs +1 -0
- package/dist/toast.js +10 -1
- package/dist/toast.mjs +1 -1
- package/package.json +6 -5
|
File without changes
|
|
@@ -42,12 +42,20 @@ var MpToastManager = defineComponent({
|
|
|
42
42
|
name: "MpToastManager",
|
|
43
43
|
setup() {
|
|
44
44
|
return () => _createVNode(Toaster, _mergeProps(options.value, {
|
|
45
|
-
"expand": true
|
|
45
|
+
"expand": true,
|
|
46
|
+
"toastOptions": {
|
|
47
|
+
style: {
|
|
48
|
+
"--z-index": "1700"
|
|
49
|
+
}
|
|
50
|
+
}
|
|
46
51
|
}), null);
|
|
47
52
|
}
|
|
48
53
|
});
|
|
49
54
|
var toastManagerNode = /* @__PURE__ */ __name(() => {
|
|
50
55
|
const rootNode = document.querySelectorAll("[data-sonner-toaster]");
|
|
56
|
+
if (rootNode[0]) {
|
|
57
|
+
rootNode[0].style.display = "flex", rootNode[0].style.justifyContent = "center";
|
|
58
|
+
}
|
|
51
59
|
if (rootNode.length === 0) {
|
|
52
60
|
console.warn("[Pixel]: MpToastManager not found in the tree.");
|
|
53
61
|
return false;
|
|
@@ -60,6 +68,7 @@ var toastManagerNode = /* @__PURE__ */ __name(() => {
|
|
|
60
68
|
}, "toastManagerNode");
|
|
61
69
|
var toast = {
|
|
62
70
|
notify: (option) => {
|
|
71
|
+
console.log();
|
|
63
72
|
const {
|
|
64
73
|
id,
|
|
65
74
|
title = "",
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { MpToastManager, toast } from './toast.mjs';
|
|
2
|
-
export { ToastProps } from './modules/toast.types.mjs';
|
|
2
|
+
export { ToastApiMachine, ToastClasses, ToastDefinedContext, ToastPosition, ToastProps, ToastState, ToastVariant } from './modules/toast.types.mjs';
|
|
3
3
|
import 'vue';
|
|
4
4
|
import 'vue/jsx-runtime';
|
|
5
5
|
import '@mekari/pixel3-utils';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { MpToastManager, toast } from './toast.js';
|
|
2
|
-
export { ToastProps } from './modules/toast.types.js';
|
|
2
|
+
export { ToastApiMachine, ToastClasses, ToastDefinedContext, ToastPosition, ToastProps, ToastState, ToastVariant } from './modules/toast.types.js';
|
|
3
3
|
import 'vue';
|
|
4
4
|
import 'vue/jsx-runtime';
|
|
5
5
|
import '@mekari/pixel3-utils';
|
package/dist/index.js
CHANGED
|
@@ -132,12 +132,20 @@ var MpToastManager = (0, import_vue3.defineComponent)({
|
|
|
132
132
|
name: "MpToastManager",
|
|
133
133
|
setup() {
|
|
134
134
|
return () => (0, import_vue2.createVNode)(import_vue_sonner.Toaster, (0, import_vue2.mergeProps)(options.value, {
|
|
135
|
-
"expand": true
|
|
135
|
+
"expand": true,
|
|
136
|
+
"toastOptions": {
|
|
137
|
+
style: {
|
|
138
|
+
"--z-index": "1700"
|
|
139
|
+
}
|
|
140
|
+
}
|
|
136
141
|
}), null);
|
|
137
142
|
}
|
|
138
143
|
});
|
|
139
144
|
var toastManagerNode = /* @__PURE__ */ __name(() => {
|
|
140
145
|
const rootNode = document.querySelectorAll("[data-sonner-toaster]");
|
|
146
|
+
if (rootNode[0]) {
|
|
147
|
+
rootNode[0].style.display = "flex", rootNode[0].style.justifyContent = "center";
|
|
148
|
+
}
|
|
141
149
|
if (rootNode.length === 0) {
|
|
142
150
|
console.warn("[Pixel]: MpToastManager not found in the tree.");
|
|
143
151
|
return false;
|
|
@@ -150,6 +158,7 @@ var toastManagerNode = /* @__PURE__ */ __name(() => {
|
|
|
150
158
|
}, "toastManagerNode");
|
|
151
159
|
var toast = {
|
|
152
160
|
notify: (option) => {
|
|
161
|
+
console.log();
|
|
153
162
|
const {
|
|
154
163
|
id,
|
|
155
164
|
title = "",
|
package/dist/index.mjs
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MpToastManager,
|
|
3
3
|
toast
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-XZMWNATH.mjs";
|
|
5
5
|
import "./chunk-LXHEYU5E.mjs";
|
|
6
6
|
import "./chunk-3ZI7VPMZ.mjs";
|
|
7
7
|
import "./chunk-DUGBXMFI.mjs";
|
|
8
8
|
import "./chunk-QZ7VFGWC.mjs";
|
|
9
|
+
import "./chunk-IDFCRJI7.mjs";
|
|
9
10
|
export {
|
|
10
11
|
MpToastManager,
|
|
11
12
|
toast
|
package/dist/metafile-cjs.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"inputs":{"src/modules/toast.props.ts":{"bytes":755,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"./toast.types","kind":"import-statement","external":true}],"format":"esm"},"src/modules/toast.connects.ts":{"bytes":841,"imports":[{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true},{"path":"./toast.types","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/modules/toast.hooks.ts":{"bytes":598,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"import-statement","external":true},{"path":"src/modules/toast.connects.ts","kind":"import-statement","original":"./toast.connects"},{"path":"./toast.types","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/toast.tsx":{"bytes":
|
|
1
|
+
{"inputs":{"src/modules/toast.props.ts":{"bytes":755,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"./toast.types","kind":"import-statement","external":true}],"format":"esm"},"src/modules/toast.connects.ts":{"bytes":841,"imports":[{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true},{"path":"./toast.types","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/modules/toast.hooks.ts":{"bytes":598,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"import-statement","external":true},{"path":"src/modules/toast.connects.ts","kind":"import-statement","original":"./toast.connects"},{"path":"./toast.types","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/toast.tsx":{"bytes":3447,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"vue-sonner","kind":"import-statement","external":true},{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true},{"path":"src/modules/toast.props.ts","kind":"import-statement","original":"./modules/toast.props"},{"path":"src/modules/toast.hooks.ts","kind":"import-statement","original":"./modules/toast.hooks"},{"path":"./modules/toast.types","kind":"import-statement","external":true},{"path":"@mekari/pixel3-icon","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/modules/toast.types.ts":{"bytes":908,"imports":[{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true}],"format":"esm"},"src/index.ts":{"bytes":222,"imports":[{"path":"src/toast.tsx","kind":"import-statement","original":"./toast"},{"path":"src/modules/toast.types.ts","kind":"import-statement","original":"./modules/toast.types"}],"format":"esm"}},"outputs":{"dist/index.js":{"imports":[{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"vue-sonner","kind":"require-call","external":true},{"path":"@mekari/pixel3-utils","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"require-call","external":true},{"path":"@mekari/pixel3-utils","kind":"require-call","external":true},{"path":"@mekari/pixel3-icon","kind":"require-call","external":true}],"exports":[],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":155},"src/toast.tsx":{"bytesInOutput":3107},"src/modules/toast.props.ts":{"bytesInOutput":310},"src/modules/toast.hooks.ts":{"bytesInOutput":440},"src/modules/toast.connects.ts":{"bytesInOutput":678}},"bytes":5876},"dist/toast.js":{"imports":[{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"vue-sonner","kind":"require-call","external":true},{"path":"@mekari/pixel3-utils","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"require-call","external":true},{"path":"@mekari/pixel3-utils","kind":"require-call","external":true},{"path":"@mekari/pixel3-icon","kind":"require-call","external":true}],"exports":[],"entryPoint":"src/toast.tsx","inputs":{"src/toast.tsx":{"bytesInOutput":3268},"src/modules/toast.props.ts":{"bytesInOutput":310},"src/modules/toast.hooks.ts":{"bytesInOutput":440},"src/modules/toast.connects.ts":{"bytesInOutput":678}},"bytes":5865},"dist/modules/toast.connects.js":{"imports":[{"path":"@mekari/pixel3-utils","kind":"require-call","external":true}],"exports":[],"entryPoint":"src/modules/toast.connects.ts","inputs":{"src/modules/toast.connects.ts":{"bytesInOutput":840}},"bytes":1869},"dist/modules/toast.hooks.js":{"imports":[{"path":"vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"require-call","external":true},{"path":"@mekari/pixel3-utils","kind":"require-call","external":true}],"exports":[],"entryPoint":"src/modules/toast.hooks.ts","inputs":{"src/modules/toast.hooks.ts":{"bytesInOutput":585},"src/modules/toast.connects.ts":{"bytesInOutput":678}},"bytes":2350},"dist/modules/toast.props.js":{"imports":[],"exports":[],"entryPoint":"src/modules/toast.props.ts","inputs":{"src/modules/toast.props.ts":{"bytesInOutput":459}},"bytes":1393},"dist/modules/toast.types.js":{"imports":[],"exports":[],"entryPoint":"src/modules/toast.types.ts","inputs":{"src/modules/toast.types.ts":{"bytesInOutput":82}},"bytes":784}}}
|
package/dist/metafile-esm.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"inputs":{"src/modules/toast.props.ts":{"bytes":755,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"./toast.types","kind":"import-statement","external":true}],"format":"esm"},"src/modules/toast.connects.ts":{"bytes":841,"imports":[{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true},{"path":"./toast.types","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/modules/toast.hooks.ts":{"bytes":598,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"import-statement","external":true},{"path":"src/modules/toast.connects.ts","kind":"import-statement","original":"./toast.connects"},{"path":"./toast.types","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/toast.tsx":{"bytes":
|
|
1
|
+
{"inputs":{"src/modules/toast.props.ts":{"bytes":755,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"./toast.types","kind":"import-statement","external":true}],"format":"esm"},"src/modules/toast.connects.ts":{"bytes":841,"imports":[{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true},{"path":"./toast.types","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/modules/toast.hooks.ts":{"bytes":598,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"import-statement","external":true},{"path":"src/modules/toast.connects.ts","kind":"import-statement","original":"./toast.connects"},{"path":"./toast.types","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/toast.tsx":{"bytes":3447,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"vue-sonner","kind":"import-statement","external":true},{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true},{"path":"src/modules/toast.props.ts","kind":"import-statement","original":"./modules/toast.props"},{"path":"src/modules/toast.hooks.ts","kind":"import-statement","original":"./modules/toast.hooks"},{"path":"./modules/toast.types","kind":"import-statement","external":true},{"path":"@mekari/pixel3-icon","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/modules/toast.types.ts":{"bytes":908,"imports":[{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true}],"format":"esm"},"src/index.ts":{"bytes":222,"imports":[{"path":"src/toast.tsx","kind":"import-statement","original":"./toast"},{"path":"src/modules/toast.types.ts","kind":"import-statement","original":"./modules/toast.types"}],"format":"esm"}},"outputs":{"dist/index.mjs":{"imports":[{"path":"dist/chunk-XZMWNATH.mjs","kind":"import-statement"},{"path":"dist/chunk-LXHEYU5E.mjs","kind":"import-statement"},{"path":"dist/chunk-3ZI7VPMZ.mjs","kind":"import-statement"},{"path":"dist/chunk-DUGBXMFI.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"},{"path":"dist/chunk-IDFCRJI7.mjs","kind":"import-statement"}],"exports":["MpToastManager","toast"],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":0}},"bytes":259},"dist/toast.mjs":{"imports":[{"path":"dist/chunk-XZMWNATH.mjs","kind":"import-statement"},{"path":"dist/chunk-LXHEYU5E.mjs","kind":"import-statement"},{"path":"dist/chunk-3ZI7VPMZ.mjs","kind":"import-statement"},{"path":"dist/chunk-DUGBXMFI.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["MpToastManager","toast"],"entryPoint":"src/toast.tsx","inputs":{},"bytes":228},"dist/chunk-XZMWNATH.mjs":{"imports":[{"path":"dist/chunk-LXHEYU5E.mjs","kind":"import-statement"},{"path":"dist/chunk-DUGBXMFI.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"},{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"vue-sonner","kind":"import-statement","external":true},{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true},{"path":"@mekari/pixel3-icon","kind":"import-statement","external":true}],"exports":["MpToastManager","toast"],"inputs":{"src/toast.tsx":{"bytesInOutput":2880}},"bytes":3090},"dist/modules/toast.connects.mjs":{"imports":[{"path":"dist/chunk-3ZI7VPMZ.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["toastConnect"],"entryPoint":"src/modules/toast.connects.ts","inputs":{},"bytes":115},"dist/modules/toast.hooks.mjs":{"imports":[{"path":"dist/chunk-LXHEYU5E.mjs","kind":"import-statement"},{"path":"dist/chunk-3ZI7VPMZ.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["useToast"],"entryPoint":"src/modules/toast.hooks.ts","inputs":{},"bytes":139},"dist/chunk-LXHEYU5E.mjs":{"imports":[{"path":"dist/chunk-3ZI7VPMZ.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"},{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"import-statement","external":true}],"exports":["useToast"],"inputs":{"src/modules/toast.hooks.ts":{"bytesInOutput":379}},"bytes":538},"dist/chunk-3ZI7VPMZ.mjs":{"imports":[{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"},{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true}],"exports":["toastConnect"],"inputs":{"src/modules/toast.connects.ts":{"bytesInOutput":640}},"bytes":751},"dist/modules/toast.props.mjs":{"imports":[{"path":"dist/chunk-DUGBXMFI.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["toastProps"],"entryPoint":"src/modules/toast.props.ts","inputs":{},"bytes":111},"dist/chunk-DUGBXMFI.mjs":{"imports":[],"exports":["toastProps"],"inputs":{"src/modules/toast.props.ts":{"bytesInOutput":310}},"bytes":366},"dist/chunk-QZ7VFGWC.mjs":{"imports":[],"exports":["__name"],"inputs":{},"bytes":151},"dist/modules/toast.types.mjs":{"imports":[{"path":"dist/chunk-IDFCRJI7.mjs","kind":"import-statement"}],"exports":[],"entryPoint":"src/modules/toast.types.ts","inputs":{},"bytes":32},"dist/chunk-IDFCRJI7.mjs":{"imports":[],"exports":[],"inputs":{"src/modules/toast.types.ts":{"bytesInOutput":0}},"bytes":0}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "../chunk-IDFCRJI7.mjs";
|
package/dist/toast.js
CHANGED
|
@@ -130,12 +130,20 @@ var MpToastManager = (0, import_vue3.defineComponent)({
|
|
|
130
130
|
name: "MpToastManager",
|
|
131
131
|
setup() {
|
|
132
132
|
return () => (0, import_vue2.createVNode)(import_vue_sonner.Toaster, (0, import_vue2.mergeProps)(options.value, {
|
|
133
|
-
"expand": true
|
|
133
|
+
"expand": true,
|
|
134
|
+
"toastOptions": {
|
|
135
|
+
style: {
|
|
136
|
+
"--z-index": "1700"
|
|
137
|
+
}
|
|
138
|
+
}
|
|
134
139
|
}), null);
|
|
135
140
|
}
|
|
136
141
|
});
|
|
137
142
|
var toastManagerNode = /* @__PURE__ */ __name(() => {
|
|
138
143
|
const rootNode = document.querySelectorAll("[data-sonner-toaster]");
|
|
144
|
+
if (rootNode[0]) {
|
|
145
|
+
rootNode[0].style.display = "flex", rootNode[0].style.justifyContent = "center";
|
|
146
|
+
}
|
|
139
147
|
if (rootNode.length === 0) {
|
|
140
148
|
console.warn("[Pixel]: MpToastManager not found in the tree.");
|
|
141
149
|
return false;
|
|
@@ -148,6 +156,7 @@ var toastManagerNode = /* @__PURE__ */ __name(() => {
|
|
|
148
156
|
}, "toastManagerNode");
|
|
149
157
|
var toast = {
|
|
150
158
|
notify: (option) => {
|
|
159
|
+
console.log();
|
|
151
160
|
const {
|
|
152
161
|
id,
|
|
153
162
|
title = "",
|
package/dist/toast.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mekari/pixel3-toast",
|
|
3
3
|
"description": "Mekari Pixel 3 | Toast component is used to show dynamic notifications and alerts to user",
|
|
4
|
-
"version": "0.0.13-dev.
|
|
4
|
+
"version": "0.0.13-dev.1",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"files": [
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
],
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"vue-sonner": "^1.0.2",
|
|
12
|
-
"@mekari/pixel3-icon": "0.0.17-dev.
|
|
13
|
-
"@mekari/pixel3-styled-system": "0.1.2-dev.
|
|
14
|
-
"@mekari/pixel3-utils": "0.0.7-dev.
|
|
12
|
+
"@mekari/pixel3-icon": "0.0.17-dev.1",
|
|
13
|
+
"@mekari/pixel3-styled-system": "0.1.2-dev.1",
|
|
14
|
+
"@mekari/pixel3-utils": "0.0.7-dev.1"
|
|
15
15
|
},
|
|
16
16
|
"peerDependencies": {
|
|
17
17
|
"vue": "^3.4.9"
|
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
"build:types": "tsup src --dts-only",
|
|
39
39
|
"types:check": "tsc --noEmit",
|
|
40
40
|
"replace-config": "clean-package",
|
|
41
|
-
"restore-config": "clean-package restore"
|
|
41
|
+
"restore-config": "clean-package restore",
|
|
42
|
+
"types:vue": "vue-tsc --noEmit"
|
|
42
43
|
}
|
|
43
44
|
}
|