@purpurds/drawer 5.19.0 → 5.19.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": "@purpurds/drawer",
3
- "version": "5.19.0",
3
+ "version": "5.19.1",
4
4
  "license": "AGPL-3.0-only",
5
5
  "main": "./dist/drawer.cjs.js",
6
6
  "types": "./dist/drawer.d.ts",
@@ -17,11 +17,11 @@
17
17
  "@radix-ui/react-dialog": "~1.0.5",
18
18
  "@radix-ui/react-scroll-area": "~1.0.5",
19
19
  "classnames": "~2.5.0",
20
- "@purpurds/button": "5.19.0",
21
- "@purpurds/paragraph": "5.19.0",
22
- "@purpurds/icon": "5.19.0",
23
- "@purpurds/heading": "5.19.0",
24
- "@purpurds/tokens": "5.19.0"
20
+ "@purpurds/button": "5.19.1",
21
+ "@purpurds/paragraph": "5.19.1",
22
+ "@purpurds/heading": "5.19.1",
23
+ "@purpurds/tokens": "5.19.1",
24
+ "@purpurds/icon": "5.19.1"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@rushstack/eslint-patch": "~1.10.0",
@@ -33,6 +33,7 @@ export type DrawerContentProps = {
33
33
  footerContent?: ReactNode;
34
34
  stickyFooter?: boolean;
35
35
  title: string;
36
+ zIndex?: number;
36
37
  } & (WithoutBackButton | WithBackButton);
37
38
 
38
39
  const rootClassName = "purpur-drawer-content";
@@ -53,6 +54,7 @@ export const DrawerContent = forwardRef(
53
54
  onBackButtonClick,
54
55
  stickyFooter = false,
55
56
  title,
57
+ zIndex,
56
58
  ...props
57
59
  }: DrawerContentProps,
58
60
  ref: ForwardedRef<HTMLDivElement>
@@ -74,6 +76,7 @@ export const DrawerContent = forwardRef(
74
76
  <RadixDialog.Portal>
75
77
  <RadixDialog.Overlay
76
78
  className={cx("purpur-drawer-overlay")}
79
+ style={{ zIndex: typeof zIndex === "number" ? zIndex : "auto" }}
77
80
  data-testid={`${dataTestId}-overlay`}
78
81
  >
79
82
  <RadixDialog.Content
@@ -81,6 +84,7 @@ export const DrawerContent = forwardRef(
81
84
  className={classes}
82
85
  data-testid={dataTestId}
83
86
  ref={ref}
87
+ style={{ zIndex: typeof zIndex === "number" ? zIndex + 1 : "auto" }}
84
88
  {...props}
85
89
  >
86
90
  <DrawerFrame
@@ -214,6 +214,7 @@ export const ShowcaseForDrawerContent: DrawerContentStory = {
214
214
  },
215
215
  title: "Title",
216
216
  stickyFooter: true,
217
+ zIndex: 20,
217
218
  },
218
219
  render: (args) => {
219
220
  const [props, updateArgs]: [