@phillips/seldon 1.40.0 → 1.42.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.
Files changed (38) hide show
  1. package/dist/assets/loading_spinner.svg.js +7 -0
  2. package/dist/components/HeroBanner/HeroBanner.js +21 -21
  3. package/dist/components/Link/Link.js +23 -24
  4. package/dist/components/Link/types.d.ts +3 -16
  5. package/dist/components/Link/types.js +6 -2
  6. package/dist/components/Link/utils.d.ts +2 -18
  7. package/dist/components/Link/utils.js +4 -6
  8. package/dist/components/LinkBlock/LinkBlock.js +8 -8
  9. package/dist/components/Navigation/NavigationItem/NavigationItem.d.ts +1 -1
  10. package/dist/components/Navigation/NavigationItem/NavigationItem.js +28 -20
  11. package/dist/components/Search/Search.d.ts +1 -5
  12. package/dist/components/Search/Search.js +112 -94
  13. package/dist/components/Search/SearchResults/SearchResults.d.ts +8 -6
  14. package/dist/components/Search/SearchResults/SearchResults.js +17 -13
  15. package/dist/components/Text/types.d.ts +5 -8
  16. package/dist/components/Text/types.js +1 -1
  17. package/dist/components/Text/utils.js +4 -7
  18. package/dist/components/Video/Video.d.ts +23 -0
  19. package/dist/components/Video/Video.js +26 -0
  20. package/dist/index.d.ts +2 -1
  21. package/dist/index.js +7 -5
  22. package/dist/scss/_type.scss +29 -62
  23. package/dist/scss/_vars.scss +59 -51
  24. package/dist/scss/componentStyles.scss +2 -0
  25. package/dist/scss/components/HeroBanner/_heroBanner.scss +12 -29
  26. package/dist/scss/components/Link/_link.scss +29 -89
  27. package/dist/scss/components/Navigation/NavigationItem/_navigationItem.scss +41 -92
  28. package/dist/scss/components/Navigation/NavigationList/_navigationList.scss +2 -49
  29. package/dist/scss/components/Navigation/_navigation.scss +1 -3
  30. package/dist/scss/components/Row/_row.scss +4 -0
  31. package/dist/scss/components/Search/SearchResults/_searchResults.scss +61 -0
  32. package/dist/scss/components/Search/_search.scss +81 -101
  33. package/dist/scss/components/Text/_text.scss +4 -2
  34. package/dist/scss/components/UserManagement/_userManagement.scss +0 -8
  35. package/dist/scss/components/Video/_video.scss +17 -0
  36. package/dist/utils/index.d.ts +2 -1
  37. package/dist/utils/index.js +7 -7
  38. package/package.json +4 -2
@@ -72,21 +72,17 @@ $text-family: $DistinctText;
72
72
  // @include labelText($label)
73
73
  $button: 'button';
74
74
  $link: 'link';
75
- $badge: 'badge';
76
- $cta-sm: 'cta-sm';
77
- $cta-lg: 'cta-lg';
78
75
  $email: 'email';
79
76
  $label: 'label';
80
- $display0: 'display0';
81
- $display1: 'display1';
82
- $display2: 'display2';
83
- $display3: 'display3';
84
- $display4: 'display4';
77
+ $badge: 'badge';
78
+
79
+ // Used with the hText mixin
85
80
  $blockquote: 'blockquote';
86
81
  $heading1: 'heading1';
87
82
  $heading2: 'heading2';
88
83
  $heading3: 'heading3';
89
84
  $heading4: 'heading4';
85
+ $heading5: 'heading5';
90
86
  $title1: 'title1';
91
87
  $title2: 'title2';
92
88
  $title3: 'title3';
@@ -99,9 +95,9 @@ $string2: 'string2';
99
95
  $string3: 'string3';
100
96
  $snwHeaderLink: 'snwHeaderLink';
101
97
  $snwFlyoutLink: 'snwFlyoutLink';
