@linzjs/windows 8.5.0 → 8.6.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.
@@ -4,7 +4,6 @@ import clsx from 'clsx';
4
4
  import { ReactElement, useCallback, useMemo, useState } from 'react';
5
5
 
6
6
  import { LuiModalAsync } from './LuiModalAsync';
7
- import { LuiModalAsyncContent } from './LuiModalAsyncContent';
8
7
  import { LuiModalAsyncCallback, PromiseWithResolve } from './LuiModalAsyncContext';
9
8
  import { LuiModalAsyncHeader } from './LuiModalAsyncHeader';
10
9
  import { useShowAsyncModal } from './useShowAsyncModal';
@@ -23,6 +22,7 @@ export const LuiModalUpload = ({
23
22
  resolve,
24
23
  title,
25
24
  width,
25
+ height,
26
26
  content,
27
27
  ...props
28
28
  }: useLuiModalUploadProps & LuiModalAsyncCallback<File>): ReactElement => {
@@ -44,10 +44,10 @@ export const LuiModalUpload = ({
44
44
  <LuiModalAsync
45
45
  className={clsx('LuiModalPrefab', `LuiModalPrefab-file`)}
46
46
  closeOnOverlayClick={true}
47
- style={{ width: width ?? 512 }}
47
+ style={{ width: width ?? 512, minHeight: height, height: height }}
48
48
  >
49
49
  {title && <LuiModalAsyncHeader title={title ?? 'Upload file...'} closeButton />}
50
- {content && <LuiModalAsyncContent>{content}</LuiModalAsyncContent>}
50
+ {content}
51
51
  <LuiFileInputBox
52
52
  {...props}
53
53
  width={'100%'}
package/package.json CHANGED
@@ -13,7 +13,7 @@
13
13
  "popout"
14
14
  ],
15
15
  "main": "./dist/index.ts",
16
- "version": "8.5.0",
16
+ "version": "8.6.0",
17
17
  "peerDependencies": {
18
18
  "@linzjs/lui": ">=23",
19
19
  "lodash-es": ">=4",