@scalar/use-toasts 0.6.1 → 0.6.5
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 +24 -0
- package/dist/index.js +1 -1
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# @scalar/use-toasts
|
|
2
2
|
|
|
3
|
+
## 0.6.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 2e7b074: feat: clean up toast styles and colors
|
|
8
|
+
|
|
9
|
+
## 0.6.4
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 45dc04b: fix: can’t release packages
|
|
14
|
+
|
|
15
|
+
## 0.6.3
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- 05e2e27: chore: add provenance statement
|
|
20
|
+
|
|
21
|
+
## 0.6.2
|
|
22
|
+
|
|
23
|
+
### Patch Changes
|
|
24
|
+
|
|
25
|
+
- b234d1d: feat: added two events to standalone references build with tests
|
|
26
|
+
|
|
3
27
|
## 0.6.1
|
|
4
28
|
|
|
5
29
|
### Patch Changes
|
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("/**\n* We need to be explicit to avoid !important. :)\n*\n* Original: https://github.com/xiaoluoboding/vue-sonner/blob/311ecc8d9a51b619f968e20f4b44992ad8412850/packages/styles.css#L91-L103\n*/\n.toaster[data-sonner-toast][data-styled='true'] {\n background: var(--scalar-background-1);\n color: var(--scalar-color-1);\n padding: 18px;\n border-
|
|
6
|
+
elementStyle.appendChild(document.createTextNode("/**\n* We need to be explicit to avoid !important. :)\n*\n* Original: https://github.com/xiaoluoboding/vue-sonner/blob/311ecc8d9a51b619f968e20f4b44992ad8412850/packages/styles.css#L91-L103\n*/\n.toaster[data-sonner-toast][data-styled='true'] {\n background: var(--scalar-background-1);\n color: var(--scalar-color-1);\n padding: 18px;\n border: none;\n border-radius: var(--scalar-radius-lg);\n font-size: var(--scalar-font-size-3);\n font-weight: var(--scalar-font-medium);\n box-shadow: var(--scalar-shadow-2);\n}\n.toaster[data-sonner-toast] [data-icon] {\n align-self: start;\n}\n.toaster[data-sonner-toast][data-styled='true'][data-expanded='true'] {\n height: auto;\n}\n.toaster[data-sonner-toast][data-type='error'] {\n background: var(--scalar-background-1);\n}\n.toaster[data-sonner-toast][data-type='error'] [data-icon] {\n color: color-mix(in srgb, var(--scalar-color-red) 75%, var(--scalar-color-1));\n}\n.toaster[data-sonner-toast][data-type='warning'] {\n background: var(--scalar-background-1);\n}\n.toaster[data-sonner-toast][data-type='warning'] [data-icon] {\n color: color-mix(\n in srgb,\n var(--scalar-color-orange) 90%,\n var(--scalar-color-1)\n );\n}"));
|
|
7
7
|
document.head.appendChild(elementStyle);
|
|
8
8
|
}
|
|
9
9
|
} catch (e) {
|
package/package.json
CHANGED
|
@@ -5,6 +5,11 @@
|
|
|
5
5
|
"author": "Scalar (https://github.com/scalar)",
|
|
6
6
|
"homepage": "https://github.com/scalar/scalar",
|
|
7
7
|
"bugs": "https://github.com/scalar/scalar/issues/new/choose",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "https://github.com/scalar/scalar.git",
|
|
11
|
+
"directory": "packages/use-toasts"
|
|
12
|
+
},
|
|
8
13
|
"keywords": [
|
|
9
14
|
"composable",
|
|
10
15
|
"notifcation",
|
|
@@ -12,7 +17,7 @@
|
|
|
12
17
|
"vue",
|
|
13
18
|
"vue3"
|
|
14
19
|
],
|
|
15
|
-
"version": "0.6.
|
|
20
|
+
"version": "0.6.5",
|
|
16
21
|
"engines": {
|
|
17
22
|
"node": ">=18"
|
|
18
23
|
},
|
|
@@ -22,20 +27,15 @@
|
|
|
22
27
|
"dist",
|
|
23
28
|
"CHANGELOG.md"
|
|
24
29
|
],
|
|
25
|
-
"repository": {
|
|
26
|
-
"type": "git",
|
|
27
|
-
"url": "https://github.com/scalar/scalar.git",
|
|
28
|
-
"directory": "packages/use-toasts"
|
|
29
|
-
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@vitejs/plugin-vue": "^5.0.4",
|
|
32
|
-
"@vitest/coverage-v8": "^1.
|
|
32
|
+
"@vitest/coverage-v8": "^1.5.0",
|
|
33
33
|
"nanoid": "^5.0.1",
|
|
34
34
|
"tsc-alias": "^1.8.8",
|
|
35
|
-
"vite": "^5.
|
|
35
|
+
"vite": "^5.2.10",
|
|
36
36
|
"vite-plugin-css-injected-by-js": "^3.4.0",
|
|
37
|
-
"vitest": "^1.
|
|
38
|
-
"vue": "^3.
|
|
37
|
+
"vitest": "^1.5.0",
|
|
38
|
+
"vue": "^3.4.21",
|
|
39
39
|
"vue-tsc": "^1.8.19"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|