@phillips/seldon 1.38.6 → 1.39.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.
@@ -12,5 +12,11 @@ export declare enum LinkVariants {
12
12
  /** link is being rendered in a nav bar flyout*/
13
13
  navLinkLg = "navLinkLg",
14
14
  /** link is being rendered in a nav bar flyout*/
15
- navLinkSm = "navLinkSm"
15
+ navLinkSm = "navLinkSm",
16
+ /** link is being rendered in a footer */
17
+ link = "link",
18
+ /** link is being rendered in a footer|header */
19
+ snwHeaderLink = "snwHeaderLink",
20
+ /** link is being rendered in a footer|header */
21
+ snwFlyoutLink = "snwFlyoutLink"
16
22
  }
@@ -1,4 +1,4 @@
1
- var e = /* @__PURE__ */ ((n) => (n.standalone = "standalone", n.email = "email", n.list = "list", n.inline = "inline", n.navMain = "navMain", n.navLinkLg = "navLinkLg", n.navLinkSm = "navLinkSm", n))(e || {});
1
+ var e = /* @__PURE__ */ ((n) => (n.standalone = "standalone", n.email = "email", n.list = "list", n.inline = "inline", n.navMain = "navMain", n.navLinkLg = "navLinkLg", n.navLinkSm = "navLinkSm", n.link = "link", n.snwHeaderLink = "snwHeaderLink", n.snwFlyoutLink = "snwFlyoutLink", n))(e || {});
2
2
  export {
3
3
  e as LinkVariants
4
4
  };
@@ -5,12 +5,20 @@ export declare enum TextVariants {
5
5
  display3 = "display3",
6
6
  display4 = "display4",
7
7
  blockquote = "blockquote",
8
+ heading1 = "heading1",
8
9
  heading2 = "heading2",
9
10
  heading3 = "heading3",
10
11
  heading4 = "heading4",
12
+ title1 = "title1",
13
+ title2 = "title2",
14
+ title3 = "title3",
15
+ title4 = "title4",
11
16
  body1 = "body1",
12
17
  body2 = "body2",
13
18
  body3 = "body3",
19
+ string1 = "string1",
20
+ string2 = "string2",
21
+ string3 = "string3",
14
22
  button = "button",
15
23
  ctaLg = "ctaLg",
16
24
  ctaSm = "ctaSm",
@@ -1,4 +1,4 @@
1
- var l = /* @__PURE__ */ ((d) => (d.display0 = "display0", d.display1 = "display1", d.display2 = "display2", d.display3 = "display3", d.display4 = "display4", d.blockquote = "blockquote", d.heading2 = "heading2", d.heading3 = "heading3", d.heading4 = "heading4", d.body1 = "body1", d.body2 = "body2", d.body3 = "body3", d.button = "button", d.ctaLg = "ctaLg", d.ctaSm = "ctaSm", d.email = "email", d.label = "label", d.badge = "badge", d))(l || {});
1
+ var l = /* @__PURE__ */ ((d) => (d.display0 = "display0", d.display1 = "display1", d.display2 = "display2", d.display3 = "display3", d.display4 = "display4", d.blockquote = "blockquote", d.heading1 = "heading1", d.heading2 = "heading2", d.heading3 = "heading3", d.heading4 = "heading4", d.title1 = "title1", d.title2 = "title2", d.title3 = "title3", d.title4 = "title4", d.body1 = "body1", d.body2 = "body2", d.body3 = "body3", d.string1 = "string1", d.string2 = "string2", d.string3 = "string3", d.button = "button", d.ctaLg = "ctaLg", d.ctaSm = "ctaSm", d.email = "email", d.label = "label", d.badge = "badge", d))(l || {});
2
2
  export {
3
3
  l as TextVariants
4
4
  };
@@ -38,30 +38,44 @@
38
38
  padding-bottom: $padding;
39
39
  }
40
40
 