102
- $text-tokens: $button, $cta-sm, $cta-lg, $email, $label, $badge, $display0, $display1, $display2, $display3, $display4,
103
- $blockquote, $heading1, $heading2, $heading3, $heading4, $title1, $title2, $title3, $title4, $body1, $body2, $body3,
104
- $string1, $string2, $string3;
98
+ $text-tokens: $button, $link, $email, $label, $badge, $blockquote, $heading1, $heading2, $heading3, $heading4, $heading5,
99
+ $title1, $title2, $title3, $title4, $body1, $body2, $body3, $string1, $string2, $string3, $snwFlyoutLink,
100
+ $snwHeaderLink;
105
101
 
106
102
  ////////////////////////
107
103
  /// FONT SIZE TOKENS:
@@ -109,17 +105,18 @@ $text-tokens: $button, $cta-sm, $cta-lg, $email, $label, $badge, $display0, $dis
109
105
 
110
106
  :root {
111
107
  --desktop-max-width: 120rem;
112
- --heading-size0: 3.25rem;
113
108
  --quote-size: 1.75rem;
114
109
  --quote-line-height: 2.25rem;
115
110
  --heading-size1: 1.75rem;
116
111
  --heading-line-height-size1: 2rem;
117
- --heading-size2: 1.5rem;
118
- --heading-line-height-size2: 1.75rem;
119
- --heading-size3: 1.25rem;
120
- --heading-line-height-size3: 1.5rem;
121
- --heading-size4: 1rem;
122
- --heading-line-height-size4: 1.25rem;
112
+ --heading-size2: 1.75rem;
113
+ --heading-line-height-size2: 2rem;
114
+ --heading-size3: 1.5rem;
115
+ --heading-line-height-size3: 1.75rem;
116
+ --heading-size4: 1.25rem;
117
+ --heading-line-height-size4: 1.5rem;
118
+ --heading-size5: 1rem;
119
+ --heading-line-height-size5: 1.25rem;
123
120
  --string-size1: 1.25rem;
124
121
  --string-line-height-size1: 1.5rem;
125
122
  --string-size2: 1rem;
@@ -135,28 +132,30 @@ $text-tokens: $button, $cta-sm, $cta-lg, $email, $label, $badge, $display0, $dis
135
132
  --label-size1: 1.25rem;
136
133
  --label-size2: 1rem;
137
134
  --label-size3: 0.75rem;
138
- --link-button-label-size: 1rem;
135
+ --link-label-size: 1rem;
139
136
  --link-label-line-height: 1rem;
137
+ --button-label-size: 1rem;
140
138
  --button-label-line-height: 1.25rem;
141
139
  --badge-label-size: 0.75rem;
142
140
  --badge-label-line-height: 1rem;
143
- --snw-header-link-size: 0.875rem;
141
+ --snw-header-link-size: 1rem;
144
142
  --snw-header-link-line-height: 1.5rem;
145
- --snw-flyout-link-size: 0.875rem;
143
+ --snw-flyout-link-size: 1rem;
146
144
  --snw-flyout-link-line-height: 1.75rem;
147
145
 
148
146
  @media (max-width: 960px) {
149
- --heading-size0: 2.59rem;
150
147
  --quote-size: 1.5rem;
151
148
  --quote-line-height: 2rem;
152
149
  --heading-size1: 1.5rem;
153
150
  --heading-line-height-size1: 1.75rem;
154
- --heading-size2: 1.25rem;
155
- --heading-line-height-size2: 1.5rem;
156
- --heading-size3: 1rem;
157
- --heading-line-height-size3: 1.25rem;
158
- --heading-size4: 0.75rem;
159
- --heading-line-height-size4: 1rem;
151
+ --heading-size2: 1.5rem;
152
+ --heading-line-height-size2: 1.75rem;
153
+ --heading-size3: 1.25rem;
154
+ --heading-line-height-size3: 1.5rem;
155
+ --heading-size4: 1rem;
156
+ --heading-line-height-size4: 1.25rem;
157
+ --heading-size5: 0.75rem;
158
+ --heading-line-height-size5: 1rem;
160
159
  --string-size1: 1rem;
161
160
  --string-line-height-size1: 1.25rem;
162
161
  --string-size2: 0.75rem;
@@ -172,8 +171,9 @@ $text-tokens: $button, $cta-sm, $cta-lg, $email, $label, $badge, $display0, $dis
172
171
  --label-size1: 1rem;
173
172
  --label-size2: 0.75rem;
174
173
  --label-size3: 0.56rem;
175
- --link-button-label-size: 0.75rem;
174
+ --link-label-size: 0.75rem;
176
175
  --link-label-line-height: 0.75rem;
176
+ --button-label-size: 0.75rem;
177
177
  --button-label-line-height: 1rem;
178
178
  --badge-label-size: 0.5rem;
179
179
  --badge-label-line-height: 0.67rem;
@@ -184,17 +184,18 @@ $text-tokens: $button, $cta-sm, $cta-lg, $email, $label, $badge, $display0, $dis
184
184
  }
185
185
 
186
186
  @media (min-width: 1801px) {
187
- --heading-size0: 4.06rem;
188
187
  --quote-size: 2rem;
189
188
  --quote-line-height: 2.5rem;
190
189
  --heading-size1: 2rem;
191
190
  --heading-line-height-size1: 2.25rem;
192
- --heading-size2: 1.75rem;
193
- --heading-line-height-size2: 2rem;
194
- --heading-size3: 1.5rem;
195
- --heading-line-height-size3: 1.75rem;
196
- --heading-size4: 1.25rem;
197
- --heading-line-height-size4: 1.5rem;
191
+ --heading-size2: 2rem;
192
+ --heading-line-height-size2: 2.25rem;
193
+ --heading-size3: 1.75rem;
194
+ --heading-line-height-size3: 2rem;
195
+ --heading-size4: 1.5rem;
196
+ --heading-line-height-size4: 1.75rem;
197
+ --heading-size5: 1.25rem;
198
+ --heading-line-height-size5: 1.5rem;
198
199
  --string-size1: 1.5rem;
199
200
  --string-line-height-size1: 1.75rem;
200
201
  --string-size2: 1.25rem;
@@ -210,8 +211,9 @@ $text-tokens: $button, $cta-sm, $cta-lg, $email, $label, $badge, $display0, $dis
210
211
  --label-size1: 1.56rem;
211
212
  --label-size2: 1.25rem;
212
213
  --label-size3: 1rem;
213
- --link-button-label-size: 1.25rem;
214
+ --link-label-size: 1.25rem;
214
215
  --link-label-line-height: 1.25rem;
216
+ --button-label-size: 1.25rem;
215
217
  --button-label-line-height: 1.5rem;
216
218
  --badge-label-size: 1rem;
217
219
  --badge-label-line-height: 1.5rem;
@@ -222,14 +224,11 @@ $text-tokens: $button, $cta-sm, $cta-lg, $email, $label, $badge, $display0, $dis
222
224
  }
223
225
  }
