@thalassic/themes 22.17.7 → 22.18.1

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@thalassic/themes",
3
- "version": "22.17.7",
3
+ "version": "22.18.1",
4
4
  "license": "MIT",
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^22.0.0",
@@ -1,42 +1,42 @@
1
1
  .tls-alert {
2
2
  &.tls-alert--primary {
3
- --tls-alert-border-color: var(--color-primary);
3
+ --tls-alert-edge-color: var(--color-primary);
4
4
  --tls-alert-color: var(--color-on-primary-container);
5
5
  --tls-alert-background-color: var(--color-primary-container);
6
6
  }
7
7
 
8
8
  &.tls-alert--secondary {
9
- --tls-alert-border-color: var(--color-secondary);
9
+ --tls-alert-edge-color: var(--color-secondary);
10
10
  --tls-alert-color: var(--color-on-secondary-container);
11
11
  --tls-alert-background-color: var(--color-secondary-container);
12
12
  }
13
13
 
14
14
  &.tls-alert--tertiary {
15
- --tls-alert-border-color: var(--color-tertiary);
15
+ --tls-alert-edge-color: var(--color-tertiary);
16
16
  --tls-alert-color: var(--color-on-tertiary-container);
17
17
  --tls-alert-background-color: var(--color-tertiary-container);
18
18
  }
19
19
 
20
20
  &.tls-alert--success {
21
- --tls-alert-border-color: var(--color-success);
21
+ --tls-alert-edge-color: var(--color-success);
22
22
  --tls-alert-color: var(--color-on-success-container);
23
23
  --tls-alert-background-color: var(--color-success-container);
24
24
  }
25
25
 
26
26
  &.tls-alert--info {
27
- --tls-alert-border-color: var(--color-info);
27
+ --tls-alert-edge-color: var(--color-info);
28
28
  --tls-alert-color: var(--color-on-info-container);
29
29
  --tls-alert-background-color: var(--color-info-container);
30
30
  }
31
31
 
32
32
  &.tls-alert--warning {
33
- --tls-alert-border-color: var(--color-warning);
33
+ --tls-alert-edge-color: var(--color-warning);
34
34
  --tls-alert-color: var(--color-on-warning-container);
35
35
  --tls-alert-background-color: var(--color-warning-container);
36
36
  }
37
37
 
38
38
  &.tls-alert--danger {
39
- --tls-alert-border-color: var(--color-danger);
39
+ --tls-alert-edge-color: var(--color-danger);
40
40
  --tls-alert-color: var(--color-on-danger-container);
41
41
  --tls-alert-background-color: var(--color-danger-container);
42
42
  }
@@ -1,25 +1,47 @@
1
1
  .tls-alert {
2
2
  --tls-alert-padding: var(--spacing-4);
3
- --tls-alert-border-width: 1px;
3
+ --tls-alert-gap: var(--spacing-3);
4
4
  --tls-alert-border-radius: var(--radius-sm);
5
+ --tls-alert-edge-width: 4px;
6
+ --tls-alert-icon-size: 20px;
5
7
  --tls-alert-label-font-weight: var(--font-weight-bold);
6
8
 
7
9
  padding: var(--tls-alert-padding);
8
10
 
9
11
  display: flex;
12
+ align-items: flex-start;
13
+ gap: var(--tls-alert-gap);
10
14
 
15
+ // Accent rule down the leading edge, in the color's full-strength tone. Set
16
+ // `--tls-alert-edge-width: 0` for a plain tonal surface with no rule.
17
+ border-inline-start: var(--tls-alert-edge-width) solid var(--tls-alert-edge-color);
11
18
  border-radius: var(--tls-alert-border-radius);
12
- border: var(--tls-alert-border-width) solid var(--tls-alert-border-color);
13
19
 
14
- color: var(--tls-alert-color);
15
20
  background-color: var(--tls-alert-background-color);
16
21
 
17
- &-body {
18
- &__label {
19
- font-weight: var(--tls-alert-label-font-weight);
20
- }
22
+ color: var(--tls-alert-color);
23
+
24
+ &__icon {
25
+ width: var(--tls-alert-icon-size);
26
+ height: var(--tls-alert-icon-size);
27
+
28
+ // Centres the glyph on the first line's box instead of its top edge, so it
29
+ // reads as part of the text baseline rather than floating above it.
30
+ margin-block-start: calc((1lh - var(--tls-alert-icon-size)) / 2);
31
+
32
+ display: flex;
33
+ flex-shrink: 0;
34
+
35
+ color: inherit;
36
+ }
37
+
38
+ &__body {
39
+ min-width: 0;
40
+
41
+ flex: 1;
42
+ }
21
43
 
22
- &__content {
23
- }
44
+ &__label {
45
+ font-weight: var(--tls-alert-label-font-weight);
24
46
  }
25
47
  }