@tetacom/ng-components 1.6.21 → 1.6.23

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": "@tetacom/ng-components",
3
- "version": "1.6.21",
3
+ "version": "1.6.23",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^19.0.5",
6
6
  "@angular/core": "^19.0.5"
@@ -14,7 +14,7 @@
14
14
  transition: background-color 0.2s ease-in-out;
15
15
 
16
16
  &_active {
17
- background: var(--color-text-10);
17
+ background: var(--color-text-5);
18
18
 
19
19
  &.accordion-item_divider {
20
20
  &::after {
@@ -64,6 +64,7 @@
64
64
  transition:
65
65
  background-color 0.2s ease-in-out,
66
66
  color 0.2s ease-in-out;
67
+ border-radius: 8px;
67
68
 
68
69
  &_disabled {
69
70
  color: var(--color-text-30);
package/style/button.scss CHANGED
@@ -5,17 +5,15 @@
5
5
  .button {
6
6
  display: inline-flex;
7
7
  align-items: center;
8
- gap: 6px;
9
- padding: 6px 12px;
8
+ gap: 4px;
10
9
  border: 0;
11
- color: var(--color-text-90);
12
- fill: var(--color-text-90);
13
- transition:
14
- background 0.4s,
15
- color 0.4s;
10
+ color: var(--teta-button-color);
11
+ fill: var(--teta-button-color);
12
+ transition: all 0.3s;
16
13
  white-space: nowrap;
17
14
  overflow: hidden;
18
15
  text-overflow: ellipsis;
16
+ height: var(--teta-button-size);
19
17
 
20
18
  @include getView('btn');
21
19
 
@@ -23,50 +21,60 @@
23
21
  cursor: pointer;
24
22
  }
25
23
 
24
+ &-xs {
25
+ --teta-button-size: 24px;
26
+ @include getFont($fonts, 'button-3');
27
+
28
+ padding: 0 8px;
29
+ }
30
+
26
31
  &-s {
27
- height: 24px;
32
+ --teta-button-size: 28px;
33
+ @include getFont($fonts, 'button-2');
34
+
35
+ padding: 0 12px;
28
36
  }
29
37
 
30
38
  &-m {
31
- height: 28px;
39
+ --teta-button-size: 32px;
40
+ @include getFont($fonts, 'button-2');
41
+
42
+ padding: 0 16px;
32
43
  }
33
44
 
34
45
  &-l {
35
- height: 32px;
46
+ --teta-button-size: 44px;
47
+ @include getFont($fonts, 'title-2');
48
+
49
+ padding: 0 24px;
50
+ }
51
+
52
+ &-xl {
53
+ --teta-button-size: 56px;
54
+ @include getFont($fonts, 'title-1');
55
+
56
+ padding: 0 32px;
36
57
  }
37
58
 
38
59
  &-square {
39
- width: 28px;
60
+ width: var(--teta-button-size);
40
61
  flex-shrink: 0;
41
62
  align-items: center;
42
63
  justify-content: center;
43
64
  }
44
65
 
45
- &[disabled],
46
- &[disabled]:hover,
47
- &[disabled]:focus-visible {
48
- border: none;
49
- background-color: var(--color-text-30);
50
- }
51
-
52
- &:focus-visible {
53
- box-shadow: 0 0 0 4px var(--color-primary-10);
54
- }
55
-
56
66
  &:has(.loader) {
57
67
  pointer-events: none;
58
68
  color: transparent;
59
69
  }
60
70
 
61
- .loader {
62
- &::before {
63
- border-color: var(--color-text-90);
64
- border-top-color: transparent;
65
- width: 16px;
66
- height: 16px;
67
- margin-left: -8px;
68
- margin-top: -8px;
69
- border-width: 2px;
70
- }
71
+ .loader::before {
72
+ width: calc(var(--teta-button-size) / 2);
73
+ height: calc(var(--teta-button-size) / 2);
74
+ margin-left: calc(var(--teta-button-size) / 4 * -1);
75
+ margin-top: calc(var(--teta-button-size) / 4 * -1);
76
+ border-width: 2px;
77
+ border-color: var(--teta-button-color);
78
+ border-top-color: transparent;
71
79
  }
72
80
  }