224
226
 
225
- $desktop-max-width: var(--desktop-max-width);
226
-
227
- // DISPLAY
228
- $display-size0: var(--heading-size0);
229
- $display-size1: var(--heading-size1);
230
- $display-size2: var(--heading-size2);
231
- $display-size3: var(--heading-size3);
232
- $display-size4: var(--heading-size4);
227
+ // TITLE
228
+ $title-size1: var(--heading-size1);
229
+ $title-size2: var(--heading-size2);
230
+ $title-size3: var(--heading-size3);
231
+ $title-size4: var(--heading-size4);
233
232
 
234
233
  // HEADING
235
234
  $heading-size1: var(--heading-size1);
@@ -240,6 +239,8 @@ $heading-size3: var(--heading-size3);
240
239
  $heading-line-height-size3: var(--heading-line-height-size3);
241
240
  $heading-size4: var(--heading-size4);
242
241
  $heading-line-height-size4: var(--heading-line-height-size4);
242
+ $heading-size5: var(--heading-size5);
243
+ $heading-line-height-size5: var(--heading-line-height-size5);
243
244
 
244
245
  // BODY
245
246
  $body-size1: var(--body-size1);
@@ -258,13 +259,11 @@ $string-size3: var(--string-size3);
258
259
  $string-line-height-size3: var(--string-line-height-size3);
