@stagewise/ui 0.26.0 → 0.26.1

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": "@stagewise/ui",
3
- "version": "0.26.0",
3
+ "version": "0.26.1",
4
4
  "description": "Customized shadcn/ui components built on Base UI primitives, for use across stagewise projects.",
5
5
  "type": "module",
6
6
  "license": "MIT AND OFL-1.1",
@@ -29,13 +29,16 @@ function AlertDialogPortal({ ...props }: AlertDialogPrimitive.Portal.Props) {
29
29
  );
30
30
  }
31
31
 
32
+ /** Also renders for nested dialogs, so each level dims the one below. */
32
33
  function AlertDialogOverlay({
33
34
  className,
35
+ forceRender = true,
34
36
  ...props
35
37
  }: AlertDialogPrimitive.Backdrop.Props) {
36
38
  return (
37
39
  <AlertDialogPrimitive.Backdrop
38
40
  data-slot="alert-dialog-overlay"
41
+ forceRender={forceRender}
39
42
  className={cn(
40
43
  'fixed inset-0 isolate z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0',
41
44
  className,
@@ -43,13 +43,16 @@ function DialogCloseButton({ className }: { className?: string }) {
43
43
  );
44
44
  }
45
45
 
46
+ /** Also renders for nested dialogs, so each level dims the one below. */
46
47
  function DialogOverlay({
47
48
  className,
49
+ forceRender = true,
48
50
  ...props
49
51
  }: DialogPrimitive.Backdrop.Props) {
50
52
  return (
51
53
  <DialogPrimitive.Backdrop
52
54
  data-slot="dialog-overlay"
55
+ forceRender={forceRender}
53
56
  className={cn(
54
57
  'fixed inset-0 isolate z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0',
55
58
  className,
@@ -21,10 +21,16 @@ function SheetPortal({ ...props }: SheetPrimitive.Portal.Props) {
21
21
  return <SheetPrimitive.Portal data-slot="sheet-portal" {...props} />;
22
22
  }
23
23
 
24
- function SheetOverlay({ className, ...props }: SheetPrimitive.Backdrop.Props) {
24
+ /** Also renders for nested dialogs, so each level dims the one below. */
25
+ function SheetOverlay({
26
+ className,
27
+ forceRender = true,
28
+ ...props
29
+ }: SheetPrimitive.Backdrop.Props) {
25
30
  return (
26
31
  <SheetPrimitive.Backdrop
27
32
  data-slot="sheet-overlay"
33
+ forceRender={forceRender}
28
34
  className={cn(
29
35
  'fixed inset-0 z-50 bg-black/10 transition-opacity duration-150 data-ending-style:opacity-0 data-starting-style:opacity-0 supports-backdrop-filter:backdrop-blur-xs',
30
36
  className,