41
- @mixin hText($size: $heading-size1, $color: $primary-black, $transform-style: capitalize) {
41
+ @mixin hText(
42
+ $size: $heading-size1,
43
+ $color: $pure-black,
44
+ $transform-style: capitalize,
45
+ $line-height: $heading-line-height-size1
46
+ ) {
42
47
  color: $color;
43
48
  font-family: DistinctDisplay, sans-serif;
44
49
  font-size: $size;
45
50
  font-weight: 400;
46
- line-height: 1.25;
51
+ line-height: $line-height;
52
+ text-decoration: none;
47
53
  text-transform: $transform-style;
48
54
  }
49
55
 
50
- @mixin pText($size: $body-size1, $color: $soft-black) {
56
+ @mixin pText($size: $body-size1, $color: $pure-black, $line-height: 1.5) {
51
57
  color: $color;
52
58
  font-family: Montserrat, sans-serif;
53
59
  font-size: $size;
54
- letter-spacing: 0.0625rem;
55
- line-height: 1.5;
60
+ line-height: $line-height;
56
61
  }
57
62
 
58
63
  @mixin labelText($label) {
59
64
  font-family: Montserrat, sans-serif;
60
65
 
66
+ @if $label == 'link' {
67
+ font-size: $link-button-label-size;
68
+ line-height: $link-label-line-height;
69
+ font-weight: 600;
70
+ letter-spacing: 1px;
71
+ text-transform: capitalize;
72
+ }
73
+
61
74
  @if $label == 'button' {
62
- font-size: $button-label-size;
63
- font-weight: 500;
64
- letter-spacing: 0.0625rem;
75
+ font-size: $link-button-label-size;
76
+ line-height: $button-label-line-height;
77
+ font-weight: 600;
78
+ letter-spacing: 0;
65
79
  text-transform: capitalize;
66
80
  }
67
81
 
@@ -98,9 +112,9 @@
98
112
 
99
113
  @if $label == 'badge' {
100
114
  font-size: $badge-label-size;
115
+ line-height: $badge-label-line-height;
101
116
  font-weight: 500;
102
- letter-spacing: 0.1875rem;
103
- line-height: 1.25;
117
+ letter-spacing: 0;
104
118
  text-transform: uppercase;
105
119
  }
106
120
  }
@@ -111,6 +125,10 @@
111
125
  @include labelText($button);
112
126
  }
113
127
 
128
+ @if $token == 'link' {
129
+ @include labelText($link);
130
+ }
131
+
114
132
  @if $token == 'cta-sm' {
115
133
  @include labelText($cta-sm);
116
134
  }
@@ -154,31 +172,88 @@
154
172
 
155
173
  // Headings
156
174
  @if $token == 'blockquote' {
157
- @include hText($heading-size1, $color: $primary-black, $transform-style: initial);
175
+ @include hText(
176
+ $heading-size1,
177
+ $color: $primary-black,
178
+ $transform-style: initial,
179
+ $line-height: $heading-line-height-size1
180
+ );
181
+ }
182
+
183
+ @if $token == 'heading1' {
184
+ @include hText($heading-size1, $line-height: $heading-line-height-size1, $transform-style: capitalize);
158
185
  }
159
186
 
160
187
  @if $token == 'heading2' {
161
- @include hText($heading-size2);
188
+ @include hText($heading-size2, $line-height: $heading-line-height-size2, $transform-style: capitalize);
162
189
  }
163
190
 
164
191
  @if $token == 'heading3' {
165
- @include hText($heading-size3);
192
+ @include hText($heading-size3, $line-height: $heading-line-height-size3, $transform-style: capitalize);
166
193
  }
167
194
 
168
195
  @if $token == 'heading4' {
169
- @include hText($heading-size4);
196
+ @include hText($heading-size4, $line-height: $heading-line-height-size4, $transform-style: capitalize);
197
+ }
198
+
199
+ @if $token == 'title1' {
200
+ @include hText($heading-size1, $line-height: $heading-line-height-size1, $transform-style: uppercase);
201
+ }
202
+
203
+ @if $token == 'title2' {
204
+ @include hText($heading-size2, $line-height: $heading-line-height-size2, $transform-style: uppercase);
205
+ }
206
+
207
+ @if $token == 'title3' {
208
+ @include hText($heading-size3, $line-height: $heading-line-height-size3, $transform-style: uppercase);
209
+ }
210
+
211
+ @if $token == 'title4' {
212
+ @include hText($heading-size4, $line-height: $heading-line-height-size4, $transform-style: uppercase);
170
213
  }
171
214
 
172
215
  // Body
173
216
  @if $token == 'body1' {
174
- @include pText($body-size1);
217
+ @include pText($body-size1, $line-height: $body-line-height-size1);
175
218
  }
176
219
 
177
220
  @if $token == 'body2' {
178
- @include pText($body-size2);
221
+ @include pText($body-size2, $line-height: $body-line-height-size2);
179
222
  }
180
223
 
181
224
  @if $token == 'body3' {
182
- @include pText($body-size3);
225
+ @include pText($body-size3, $line-height: $body-line-height-size3);
226
+ }
227
+
228
+ // String
229
+ @if $token == 'string1' {
230
+ @include pText($string-size1, $line-height: $string-line-height-size1);
231
+ }
232
+
233
+ @if $token == 'string2' {
234
+ @include pText($string-size2, $line-height: $string-line-height-size2);
235
+ }
236
+
237
+ @if $token == 'string3' {
238
+ @include pText($string-size3, $line-height: $string-line-height-size3);
239
+ }
240
+
241
+ // SNW
242
+ @if $token == 'snwHeaderLink' {
243
+ font-family: $DistinctDisplay;
244
+ font-weight: 400;
245
+ letter-spacing: 1px;
246
+ font-size: $snw-header-link-size;
247
+ line-height: $snw-header-link-line-height;
248
+ text-transform: uppercase;
249
+ }
250
+
251
+ @if $token == 'snwFlyoutLink' {
252
+ font-family: $DistinctDisplay;
253
+ font-weight: 400;
254
+ letter-spacing: 1px;
255
+ font-size: $snw-flyout-link-size;
256
+ line-height: $snw-flyout-link-line-height;
257
+ text-transform: capitalize;
183
258
  }
184
259
  }
