@1024pix/pix-ui 54.0.1 → 54.1.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.
|
@@ -1,32 +1,42 @@
|
|
|
1
1
|
<div class="pix-filter-banner" ...attributes>
|
|
2
2
|
{{#if this.displayTitle}}
|
|
3
|
-
<
|
|
4
|
-
<
|
|
5
|
-
|
|
3
|
+
<p class="pix-filter-banner__title">
|
|
4
|
+
<PixIcon
|
|
5
|
+
@name="filter"
|
|
6
|
+
@plainIcon={{true}}
|
|
7
|
+
class="pix-filter-banner__icon-title"
|
|
8
|
+
aria-hidden="true"
|
|
9
|
+
/>
|
|
10
|
+
{{@title}}
|
|
11
|
+
</p>
|
|
6
12
|
{{/if}}
|
|
7
13
|
|
|
8
|
-
<div class="pix-filter-banner__container
|
|
9
|
-
|
|
10
|
-
|
|
14
|
+
<div class="pix-filter-banner__container">
|
|
15
|
+
<div class="pix-filter-banner__filter">
|
|
16
|
+
{{yield}}
|
|
17
|
+
</div>
|
|
11
18
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
19
|
+
{{#if this.displayActionMenu}}
|
|
20
|
+
<div class="pix-filter-banner__action">
|
|
21
|
+
{{#if this.displayDetails}}
|
|
22
|
+
<p class="pix-filter-banner__details">{{@details}}</p>
|
|
23
|
+
{{/if}}
|
|
17
24
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
25
|
+
{{#if this.displayClearFilters}}
|
|
26
|
+
<div class="pix-filter-banner__button-container">
|
|
27
|
+
<PixButton
|
|
28
|
+
@iconBefore="delete"
|
|
29
|
+
class="pix-filter-banner__button"
|
|
30
|
+
@variant="tertiary"
|
|
31
|
+
@size="small"
|
|
32
|
+
@triggerAction={{@onClearFilters}}
|
|
33
|
+
@isDisabled={{@isClearFilterButtonDisabled}}
|
|
34
|
+
>
|
|
35
|
+
{{@clearFiltersLabel}}
|
|
36
|
+
</PixButton>
|
|
37
|
+
</div>
|
|
38
|
+
{{/if}}
|
|
39
|
+
</div>
|
|
40
|
+
{{/if}}
|
|
41
|
+
</div>
|
|
32
42
|
</div>
|
|
@@ -1,46 +1,49 @@
|
|
|
1
1
|
@use "pix-design-tokens/breakpoints";
|
|
2
|
-
@use "pix-design-tokens/shadows";
|
|
3
2
|
|
|
4
3
|
.pix-filter-banner {
|
|
5
|
-
|
|
4
|
+
font-size: 0.875rem;
|
|
6
5
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
6
|
+
&__container {
|
|
7
|
+
position: relative;
|
|
8
|
+
display: flex;
|
|
9
|
+
flex-direction: column;
|
|
10
|
+
gap: var(--pix-spacing-2x);
|
|
11
|
+
width: 100%;
|
|
12
|
+
min-height: 64px;
|
|
13
|
+
}
|
|
15
14
|
|
|
16
15
|
&__title {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
display: flex;
|
|
17
|
+
align-items: center;
|
|
18
|
+
margin-bottom: var(--pix-spacing-1x);
|
|
19
|
+
color: var(--pix-neutral-800);
|
|
20
|
+
line-height: 20px;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&__icon-title {
|
|
24
|
+
width: 1rem;
|
|
25
|
+
height: 1rem;
|
|
20
26
|
}
|
|
21
27
|
|
|
22
|
-
&
|
|
28
|
+
&__filter {
|
|
23
29
|
display: flex;
|
|
24
30
|
flex-direction: column;
|
|
25
31
|
gap: var(--pix-spacing-4x);
|
|
26
32
|
}
|
|
27
33
|
|
|
28
|
-
&
|
|
34
|
+
&__action {
|
|
29
35
|
display: flex;
|
|
30
36
|
flex-direction: column;
|
|
31
|
-
align-items:
|
|
32
|
-
border-top: 1px solid var(--pix-neutral-20);
|
|
37
|
+
align-items: flex-end;
|
|
33
38
|
}
|
|
34
39
|
|
|
35
40
|
&__details {
|
|
36
|
-
|
|
37
|
-
padding: var(--pix-spacing-2x) 0 var(--pix-spacing-2x) 0;
|
|
38
|
-
color: var(--pix-neutral-500);
|
|
41
|
+
padding: 0;
|
|
39
42
|
font-weight: var(--pix-font-medium);
|
|
40
|
-
font-size: 0.875rem;
|
|
41
43
|
}
|
|
42
44
|
|
|
43
45
|
&__button {
|
|
46
|
+
padding: 0;
|
|
44
47
|
font-size: 0.875rem;
|
|
45
48
|
}
|
|
46
49
|
}
|
|
@@ -51,36 +54,17 @@
|
|
|
51
54
|
|
|
52
55
|
@include breakpoints.device-is('tablet') {
|
|
53
56
|
.pix-filter-banner {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
&__container-title {
|
|
59
|
-
display: flex;
|
|
57
|
+
&__container {
|
|
58
|
+
flex-direction: row;
|
|
59
|
+
gap: var(--pix-spacing-6x);
|
|
60
60
|
align-items: center;
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
&
|
|
63
|
+
&__filter {
|
|
64
64
|
flex-direction: row;
|
|
65
65
|
flex-grow: 2;
|
|
66
66
|
flex-wrap: wrap;
|
|
67
67
|
align-items: center;
|
|
68
68
|
}
|
|
69
|
-
|
|
70
|
-
&__container-action {
|
|
71
|
-
flex-direction: row;
|
|
72
|
-
border: none;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
&__details {
|
|
76
|
-
padding: 0 var(--pix-spacing-4x) 0 0;
|
|
77
|
-
text-align: center;
|
|
78
|
-
border: none;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
&__button-container {
|
|
82
|
-
padding-left: var(--pix-spacing-4x);
|
|
83
|
-
border-left: 1px solid var(--pix-neutral-20);
|
|
84
|
-
}
|
|
85
69
|
}
|
|
86
70
|
}
|