@1024pix/pix-ui 55.19.2 → 55.21.0
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.
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
aria-expanded={{this.isAriaExpanded}}
|
|
39
39
|
aria-controls={{this.listId}}
|
|
40
40
|
aria-haspopup="menu"
|
|
41
|
+
disabled={{@isDisabled}}
|
|
41
42
|
/>
|
|
42
43
|
</span>
|
|
43
44
|
{{else}}
|
|
@@ -49,6 +50,7 @@
|
|
|
49
50
|
aria-controls={{this.listId}}
|
|
50
51
|
aria-haspopup="menu"
|
|
51
52
|
class={{this.mainInputClassName}}
|
|
53
|
+
disabled={{@isDisabled}}
|
|
52
54
|
{{on "click" this.toggleDropDown}}
|
|
53
55
|
>
|
|
54
56
|
{{#if (has-block "placeholder")}}
|
|
@@ -75,7 +75,7 @@ export default class PixTableColumn extends Component {
|
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
get typeClass() {
|
|
78
|
-
const correctTypes = ['number', 'text', 'checkbox'];
|
|
78
|
+
const correctTypes = ['number', 'text', 'checkbox', 'tag'];
|
|
79
79
|
warn('PixTableColumn: you need to provide a valid type', correctTypes.includes(this.type), {
|
|
80
80
|
id: 'pix-ui.table-column.type.incorrect',
|
|
81
81
|
});
|
|
@@ -85,6 +85,9 @@ export default class PixTableColumn extends Component {
|
|
|
85
85
|
if (this.args.type === 'checkbox') {
|
|
86
86
|
return `pix-table-column--checkbox`;
|
|
87
87
|
}
|
|
88
|
+
if (this.args.type === 'tag') {
|
|
89
|
+
return `pix-table-column--tag`;
|
|
90
|
+
}
|
|
88
91
|
return '';
|
|
89
92
|
}
|
|
90
93
|
}
|
|
@@ -1,9 +1,15 @@
|
|
|
1
|
-
.pix-table-column {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
td.pix-table-column {
|
|
2
|
+
&--number {
|
|
3
|
+
text-align: left;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
&--checkbox {
|
|
7
|
+
width: 3.25rem;
|
|
8
|
+
}
|
|
5
9
|
|
|
6
|
-
|
|
7
|
-
|
|
10
|
+
&--tag {
|
|
11
|
+
padding-top: 0.875rem;
|
|
12
|
+
padding-bottom: 0.875rem;
|
|
13
|
+
text-align: left;
|
|
14
|
+
}
|
|
8
15
|
}
|
|
9
|
-
}
|
|
@@ -42,8 +42,9 @@
|
|
|
42
42
|
table {
|
|
43
43
|
width: 100%;
|
|
44
44
|
border-collapse: collapse;
|
|
45
|
+
}
|
|
45
46
|
|
|
46
|
-
|
|
47
|
+
tbody > tr:nth-of-type(even):not(.pix-table__clickable-row:hover, .pix-table__clickable-row:focus, .pix-table__clickable-row:active) {
|
|
47
48
|
background-color: rgba(var(--pix-neutral-20-inline), 0.80);
|
|
48
49
|
}
|
|
49
50
|
|
|
@@ -93,13 +94,15 @@
|
|
|
93
94
|
border-radius: 0 var(--pix-spacing-2x) var(--pix-spacing-2x) 0;
|
|
94
95
|
}
|
|
95
96
|
}
|
|
96
|
-
}
|
|
97
97
|
|
|
98
98
|
&--condensed {
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
99
|
+
th, td {
|
|
100
|
+
padding: .5rem var(--pix-spacing-4x);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
td.pix-table-column--tag {
|
|
104
|
+
padding-top: 0.375rem;
|
|
105
|
+
padding-bottom: 0.375rem;
|
|
103
106
|
}
|
|
104
107
|
}
|
|
105
108
|
}
|