@algorithm-shift/design-system 1.2.63 → 1.2.65
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/client.d.mts +1 -1
- package/dist/client.d.ts +1 -1
- package/dist/client.js +14 -5
- package/dist/client.js.map +1 -1
- package/dist/client.mjs +14 -5
- package/dist/client.mjs.map +1 -1
- package/dist/index.d.mts +4 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.js +23 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +22 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -29321,6 +29321,27 @@ function showSonnerToast({
|
|
|
29321
29321
|
toast(title, options);
|
|
29322
29322
|
}
|
|
29323
29323
|
}
|
|
29324
|
+
|
|
29325
|
+
// src/components/ui/sonner.tsx
|
|
29326
|
+
import { useTheme } from "next-themes";
|
|
29327
|
+
import { Toaster as Sonner } from "sonner";
|
|
29328
|
+
import { jsx as jsx62 } from "react/jsx-runtime";
|
|
29329
|
+
var Toaster = ({ ...props }) => {
|
|
29330
|
+
const { theme = "system" } = useTheme();
|
|
29331
|
+
return /* @__PURE__ */ jsx62(
|
|
29332
|
+
Sonner,
|
|
29333
|
+
{
|
|
29334
|
+
theme,
|
|
29335
|
+
className: "toaster group",
|
|
29336
|
+
style: {
|
|
29337
|
+
"--normal-bg": "var(--popover)",
|
|
29338
|
+
"--normal-text": "var(--popover-foreground)",
|
|
29339
|
+
"--normal-border": "var(--border)"
|
|
29340
|
+
},
|
|
29341
|
+
...props
|
|
29342
|
+
}
|
|
29343
|
+
);
|
|
29344
|
+
};
|
|
29324
29345
|
export {
|
|
29325
29346
|
Accordion_default as Accordion,
|
|
29326
29347
|
AccordionGroup_default as AccordionGroup,
|
|
@@ -29363,6 +29384,7 @@ export {
|
|
|
29363
29384
|
TextInput_default as Text,
|
|
29364
29385
|
TextInputGroup_default as TextInputGroup,
|
|
29365
29386
|
Textarea_default as Textarea,
|
|
29387
|
+
Toaster,
|
|
29366
29388
|
Typography_default as Typography,
|
|
29367
29389
|
UrlInput_default as URL,
|
|
29368
29390
|
cn,
|