@hachej/boring-ui-kit 0.1.108 → 0.1.110
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/index.js +6 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -2184,7 +2184,12 @@ function useToast() {
|
|
|
2184
2184
|
return {
|
|
2185
2185
|
toast(input) {
|
|
2186
2186
|
if (typeof window === "undefined") return;
|
|
2187
|
-
|
|
2187
|
+
if (typeof input === "string") {
|
|
2188
|
+
toast(input);
|
|
2189
|
+
return;
|
|
2190
|
+
}
|
|
2191
|
+
const variant = input.variant === "destructive" ? "error" : input.variant === "default" || input.variant === "warning" ? "info" : input.variant;
|
|
2192
|
+
toast({ ...input, variant });
|
|
2188
2193
|
}
|
|
2189
2194
|
};
|
|
2190
2195
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hachej/boring-ui-kit",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.110",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "Shared shadcn-style UI primitives for Boring packages and app-generated panes.",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@types/react": "^19.2.18",
|
|
58
|
-
"@types/react-dom": "^19.2.
|
|
58
|
+
"@types/react-dom": "^19.2.5",
|
|
59
59
|
"react": "^19.2.8",
|
|
60
60
|
"react-dom": "^19.2.8",
|
|
61
61
|
"tsup": "^8.4.0",
|