@1024pix/pix-ui 54.0.1 → 54.1.1

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
- <div class="pix-filter-banner__container-title">
4
- <p class="pix-filter-banner__title">{{@title}}</p>
5
- </div>
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-filter">
9
- {{yield}}
10
- </div>
14
+ <div class="pix-filter-banner__container">
15
+ <div class="pix-filter-banner__filter">
16
+ {{yield}}
17
+ </div>
11
18
 
12
- {{#if this.displayActionMenu}}
13
- <div class="pix-filter-banner__container-action">
14
- {{#if this.displayDetails}}
15
- <p class="pix-filter-banner__details">{{@details}}</p>
16
- {{/if}}
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
- {{#if this.displayClearFilters}}
19
- <div class="pix-filter-banner__button-container">
20
- <PixButton
21
- class="pix-filter-banner__button"
22
- @size="small"
23
- @triggerAction={{@onClearFilters}}
24
- @isDisabled={{@isClearFilterButtonDisabled}}
25
- >
26
- {{@clearFiltersLabel}}
27
- </PixButton>
28
- </div>
29
- {{/if}}
30
- </div>
31
- {{/if}}
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
- @extend %pix-shadow-sm;
4
+ font-size: 0.875rem;
6
5
 
7
- position: relative;
8
- display: flex;
9
- flex-direction: column;
10
- gap: var(--pix-spacing-2x);
11
- width: 100%;
12
- min-height: 64px;
13
- padding: var(--pix-spacing-4x) var(--pix-spacing-6x);
14
- background-color: var(--pix-neutral-0);
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
- margin: 0;
18
- color: var(--pix-neutral-500);
19
- font-size: 0.875rem;
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
- &__container-filter {
28
+ &__filter {
23
29
  display: flex;
24
30
  flex-direction: column;
25
31
  gap: var(--pix-spacing-4x);
26
32
  }
27
33
 
28
- &__container-action {
34
+ &__action {
29
35
  display: flex;
30
36
  flex-direction: column;
31
- align-items: center;
32
- border-top: 1px solid var(--pix-neutral-20);
37
+ align-items: flex-end;
33
38
  }
34
39
 
35
40
  &__details {
36
- margin: 0;
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
- flex-direction: row;
55
- gap: var(--pix-spacing-6x);
56
- align-items: center;
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
- &__container-filter {
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@1024pix/pix-ui",
3
- "version": "54.0.1",
3
+ "version": "54.1.1",
4
4
  "description": "Pix-UI is the implementation of Pix design principles and guidelines for its products.",
5
5
  "keywords": [
6
6
  "ember-addon"
@@ -74,7 +74,7 @@
74
74
  "devDependencies": {
75
75
  "@1024pix/ember-testing-library": "^3.0.6",
76
76
  "@1024pix/eslint-plugin": "^2.0.4",
77
- "@1024pix/stylelint-config": "^5.1.26",
77
+ "@1024pix/stylelint-config": "^5.1.27",
78
78
  "@babel/eslint-parser": "^7.26.5",
79
79
  "@babel/plugin-proposal-decorators": "^7.24.7",
80
80
  "@ember/optional-features": "^2.2.0",