@phillips/seldon 1.209.0 → 1.210.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.
@@ -3,7 +3,7 @@
3
3
  * Used to distinguish between different filter categories.
4
4
  */
5
5
  export declare enum FilterButtonType {
6
- Filter = "Filter",// Drawer filter
6
+ Filter = "Filters",// Drawer filter
7
7
  Sort = "Sort",// Sort filter
8
8
  Sale = "Sale",// Sale filter
9
9
  Departments = "Departments",// Departments filter
@@ -1,4 +1,4 @@
1
- var a = /* @__PURE__ */ ((r) => (r.Filter = "Filter", r.Sort = "Sort", r.Sale = "Sale", r.Departments = "Departments", r.Location = "Location", r.Month = "Month", r.Empty = "", r))(a || {}), h = /* @__PURE__ */ ((r) => (r.Filter = "Filter", r.Sort = "Sort", r.ChevronUp = "ChevronUp", r.ChevronDown = "ChevronDown", r))(h || {});
1
+ var a = /* @__PURE__ */ ((r) => (r.Filter = "Filters", r.Sort = "Sort", r.Sale = "Sale", r.Departments = "Departments", r.Location = "Location", r.Month = "Month", r.Empty = "", r))(a || {}), h = /* @__PURE__ */ ((r) => (r.Filter = "Filter", r.Sort = "Sort", r.ChevronUp = "ChevronUp", r.ChevronDown = "ChevronDown", r))(h || {});
2
2
  export {
3
3
  h as FilterButtonIconType,
4
4
  a as FilterButtonType
@@ -51,7 +51,7 @@ export declare const countActiveFilters: (filters?: FilterType[], buttonType?: s
51
51
  export declare const getFilterDimensions: (filters: {
52
52
  filterDimensions: Set<FilterDimension>;
53
53
  }[] | undefined, filterIndex: number | undefined) => FilterDimension[];
54
- export declare const getIcon: (type: FilterButtonIconType, isSelected: boolean) => "ChevronDown" | "ChevronUp" | "Filters";
54
+ export declare const getIcon: (type: FilterButtonIconType, isSelected: boolean) => "ChevronDown" | "Filters" | "ChevronUp";
55
55
  export declare const getFilterButtonClickHandler: (filtersListState: boolean[] | undefined, handleClick: ((state: boolean[]) => void) | undefined, filterId: number) => () => void;
56
56
  export declare function handleInputChange(e: React.ChangeEvent<HTMLInputElement | HTMLSelectElement>, buttonType: string, handleFilterSelection?: (e: React.ChangeEvent<HTMLInputElement | HTMLSelectElement>, filterType: string) => void): void;
57
57
  /**
@@ -99,7 +99,6 @@
99
99
 
100
100
  &--ep2 {
101
101
  padding: 2rem;
102
- padding-top: $spacing-xl;
103
102
  }
104
103
 
105
104
  &--ep3 {
@@ -51,8 +51,10 @@
51
51
  select.#{$px}-input {
52
52
  &__select {
53
53
  &--tertiary {
54
- border: 0;
54
+ border: 1.5px solid $black-100;
55
+ border-radius: $radius-3xl;
55
56
  color: inherit;
57
+ padding: $spacing-xsm $spacing-md $spacing-xsm $spacing-sm;
56
58
 
57
59
  &:hover {
58
60
  cursor: pointer;
@@ -60,8 +62,9 @@
60
62
 
61
63
  &:focus-visible {
62
64
  background-color: $pure-white;
63
- outline-color: $soft-black;
64
- outline-offset: 4.5px;
65
+ border-radius: $radius-3xl;
66
+ box-shadow: 0 0 0 0.5px $black-100;
67
+ outline: none;
65
68
  }
66
69
 
67
70
  svg {
@@ -14,9 +14,9 @@
14
14
 
15
15
  .#{$px}-tag {
16
16
  border: 1px solid $black-100;
17
- border-radius: $radius-2xl;
17
+ border-radius: $radius-3xl;
18
18
  gap: $spacing-micro;
19
- padding: $spacing-micro $spacing-xsm $spacing-micro $spacing-sm;
19
+ padding: $spacing-xsm $spacing-sm;
20
20
  transition: border-color 0.25s;
21
21
 
22
22
  &__icon {
@@ -1,20 +1,20 @@
1
1
  @use '../../allPartials' as *;
2
2
 
3
3
  .#{$px}-filter-button {
4
- border: 1px solid $light-gray;
4
+ border: 1.5px solid $light-gray;
5
5
  gap: 4px;
6
- padding: $spacing-xsm $spacing-xsm;
6
+ padding: $spacing-xsm $spacing-sm;
7
7
 
8
8
  &--selected {
9
- border: 1px solid $pure-black;
9
+ border: 1.5px solid $black-100;
10
10
  }
11
11
 
12
12
  &--filter {
13
- border-radius: $radius-sm;
13
+ border-radius: $radius-3xl;
14
14
  }
15
15
 
16
16
  &--count {
17
- background: $pure-black;
17
+ background: $black-100;
18
18
  border: 2px solid $white-100;
19
19
  border-radius: $radius-3xl;
20
20
  color: $white-100;
@@ -1,5 +1,7 @@
1
1
  @use '../../allPartials' as *;
2
2
 
3
+ $dropdown-height: 240px;
4
+
3
5
  .#{$px}-filter-dropdown-menu {
4
6
  background: $white-100;
5
7
  border-radius: $radius-sm;
@@ -7,18 +9,24 @@
7
9
  display: flex;
8
10
  flex-direction: column;
9
11
  min-width: 100%;
10
- padding: $spacing-md;
12
+ padding: $spacing-sm 0;
11
13
 
12
14
  &__filters {
13
15
  display: flex;
14
16
  flex-direction: column;
15
- gap: $spacing-xsm;
16
- max-height: 25vh;
17
+ gap: $spacing-sm;
18
+ max-height: $dropdown-height;
17
19
  overflow-y: auto;
20
+ padding: 0 $spacing-sm;
21
+ padding-bottom: $spacing-sm;
18
22
 
19
23
  &--mobile {
20
24
  padding: 0 $spacing-md $spacing-md;
21
25
  }
26
+
27
+ @media (min-width: $breakpoint-xl) {
28
+ max-height: calc($dropdown-height + $spacing-sm);
29
+ }
22
30
  }
23
31
 
24
32
  &__button-wrap {
@@ -27,10 +35,11 @@
27
35
  }
28
36
 
29
37
  &__buttons-wrap {
38
+ border-top: 1px solid $bg-border;
30
39
  display: flex;
31
40
  gap: $spacing-sm;
32
41
  justify-content: space-between;
33
- margin-top: $spacing-sm;
42
+ padding: $spacing-sm $spacing-sm 0 $spacing-sm;
34
43
 
35
44
  &--drawer {
36
45
  box-shadow: 0 -4px 8px -4px $medium-gray;
@@ -117,6 +126,7 @@
117
126
  display: flex;
118
127
  flex-direction: row;
119
128
  justify-content: space-between;
129
+ max-height: 2rem;
120
130
  }
121
131
 
122
132
  &__label {
@@ -134,6 +144,10 @@
134
144
  }
135
145
  }
136
146
 
147
+ .#{$px}-filter-dropdown-menu .#{$px}-filter-input__input__wrapper {
148
+ max-height: 2rem;
149
+ }
150
+
137
151
  .#{$px}-filter-drawer-mobile {
138
152
  padding: 0;
139
153
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@phillips/seldon",
3
- "version": "1.209.0",
3
+ "version": "1.210.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/PhillipsAuctionHouse/seldon"