259
260
 
260
261
  // LABELS
261
- $button-label-size: var(--label-size2);
262
- $cta-sm-label-size: var(--label-size2);
263
262
  $email-label-size: var(--label-size2);
264
- $cta-lg-label-size: var(--label-size1);
265
263
  $text-label-size: var(--label-size3);
266
264
  $badge-label-size: var(--label-size3);
267
- $link-button-label-size: var(--link-button-label-size);
265
+ $link-label-size: var(--link-label-size);
266
+ $button-label-size: var(--button-label-size);
268
267
  $link-label-line-height: var(--link-label-line-height);
269
268
  $button-label-line-height: var(--button-label-line-height);
270
269
  $badge-label-size: var(--badge-label-size);
@@ -285,6 +284,7 @@ $snw-flyout-link-line-height: var(--snw-flyout-link-line-height);
285
284
  --spacing-md: 2rem;
286
285
  --spacing-lg: 3rem;
287
286
  --spacing-xl: 4rem;
287
+ --spacing-xxl: 5rem;
288
288
 
289
289
  @media (max-width: 960px) {
290
290
  --spacing-micro: 0.25;
@@ -293,6 +293,7 @@ $snw-flyout-link-line-height: var(--snw-flyout-link-line-height);
293
293
  --spacing-md: 1.75rem;
294
294
  --spacing-lg: 2.75rem;
295
295
  --spacing-xl: 3.75rem;
296
+ --spacing-xxl: 4.75rem;
296
297
  }
297
298
 
298
299
  @media (min-width: 1801px) {
@@ -302,6 +303,7 @@ $snw-flyout-link-line-height: var(--snw-flyout-link-line-height);
302
303
  --spacing-md: 2.5rem;
303
304
  --spacing-lg: 3.75rem;
304
305
  --spacing-xl: 5rem;
306
+ --spacing-xxl: 5.25rem;
305
307
  }
306
308
  }
307
309
 
@@ -311,6 +313,7 @@ $spacing-sm: var(--spacing-sm);
311
313
  $spacing-md: var(--spacing-md);
312
314
  $spacing-lg: var(--spacing-lg);
313
315
  $spacing-xl: var(--spacing-xl);
316
+ $spacing-xxl: var(--spacing-xl);
314
317
 
315
318
  // PADDING
316
319
  $padding-micro: var(--spacing-micro);
@@ -319,7 +322,8 @@ $padding-sm: var(--spacing-sm);
319
322
  $padding-md: var(--spacing-md);
320
323
  $padding-lg: var(--spacing-lg);
321
324
  $padding-xl: var(--spacing-xl);
322
- $padding-tokens: $padding-micro, $padding-xsm, $padding-sm, $padding-md, $padding-lg, $padding-xl;
325
+ $padding-xxl: var(--spacing-xxl);
326
+ $padding-tokens: $padding-micro, $padding-xsm, $padding-sm, $padding-md, $padding-lg, $padding-xl, $padding-xxl;
323
327
 
324
328
  // MARGIN
325
329
  $margin-micro: var(--spacing-micro);
@@ -328,6 +332,7 @@ $margin-sm: var(--spacing-sm);
328
332
  $margin-md: var(--spacing-md);
329
333
  $margin-lg: var(--spacing-lg);
330
334
  $margin-xl: var(--spacing-xl);
335
+ $margin-xxl: var(--spacing-xxl);
331
336
 
332
337
  ////////////////////////
333
338
  /// Breakpoint TOKENS that map to minimum pixels
@@ -345,8 +350,10 @@ $max-site-width: 1560px;
345
350
  ////////////////////////
346
351
  /// height Tokens
347
352
  ///////////////////////
348
- $header-height: 60px;
353
+ $header-height: 42px;
349
354
  $user-management-height: 30px;
