@ship-ui/core 0.18.3 → 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.3",
4
+ "version": "0.18.4",
5
5
  "peerDependencies": {
6
6
  "@angular/common": ">=20",
7
7
  "@angular/core": ">=20",
@@ -70,6 +70,16 @@ $shipAlert: true !default;
70
70
  display: block;
71
71
  }
72
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
+ }
73
83
  }
74
84
 
75
85
  .actions {
@@ -80,17 +90,6 @@ $shipAlert: true !default;
80
90
  gap: p2r(4);
81
91
  }
82
92
 
83
- &:has(.actions:not(:empty)) {
84
- .alert {
85
- align-items: center;
86
- grid-template-columns: auto 1fr 1fr;
87
- }
88
-
89
- .close-icon {
90
- display: none;
91
- }
92
- }
93
-
94
93
  .icon {
95
94
  grid-area: stateIcon;
96
95
  height: p2r(20);
@@ -171,11 +170,6 @@ $shipAlert: true !default;
171
170
  }
172
171
  }
173
172
 
174
- &:has(.content:empty) .alert {
175
- grid-template-rows: auto;
176
- grid-template-areas: 'stateIcon title closeIcon';
177
- }
178
-
179
173
  &:has([content]) .alert {
180
174
  --alert-p: #{p2r(12)};
181
175
  }