@1024pix/pix-ui 54.12.1 → 54.12.2
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.
|
@@ -24,6 +24,7 @@ export default class PixTable extends Component {
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
get tableClass() {
|
|
27
|
+
const tableClass = ['pix-table'];
|
|
27
28
|
warn(
|
|
28
29
|
'PixTable: @condensed must be a boolean, default undefined',
|
|
29
30
|
[true, false, undefined].includes(this.args.condensed),
|
|
@@ -32,9 +33,10 @@ export default class PixTable extends Component {
|
|
|
32
33
|
},
|
|
33
34
|
);
|
|
34
35
|
if (this.args.condensed) {
|
|
35
|
-
|
|
36
|
+
tableClass.push('pix-table--condensed');
|
|
36
37
|
}
|
|
37
|
-
|
|
38
|
+
|
|
39
|
+
return tableClass.join(' ');
|
|
38
40
|
}
|
|
39
41
|
|
|
40
42
|
get headerClass() {
|
|
@@ -11,12 +11,6 @@
|
|
|
11
11
|
|
|
12
12
|
@extend %pix-body-s;
|
|
13
13
|
|
|
14
|
-
&__condensed {
|
|
15
|
-
th, td {
|
|
16
|
-
padding: var(--pix-spacing-2x) var(--pix-spacing-4x);
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
|
|
20
14
|
&__clickable-row {
|
|
21
15
|
cursor: pointer;
|
|
22
16
|
|
|
@@ -82,5 +76,13 @@
|
|
|
82
76
|
}
|
|
83
77
|
}
|
|
84
78
|
}
|
|
79
|
+
|
|
80
|
+
&--condensed {
|
|
81
|
+
table {
|
|
82
|
+
th, td {
|
|
83
|
+
padding: var(--pix-spacing-2x) var(--pix-spacing-4x);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
85
87
|
}
|
|
86
88
|
|