355
+ $header-submenu-top: calc($header-height + $user-management-height + 1px);
356
+ $desktop-max-width: var(--desktop-max-width);
350
357
 
351
358
  ////////////////////////
352
359
  /// Our tokens usually support at least 4 sizes.
@@ -355,4 +362,5 @@ $size-sm: 'sm';
355
362
  $size-md: 'md';
356
363
  $size-lg: 'lg';
357
364
  $size-xl: 'xl';
365
+ $size-xxl: 'xxl';
358
366
  $default-transition: 150ms cubic-bezier(0.16, 1, 0.3, 1);
@@ -20,6 +20,7 @@
20
20
  @use 'components/Row/row';
21
21
  @use 'components/GridItem/gridItem';
22
22
  @use 'components/Search/search';
23
+ @use 'components/Search/SearchResults/searchResults';
23
24
  @use 'components/Social/social';
24
25
  @use 'components/SplitPanel/splitPanel';
25
26
  @use 'components/Subscribe/subscribe';
@@ -35,3 +36,4 @@
35
36
  @use 'components/Breadcrumb/breadcrumb';
36
37
  @use 'components/Drawer/drawer';
37
38
  @use 'components/HTMLParser/htmlParser';
39
+ @use 'components/Video/video';
@@ -2,14 +2,13 @@
2
2
 
3
3
  .#{$px}-hero-banner {
4
4
  align-items: center;
5
- background: var(--background);
5
+ background: linear-gradient(rgba(0, 0, 0, 60%), rgba(0, 0, 0, 60%)), var(--background);
6
6
  background-position: center center;
7
7
  background-repeat: no-repeat;
8
8
  background-size: cover;
9
9
  display: flex;
10
10
  flex-flow: column;
11
11
  justify-content: center;
12
- margin-bottom: $spacing-lg;
13
12
  min-height: 25rem;
14
13
  padding: 1rem;
15
14
  width: 100%;
@@ -17,7 +16,7 @@
17
16
  @media (max-width: $breakpoint-sm) {
18
17
  align-items: center;
19
18
  align-self: stretch;
20
- background: $pure-black;
19
+ background: transparent;
21
20
  flex-direction: column;
22
21
  gap: 1.875rem;
23
22
  padding: 1.875rem 0.9375rem;
@@ -33,22 +32,24 @@
33
32
  }
34
33
  }
35
34
 
36
- h1 {
37
- font-family: DistinctDisplay, sans-serif;
35
+ h1.#{$px}-text,
36
+ h2.#{$px}-text {
37
+ margin: 0;
38
38
  }
39
39
 
40
- h1 span,
41
40
  p {
42
- font-family: DistinctText, sans-serif;
41
+ margin: 1.875rem 0;
43
42
  }
44
43
 
45
44
  h1,
46
- h1 span,
45
+ h2,
47
46
  p {
48
47
  color: $pure-white;
49
- font-weight: 400;
50
- margin: 0;
51
- text-transform: uppercase;
48
+ text-align: center;
49
+
50
+ @media (max-width: $breakpoint-sm) {
51
+ color: $pure-black;
52
+ }
52
53
  }
53
54
 
54
55
  p {
@@ -81,22 +82,4 @@
81
82
  gap: 1rem;
82
83
  }
83
84
  }
84
-
85
- & .#{$px}-hero-banner__heading {
86
- align-self: stretch;
87
- display: flex;
88
- flex-direction: column;
89
- font-size: 2rem;
90
- line-height: 1;
91
- margin: 1.875rem 0;
92
- text-align: center;
93
-
94
- @media (min-width: $breakpoint-sm) {
95
- font-size: 2.375rem;
96
- }
97
-
98
- span {
99
- font-size: 1.625rem;
100
- }
101
- }
102
85
  }
@@ -1,114 +1,54 @@
1
1
  @use '../../allPartials' as *;
2
2
 
3
3
  .#{$px}-link {
4
- color: $cta-blue;
4
+ color: $pure-black;
5
5
  text-decoration: none;
6
6
  white-space: nowrap;
