@thalassic/themes 0.13.1 → 0.14.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": "0.13.1",
3
+ "version": "0.14.1",
4
4
  "license": "MIT",
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^21.0.0",
@@ -10,6 +10,14 @@
10
10
  align-items: flex-start;
11
11
  }
12
12
 
13
+ &--fluid {
14
+ width: 100%;
15
+
16
+ .tls-chip {
17
+ flex: 1;
18
+ }
19
+ }
20
+
13
21
  .tls-chip {
14
22
  user-select: none;
15
23
 
@@ -7,8 +7,6 @@ tls-chip-input.tls-form-control {
7
7
  gap: var(--spacing-1);
8
8
 
9
9
  width: var(--tls-chip-input-width);
10
- height: auto;
11
- min-height: var(--tls-form-control-height);
12
10
  padding-inline: var(--tls-form-control-padding-inline);
13
11
  padding-block: var(--spacing-1);
14
12
 
@@ -14,6 +14,12 @@
14
14
  }
15
15
  }
16
16
 
17
+ &.tls-form-item--label-space-reserved {
18
+ .form-item-label {
19
+ min-height: var(--font-label-medium-line-height);
20
+ }
21
+ }
22
+
17
23
  &:not(.tls-form-item--error-space-reserved) {
18
24
  .form-item-error {
19
25
  min-height: auto;
@@ -24,6 +30,10 @@
24
30
  }
25
31
  }
26
32
 
33
+ &:has(.tls-form-control--fluid, .tls-file-uploader--fluid, .tls-form-control-group--fluid) {
34
+ width: 100%;
35
+ }
36
+
27
37
  .form-item-label {
28
38
  margin-bottom: 0.25rem;
29
39
 
@@ -35,10 +45,6 @@
35
45
  line-height: var(--font-label-medium-line-height);
36
46
  letter-spacing: var(--font-label-medium-letter-spacing);
37
47
 
38
- &:has(.form-item-label__text:empty) {
39
- display: none;
40
- }
41
-
42
48
  &__required {
43
49
  display: none;
44
50
  color: var(--color-danger);
@@ -66,9 +72,8 @@
66
72
  opacity: 1;
67
73
  transform: translateY(0);
68
74
 
69
- transition:
70
- transform var(--motion-default) var(--motion-ease-in),
71
- opacity var(--motion-default) var(--motion-ease-in);
75
+ transition: transform var(--motion-default) var(--motion-ease-in),
76
+ opacity var(--motion-default) var(--motion-ease-in);
72
77
 
73
78
  @starting-style {
74
79
  opacity: 0;
@@ -2,7 +2,7 @@
2
2
  --tls-button-width: auto;
3
3
 
4
4
  width: var(--tls-button-width);
5
- height: var(--tls-button-height);
5
+ min-height: var(--tls-button-height);
6
6
  padding-inline: var(--tls-button-padding-inline);
7
7
 
8
8
  font-size: var(--tls-button-font-size);
@@ -11,9 +11,11 @@
11
11
  letter-spacing: var(--tls-button-letter-spacing);
12
12
 
13
13
  &.tls-button--icon-only {
14
+ --tls-button-width: var(--tls-button-height);
15
+
14
16
  padding-inline: 0;
15
17
 
16
- aspect-ratio: 1/1;
18
+ aspect-ratio: 1 / 1;
17
19
 
18
20
  &.tls-button--rounded {
19
21
  --tls-button-border-radius: 50%;
@@ -1,5 +1,5 @@
1
1
  .tls-chip {
2
- height: var(--tls-chip-height);
2
+ min-height: var(--tls-chip-height);
3
3
  padding-inline: var(--tls-chip-padding-inline);
4
4
 
5
5
  font-size: var(--tls-chip-font-size);
@@ -8,6 +8,7 @@
8
8
  letter-spacing: var(--tls-chip-letter-spacing);
9
9
 
10
10
  &.tls-chip--icon {
11
+ width: var(--tls-chip-height);
11
12
  padding-inline: 0;
12
13
  aspect-ratio: 1 / 1;
13
14
 
@@ -7,4 +7,8 @@
7
7
  gap: var(--spacing-1);
8
8
 
9
9
  border-radius: var(--tls-chip-border-radius);
10
- }
10
+
11
+ &--fluid {
12
+ width: 100%;
13
+ }
14
+ }
@@ -2,7 +2,7 @@
2
2
  --tls-form-control-width: auto;
3
3
 
4
4
  width: var(--tls-form-control-width);
5
- height: var(--tls-form-control-height);
5
+ min-height: var(--tls-form-control-height);
6
6
  padding-inline: var(--tls-form-control-padding-inline);
7
7
 
8
8
  font-size: var(--tls-form-control-font-size);
@@ -1,3 +1,2 @@
1
1
  @forward 'form-control';
2
2
  @forward 'form-control-size';
3
- @forward 'form-item';
@@ -2,7 +2,7 @@
2
2
  --tls-form-control-group-width: auto;
3
3
 
4
4
  width: var(--tls-form-control-group-width);
5
- height: var(--tls-form-control-group-height);
5
+ min-height: var(--tls-form-control-group-height);
6
6
 
7
7
  font-size: var(--tls-form-control-group-font-size);
8
8
  font-weight: var(--tls-form-control-group-font-weight);
@@ -8,7 +8,7 @@
8
8
  @forward 'pagination';
9
9
  @forward 'multi-select';
10
10
  @forward 'select';
11
- @forward 'form';
11
+ @forward 'form-control';
12
12
  @forward 'form-control-group';
13
13
  @forward 'stepper';
14
14
  @forward 'switch';
@@ -19,8 +19,9 @@
19
19
  @forward 'checkbox';
20
20
  @forward 'chip-group';
21
21
  @forward 'chip-input';
22
- @forward 'file-uploader';
23
22
  @forward 'divider';
23
+ @forward 'file-uploader';
24
+ @forward 'form-item';
24
25
  @forward 'icon';
25
26
  @forward 'menu';
26
27
  @forward 'password';
@@ -68,6 +68,13 @@
68
68
  }
69
69
  }
70
70
 
71
+ &:has(.tls-select__clear) .tls-select__trigger {
72
+ gap: calc(
73
+ var(--tls-select-clear-size) +
74
+ var(--tls-select-gap)
75
+ );
76
+ }
77
+
71
78
  // Clear button
72
79
  .tls-select__clear {
73
80
  position: absolute;