@tetacom/ng-components 1.2.9 → 1.2.11
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/accordion/accordion-item/accordion-item.component.d.ts +5 -3
- package/component/button/button/button.component.d.ts +3 -5
- package/docs/accordionDocs.mdx +139 -118
- package/esm2022/component/accordion/accordion/accordion.component.mjs +1 -1
- package/esm2022/component/accordion/accordion-head/accordion-head.component.mjs +4 -7
- package/esm2022/component/accordion/accordion-item/accordion-item.component.mjs +17 -8
- package/esm2022/component/button/button/button.component.mjs +19 -12
- package/fesm2022/tetacom-ng-components.mjs +35 -23
- package/fesm2022/tetacom-ng-components.mjs.map +1 -1
- package/package.json +1 -1
- package/style/accordion.scss +65 -42
- package/style/chips.scss +2 -6
package/package.json
CHANGED
package/style/accordion.scss
CHANGED
|
@@ -1,71 +1,94 @@
|
|
|
1
|
-
@import
|
|
2
|
-
@import
|
|
3
|
-
@import
|
|
4
|
-
|
|
5
|
-
.accordion_rounded .accordion-head {
|
|
6
|
-
border-radius: 8px;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.accordion_brick .accordion-head {
|
|
10
|
-
border-radius: 0
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.accordion_circle .accordion-head {
|
|
14
|
-
border-radius: 100px;
|
|
15
|
-
}
|
|
1
|
+
@import './util/font-util.scss';
|
|
2
|
+
@import './util/color-util.scss';
|
|
3
|
+
@import 'presets/view-types';
|
|
16
4
|
|
|
17
5
|
.accordion {
|
|
18
|
-
display:
|
|
19
|
-
flex-direction: column;
|
|
20
|
-
gap: 8px;
|
|
21
|
-
|
|
22
|
-
@include getView('base');
|
|
6
|
+
display: block;
|
|
23
7
|
|
|
24
8
|
&-item {
|
|
25
|
-
display:
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
background: var(--color-global-bgcard);
|
|
9
|
+
display: block;
|
|
10
|
+
overflow: hidden;
|
|
11
|
+
transition: background-color 0.2s ease-in-out;
|
|
29
12
|
|
|
30
13
|
&_active {
|
|
31
|
-
flex-grow: 0;
|
|
32
14
|
background: var(--color-text-10);
|
|
15
|
+
|
|
16
|
+
&.accordion-item_divider {
|
|
17
|
+
&::after {
|
|
18
|
+
background-color: transparent;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&_divider {
|
|
24
|
+
position: relative;
|
|
25
|
+
|
|
26
|
+
&::after {
|
|
27
|
+
content: '';
|
|
28
|
+
position: absolute;
|
|
29
|
+
background-color: var(--color-text-5);
|
|
30
|
+
width: 100%;
|
|
31
|
+
height: 1px;
|
|
32
|
+
bottom: 0;
|
|
33
|
+
left: 0;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&_rounded {
|
|
38
|
+
border-radius: 8px;
|
|
39
|
+
}
|
|
40
|
+
&_brick {
|
|
41
|
+
border-radius: 0;
|
|
42
|
+
}
|
|
43
|
+
&_circle {
|
|
44
|
+
border-radius: 48px;
|
|
45
|
+
|
|
46
|
+
.accordion-head,
|
|
47
|
+
.accordion-content {
|
|
48
|
+
padding: 12px 24px;
|
|
49
|
+
}
|
|
33
50
|
}
|
|
34
51
|
}
|
|
35
52
|
|
|
36
53
|
&-head {
|
|
54
|
+
@include getFont($fonts, 'title-3');
|
|
55
|
+
|
|
37
56
|
display: flex;
|
|
38
|
-
align-items: center;
|
|
39
|
-
height: 52px;
|
|
40
|
-
padding: 0 12px;
|
|
41
|
-
flex-shrink: 0;
|
|
42
|
-
//border-bottom: solid 1px var(--color-text-5);
|
|
43
57
|
justify-content: space-between;
|
|
44
|
-
|
|
58
|
+
align-items: center;
|
|
59
|
+
gap: 12px;
|
|
60
|
+
padding: 12px;
|
|
61
|
+
transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
|
|
45
62
|
|
|
46
|
-
&_disabled{
|
|
63
|
+
&_disabled {
|
|
47
64
|
color: var(--color-text-30);
|
|
65
|
+
cursor: default;
|
|
48
66
|
}
|
|
67
|
+
|
|
49
68
|
&:hover:not(&_disabled) {
|
|
50
69
|
cursor: pointer;
|
|
51
70
|
background: var(--color-text-5);
|
|
52
71
|
}
|
|
53
72
|
|
|
54
73
|
&_open {
|
|
55
|
-
|
|
74
|
+
background-color: transparent;
|
|
56
75
|
}
|
|
57
76
|
}
|
|
58
77
|
|
|
59
|
-
&-toggle {
|
|
60
|
-
display: flex;
|
|
61
|
-
|
|
62
|
-
}
|
|
63
|
-
|
|
64
78
|
&-content {
|
|
65
|
-
display:
|
|
66
|
-
|
|
67
|
-
min-height: 0;
|
|
68
|
-
//border-bottom: solid 1px var(--color-text-5);
|
|
79
|
+
display: block;
|
|
80
|
+
padding: 8px;
|
|
69
81
|
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.accordion-toggle {
|
|
85
|
+
flex: 0 0 16px;
|
|
86
|
+
display: block;
|
|
87
|
+
width: 16px;
|
|
88
|
+
height: 16px;
|
|
89
|
+
transition: transform 0.2s ease-in-out;
|
|
70
90
|
|
|
91
|
+
&_opened {
|
|
92
|
+
transform: rotate(180deg);
|
|
93
|
+
}
|
|
71
94
|
}
|
package/style/chips.scss
CHANGED
|
@@ -56,18 +56,14 @@
|
|
|
56
56
|
@each $paletteName, $palette in map-get($themes, nth(map-keys($themes), 1)) {
|
|
57
57
|
&_#{'' + $paletteName} {
|
|
58
58
|
background-color: getColorVar($paletteName, '5');
|
|
59
|
-
color:
|
|
60
|
-
fill:
|
|
59
|
+
color: var(--color-text-90);
|
|
60
|
+
fill: var(--color-text-90);
|
|
61
61
|
|
|
62
62
|
&:hover {
|
|
63
63
|
background-color: getColorVar($paletteName, '10');
|
|
64
|
-
color: getColorVar($paletteName, '60');
|
|
65
|
-
fill: getColorVar($paletteName, '60');
|
|
66
64
|
}
|
|
67
65
|
&:active {
|
|
68
66
|
background-color: getColorVar($paletteName, '20');
|
|
69
|
-
color: getColorVar($paletteName, '70');
|
|
70
|
-
fill: getColorVar($paletteName, '70');
|
|
71
67
|
}
|
|
72
68
|
|
|
73
69
|
&_outlined {
|