@phillips/seldon 1.39.0 → 1.40.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.
@@ -3,10 +3,6 @@ export interface FooterProps extends React.HTMLAttributes<HTMLElement> {
3
3
  * Copyright data added to bottom of site
4
4
  */
5
5
  copyright?: string;
6
- /**
7
- * Navigation items
8
- */
9
- navigationComponent: React.ReactElement;
10
6
  }
11
7
  /**
12
8
  * ## Overview
@@ -1,20 +1,21 @@
1
- import { jsxs as a, jsx as o } from "react/jsx-runtime";
2
- import i from "../../node_modules/classnames/index.js";
3
- import { px as e, defaultYear as m } from "../../utils/index.js";
4
- import f from "../SplitPanel/SplitPanel.js";
5
- import c from "../../assets/PhillipsLogo.svg.js";
6
- const _ = ({
7
- children: t,
8
- className: l,
1
+ import { jsxs as t, jsx as o } from "react/jsx-runtime";
2
+ import l from "../../node_modules/classnames/index.js";
3
+ import { px as r, defaultYear as m } from "../../utils/index.js";
4
+ import d from "../../assets/PhillipsLogo.svg.js";
5
+ import { TextVariants as f } from "../Text/types.js";
6
+ import c from "../Text/Text.js";
7
+ const $ = ({
8
+ children: a,
9
+ className: i,
9
10
  copyright: s = `© ${m} Phillips Auctioneers, LLC`,
10
- id: r
11
- }) => /* @__PURE__ */ a("footer", { "data-testid": r || "footer", id: r, className: i(`${e}-footer`, { className: l }), children: [
12
- /* @__PURE__ */ o(f, { className: `${e}-footer__content`, hasBorder: !1, children: t }),
13
- /* @__PURE__ */ a("div", { className: `${e}-footer__copyright`, children: [
14
- /* @__PURE__ */ o("h1", { "data-testid": "header-logo", className: `${e}-header__logo`, children: /* @__PURE__ */ o("a", { href: "/", "aria-label": "logo", children: /* @__PURE__ */ o(c, {}) }) }),
15
- s
11
+ id: e
12
+ }) => /* @__PURE__ */ t("footer", { "data-testid": e || "footer", id: e, className: l(`${r}-footer`, { className: i }), children: [
13
+ /* @__PURE__ */ o("div", { className: `${r}-footer__links`, children: a }),
14
+ /* @__PURE__ */ t("div", { className: `${r}-footer__copyright`, children: [
15
+ /* @__PURE__ */ o("h3", { "data-testid": "header-logo", className: `${r}-header__logo`, children: /* @__PURE__ */ o("a", { href: "/", "aria-label": "logo", children: /* @__PURE__ */ o(d, {}) }) }),
16
+ /* @__PURE__ */ o(c, { variant: f.body3, children: s })
16
17
  ] })
17
18
  ] });
18
19
  export {
19
- _ as default
20
+ $ as default
20
21
  };
@@ -1,23 +1,25 @@
1
- import { jsxs as c, jsx as r } from "react/jsx-runtime";
1
+ import { jsxs as c, jsx as t } from "react/jsx-runtime";
2
2
  import l from "../../node_modules/classnames/index.js";
3
- import { getCommonProps as u } from "../../utils/index.js";
4
- import N from "../Button/Button.js";
3
+ import { getCommonProps as f } from "../../utils/index.js";
4
+ import p from "../Button/Button.js";
5
5
  import { ButtonVariants as d } from "../Button/types.js";
6
- const v = ({
7
- className: e,
8
- children: t,
9
- titleText: a = "Never Miss A Moment",
6
+ import { TextVariants as u } from "../Text/types.js";
7
+ import N from "../Text/Text.js";
8
+ const S = ({
9
+ className: s,
10
+ children: a,
11
+ titleText: e = "Never Miss A Moment",
10
12
  buttonText: m = "Subscribe To Our Newsletter",
11
13
  onSubscribeClick: i,
12
- ...s
14
+ ...r
13
15
  }) => {
14
- const { className: o, ...n } = u(s, "Social");
15
- return /* @__PURE__ */ c("div", { ...n, className: l(o, e), ...s, children: [
16
- /* @__PURE__ */ r("h3", { className: `${o}__header`, children: a }),
17
- /* @__PURE__ */ r(N, { onClick: i, variant: d.ghost, className: `${o}__button`, children: m }),
18
- t
16
+ const { className: o, ...n } = f(r, "Social");
17
+ return /* @__PURE__ */ c("div", { ...n, className: l(o, s), ...r, children: [
18
+ /* @__PURE__ */ t(N, { variant: u.heading3, className: `${o}__header`, children: e }),
19
+ /* @__PURE__ */ t(p, { onClick: i, variant: d.ghost, className: `${o}__button`, children: m }),
20
+ a
19
21
  ] });
20
22
  };
21
23
  export {
22
- v as default
24
+ S as default
23
25
  };
@@ -64,11 +64,13 @@
64
64
  font-family: Montserrat, sans-serif;
65
65
 
66
66
  @if $label == 'link' {
67
+ color: $pure-black;
67
68
  font-size: $link-button-label-size;
68
69
  line-height: $link-label-line-height;
69
70
  font-weight: 600;
70
71
  letter-spacing: 1px;
71
- text-transform: capitalize;
72
+ text-transform: uppercase;
73
+ text-decoration: underline;
72
74
  }
73
75
 
74
76
  @if $label == 'button' {
@@ -249,7 +251,6 @@
249
251
  }
250
252
 
251
253
  @if $token == 'snwFlyoutLink' {
252
- font-family: $DistinctDisplay;
253
254
  font-weight: 400;
254
255
  letter-spacing: 1px;
255
256
  font-size: $snw-flyout-link-size;
@@ -108,6 +108,7 @@ $text-tokens: $button, $cta-sm, $cta-lg, $email, $label, $badge, $display0, $dis
108
108
  ///////////////////////
109
109
 
110
110
  :root {
111
+ --desktop-max-width: 120rem;
111
112
  --heading-size0: 3.25rem;
112
113
  --quote-size: 1.75rem;
113
114
  --quote-line-height: 2.25rem;
@@ -221,6 +222,8 @@ $text-tokens: $button, $cta-sm, $cta-lg, $email, $label, $badge, $display0, $dis
221
222
  }
222
223
  }
223
224
 
225
+ $desktop-max-width: var(--desktop-max-width);
226
+
224
227
  // DISPLAY
225
228
  $display-size0: var(--heading-size0);
226
229
  $display-size1: var(--heading-size1);
@@ -1,49 +1,59 @@
1
1
  @use '../../allPartials' as *;
2
2
 
3
3
  .#{$px}-footer {
4
+ align-items: center;
4
5
  background-color: $off-white;
6
+ display: flex;
7
+ flex-direction: column;
5
8
  margin: $spacing-lg 0 0;
6
- width: 100%;
9
+ max-width: 100%;
7
10
 
8
- &-desktop {
9
- display: none;
11
+ ul {
12
+ li {
13
+ a {
14
+ @include text('snwFlyoutLink');
15
+
16
+ &:hover {
17
+ text-decoration: underline;
18
+ }
19
+ }
20
+ }
21
+ }
22
+
23
+ &__links {
24
+ display: flex;
25
+ flex-direction: column;
26
+ margin: 0 auto;
27
+ max-width: 30rem;
28
+ padding: $spacing-lg $spacing-md $spacing-md $spacing-md;
29
+ width: 100%;
30
+
31
+ @include media($size-sm) {
32
+ flex-direction: row;
33
+ max-width: $desktop-max-width;
34
+ padding: $spacing-lg $spacing-md $spacing-lg $spacing-md;
35
+ }
10
36
 
11
37
  div {
12
38
  flex: 1;
13
- max-width: 18rem;
14
- padding: 1rem;
15
-
16
- h4 {
17
- color: $pure-black;
18
- font-family: $Distinct;
19
- font-size: 1rem;
20
- font-weight: 600;
21
- letter-spacing: 0.0625rem;
22
- margin-bottom: 0;
23
- padding-bottom: 0.5rem;
24
- }
39
+ }
40
+ }
25
41
 
26
- ul {
27
- li {
28
- a {
29
- font-size: 0.875rem;
30
- font-weight: 500;
31
- line-height: 1.875rem;
32
-
33
- &:hover {
34
- text-decoration: underline;
35
- }
36
- }
37
- }
42
+ &-desktop {
43
+ display: none;
44
+
45
+ @include media($size-sm) {
46
+ display: block;
47
+ }
48
+
49
+ h3.#{$px}-text {
50
+ @include media($size-sm) {
51
+ margin-bottom: $spacing-sm;
38
52
  }
39
53
  }
40
54
  }
41
55
 
42
56
  @include media($size-sm) {
43
- &-desktop {
44
- display: flex;
45
- }
46
-
47
57
  &-mobile {
48
58
  display: none;
49
59
  }
@@ -52,38 +62,28 @@
52
62
  .#{$px}-accordion {
53
63
  border-bottom: 1px solid #eae8e4;
54
64
  border-top: 1px solid #eae8e4;
65
+ margin-bottom: $spacing-md;
55
66
  width: 100%;
56
67
 
57
68
  &-item {
58
- padding: $spacing-sm 0 0;
59
-
60
- ul {
61
- li {
62
- a {
63
- font-size: 0.875rem;
64
- font-weight: 500;
65
- line-height: 1.875rem;
66
-
67
- &:hover {
68
- text-decoration: underline;
69
- }
70
- }
71
- }
69
+ padding: 0;
70
+
71
+ &--expanded {
72
+ margin-bottom: $spacing-md;
73
+ margin-top: 0;
74
+ padding: 0;
72
75
  }
73
76
 
74
77
  &-label {
75
78
  opacity: 1;
76
- padding: 0 0 0.5rem;
79
+ padding: $spacing-sm 0;
77
80
 
78
81
  @include media($size-sm) {
79
82
  cursor: unset;
80
83
  }
81
84
 
82
85
  &__text {
83
- color: $pure-black;
84
- font-family: $Distinct;
85
- font-size: 1rem;
86
- font-weight: 600;
86
+ @include text('snwHeaderLink');
87
87
  }
88
88
  }
89
89
 
@@ -93,92 +93,16 @@
93
93
  }
94
94
  }
95
95
 
96
- @include media($size-sm) {
97
- .#{$px}-accordion {
98
- border-bottom: 0;
99
- border-top: 0;
100
- width: 100%;
101
-
102
- &-item {
103
- border-bottom: 0;
104
- flex: 1;
105
- max-width: 18rem;
106
- padding: $spacing-sm;
107
-
108
- &-label__icon {
109
- display: none;
110
- }
111
- }
112
- }
113
- }
114
-
115
- ul {
116
- list-style: none;
117
- padding: 0;
118
- }
119
-
120
- &__content {
121
- align-items: center;
122
- display: flex;
123
- flex-direction: column;
124
- padding: $spacing-lg $spacing-md 0;
125
-
126
- @include media($size-sm) {
127
- align-items: flex-start;
128
- flex-direction: row;
129
- justify-content: space-between;
130
- }
131
-
132
- @include media($size-md) {
133
- padding: 3.75rem $spacing-lg;
134
- }
135
-
136
- @include media($size-lg) {
137
- padding: 3.75rem $spacing-xl;
138
- }
139
- }
140
-
141
- &__content-split-panel__left {
142
- margin-bottom: $spacing-md;
143
-
144
- @include media($size-sm) {
145
- margin-bottom: 0;
146
- }
147
- }
148
-
149
- &__content-split-panel__right {
150
- display: flex;
151
-
152
- @include media($size-sm) {
153
- justify-content: flex-end;
154
- }
155
- }
156
-
157
96
  &__copyright {
158
- @include text($body3);
159
-
160
97
  align-items: center;
161
98
  background-color: $white;
162
99
  display: flex;
163
100
  flex-direction: column;
164
- font-size: 1rem;
165
- gap: 1rem;
166
-
167
- // height: 2.125rem;
168
- justify-content: center;
169
- padding: $spacing-xsm 0;
101
+ width: 100%;
170
102
 
171
- h1 {
103
+ h3 {
104
+ margin-bottom: $spacing-sm;
172
105
  margin-top: $spacing-md;
173
106
  }
174
107
  }
175
-
176
- .#{$px}-split-panel {
177
- @include media($size-sm) {
178
- & > :last-child {
179
- flex: unset;
180
- width: unset;
181
- }
182
- }
183
- }
184
108
  }
@@ -101,39 +101,14 @@
101
101
  }
102
102
 
103
103
  &--link {
104
- border-bottom: 0;
105
- font-size: $link-button-label-size;
106
- font-weight: 600;
107
- letter-spacing: 1px;
108
- line-height: $link-label-line-height;
109
- text-decoration: underline;
110
-
111
- &:hover {
112
- border-bottom: 0;
113
- }
104
+ @include labelText('link');
114
105
  }
115
106
 
116
107
  &--snwHeaderLink {
117
- color: $pure-black;
118
-
119
- span {
120
- @include text($snwHeaderLink);
121
- }
122
-
123
- &:hover {
124
- color: $pure-black;
125
- }
108
+ @include labelText('snwHeaderLink');
126
109
  }
127
110
 
128
111
  &--snwFlyoutLink {
129
- color: $pure-black;
130
-
131
- span {
132
- @include text($snwFlyoutLink);
133
- }
134
-
135
- &:hover {
136
- color: $pure-black;
137
- }
112
+ @include labelText('snwFlyoutLink');
138
113
  }
139
114
  }
@@ -1,29 +1,34 @@
1
1
  @use '../../allPartials' as *;
2
2
 
3
3
  .#{$px}-social {
4
+ align-items: center;
4
5
  display: inline-flex;
5
6
  flex-direction: column;
7
+ margin-top: $spacing-md;
6
8
  padding: 0;
7
9
  width: 100%;
8
10
 
9
11
  @include media($size-sm) {
10
- align-items: center;
11
- padding: $spacing-sm;
12
- width: unset;
12
+ margin-top: 0;
13
13
  }
14
14
 
15
- &__button {
16
- color: $pure-black;
17
- font-size: 0.875rem;
18
- justify-content: flex-start;
19
- opacity: 1;
20
- padding: 0;
21
- text-decoration: underline;
22
- white-space: nowrap;
15
+ .#{$px}-text {
16
+ margin-bottom: $spacing-sm;
23
17
 
24
18
  @include media($size-sm) {
25
- justify-content: center;
19
+ margin-bottom: $spacing-sm;
26
20
  }
21
+ }
22
+
23
+ @include media($size-sm) {
24
+ align-items: flex-start;
25
+ }
26
+
27
+ &__button {
28
+ @include labelText('link');
29
+
30
+ padding: 0;
31
+ text-align: left;
27
32
 
28
33
  &:hover {
29
34
  background-color: unset;
@@ -36,31 +41,20 @@
36
41
  }
37
42
  }
38
43
 
39
- @include media($size-sm) {
40
- align-items: flex-end;
41
- }
42
-
43
- &__header {
44
- color: $pure-black;
45
- font-family: $Distinct;
46
- font-size: 1rem;
47
- font-weight: 600;
48
- letter-spacing: 0.0625rem;
49
- margin-bottom: 0.75rem;
50
- }
51
-
52
44
  ul {
53
45
  align-items: center;
54
46
  border-top: 1px solid #eae8e4;
55
47
  display: flex;
56
48
  gap: 0 1.25rem;
49
+ justify-content: center;
57
50
  list-style: none;
58
- margin: $spacing-md 0 $spacing-md;
59
- padding: $spacing-md 0 0;
51
+ margin: $spacing-md 0 0;
52
+ padding: $spacing-sm 0 0;
53
+ width: 100%;
60
54
 
61
55
  @include media($size-sm) {
62
56
  gap: 0 1rem;
63
- justify-content: flex-end;
57
+ justify-content: flex-start;
64
58
  margin: $spacing-sm 0 $spacing-md;
65
59
  padding: $spacing-sm 0 0;
66
60
  width: 100%;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@phillips/seldon",
3
- "version": "1.39.0",
3
+ "version": "1.40.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/PhillipsAuctionHouse/seldon"