@linzjs/windows 3.3.1 → 3.4.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.
@@ -16,22 +16,50 @@ dialog.LuiModalAsync, div.LuiModalAsync {
16
16
  max-height: 80vh;
17
17
  gap: lui.$unit-md;
18
18
 
19
+ .LuiModalAsync-header-icon {
20
+ fill: lui.$info;
21
+ }
22
+
19
23
  &.LuiModalPrefab-success {
24
+ .LuiModalAsync-header .LuiModalAsync-header-icon {
25
+ fill: lui.$success;
26
+ }
27
+
20
28
  border-left: lui.$unit-xs solid lui.$success;
21
29
  }
22
30
 
23
31
  &.LuiModalPrefab-info {
32
+ .LuiModalAsync-header .LuiModalAsync-header-icon {
33
+ fill: lui.$info;
34
+ }
35
+
24
36
  border-left: lui.$unit-xs solid lui.$info;
25
37
  }
26
38
 
27
39
  &.LuiModalPrefab-warning {
40
+ .LuiModalAsync-header .LuiModalAsync-header-icon {
41
+ fill: lui.$warning;
42
+ }
43
+
28
44
  border-left: lui.$unit-xs solid lui.$warning;
29
45
  }
30
46
 
31
47
  &.LuiModalPrefab-error {
48
+ .LuiModalAsync-header .LuiModalAsync-header-icon {
49
+ fill: lui.$error;
50
+ }
51
+
32
52
  border-left: lui.$unit-sm solid lui.$error;
33
53
  }
34
54
 
55
+ &.LuiModalPrefab-blocked {
56
+ .LuiModalAsync-header .LuiModalAsync-header-icon {
57
+ fill: lui.$fuscous;
58
+ }
59
+
60
+ border-left: lui.$unit-sm solid rgb(0 0 0 / 0%);
61
+ }
62
+
35
63
  h4 {
36
64
  margin-top: 0;
37
65
  }
@@ -76,25 +104,5 @@ dialog.LuiModalAsync, div.LuiModalAsync {
76
104
  // Button focus not showing unless window content has focus
77
105
  outline: lui.$input-border-width solid lui.$input-focus;
78
106
  }
79
-
80
- .LuiModalAsync-header-icon {
81
- fill: lui.$info;
82
- }
83
-
84
- .LuiModalAsync-header-icon.LuiModalAsync-header-icon-ic_check_circle_outline {
85
- fill: lui.$success;
86
- }
87
-
88
- .LuiModalAsync-header-icon.LuiModalAsync-header-icon-ic_warning_outline {
89
- fill: lui.$warning;
90
- }
91
-
92
- .LuiModalAsync-header-icon.LuiModalAsync-header-icon-ic_info_outline {
93
- fill: lui.$info;
94
- }
95
-
96
- .LuiModalAsync-header-icon.LuiModalAsync-header-icon-ic_error_outline {
97
- fill: lui.$error;
98
- }
99
107
  }
100
108
 
@@ -13,7 +13,7 @@ import { LuiButton, LuiCheckboxInput, LuiMiniSpinner } from "@linzjs/lui";
13
13
  import { LuiButtonProps } from "@linzjs/lui/dist/components/LuiButton/LuiButton";
14
14
  import { IconName } from "@linzjs/lui/dist/components/LuiIcon/LuiIcon";
15
15
 
16
- export type PrefabType = "success" | "info" | "warning" | "error" | "progress";
16
+ export type PrefabType = "success" | "info" | "warning" | "error" | "progress" | "blocked";
17
17
 
18
18
  export interface LuiModalAsyncPrefabButton<RT> {
19
19
  default?: boolean;
@@ -48,6 +48,8 @@ export const getIconForLevel = (level: PrefabType): IconName | "custom_progress"
48
48
  return "ic_error_outline";
49
49
  case "progress":
50
50
  return "custom_progress";
51
+ case "blocked":
52
+ return "ic_lock";
51
53
  }
52
54
  };
53
55
 
package/package.json CHANGED
@@ -13,7 +13,7 @@
13
13
  "popout"
14
14
  ],
15
15
  "main": "./dist/index.ts",
16
- "version": "3.3.1",
16
+ "version": "3.4.0",
17
17
  "peerDependencies": {
18
18
  "@linzjs/lui": "^21",
19
19
  "lodash-es": ">=4",