@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.
- package/dist/patterns/FiltersInline/types.d.ts +1 -1
- package/dist/patterns/FiltersInline/types.js +1 -1
- package/dist/patterns/FiltersInline/utils.d.ts +1 -1
- package/dist/scss/components/Drawer/_drawer.scss +0 -1
- package/dist/scss/components/Select/_select.scss +6 -3
- package/dist/scss/components/Tags/_tags.scss +2 -2
- package/dist/scss/patterns/FiltersInline/_filterButton.scss +5 -5
- package/dist/scss/patterns/FiltersInline/_filterDropdownMenu.scss +18 -4
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Used to distinguish between different filter categories.
|
|
4
4
|
*/
|
|
5
5
|
export declare enum FilterButtonType {
|
|
6
|
-
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 = "
|
|
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" | "
|
|
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
|
/**
|
|
@@ -51,8 +51,10 @@
|
|
|
51
51
|
select.#{$px}-input {
|
|
52
52
|
&__select {
|
|
53
53
|
&--tertiary {
|
|
54
|
-
border:
|
|
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
|
-
|
|
64
|
-
|
|
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-
|
|
17
|
+
border-radius: $radius-3xl;
|
|
18
18
|
gap: $spacing-micro;
|
|
19
|
-
padding: $spacing-
|
|
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:
|
|
4
|
+
border: 1.5px solid $light-gray;
|
|
5
5
|
gap: 4px;
|
|
6
|
-
padding: $spacing-xsm $spacing-
|
|
6
|
+
padding: $spacing-xsm $spacing-sm;
|
|
7
7
|
|
|
8
8
|
&--selected {
|
|
9
|
-
border:
|
|
9
|
+
border: 1.5px solid $black-100;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
&--filter {
|
|
13
|
-
border-radius: $radius-
|
|
13
|
+
border-radius: $radius-3xl;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
&--count {
|
|
17
|
-
background: $
|
|
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-
|
|
12
|
+
padding: $spacing-sm 0;
|
|
11
13
|
|
|
12
14
|
&__filters {
|
|
13
15
|
display: flex;
|
|
14
16
|
flex-direction: column;
|
|
15
|
-
gap: $spacing-
|
|
16
|
-
max-height:
|
|
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
|
-
|
|
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
|
}
|