@tetacom/ng-components 1.2.7 → 1.2.9
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/component/button/button/button.component.d.ts +2 -2
- package/docs/buttonDocs.mdx +115 -118
- package/esm2022/component/button/button/button.component.mjs +12 -7
- package/fesm2022/tetacom-ng-components.mjs +10 -5
- package/fesm2022/tetacom-ng-components.mjs.map +1 -1
- package/package.json +1 -1
- package/style/button.scss +10 -11
- package/style/chips.scss +35 -33
- package/style/presets/font-presets.scss +2 -2
package/package.json
CHANGED
package/style/button.scss
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
@import
|
|
2
|
-
@import
|
|
3
|
-
@import
|
|
1
|
+
@import './util/color-util.scss';
|
|
2
|
+
@import './util/font-util.scss';
|
|
3
|
+
@import 'presets/view-types.scss';
|
|
4
4
|
|
|
5
5
|
.button {
|
|
6
6
|
display: inline-flex;
|
|
7
|
-
grid-gap: 6px;
|
|
8
7
|
align-items: center;
|
|
9
|
-
|
|
8
|
+
gap: 6px;
|
|
9
|
+
padding: 6px 12px;
|
|
10
10
|
border: 0;
|
|
11
11
|
color: var(--color-global-white);
|
|
12
12
|
fill: var(--color-global-white);
|
|
@@ -21,6 +21,10 @@
|
|
|
21
21
|
cursor: pointer;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
+
&-s {
|
|
25
|
+
height: 24px;
|
|
26
|
+
}
|
|
27
|
+
|
|
24
28
|
&-m {
|
|
25
29
|
height: 28px;
|
|
26
30
|
}
|
|
@@ -29,11 +33,6 @@
|
|
|
29
33
|
height: 32px;
|
|
30
34
|
}
|
|
31
35
|
|
|
32
|
-
&-xs {
|
|
33
|
-
padding: 0;
|
|
34
|
-
height: 16px;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
36
|
&-square {
|
|
38
37
|
width: 28px;
|
|
39
38
|
flex-shrink: 0;
|
|
@@ -47,7 +46,7 @@
|
|
|
47
46
|
opacity: 0.3;
|
|
48
47
|
}
|
|
49
48
|
|
|
50
|
-
&:focus {
|
|
49
|
+
&:focus-visible {
|
|
51
50
|
box-shadow: 0 0 0 4px var(--color-primary-10);
|
|
52
51
|
}
|
|
53
52
|
}
|
package/style/chips.scss
CHANGED
|
@@ -53,20 +53,42 @@
|
|
|
53
53
|
background-color: var(--color-text-20);
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
56
|
+
@each $paletteName, $palette in map-get($themes, nth(map-keys($themes), 1)) {
|
|
57
|
+
&_#{'' + $paletteName} {
|
|
58
|
+
background-color: getColorVar($paletteName, '5');
|
|
59
|
+
color: getColorVar($paletteName, '50');
|
|
60
|
+
fill: getColorVar($paletteName, '50');
|
|
60
61
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
62
|
+
&:hover {
|
|
63
|
+
background-color: getColorVar($paletteName, '10');
|
|
64
|
+
color: getColorVar($paletteName, '60');
|
|
65
|
+
fill: getColorVar($paletteName, '60');
|
|
66
|
+
}
|
|
67
|
+
&:active {
|
|
68
|
+
background-color: getColorVar($paletteName, '20');
|
|
69
|
+
color: getColorVar($paletteName, '70');
|
|
70
|
+
fill: getColorVar($paletteName, '70');
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
&_outlined {
|
|
74
|
+
border-color: getColorVar($paletteName, '50');
|
|
75
|
+
color: getColorVar($paletteName, '50');
|
|
76
|
+
fill: getColorVar($paletteName, '50');
|
|
77
|
+
background-color: transparent;
|
|
78
|
+
|
|
79
|
+
&:hover {
|
|
80
|
+
background-color: transparent;
|
|
81
|
+
border-color: getColorVar($paletteName, '60');
|
|
82
|
+
color: getColorVar($paletteName, '60');
|
|
83
|
+
fill: getColorVar($paletteName, '60');
|
|
84
|
+
}
|
|
85
|
+
&:active {
|
|
86
|
+
background-color: transparent;
|
|
87
|
+
border-color: getColorVar($paletteName, '70');
|
|
88
|
+
color: getColorVar($paletteName, '70');
|
|
89
|
+
fill: getColorVar($paletteName, '70');
|
|
90
|
+
}
|
|
91
|
+
}
|
|
70
92
|
}
|
|
71
93
|
}
|
|
72
94
|
|
|
@@ -88,25 +110,5 @@
|
|
|
88
110
|
color: var(--color-text-70);
|
|
89
111
|
fill: var(--color-text-70);
|
|
90
112
|
}
|
|
91
|
-
|
|
92
|
-
&_primary {
|
|
93
|
-
border-color: var(--color-primary-50);
|
|
94
|
-
color: var(--color-primary-50);
|
|
95
|
-
fill: var(--color-primary-50);
|
|
96
|
-
background-color: transparent;
|
|
97
|
-
|
|
98
|
-
&:hover {
|
|
99
|
-
background-color: transparent;
|
|
100
|
-
border-color: var(--color-primary-60);
|
|
101
|
-
color: var(--color-primary-60);
|
|
102
|
-
fill: var(--color-primary-60);
|
|
103
|
-
}
|
|
104
|
-
&:active {
|
|
105
|
-
background-color: transparent;
|
|
106
|
-
border-color: var(--color-primary-70);
|
|
107
|
-
color: var(--color-primary-70);
|
|
108
|
-
fill: var(--color-primary-70);
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
113
|
}
|
|
112
114
|
}
|
|
@@ -99,11 +99,11 @@ $fonts: (
|
|
|
99
99
|
text-decoration: none,
|
|
100
100
|
),
|
|
101
101
|
button-1: (
|
|
102
|
-
font-size:
|
|
102
|
+
font-size: 13px,
|
|
103
103
|
font-family: 'Inter',
|
|
104
104
|
font-weight: 500,
|
|
105
105
|
font-style: normal,
|
|
106
|
-
line-height:
|
|
106
|
+
line-height: 20px,
|
|
107
107
|
text-decoration: none,
|
|
108
108
|
),
|
|
109
109
|
button-2: (
|