@ship-ui/core 0.18.2 → 0.18.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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ship-ui/core",
3
3
  "license": "MIT",
4
- "version": "0.18.2",
4
+ "version": "0.18.4",
5
5
  "peerDependencies": {
6
6
  "@angular/common": ">=20",
7
7
  "@angular/core": ">=20",
@@ -43,7 +43,7 @@ $shipAlert: true !default;
43
43
 
44
44
  .alert {
45
45
  display: grid;
46
- grid-template-columns: auto 1fr auto;
46
+ grid-template-columns: auto 1fr 1fr;
47
47
  grid-template-rows: auto auto;
48
48
  grid-template-areas:
49
49
  'stateIcon title closeIcon'
@@ -51,6 +51,35 @@ $shipAlert: true !default;
51
51
  padding: var(--alert-p);
52
52
  align-items: flex-start;
53
53
  gap: p2r(4 8);
54
+
55
+ .close-icon {
56
+ display: none;
57
+ }
58
+
59
+ &:has(.actions:empty) {
60
+ grid-template-columns: auto 1fr;
61
+ grid-template-areas:
62
+ 'stateIcon title'
63
+ '. content';
64
+
65
+ .actions {
66
+ display: none;
67
+ }
68
+
69
+ .close-icon {
70
+ display: block;
71
+ }
72
+ }
73
+
74
+ &:has(.content:empty) {
75
+ grid-template-rows: auto;
76
+ grid-template-areas: 'stateIcon title closeIcon';
77
+ }
78
+
79
+ &:has(.actions:empty):has(.content:empty) {
80
+ grid-template-columns: auto 1fr;
81
+ grid-template-areas: 'stateIcon title';
82
+ }
54
83
  }
55
84
 
56
85
  .actions {
@@ -61,17 +90,6 @@ $shipAlert: true !default;
61
90
  gap: p2r(4);
62
91
  }
63
92
 
64
- &:has(.actions:not(:empty)) {
65
- .alert {
66
- align-items: center;
67
- grid-template-columns: auto 1fr 1fr;
68
- }
69
-
70
- .close-icon {
71
- display: none;
72
- }
73
- }
74
-
75
93
  .icon {
76
94
  grid-area: stateIcon;
77
95
  height: p2r(20);
@@ -152,11 +170,6 @@ $shipAlert: true !default;
152
170
  }
153
171
  }
154
172
 
155
- &:has(.content:empty) .alert {
156
- grid-template-rows: auto;
157
- grid-template-areas: 'stateIcon title closeIcon';
158
- }
159
-
160
173
  &:has([content]) .alert {
161
174
  --alert-p: #{p2r(12)};
162
175
  }