@ship-ui/core 0.14.1 → 0.14.5

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/index.d.ts CHANGED
@@ -32,10 +32,13 @@ declare class ShipAlertService {
32
32
 
33
33
  type ShipAlertType = 'error' | 'success' | 'warn' | 'primary' | 'accent' | 'question';
34
34
  declare class ShipAlertComponent {
35
+ #private;
36
+ variant: _angular_core.WritableSignal<string>;
35
37
  _el: ElementRef<any>;
36
38
  alertService: _angular_core.InputSignal<ShipAlertService | null>;
37
39
  id: _angular_core.InputSignal<string | null>;
38
- alertClasses: _angular_core.Signal<any>;
40
+ currentClasses: _angular_core.Signal<string>;
41
+ activeClass: _angular_core.Signal<string>;
39
42
  removeAlert(): void;
40
43
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<ShipAlertComponent, never>;
41
44
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<ShipAlertComponent, "sh-alert", never, { "alertService": { "alias": "alertService"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; }, {}, never, ["[icon]", "sh-icon", "[title]", "*", "[content]", "p"], true, never>;
@@ -139,7 +142,8 @@ declare class ShipCardComponent {
139
142
  }
140
143
 
141
144
  declare class ShipCheckboxComponent {
142
- #private;
145
+ currentClassList: _angular_core.Signal<string>;
146
+ showClasses: _angular_core.Signal<string[] | "">;
143
147
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<ShipCheckboxComponent, never>;
144
148
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<ShipCheckboxComponent, "sh-checkbox", never, {}, {}, never, ["*"], true, never>;
145
149
  }
@@ -763,6 +767,7 @@ declare class ShipTooltipDirective implements OnDestroy {
763
767
 
764
768
  declare const SHIP_CONFIG: InjectionToken<ShipConfig>;
765
769
  interface ShipConfig {
770
+ alertVariant?: '' | 'simple' | 'outlined' | 'flat' | 'raised';
766
771
  cardType?: 'type-b';
767
772
  dialogType?: 'type-b';
768
773
  tableType?: 'type-b';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ship-ui/core",
3
3
  "license": "MIT",
4
- "version": "0.14.1",
4
+ "version": "0.14.5",
5
5
  "peerDependencies": {
6
6
  "@angular/common": ">=19",
7
7
  "@angular/core": ">=19"
@@ -37,8 +37,8 @@ $shipAlert: true !default;
37
37
  justify-content: center;
38
38
  width: p2r(24);
39
39
  height: p2r(24);
40
- background-color: var(--grey-500);
41
- color: var(--grey-contrast-500);
40
+ background-color: var(--base-8);
41
+ color: var(--base-1);
42
42
  position: absolute;
43
43
  bottom: 0;
44
44
  right: 0;
@@ -4,10 +4,13 @@ $shipCheckbox: true !default;
4
4
 
5
5
  @if $shipCheckbox == true {
6
6
  sh-checkbox {
7
- --box-bw: #{p2r(1)};
8
- --box-bc: var(--base-4);
9
- --box-c: var(--base-8);
10
- --box-bg: var(--base-2);
7
+ .sh-sheet {
8
+ --box-bw: #{p2r(1)};
9
+ --box-c: var(--sheet-c);
10
+ --box-bc: var(--sheet-bc);
11
+ --box-bg: var(--sheet-bg);
12
+ --sheet-s: var(--shape-1);
13
+ }
11
14
 
12
15
  display: flex;
13
16
  align-items: center;
@@ -15,6 +18,7 @@ $shipCheckbox: true !default;
15
18
  cursor: pointer;
16
19
  user-select: none;
17
20
  position: relative;
21
+ border: 0;
18
22
 
19
23
  > input[type='checkbox'] {
20
24
  appearance: none;
@@ -85,161 +89,5 @@ $shipCheckbox: true !default;
85
89
  opacity: 0.5;
86
90
  }
87
91
  }
88
-
89
- &.primary {
90
- --box-c: var(--primary-8);
91
- }
92
-
93
- &.accent {
94
- --box-c: var(--accent-8);
95
- }
96
-
97
- &.warn {
98
- --box-c: var(--warn-8);
99
- }
100
-
101
- &.error {
102
- --box-c: var(--error-8);
103
- }
104
-
105
- &.success {
106
- --box-c: var(--success-8);
107
- }
108
-
109
- &.simple,
110
- &.outlined {
111
- --box-bg: var(--base-3);
112
- --box-bc: var(--base-6);
113
-
114
- &.primary {
115
- --box-bg: var(--primary-3);
116
- --box-bc: var(--primary-6);
117
- }
118
-
119
- &.accent {
120
- --box-bg: var(--accent-3);
121
- --box-bc: var(--accent-6);
122
- }
123
-
124
- &.warn {
125
- --box-bg: var(--warn-3);
126
- --box-bc: var(--warn-6);
127
- }
128
-
129
- &.error {
130
- --box-bg: var(--error-3);
131
- --box-bc: var(--error-6);
132
- }
133
-
134
- &.success {
135
- --box-bg: var(--success-3);
136
- --box-bc: var(--success-6);
137
- }
138
- }
139
-
140
- &.simple {
141
- --box-bc: var(--box-bg);
142
-
143
- &.primary,
144
- &.accent,
145
- &.warn,
146
- &.error,
147
- &.success {
148
- --box-bc: var(--box-bg);
149
- }
150
- }
151
-
152
- &.flat,
153
- &.raised {
154
- &.primary,
155
- &.accent,
156
- &.warn,
157
- &.error,
158
- &.success {
159
- --box-bc: var(--base-4);
160
- --box-c: var(--base-8);
161
- --box-bg: var(--base-2);
162
- }
163
- }
164
-
165
- &.flat:has(input[type='checkbox']:checked),
166
- &.flat.indeterminate,
167
- &.flat.active {
168
- @extend %flat;
169
- }
170
-
171
- &.raised:has(input[type='checkbox']:checked),
172
- &.raised.indeterminate,
173
- &.raised.active {
174
- @extend %raised;
175
- }
176
- }
177
-
178
- .ship-popup-menu sh-option[selected] {
179
- sh-checkbox {
180
- sh-icon {
181
- opacity: 1;
182
- }
183
-
184
- &.flat {
185
- @extend %flat;
186
- }
187
-
188
- &.raised {
189
- @extend %raised;
190
- }
191
- }
192
- }
193
-
194
- %flat {
195
- --box-bw: 0;
196
- --box-bg: var(--base-8);
197
- --box-c: #fff;
198
-
199
- &.primary {
200
- --box-bg: var(--primary-8);
201
- }
202
-
203
- &.accent {
204
- --box-bg: var(--accent-8);
205
- }
206
-
207
- &.warn {
208
- --box-bg: var(--warn-8);
209
- }
210
-
211
- &.error {
212
- --box-bg: var(--error-8);
213
- }
214
-
215
- &.success {
216
- --box-bg: var(--success-8);
217
- }
218
- }
219
-
220
- %raised {
221
- --box-bw: 0;
222
- --box-bg: var(--base-g2);
223
- --box-c: #fff;
224
-
225
- &.primary {
226
- --box-bg: var(--primary-g2);
227
- }
228
-
229
- &.accent {
230
- --box-bg: var(--accent-g2);
231
- }
232
-
233
- &.warn {
234
- --box-bg: var(--warn-g2);
235
- }
236
-
237
- &.error {
238
- --box-bg: var(--error-g2);
239
- }
240
-
241
- &.success {
242
- --box-bg: var(--success-g2);
243
- }
244
92
  }
245
93
  }