@@ -71,25 +71,37 @@ $text-family: $DistinctText;
71
71
  // Used with the labelText mixin
72
72
  // @include labelText($label)
73
73
  $button: 'button';
74
+ $link: 'link';
75
+ $badge: 'badge';
74
76
  $cta-sm: 'cta-sm';
75
77
  $cta-lg: 'cta-lg';
76
78
  $email: 'email';
77
79
  $label: 'label';
78
- $badge: 'badge';
79
80
  $display0: 'display0';
80
81
  $display1: 'display1';
81
82
  $display2: 'display2';
82
83
  $display3: 'display3';
83
84
  $display4: 'display4';
84
85
  $blockquote: 'blockquote';
86
+ $heading1: 'heading1';
85
87
  $heading2: 'heading2';
86
88
  $heading3: 'heading3';
87
89
  $heading4: 'heading4';
90
+ $title1: 'title1';
91
+ $title2: 'title2';
92
+ $title3: 'title3';
93
+ $title4: 'title4';
88
94
  $body1: 'body1';
89
95
  $body2: 'body2';
90
96
  $body3: 'body3';
97
+ $string1: 'string1';
98
+ $string2: 'string2';
99
+ $string3: 'string3';
100
+ $snwHeaderLink: 'snwHeaderLink';
101
+ $snwFlyoutLink: 'snwFlyoutLink';
91
102
  $text-tokens: $button, $cta-sm, $cta-lg, $email, $label, $badge, $display0, $display1, $display2, $display3, $display4,
92
- $blockquote, $heading2, $heading3, $heading4, $body1, $body2, $body3;
103
+ $blockquote, $heading1, $heading2, $heading3, $heading4, $title1, $title2, $title3, $title4, $body1, $body2, $body3,
104
+ $string1, $string2, $string3;
93
105
 
