@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.
@@ -118,4 +118,5 @@
118
118
  flex: 1;
119
119
  overflow: auto;
120
120
  display: flex;
121
+ flex-direction: column;
121
122
  }
@@ -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 const PanelContent = ({ children }: { children: ReactNode }) => (
147
- <div className={"WindowPanel-content"}>{children}</div>
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
  );
package/package.json CHANGED
@@ -13,7 +13,7 @@
13
13
  "popout"
14
14
  ],
15
15
  "main": "./dist/index.ts",
16
- "version": "3.4.3",
16
+ "version": "3.4.4",
17
17
  "peerDependencies": {
18
18
  "@linzjs/lui": "^21",
19
19
  "lodash-es": ">=4",