@clidey/ux 0.35.0 → 0.36.0
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.d.ts +1 -0
- package/dist/index.js +11 -4
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -414,6 +414,7 @@ export declare function Sheet({ ...props }: React_2.ComponentProps<typeof SheetP
|
|
|
414
414
|
|
|
415
415
|
export declare function SheetContent({ className, children, side, ...props }: React_2.ComponentProps<typeof SheetPrimitive.Content> & {
|
|
416
416
|
side?: "top" | "right" | "bottom" | "left";
|
|
417
|
+
onClose?: () => void;
|
|
417
418
|
}): JSX.Element;
|
|
418
419
|
|
|
419
420
|
export declare function SheetDescription({ className, ...props }: React_2.ComponentProps<typeof SheetPrimitive.Description>): JSX.Element;
|
package/dist/index.js
CHANGED
|
@@ -2128,10 +2128,17 @@ function gm({
|
|
|
2128
2128
|
...n,
|
|
2129
2129
|
children: [
|
|
2130
2130
|
t,
|
|
2131
|
-
/* @__PURE__ */ j(
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2131
|
+
/* @__PURE__ */ j(
|
|
2132
|
+
me.Close,
|
|
2133
|
+
{
|
|
2134
|
+
className: "ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",
|
|
2135
|
+
onClick: () => n.onClose?.(),
|
|
2136
|
+
children: [
|
|
2137
|
+
/* @__PURE__ */ m(Yl, { className: "size-4" }),
|
|
2138
|
+
/* @__PURE__ */ m("span", { className: "sr-only", children: "Close" })
|
|
2139
|
+
]
|
|
2140
|
+
}
|
|
2141
|
+
)
|
|
2135
2142
|
]
|
|
2136
2143
|
}
|
|
2137
2144
|
)
|