94
106
  ////////////////////////
95
107
  /// FONT SIZE TOKENS:
@@ -97,42 +109,115 @@ $text-tokens: $button, $cta-sm, $cta-lg, $email, $label, $badge, $display0, $dis
97
109
 
98
110
  :root {
99
111
  --heading-size0: 3.25rem;
100
- --heading-size1: 2.44rem;
101
- --heading-size2: 1.95rem;
102
- --heading-size3: 1.56rem;
103
- --heading-size4: 1.56rem;
112
+ --quote-size: 1.75rem;
113
+ --quote-line-height: 2.25rem;
114
+ --heading-size1: 1.75rem;
115
+ --heading-line-height-size1: 2rem;
116
+ --heading-size2: 1.5rem;
117
+ --heading-line-height-size2: 1.75rem;
118
+ --heading-size3: 1.25rem;
119
+ --heading-line-height-size3: 1.5rem;
120
+ --heading-size4: 1rem;
121
+ --heading-line-height-size4: 1.25rem;
122
+ --string-size1: 1.25rem;
123
+ --string-line-height-size1: 1.5rem;
124
+ --string-size2: 1rem;
125
+ --string-line-height-size2: 1.25rem;
126
+ --string-size3: 0.75rem;
127
+ --string-line-height-size3: 1rem;
104
128
  --body-size1: 1.25rem;
129
+ --body-line-height-size1: 1.75rem;
105
130
  --body-size2: 1rem;
131
+ --body-line-height-size2: 1.5rem;
106
132
  --body-size3: 0.75rem;
133
+ --body-line-height-size3: 1.25rem;
107
134
  --label-size1: 1.25rem;
108
135
  --label-size2: 1rem;
109
136
  --label-size3: 0.75rem;
137
+ --link-button-label-size: 1rem;
138
+ --link-label-line-height: 1rem;
139
+ --button-label-line-height: 1.25rem;
140
+ --badge-label-size: 0.75rem;
141
+ --badge-label-line-height: 1rem;
142
+ --snw-header-link-size: 0.875rem;
143
+ --snw-header-link-line-height: 1.5rem;
144
+ --snw-flyout-link-size: 0.875rem;
145
+ --snw-flyout-link-line-height: 1.75rem;
110
146
 
111
147
  @media (max-width: 960px) {
112
148
  --heading-size0: 2.59rem;
113
- --heading-size1: 1.83rem;
114
- --heading-size2: 1.46rem;
115
- --heading-size3: 1.17rem;
116
- --heading-size4: 0.94rem;
117
- --body-size1: 0.94rem;
149
+ --quote-size: 1.5rem;
150
+ --quote-line-height: 2rem;
151
+ --heading-size1: 1.5rem;
152
+ --heading-line-height-size1: 1.75rem;
153
+ --heading-size2: 1.25rem;
154
+ --heading-line-height-size2: 1.5rem;
155
+ --heading-size3: 1rem;
156
+ --heading-line-height-size3: 1.25rem;
157
+ --heading-size4: 0.75rem;
158
+ --heading-line-height-size4: 1rem;
159
+ --string-size1: 1rem;
160
+ --string-line-height-size1: 1.25rem;
161
+ --string-size2: 0.75rem;
162
+ --string-line-height-size2: 1rem;
163
+ --string-size3: 0.5rem;
164
+ --string-line-height-size3: 0.75rem;
165
+ --body-size1: 1rem;
166
+ --body-line-height-size1: 1.5rem;
118
167
  --body-size2: 0.75rem;
119
- --body-size3: 0.56rem;
168
+ --body-line-height-size2: 1.25rem;
169
+ --body-size3: 0.5rem;
170
+ --body-line-height-size3: 1rem;
120
171
  --label-size1: 1rem;
121
172
  --label-size2: 0.75rem;
122
173
  --label-size3: 0.56rem;
174
+ --link-button-label-size: 0.75rem;
175
+ --link-label-line-height: 0.75rem;
176
+ --button-label-line-height: 1rem;
177
+ --badge-label-size: 0.5rem;
178
+ --badge-label-line-height: 0.67rem;
179
+ --snw-header-link-size: 1rem;
180
+ --snw-header-link-line-height: 1.5rem;
181
+ --snw-flyout-link-size: 1rem;
182
+ --snw-flyout-link-line-height: 1.75rem;
123
183
  }
124
184
 
125
185
  @media (min-width: 1801px) {
126
186
  --heading-size0: 4.06rem;
127
- --heading-size1: 3.05rem;
128
- --heading-size2: 2.44rem;
129
- --heading-size3: 1.95rem;
130
- --body-size1: 1.56rem;
187
+ --quote-size: 2rem;
188
+ --quote-line-height: 2.5rem;
189
+ --heading-size1: 2rem;
190
+ --heading-line-height-size1: 2.25rem;
191
+ --heading-size2: 1.75rem;
192
+ --heading-line-height-size2: 2rem;
193
+ --heading-size3: 1.5rem;
194
+ --heading-line-height-size3: 1.75rem;
195
+ --heading-size4: 1.25rem;
196
+ --heading-line-height-size4: 1.5rem;
197
+ --string-size1: 1.5rem;
198
+ --string-line-height-size1: 1.75rem;
199
+ --string-size2: 1.25rem;
200
+ --string-line-height-size2: 1.5rem;
201
+ --string-size3: 1rem;
202
+ --string-line-height-size3: 1.25rem;
203
+ --body-size1: 1.5rem;
204
+ --body-line-height-size1: 2rem;
131
205
  --body-size2: 1.25rem;
132
- --body-size3: 0.94rem;
206
+ --body-line-height-size2: 1.75rem;
207
+ --body-size3: 1rem;
208
+ --body-line-height-size3: 1.5rem;
133
209
  --label-size1: 1.56rem;
134
210
  --label-size2: 1.25rem;
135
211
  --label-size3: 1rem;
212
+ --link-button-label-size: 1.25rem;
213
+ --link-label-line-height: 1.25rem;
214
+ --button-label-line-height: 1.5rem;
215
+ --badge-label-size: 1rem;
216
+ --badge-label-line-height: 1.5rem;
217
+ --snw-header-link-size: 1.125rem;
218
+ --snw-header-link-line-height: 1.75rem;
219
+ --snw-flyout-link-size: 1.125rem;
220
+ --snw-flyout-link-line-height: 2.125rem;
136
221
  }
137
222
  }