7
7
 
8
- &:hover:not(&--list, &--navMain, &--navLinkLg, &--navLinkSm, &--link, &--snwHeaderLink, &--snwFlyoutLink),
9
- &:focus:not(&--list, &--navMain, &--navLinkLg, &--navLinkSm, &--link, &--snwHeaderLink, &--snwFlyoutLink) {
8
+ &--email,
9
+ &--link {
10
10
  @include underline;
11
11
  }
12
12
 
13
- &:hover,
14
- &:focus {
15
- color: $cta-blue;
16
- outline: unset;
17
- }
18
-
19
- &--inline {
20
- font-size: inherit;
21
- letter-spacing: inherit;
22
- line-height: inherit;
23
- }
13
+ &--email,
14
+ &--link,
15
+ &--snwFlyoutLink {
16
+ &:hover,
17
+ &:focus {
18
+ @include underline($color: $dark-gray);
24
19
 
25
- &--list {
26
- color: $soft-black;
20
+ color: $dark-gray;
21
+ }
27
22
  }
28
23
 
29
24
  &--email {
30
25
  @include text($email);
31
26
  }
32
27
 
33
- &--navMain {
34
- .#{$px}-nav__item--label {
35
- color: $soft-black;
36
- text-align: center;
37
- }
38
- }
39
-
40
- &--navLinkSm {
41
- color: $soft-black;
42
- justify-content: flex-end;
43
-
44
- &:hover {
45
- .#{$px}-nav__item--label {
46
- color: $cta-blue;
47
- }
48
- }
49
-
50
- .#{$px}-nav__item--label {
51
- /* TODO: Create token to handle these styles dynamically */
52
- font-size: 0.8125rem;
53
- font-weight: 500;
54
- letter-spacing: 0.125rem;
55
- line-height: 0.8125rem;
56
- text-align: right;
57
- text-transform: uppercase;
58
- }
59
- }
60
-
61
- &--navLinkLg {
62
- color: $soft-black;
63
- display: flex;
64
- justify-content: space-between;
65
- width: 100%;
66
-
67
- > span {
68
- display: flex;
69
- width: 100%;
70
- }
71
-
72
- .#{$px}-nav__item--label {
73
- /* TODO: Create token to handle these styles dynamically */
74
- @include pText(1.0625rem);
75
-
76
- font-weight: 600;
77
- overflow: hidden;
78
- text-overflow: ellipsis;
79
- text-transform: capitalize;
80
- text-wrap: nowrap;
81
- width: 100%;
82
-
83
- &:hover {
84
- color: $cta-blue;
85
- }
86
-
87
- @media (max-width: #{$breakpoint-md - 1}) {
88
- /* TODO: Create token to handle these styles dynamically */
89
- font-size: 0.8rem;
90
- font-weight: 400;
91
- text-overflow: unset;
92
- text-wrap: wrap;
93
- }
94
- }
95
-
96
- .#{$px}-link--navLinkSm {
97
- .#{$px}-nav__item--label {
98
- color: $cta-blue;
99
- }
100
- }
101
- }
102
-
103
28
  &--link {
104
- @include labelText('link');
29
+ @include text($link);
105
30
  }
106
31
 
107
32
  &--snwHeaderLink {
108
- @include labelText('snwHeaderLink');
33
+ @include text($snwHeaderLink);
34
+
35
+ padding: 0.5rem 0.625rem calc(0.5rem + 2px); // 1 px so that the bottom border of the nav counts as part of the button
36
+ position: relative;
37
+ text-align: center;
38
+
39
+ &:hover::after,
40
+ &:focus::after {
41
+ background: $pure-black;
42
+ bottom: -1px;
43
+ content: '';
44
+ height: 1px;
45
+ left: 0;
46
+ position: absolute;
47
+ right: 0;
48
+ }
109
49
  }
110
50
 
111
51
  &--snwFlyoutLink {
112
- @include labelText('snwFlyoutLink');
52
+ @include text($snwFlyoutLink);
113
53
  }
114
54
  }