@linzjs/windows 5.1.1 → 5.2.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.
@@ -7,7 +7,7 @@ import React, { PropsWithChildren, ReactElement, useContext } from 'react';
7
7
  import { LuiModalAsyncInstanceContext } from './LuiModalAsyncInstanceContext';
8
8
 
9
9
  export interface LuiModalAsyncHeaderProps {
10
- icon?: LuiIconName | ReactElement;
10
+ icon?: LuiIconName | ReactElement | null;
11
11
  title: string;
12
12
  helpLink?: string;
13
13
  onHelpClick?: () => void;
@@ -15,7 +15,7 @@ import { LuiModalAsyncHeader } from './LuiModalAsyncHeader';
15
15
  import { LuiModalAsyncMain } from './LuiModalAsyncMain';
16
16
  import { useShowAsyncModal } from './useShowAsyncModal';
17
17
 
18
- export type PrefabType = 'success' | 'info' | 'warning' | 'error' | 'progress' | 'blocked';
18
+ export type PrefabType = 'outline' | 'success' | 'info' | 'warning' | 'error' | 'progress' | 'blocked';
19
19
 
20
20
  export interface LuiModalAsyncPrefabButton<RT> {
21
21
  default?: boolean;
@@ -40,7 +40,7 @@ export interface LuiModalAsyncPrefabProps<RT> extends useLuiModalPrefabProps<RT>
40
40
  }
41
41
 
42
42
  // eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents
43
- export const getIconForLevel = (level: PrefabType): IconName | 'custom_progress' => {
43
+ export const getIconForLevel = (level: PrefabType): IconName | 'custom_progress' | null => {
44
44
  switch (level) {
45
45
  case 'success':
46
46
  return 'ic_check_circle_outline';
@@ -54,6 +54,8 @@ export const getIconForLevel = (level: PrefabType): IconName | 'custom_progress'
54
54
  return 'custom_progress';
55
55
  case 'blocked':
56
56
  return 'ic_lock_alt';
57
+ case 'outline':
58
+ return null;
57
59
  }
58
60
  };
59
61
 
package/package.json CHANGED
@@ -13,7 +13,7 @@
13
13
  "popout"
14
14
  ],
15
15
  "main": "./dist/index.ts",
16
- "version": "5.1.1",
16
+ "version": "5.2.0",
17
17
  "peerDependencies": {
18
18
  "@linzjs/lui": ">=21",
19
19
  "lodash-es": ">=4",