@linzjs/windows 10.0.0 → 10.1.0

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.
@@ -1,15 +1,18 @@
1
- import { PropsWithChildren } from 'react';
1
+ import { CSSProperties, PropsWithChildren } from 'react';
2
2
 
3
3
  import { PanelContext } from './PanelContext';
4
4
  import { PanelInstanceContext } from './PanelInstanceContext';
5
5
  import { v4 } from '../common/uuid';
6
+ import clsx from 'clsx';
6
7
 
7
8
  export interface PanelInlineProps {
8
9
  title: string;
9
- width: number;
10
+ className?: string;
11
+ width?: CSSProperties['width'];
12
+ height?: CSSProperties['height'];
10
13
  }
11
14
 
12
- export const PanelInline = ({ title, width, children }: PropsWithChildren<PanelInlineProps>) => {
15
+ export const PanelInline = ({ title, className, width, height, children }: PropsWithChildren<PanelInlineProps>) => {
13
16
  return (
14
17
  <PanelContext.Provider value={{ resizeable: false, resizePanel: () => {}, initialResizePanel: () => {} }}>
15
18
  <PanelInstanceContext.Provider
@@ -31,7 +34,7 @@ export const PanelInline = ({ title, width, children }: PropsWithChildren<PanelI
31
34
  bounds: undefined,
32
35
  }}
33
36
  >
34
- <div className={'WindowPanel'} title={title} style={{ width }}>
37
+ <div className={clsx('WindowPanel', className)} title={title} style={{ width, height }}>
35
38
  {children}
36
39
  </div>
37
40
  </PanelInstanceContext.Provider>
package/package.json CHANGED
@@ -13,7 +13,7 @@
13
13
  "popout"
14
14
  ],
15
15
  "main": "./dist/index.ts",
16
- "version": "10.0.0",
16
+ "version": "10.1.0",
17
17
  "peerDependencies": {
18
18
  "@linzjs/lui": ">=23",
19
19
  "react": ">=18",