@thalassic/themes 22.9.0 → 22.10.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thalassic/themes",
3
- "version": "22.9.0",
3
+ "version": "22.10.0",
4
4
  "license": "MIT",
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^22.0.0",
@@ -0,0 +1,92 @@
1
+ @use '../../mixins' as mixins;
2
+
3
+ .tls-breadcrumbs {
4
+ --tls-breadcrumbs-gap: var(--spacing-2);
5
+ --tls-breadcrumbs-color: var(--color-secondary);
6
+ --tls-breadcrumbs-current-color: var(--color-on-surface);
7
+ --tls-breadcrumbs-link-height: 24px;
8
+ --tls-breadcrumbs-icon-size: 16px;
9
+ --tls-breadcrumbs-separator-size: 14px;
10
+
11
+ display: block;
12
+
13
+ &__list {
14
+ display: flex;
15
+ flex-wrap: wrap;
16
+ align-items: center;
17
+ // The links' touch-target expansion overflows 10px past each edge; wrapped
18
+ // rows need a cross-axis gap of at least that overflow (see _touch-target.scss).
19
+ row-gap: var(--spacing-3);
20
+ column-gap: var(--tls-breadcrumbs-gap);
21
+ }
22
+
23
+ &__item {
24
+ display: flex;
25
+ align-items: center;
26
+ gap: var(--tls-breadcrumbs-gap);
27
+ }
28
+
29
+ &__link {
30
+ position: relative;
31
+
32
+ height: var(--tls-breadcrumbs-link-height);
33
+
34
+ display: flex;
35
+ align-items: center;
36
+ gap: var(--spacing-1);
37
+
38
+ text-decoration: none;
39
+ color: var(--tls-breadcrumbs-color);
40
+
41
+ cursor: pointer;
42
+
43
+ @include mixins.touch-target(var(--tls-breadcrumbs-link-height));
44
+
45
+ &:hover {
46
+ text-decoration: underline;
47
+ }
48
+
49
+ &[aria-current='page'] {
50
+ color: var(--tls-breadcrumbs-current-color);
51
+ }
52
+ }
53
+
54
+ &__text {
55
+ display: flex;
56
+ align-items: center;
57
+ gap: var(--spacing-1);
58
+
59
+ color: var(--tls-breadcrumbs-color);
60
+
61
+ &[aria-current='page'] {
62
+ color: var(--tls-breadcrumbs-current-color);
63
+ }
64
+ }
65
+
66
+ &__item-icon {
67
+ width: var(--tls-breadcrumbs-icon-size);
68
+ height: var(--tls-breadcrumbs-icon-size);
69
+ }
70
+
71
+ &__separator {
72
+ width: var(--tls-breadcrumbs-separator-size);
73
+ height: var(--tls-breadcrumbs-separator-size);
74
+
75
+ display: flex;
76
+ justify-content: center;
77
+ align-items: center;
78
+
79
+ color: var(--tls-breadcrumbs-color);
80
+
81
+ .tls-icon {
82
+ width: 100%;
83
+ height: 100%;
84
+ }
85
+
86
+ // A directional separator glyph (chevron) must point toward the next item,
87
+ // which is the opposite physical direction in RTL.
88
+ :root[dir='rtl'] & {
89
+ transform: scaleX(-1);
90
+ }
91
+ }
92
+ }
@@ -0,0 +1 @@
1
+ @forward 'breadcrumbs';
@@ -1,6 +1,9 @@
1
1
  @use '../../mixins' as mixins;
2
2
 
3
3
  .tls-form-control-addon {
4
+ // Addons are secondary to the control's value (icons, unit labels, toggles).
5
+ color: var(--color-on-surface-variant);
6
+
4
7
  &:focus-visible {
5
8
  @include mixins.focus-ring;
6
9
  border-radius: var(--radius-md);
@@ -1,6 +1,7 @@
1
1
  @forward 'alert';
2
2
  @forward 'autocomplete';
3
3
  @forward 'badge';
4
+ @forward 'breadcrumbs';
4
5
  @forward 'button';
5
6
  @forward 'calendar';
6
7
  @forward 'chart';