138
223
 
@@ -145,14 +230,29 @@ $display-size4: var(--heading-size4);
145
230
 
146
231
  // HEADING
147
232
  $heading-size1: var(--heading-size1);
233
+ $heading-line-height-size1: var(--heading-line-height-size1);
148
234
  $heading-size2: var(--heading-size2);
235
+ $heading-line-height-size2: var(--heading-line-height-size2);
149
236
  $heading-size3: var(--heading-size3);
237
+ $heading-line-height-size3: var(--heading-line-height-size3);
150
238
  $heading-size4: var(--heading-size4);
239
+ $heading-line-height-size4: var(--heading-line-height-size4);
151
240
 
152
241
  // BODY
153
242
  $body-size1: var(--body-size1);
243
+ $body-line-height-size1: var(--body-line-height-size1);
154
244
  $body-size2: var(--body-size2);
245
+ $body-line-height-size2: var(--body-line-height-size2);
155
246
  $body-size3: var(--body-size3);
247
+ $body-line-height-size3: var(--body-line-height-size3);
248
+
249
+ // STRING
250
+ $string-size1: var(--string-size1);
251
+ $string-line-height-size1: var(--string-line-height-size1);
252
+ $string-size2: var(--string-size2);
253
+ $string-line-height-size2: var(--string-line-height-size2);
254
+ $string-size3: var(--string-size3);
255
+ $string-line-height-size3: var(--string-line-height-size3);
156
256
 
157
257
  // LABELS
158
258
  $button-label-size: var(--label-size2);
