@linzjs/windows 3.4.3 → 3.4.4
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/panel/Panel.scss +1 -0
- package/dist/panel/Panel.tsx +7 -3
- package/package.json +1 -1
package/dist/panel/Panel.scss
CHANGED
package/dist/panel/Panel.tsx
CHANGED
|
@@ -7,7 +7,7 @@ import { PanelInstanceContext, PanelSize } from "./PanelInstanceContext";
|
|
|
7
7
|
import { PanelPosition, PanelsContext } from "./PanelsContext";
|
|
8
8
|
import { PopoutWindow } from "./PopoutWindow";
|
|
9
9
|
import clsx from "clsx";
|
|
10
|
-
import React, { ReactElement, ReactNode, useContext, useEffect, useState } from "react";
|
|
10
|
+
import React, { PropsWithChildren, ReactElement, ReactNode, useContext, useEffect, useState } from "react";
|
|
11
11
|
import { createPortal } from "react-dom";
|
|
12
12
|
import { Rnd } from "react-rnd";
|
|
13
13
|
|
|
@@ -143,6 +143,10 @@ export const Panel = ({
|
|
|
143
143
|
);
|
|
144
144
|
};
|
|
145
145
|
|
|
146
|
-
export
|
|
147
|
-
|
|
146
|
+
export interface PanelContentProps {
|
|
147
|
+
className?: string | undefined;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
export const PanelContent = ({ children, className }: PropsWithChildren<PanelContentProps>) => (
|
|
151
|
+
<div className={clsx(`WindowPanel-content`, className)}>{children}</div>
|
|
148
152
|
);
|