@meta-1/design 0.0.211 → 0.0.212

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meta-1/design",
3
- "version": "0.0.211",
3
+ "version": "0.0.212",
4
4
  "keywords": [
5
5
  "easykit",
6
6
  "design",
@@ -22,6 +22,7 @@ export type SheetProps = {
22
22
  children?: React.ReactNode;
23
23
  side?: "top" | "right" | "bottom" | "left";
24
24
  className?: string;
25
+ contentClassName?: string;
25
26
  closable?: boolean;
26
27
  asChild?: boolean;
27
28
  footer?: React.ReactNode;
@@ -38,6 +39,7 @@ export const Sheet: FC<SheetProps> = (props) => {
38
39
  children,
39
40
  side,
40
41
  className,
42
+ contentClassName,
41
43
  closable,
42
44
  asChild,
43
45
  footer,
@@ -66,7 +68,7 @@ export const Sheet: FC<SheetProps> = (props) => {
66
68
  {description || "Sheet content"}
67
69
  </SheetDescription>
68
70
  </SheetHeader>
69
- <ScrollArea className="flex-1">{content}</ScrollArea>
71
+ <ScrollArea className={cn("flex-1", contentClassName)}>{content}</ScrollArea>
70
72
  {footer != null && <SheetFooter className="p-sheet pt-0">{footer}</SheetFooter>}
71
73
  </SheetContent>
72
74
  </UISheet>