@@ -161,6 +261,15 @@ $email-label-size: var(--label-size2);
161
261
  $cta-lg-label-size: var(--label-size1);
162
262
  $text-label-size: var(--label-size3);
163
263
  $badge-label-size: var(--label-size3);
264
+ $link-button-label-size: var(--link-button-label-size);
265
+ $link-label-line-height: var(--link-label-line-height);
266
+ $button-label-line-height: var(--button-label-line-height);
267
+ $badge-label-size: var(--badge-label-size);
268
+ $badge-label-line-height: var(--badge-label-line-height);
269
+ $snw-header-link-size: var(--snw-header-link-size);
270
+ $snw-header-link-line-height: var(--snw-header-link-line-height);
271
+ $snw-flyout-link-size: var(--snw-flyout-link-size);
272
+ $snw-flyout-link-line-height: var(--snw-flyout-link-line-height);
164
273
 
165
274
  ////////////////////////
166
275
  /// SPACING TOKENS:
@@ -172,24 +281,24 @@ $badge-label-size: var(--label-size3);
172
281
  --spacing-sm: 1rem;
173
282
  --spacing-md: 2rem;
174
283
  --spacing-lg: 3rem;
175
- --spacing-xl: 6rem;
284
+ --spacing-xl: 4rem;
176
285
 
177
286
  @media (max-width: 960px) {
178
- --spacing-micro: 0.19rem;
179
- --spacing-xsm: 0.38rem;
287
+ --spacing-micro: 0.25;
288
+ --spacing-xsm: 0.5rem;
180
289
  --spacing-sm: 0.75rem;
181
- --spacing-md: 1.5rem;
182
- --spacing-lg: 2.25rem;
183
- --spacing-xl: 4.8rem;
290
+ --spacing-md: 1.75rem;
291
+ --spacing-lg: 2.75rem;
292
+ --spacing-xl: 3.75rem;
184
293
  }
185
294
 
186
295
  @media (min-width: 1801px) {
187
- --spacing-micro: 0.31rem;
188
- --spacing-xsm: 0.63rem;
296
+ --spacing-micro: 0.5rem;
297
+ --spacing-xsm: 0.75rem;
189
298
  --spacing-sm: 1.25rem;
190
299
  --spacing-md: 2.5rem;
191
300
  --spacing-lg: 3.75rem;
192
- --spacing-xl: 7.5rem;
301
+ --spacing-xl: 5rem;
193
302
  }
194
303
  }
195
304
 
@@ -5,8 +5,8 @@
5
5
  text-decoration: none;
6
6
  white-space: nowrap;
7
7
 
8
- &:hover:not(&--list, &--navMain, &--navLinkLg, &--navLinkSm),
9
- &:focus:not(&--list, &--navMain, &--navLinkLg, &--navLinkSm) {
8
+ &:hover:not(&--list, &--navMain, &--navLinkLg, &--navLinkSm, &--link, &--snwHeaderLink, &--snwFlyoutLink),
9
+ &:focus:not(&--list, &--navMain, &--navLinkLg, &--navLinkSm, &--link, &--snwHeaderLink, &--snwFlyoutLink) {
10
10
  @include underline;
11
11
  }
12
12
 
@@ -99,4 +99,41 @@
99
99
  }
100
100
  }
101
101
  }
102
+
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
+ }
114
+ }
115
+
116
+ &--snwHeaderLink {
117
+ color: $pure-black;
118
+
119
+ span {
120
+ @include text($snwHeaderLink);
121
+ }
122
+
123
+ &:hover {
124
+ color: $pure-black;
125
+ }
126
+ }
127
+
128
+ &--snwFlyoutLink {
129
+ color: $pure-black;
130
+
131
+ span {
132
+ @include text($snwFlyoutLink);
133
+ }
134
+
135
+ &:hover {
136
+ color: $pure-black;
137
+ }
138
+ }
102
139
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@phillips/seldon",
3
- "version": "1.38.6",
3
+ "version": "1.39.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/PhillipsAuctionHouse/seldon"