@alexgorbatchev/shadcn 0.0.115 → 0.0.116
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.
|
@@ -10,6 +10,6 @@ interface ISonnerLiveProps {
|
|
|
10
10
|
live?: boolean;
|
|
11
11
|
}
|
|
12
12
|
type SonnerProps = Omit<ToasterProps, "containerLive"> & ISonnerLiveProps & IDensityProps & IAnalyticsProps;
|
|
13
|
-
declare function Sonner({ analytics, density, className, toastOptions, icons, theme, dir, expand, live, ...props }: SonnerProps): ReactElement;
|
|
13
|
+
declare function Sonner({ analytics, density, className, toastOptions, icons, theme, dir, expand, live, style, ...props }: SonnerProps): ReactElement;
|
|
14
14
|
export { Sonner, Sonner as SonnerToaster, Sonner as Toaster };
|
|
15
15
|
export { toast } from "sonner";
|
|
@@ -1210,6 +1210,7 @@ function Sonner({
|
|
|
1210
1210
|
dir,
|
|
1211
1211
|
expand = true,
|
|
1212
1212
|
live = true,
|
|
1213
|
+
style,
|
|
1213
1214
|
...props
|
|
1214
1215
|
}) {
|
|
1215
1216
|
const activate = useAnalyticsCallback("Sonner", analytics, { name: "ui.activate" }, undefined);
|
|
@@ -1229,7 +1230,8 @@ function Sonner({
|
|
|
1229
1230
|
dir: dir ?? inheritedDirection,
|
|
1230
1231
|
expand,
|
|
1231
1232
|
containerLive: live,
|
|
1232
|
-
|
|
1233
|
+
style: { fontFamily: "inherit", ...style },
|
|
1234
|
+
className: cn2("[@media(max-width:600px)]:[&[data-sonner-toaster]]:w-auto!", "[@media(max-width:600px)]:[&[data-sonner-toaster]]:left-[var(--mobile-offset-left)]!", "[@media(max-width:600px)]:[&[data-sonner-toaster]]:right-[var(--mobile-offset-right)]!", "[@media(max-width:600px)]:[&[data-sonner-toaster]_[data-sonner-toast]]:w-full!", className),
|
|
1233
1235
|
icons: {
|
|
1234
1236
|
success: /* @__PURE__ */ jsx("span", {
|
|
1235
1237
|
children: /* @__PURE__ */ jsx(CircleCheckIcon, {
|
package/dist/prototype.js
CHANGED
|
@@ -2051,7 +2051,7 @@ var program = new Command;
|
|
|
2051
2051
|
// package.json
|
|
2052
2052
|
var package_default = {
|
|
2053
2053
|
name: "@alexgorbatchev/shadcn",
|
|
2054
|
-
version: "0.0.
|
|
2054
|
+
version: "0.0.116",
|
|
2055
2055
|
description: "Sharp, monospace React components with compact and comfortable densities.",
|
|
2056
2056
|
license: "MIT",
|
|
2057
2057
|
repository: {
|