@phillips/seldon 1.132.0 → 1.133.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 (160) hide show
  1. package/dist/assets/formatted/AccountCircle.d.ts +9 -0
  2. package/dist/assets/formatted/AccountCircle.js +40 -0
  3. package/dist/assets/formatted/AppleAppStoreBadge.d.ts +9 -0
  4. package/dist/assets/formatted/AppleAppStoreBadge.js +52 -0
  5. package/dist/assets/formatted/ArrowPrev.d.ts +9 -0
  6. package/dist/assets/formatted/ArrowPrev.js +37 -0
  7. package/dist/assets/formatted/Calendar.d.ts +9 -0
  8. package/dist/assets/formatted/Calendar.js +29 -0
  9. package/dist/assets/formatted/CalendarAlt.d.ts +9 -0
  10. package/dist/assets/formatted/CalendarAlt.js +44 -0
  11. package/dist/assets/formatted/CarouselArrowNext.d.ts +9 -0
  12. package/dist/assets/formatted/CarouselArrowNext.js +29 -0
  13. package/dist/assets/formatted/CarouselArrowPrev.d.ts +9 -0
  14. package/dist/assets/formatted/CarouselArrowPrev.js +29 -0
  15. package/dist/assets/formatted/Checkmark.d.ts +9 -0
  16. package/dist/assets/formatted/Checkmark.js +37 -0
  17. package/dist/assets/formatted/ChevronDown.d.ts +9 -0
  18. package/dist/assets/formatted/ChevronDown.js +37 -0
  19. package/dist/assets/formatted/ChevronNext.d.ts +9 -0
  20. package/dist/assets/formatted/ChevronNext.js +37 -0
  21. package/dist/assets/formatted/ChevronRight.d.ts +9 -0
  22. package/dist/assets/formatted/ChevronRight.js +37 -0
  23. package/dist/assets/formatted/Close.d.ts +9 -0
  24. package/dist/assets/formatted/Close.js +46 -0
  25. package/dist/assets/formatted/Favorite.d.ts +9 -0
  26. package/dist/assets/formatted/Favorite.js +38 -0
  27. package/dist/assets/formatted/FavoriteOutline.d.ts +9 -0
  28. package/dist/assets/formatted/FavoriteOutline.js +38 -0
  29. package/dist/assets/formatted/IconFooterFacebook.d.ts +9 -0
  30. package/dist/assets/formatted/IconFooterFacebook.js +35 -0
  31. package/dist/assets/formatted/IconFooterInstagram.d.ts +9 -0
  32. package/dist/assets/formatted/IconFooterInstagram.js +31 -0
  33. package/dist/assets/formatted/IconFooterLinkedin.d.ts +9 -0
  34. package/dist/assets/formatted/IconFooterLinkedin.js +35 -0
  35. package/dist/assets/formatted/IconFooterRed.d.ts +9 -0
  36. package/dist/assets/formatted/IconFooterRed.js +42 -0
  37. package/dist/assets/formatted/IconFooterWechat.d.ts +9 -0
  38. package/dist/assets/formatted/IconFooterWechat.js +37 -0
  39. package/dist/assets/formatted/IconGreenCircle.d.ts +9 -0
  40. package/dist/assets/formatted/IconGreenCircle.js +29 -0
  41. package/dist/assets/formatted/IconRedCircle.d.ts +9 -0
  42. package/dist/assets/formatted/IconRedCircle.js +29 -0
  43. package/dist/assets/formatted/Instagram.d.ts +9 -0
  44. package/dist/assets/formatted/Instagram.js +62 -0
  45. package/dist/assets/formatted/Lock.d.ts +9 -0
  46. package/dist/assets/formatted/Lock.js +44 -0
  47. package/dist/assets/formatted/MagnificentSeven.d.ts +9 -0
  48. package/dist/assets/formatted/MagnificentSeven.js +36 -0
  49. package/dist/assets/formatted/Menu.d.ts +9 -0
  50. package/dist/assets/formatted/Menu.js +29 -0
  51. package/dist/assets/formatted/Minus.d.ts +9 -0
  52. package/dist/assets/formatted/Minus.js +46 -0
  53. package/dist/assets/formatted/PhillipsAppIcon.d.ts +9 -0
  54. package/dist/assets/formatted/PhillipsAppIcon.js +37 -0
  55. package/dist/assets/formatted/PhillipsLogo.d.ts +9 -0
  56. package/dist/assets/formatted/PhillipsLogo.js +38 -0
  57. package/dist/assets/formatted/Plus.d.ts +9 -0
  58. package/dist/assets/formatted/Plus.js +46 -0
  59. package/dist/assets/formatted/React.d.ts +9 -0
  60. package/dist/assets/formatted/React.js +36 -0
  61. package/dist/assets/formatted/Search.d.ts +9 -0
  62. package/dist/assets/formatted/Search.js +37 -0
  63. package/dist/assets/formatted/Share.d.ts +9 -0
  64. package/dist/assets/formatted/Share.js +42 -0
  65. package/dist/assets/formatted/Spotify.d.ts +9 -0
  66. package/dist/assets/formatted/Spotify.js +35 -0
  67. package/dist/assets/formatted/Wechat.d.ts +9 -0
  68. package/dist/assets/formatted/Wechat.js +42 -0
  69. package/dist/assets/formatted/Youtube.d.ts +9 -0
  70. package/dist/assets/formatted/Youtube.js +36 -0
  71. package/dist/assets/formatted/index.d.ts +35 -0
  72. package/dist/assets/formatted/index.js +72 -0
  73. package/dist/components/Accordion/AccordionItem.js +78 -71
  74. package/dist/components/Breadcrumb/Breadcrumb.js +14 -14
  75. package/dist/components/Breadcrumb/BreadcrumbItem.js +15 -15
  76. package/dist/components/Carousel/Carousel.stories.d.ts +4 -0
  77. package/dist/components/Carousel/CarouselArrows.d.ts +1 -1
  78. package/dist/components/Carousel/CarouselArrows.js +13 -14
  79. package/dist/components/Carousel/CarouselDots.d.ts +4 -0
  80. package/dist/components/Carousel/CarouselDots.js +24 -24
  81. package/dist/components/ContentPeek/ContentPeek.js +42 -43
  82. package/dist/components/DatePicker/DatePicker.d.ts +1 -1
  83. package/dist/components/Drawer/Drawer.js +18 -18
  84. package/dist/components/Dropdown/Dropdown.js +23 -17
  85. package/dist/components/Filter/Filter.js +20 -20
  86. package/dist/components/Filter/FilterHeader.js +15 -15
  87. package/dist/components/Icon/Icon.d.ts +29 -0
  88. package/dist/components/Icon/Icon.js +21 -0
  89. package/dist/components/Icon/Icon.stories.d.ts +49 -0
  90. package/dist/components/Icon/Icon.test.d.ts +1 -0
  91. package/dist/components/Icon/index.d.ts +1 -0
  92. package/dist/components/Input/Input.d.ts +2 -2
  93. package/dist/components/Input/Input.js +53 -53
  94. package/dist/components/Modal/Modal.js +10 -10
  95. package/dist/components/Pagination/Pagination.js +42 -41
  96. package/dist/components/Search/SearchButton.js +14 -15
  97. package/dist/components/SeldonImage/SeldonImage.js +62 -72
  98. package/dist/components/SeldonImage/utils.d.ts +6 -0
  99. package/dist/components/SeldonImage/utils.js +14 -0
  100. package/dist/components/SeldonImage/utils.test.d.ts +1 -0
  101. package/dist/components/Select/Select.d.ts +4 -0
  102. package/dist/components/Select/Select.js +37 -37
  103. package/dist/components/Tags/Tags.js +25 -26
  104. package/dist/components/TextArea/TextArea.js +9 -9
  105. package/dist/design/icons/IconGrid.d.ts +2 -0
  106. package/dist/index.d.ts +1 -1
  107. package/dist/index.js +185 -246
  108. package/dist/node_modules/exenv/index.js +1 -1
  109. package/dist/node_modules/prop-types/node_modules/react-is/index.js +1 -1
  110. package/dist/patterns/BidSnapshot/BidMessage.js +15 -17
  111. package/dist/patterns/Subscribe/Subscribe.d.ts +5 -1
  112. package/dist/patterns/Subscribe/Subscribe.js +47 -45
  113. package/dist/patterns/Subscribe/Subscribe.stories.d.ts +1 -1
  114. package/dist/patterns/UserManagement/UserManagement.js +37 -21
  115. package/dist/scss/_vars.scss +3 -4
  116. package/dist/scss/_vars.scss.js +438 -0
  117. package/dist/scss/components/Icon/_icon.stories.scss +32 -0
  118. package/dist/scss/components/IconButton/_iconButton.scss +3 -4
  119. package/dist/scss/components/Pagination/_pagination.scss +2 -2
  120. package/dist/scss/patterns/UserManagement/_userManagement.scss +0 -3
  121. package/dist/site-furniture/Footer/Footer.js +5 -5
  122. package/dist/site-furniture/Header/Header.js +18 -18
  123. package/dist/utils/index.d.ts +1 -1
  124. package/dist/utils/scssUtils.d.ts +2 -0
  125. package/dist/utils/scssUtils.js +12 -0
  126. package/dist/utils/scssUtils.test.d.ts +1 -0
  127. package/package.json +7 -2
  128. package/dist/assets/CarouselArrowNext.svg.js +0 -5
  129. package/dist/assets/CarouselArrowPrev.svg.js +0 -5
  130. package/dist/assets/PhillipsLogo.svg.js +0 -5
  131. package/dist/assets/account_circle.svg.js +0 -5
  132. package/dist/assets/arrowPrev.svg.js +0 -5
  133. package/dist/assets/calendar.svg.js +0 -5
  134. package/dist/assets/calendarAlt.svg.js +0 -5
  135. package/dist/assets/checkmark.svg.js +0 -5
  136. package/dist/assets/chevronDown.svg.js +0 -5
  137. package/dist/assets/chevronNext.svg.js +0 -5
  138. package/dist/assets/chevronRight.svg.js +0 -5
  139. package/dist/assets/close.svg.js +0 -5
  140. package/dist/assets/favorite.svg.js +0 -5
  141. package/dist/assets/favoriteOutline.svg.js +0 -5
  142. package/dist/assets/icon-footer-facebook.svg.js +0 -5
  143. package/dist/assets/icon-footer-instagram.svg.js +0 -5
  144. package/dist/assets/icon-footer-linkedin.svg.js +0 -5
  145. package/dist/assets/icon-footer-red.svg.js +0 -5
  146. package/dist/assets/icon-footer-wechat.svg.js +0 -5
  147. package/dist/assets/icon-green-circle.svg.js +0 -5
  148. package/dist/assets/icon-red-circle.svg.js +0 -5
  149. package/dist/assets/icons.d.ts +0 -32
  150. package/dist/assets/instagram.svg.js +0 -5
  151. package/dist/assets/lock.svg.js +0 -5
  152. package/dist/assets/menu.svg.js +0 -5
  153. package/dist/assets/minus.svg.js +0 -5
  154. package/dist/assets/plus.svg.js +0 -5
  155. package/dist/assets/react.svg.js +0 -5
  156. package/dist/assets/search.svg.js +0 -5
  157. package/dist/assets/share.svg.js +0 -5
  158. package/dist/assets/spotify.svg.js +0 -5
  159. package/dist/assets/wechat.svg.js +0 -5
  160. package/dist/assets/youtube.svg.js +0 -5
@@ -0,0 +1,438 @@
1
+ const e = `// prefix
2
+ $px: seldon;
3
+
4
+ ////////////////////////
5
+ /// COlORS:
6
+ ///////////////////////
7
+
8
+ // Primary color palette
9
+ $pure-black: #000;
10
+ $primary-black: #323232;
11
+ $white: #fff;
12
+
13
+ // Secondary color palette
14
+ $soft-black: #545454;
15
+ $dark-gray: #7b7474;
16
+ $soft-black-2: #535050;
17
+
18
+ // Utilititarian color palette
19
+ $keyline-gray: #949494;
20
+ $medium-gray: #c3bebb;
21
+ $light-gray: #eceae7;
22
+ $off-white: #f4f2f1;
23
+
24
+ // Notification color palette
25
+ $error-red: #f00;
26
+ $error-pink: rgba(255, 229, 229, 90%);
27
+ $warn-yellow: #d6d141;
28
+ $post-sale-pink: #ff0086;
29
+ $cta-blue: #4a90e2;
30
+
31
+ // AM color palette
32
+ $widget-blue: #4a90e2;
33
+ $widget-green: #6a9c53;
34
+ $widget-maroon: #6b0000;
35
+ $widget-red: #b00000;
36
+ $clock-widget-blue: $widget-blue;
37
+ $clock-widget-green: $widget-green;
38
+ $clock-widget-maroon: $widget-maroon;
39
+ $clock-widget-red: $widget-red;
40
+
41
+ // Articker color palette
42
+ $articker-red: #fc1e2b;
43
+ $articker-orange: #ff8201;
44
+ $articker-red-orange-gradient: linear-gradient(90deg, #fc1e2b, #ff8201);
45
+ $overlay-black: rgba(0, 0, 0, 80%);
46
+
47
+ // Legacy mapping
48
+ $pure-white: $white;
49
+ $post-sale-magenta: $post-sale-pink;
50
+
51
+ // Text variables
52
+ $header-color: $pure-black;
53
+ $text-color: $soft-black;
54
+
55
+ // Interactive Colors
56
+ $button-hover: #75716f;
57
+
58
+ // Misc. Colors
59
+ $countdown-compact: #b40919;
60
+
61
+ ////////////////////////
62
+ /// FONTS:
63
+ ///////////////////////
64
+ // Font-variables
65
+ $DistinctDisplay: 'DistinctDisplay';
66
+ $DistinctDisplayItalic: 'DistinctDisplayItalic';
67
+ $DistinctItalic: 'DistinctItalic';
68
+ $DistinctText: 'DistinctText';
69
+ $Distinct: 'Distinct';
70
+ $header-family: $DistinctDisplay;
71
+ $text-family: $DistinctText;
72
+
73
+ ////////////////////////
74
+ /// LABEL TOKENS:
75
+ ///////////////////////
76
+
77
+ // Used with the labelText mixin
78
+ // @include labelText($label)
79
+ $button: 'button';
80
+ $link: 'link';
81
+ $email: 'email';
82
+ $label: 'label';
83
+ $badge: 'badge';
84
+
85
+ // Used with the hText mixin
86
+ $blockquote: 'blockquote';
87
+ $heading1: 'heading1';
88
+ $heading2: 'heading2';
89
+ $heading3: 'heading3';
90
+ $heading4: 'heading4';
91
+ $heading5: 'heading5';
92
+ $title1: 'title1';
93
+ $title2: 'title2';
94
+ $title3: 'title3';
95
+ $title4: 'title4';
96
+ $body1: 'body1';
97
+ $body2: 'body2';
98
+ $body3: 'body3';
99
+ $string1: 'string1';
100
+ $string2: 'string2';
101
+ $string3: 'string3';
102
+ $snwHeaderLink: 'snwHeaderLink';
103
+ $snwFlyoutLink: 'snwFlyoutLink';
104
+ $snwHeadingHero1: 'snwHeadingHero1';
105
+ $snwHeadingHero2: 'snwHeadingHero2';
106
+ $text-tokens: $button, $link, $email, $label, $badge, $blockquote, $heading1, $heading2, $heading3, $heading4, $heading5,
107
+ $title1, $title2, $title3, $title4, $body1, $body2, $body3, $string1, $string2, $string3, $snwFlyoutLink,
108
+ $snwHeaderLink, $snwHeadingHero1, $snwHeadingHero2;
109
+
110
+ ////////////////////////
111
+ /// Breakpoint TOKENS to be used for min-width comparisons, make sure they match BREAKPOINTS in constants.ts
112
+ ///////////////////////
113
+ $breakpoint-sm: 361px;
114
+ $breakpoint-md: 961px;
115
+ $breakpoint-lg: 1401px;
116
+ $breakpoint-xl: 1801px;
117
+
118
+ ////////////////////////
119
+ /// FONT SIZE TOKENS:
120
+ ///////////////////////
121
+ // @TODO: These tokens need to be aligned with the new values from the design system https://www.figma.com/design/hMu9IWH5N3KamJy8tLFdyV/EASEL-Compendium%3A-Tokens%2C-Components-%26-Patterns?node-id=7263-1361&node-type=canvas&m=dev
122
+ // Once we update ObjectTile and other components will need to be updated to match the new token.
123
+ :root {
124
+ --desktop-max-width: 120rem;
125
+ --quote-size: 1.5rem;
126
+ --quote-line-height: 2rem;
127
+ --heading-size1: 1.5rem;
128
+ --heading-line-height-size1: 1.75rem;
129
+ --heading-size2: 1.5rem;
130
+ --heading-line-height-size2: 1.75rem;
131
+ --heading-size3: 1.25rem;
132
+ --heading-line-height-size3: 1.5rem;
133
+ --heading-size4: 1rem;
134
+ --heading-line-height-size4: 1.25rem;
135
+ --heading-size5: 0.75rem;
136
+ --heading-line-height-size5: 1rem;
137
+ --string-size1: 1rem;
138
+ --string-line-height-size1: 1.25rem;
139
+ --string-size2: 0.75rem;
140
+ --string-line-height-size2: 1rem;
141
+ --string-size3: 0.5rem;
142
+ --string-line-height-size3: 0.75rem;
143
+ --body-size1: 1rem;
144
+ --body-line-height-size1: 1.5rem;
145
+ --body-size2: 0.75rem;
146
+ --body-line-height-size2: 1.25rem;
147
+ --body-size3: 0.5rem;
148
+ --body-line-height-size3: 1rem;
149
+ --label-size1: 1rem;
150
+ --label-size2: 0.75rem;
151
+ --label-size3: 0.56rem;
152
+ --link-label-size: 0.75rem;
153
+ --link-label-line-height: 0.75rem;
154
+ --button-label-size: 0.75rem;
155
+ --button-label-line-height: 1rem;
156
+ --button-tertiary-height: 1.75rem;
157
+ --badge-label-size: 0.5rem;
158
+ --badge-label-line-height: 0.67rem;
159
+ --snw-header-link-size: 1rem;
160
+ --snw-header-link-line-height: 1.5rem;
161
+ --snw-flyout-link-size: 1rem;
162
+ --snw-flyout-link-line-height: 1.75rem;
163
+ --snw-heading-hero-size1: 2rem;
164
+ --snw-heading-hero-line-height-size1: 2.375rem;
165
+ --snw-heading-hero-size2: 1.625rem;
166
+ --snw-heading-hero-line-height-size2: 1.9375rem;
167
+
168
+ @media (min-width: $breakpoint-md) {
169
+ --quote-size: 1.75rem;
170
+ --quote-line-height: 2.25rem;
171
+ --heading-size1: 1.75rem;
172
+ --heading-line-height-size1: 2rem;
173
+ --heading-size2: 1.75rem;
174
+ --heading-line-height-size2: 2rem;
175
+ --heading-size3: 1.5rem;
176
+ --heading-line-height-size3: 1.75rem;
177
+ --heading-size4: 1.25rem;
178
+ --heading-line-height-size4: 1.5rem;
179
+ --heading-size5: 1rem;
180
+ --heading-line-height-size5: 1.25rem;
181
+ --string-size1: 1.25rem;
182
+ --string-line-height-size1: 1.5rem;
183
+ --string-size2: 1rem;
184
+ --string-line-height-size2: 1.25rem;
185
+ --string-size3: 0.75rem;
186
+ --string-line-height-size3: 1rem;
187
+ --body-size1: 1.25rem;
188
+ --body-line-height-size1: 1.75rem;
189
+ --body-size2: 1rem;
190
+ --body-line-height-size2: 1.5rem;
191
+ --body-size3: 0.75rem;
192
+ --body-line-height-size3: 1.25rem;
193
+ --label-size1: 1.25rem;
194
+ --label-size2: 1rem;
195
+ --label-size3: 0.75rem;
196
+ --link-label-size: 1rem;
197
+ --link-label-line-height: 1rem;
198
+ --button-label-size: 1rem;
199
+ --button-label-line-height: 1.25rem;
200
+ --badge-label-size: 0.75rem;
201
+ --badge-label-line-height: 1rem;
202
+ --snw-header-link-size: 1rem;
203
+ --snw-header-link-line-height: 1.5rem;
204
+ --snw-flyout-link-size: 0.875rem;
205
+ --snw-flyout-link-line-height: 1.75rem;
206
+ --snw-heading-hero-size1: 2.375rem;
207
+ --snw-heading-hero-line-height-size1: 2.875rem;
208
+ }
209
+
210
+ @media (min-width: $breakpoint-lg) {
211
+ --snw-flyout-link-size: 0.875rem;
212
+ --snw-flyout-link-line-height: 1.75rem;
213
+ }
214
+
215
+ @media (min-width: $breakpoint-xl) {
216
+ --quote-size: 2rem;
217
+ --quote-line-height: 2.5rem;
218
+ --heading-size1: 2rem;
219
+ --heading-line-height-size1: 2.25rem;
220
+ --heading-size2: 2rem;
221
+ --heading-line-height-size2: 2.25rem;
222
+ --heading-size3: 1.75rem;
223
+ --heading-line-height-size3: 2rem;
224
+ --heading-size4: 1.5rem;
225
+ --heading-line-height-size4: 1.75rem;
226
+ --heading-size5: 1.25rem;
227
+ --heading-line-height-size5: 1.5rem;
228
+ --string-size1: 1.5rem;
229
+ --string-line-height-size1: 1.75rem;
230
+ --string-size2: 1.25rem;
231
+ --string-line-height-size2: 1.5rem;
232
+ --string-size3: 1rem;
233
+ --string-line-height-size3: 1.25rem;
234
+ --body-size1: 1.5rem;
235
+ --body-line-height-size1: 2rem;
236
+ --body-size2: 1.25rem;
237
+ --body-line-height-size2: 1.75rem;
238
+ --body-size3: 1rem;
239
+ --body-line-height-size3: 1.5rem;
240
+ --label-size1: 1.56rem;
241
+ --label-size2: 1.25rem;
242
+ --label-size3: 1rem;
243
+ --link-label-size: 1.25rem;
244
+ --link-label-line-height: 1.25rem;
245
+ --button-label-size: 1.25rem;
246
+ --button-label-line-height: 1.5rem;
247
+ --badge-label-size: 1rem;
248
+ --badge-label-line-height: 1.5rem;
249
+ --snw-header-link-size: 1.125rem;
250
+ --snw-header-link-line-height: 1.75rem;
251
+ --snw-flyout-link-size: 1.125rem;
252
+ --snw-flyout-link-line-height: 2.125rem;
253
+ }
254
+ }
255
+
256
+ // TITLE
257
+ $title-size1: var(--heading-size1);
258
+ $title-size2: var(--heading-size2);
259
+ $title-size3: var(--heading-size3);
260
+ $title-size4: var(--heading-size4);
261
+
262
+ // HEADING
263
+ $heading-size1: var(--heading-size1);
264
+ $heading-line-height-size1: var(--heading-line-height-size1);
265
+ $heading-size2: var(--heading-size2);
266
+ $heading-line-height-size2: var(--heading-line-height-size2);
267
+ $heading-size3: var(--heading-size3);
268
+ $heading-line-height-size3: var(--heading-line-height-size3);
269
+ $heading-size4: var(--heading-size4);
270
+ $heading-line-height-size4: var(--heading-line-height-size4);
271
+ $heading-size5: var(--heading-size5);
272
+ $heading-line-height-size5: var(--heading-line-height-size5);
273
+
274
+ // BODY
275
+ $body-size1: var(--body-size1);
276
+ $body-line-height-size1: var(--body-line-height-size1);
277
+ $body-size2: var(--body-size2);
278
+ $body-line-height-size2: var(--body-line-height-size2);
279
+ $body-size3: var(--body-size3);
280
+ $body-line-height-size3: var(--body-line-height-size3);
281
+
282
+ // STRING
283
+ $string-size1: var(--string-size1);
284
+ $string-line-height-size1: var(--string-line-height-size1);
285
+ $string-size2: var(--string-size2);
286
+ $string-line-height-size2: var(--string-line-height-size2);
287
+ $string-size3: var(--string-size3);
288
+ $string-line-height-size3: var(--string-line-height-size3);
289
+
290
+ // LABELS
291
+ $email-label-size: var(--label-size2);
292
+ $text-label-size: var(--label-size3);
293
+ $badge-label-size: var(--label-size3);
294
+ $link-label-size: var(--link-label-size);
295
+ $button-label-size: var(--button-label-size);
296
+ $link-label-line-height: var(--link-label-line-height);
297
+ $button-label-line-height: var(--button-label-line-height);
298
+ $button-tertiary-height: var(--button-tertiary-height);
299
+ $badge-label-size: var(--badge-label-size);
300
+ $badge-label-line-height: var(--badge-label-line-height);
301
+ $snw-header-link-size: var(--snw-header-link-size);
302
+ $snw-header-link-line-height: var(--snw-header-link-line-height);
303
+ $snw-flyout-link-size: var(--snw-flyout-link-size);
304
+ $snw-flyout-link-line-height: var(--snw-flyout-link-line-height);
305
+ $snw-heading-hero-size1: var(--snw-heading-hero-size1);
306
+ $snw-heading-hero-line-height1: var(--snw-heading-hero-line-height-size1);
307
+ $snw-heading-hero-size2: var(--snw-heading-hero-size2);
308
+ $snw-heading-hero-line-height2: var(--snw-heading-hero-line-height-size2);
309
+
310
+ ////////////////////////
311
+ /// SPACING TOKENS:
312
+ ///////////////////////
313
+
314
+ // SNOWFLAKES
315
+ $snowflake-menu-padding: 1.25rem;
316
+
317
+ /* stylelint-disable-next-line no-duplicate-selectors */
318
+ :root {
319
+ --snw-button-padding: 0.8125rem;
320
+ --spacing-micro: 0.25rem;
321
+ --spacing-xsm: 0.5rem;
322
+ --spacing-sm: 0.75rem;
323
+ --spacing-md: 1.75rem;
324
+ --spacing-lg: 2.75rem;
325
+ --spacing-xl: 3.75rem;
326
+ --spacing-xxl: 4.75rem;
327
+ --spacing-xxxl: 5.75rem;
328
+
329
+ @media (min-width: $breakpoint-md) {
330
+ --snw-button-padding: 0.8125rem;
331
+ --spacing-micro: 0.25rem;
332
+ --spacing-xsm: 0.5rem;
333
+ --spacing-sm: 1rem;
334
+ --spacing-md: 2rem;
335
+ --spacing-lg: 3rem;
336
+ --spacing-xl: 4rem;
337
+ --spacing-xxl: 5rem;
338
+ --spacing-xxxl: 6rem;
339
+ }
340
+
341
+ @media (min-width: $breakpoint-xl) {
342
+ --snw-button-padding: 0.813rem;
343
+ --spacing-micro: 0.5rem;
344
+ --spacing-xsm: 0.75rem;
345
+ --spacing-sm: 1.25rem;
346
+ --spacing-md: 2.25rem;
347
+ --spacing-lg: 3.25rem;
348
+ --spacing-xl: 4.25rem;
349
+ --spacing-xxl: 5.25rem;
350
+ --spacing-xxxl: 6.25rem;
351
+ }
352
+ }
353
+
354
+ $spacing-micro: var(--spacing-micro);
355
+ $spacing-xsm: var(--spacing-xsm);
356
+ $spacing-sm: var(--spacing-sm);
357
+ $spacing-md: var(--spacing-md);
358
+ $spacing-lg: var(--spacing-lg);
359
+ $spacing-xl: var(--spacing-xl);
360
+ $spacing-xxl: var(--spacing-xl);
361
+ $spacing-xxxl: var(--spacing-xxxl);
362
+ $spacing-sizes: micro, xsm, sm, md, lg, xl, xxl, xxxl;
363
+
364
+ // PADDING
365
+ $padding-micro: var(--spacing-micro);
366
+ $padding-xsm: var(--spacing-xsm);
367
+ $padding-sm: var(--spacing-sm);
368
+ $padding-md: var(--spacing-md);
369
+ $padding-lg: var(--spacing-lg);
370
+ $padding-xl: var(--spacing-xl);
371
+ $padding-xxl: var(--spacing-xxl);
372
+ $padding-tokens: $padding-micro, $padding-xsm, $padding-sm, $padding-md, $padding-lg, $padding-xl, $padding-xxl;
373
+ $snw-button-padding: var(--snw-button-padding);
374
+
375
+ // MARGIN
376
+ $margin-micro: var(--spacing-micro);
377
+ $margin-xsm: var(--spacing-xsm);
378
+ $margin-sm: var(--spacing-sm);
379
+ $margin-md: var(--spacing-md);
380
+ $margin-lg: var(--spacing-lg);
381
+ $margin-xl: var(--spacing-xl);
382
+ $margin-xxl: var(--spacing-xxl);
383
+
384
+ ////////////////////////
385
+ /// HEADER TOKENS:
386
+ ///////////////////////
387
+ /* stylelint-disable-next-line no-duplicate-selectors */
388
+ :root {
389
+ --header-height: 56px; // ideally we would calculate the size from the current text size plus spacing components so that it scales with the text size and spacing
390
+ --search-size: 2.625rem; // This should be calculated from the scaling text and scaling spacing tokens instead of hardcoding in case they change
391
+
392
+ @media (min-width: $breakpoint-md) {
393
+ --header-height: 123px; // ideally we would calculate the size from the current text size plus spacing components so that it scales with the text size and spacing
394
+ }
395
+
396
+ @media (min-width: $breakpoint-xl) {
397
+ --header-height: 135px; // ideally we would calculate the size from the current text size plus spacing components so that it scales with the text size and spacing
398
+ --search-size: 2.875rem; // This should be calculated from the scaling text and scaling spacing tokens instead of hardcoding in case they change
399
+ }
400
+ }
401
+
402
+ ////////////////////////
403
+ /// max-site-width TOKEN:
404
+ ///////////////////////
405
+ $max-site-width: 1560px;
406
+ $desktop-max-width: var(--desktop-max-width);
407
+
408
+ ////////////////////////
409
+ /// z-index TOKENS:
410
+ ///////////////////////
411
+ $modal-z-index: 30;
412
+
413
+ ////////////////////////
414
+ /// Our tokens usually support at least 4 sizes.
415
+ ///////////////////////
416
+ $size-sm: 'sm';
417
+ $size-md: 'md';
418
+ $size-lg: 'lg';
419
+ $size-xl: 'xl';
420
+ $size-xxl: 'xxl';
421
+ $default-transition: 150ms cubic-bezier(0.16, 1, 0.3, 1);
422
+ $drawer-content-transition: 350ms cubic-bezier(0, 0, 0.2, 1);
423
+ $default-overlay-transition: 350ms cubic-bezier(0.4, 0, 0.2, 1);
424
+
425
+ ////////////////////////
426
+ /// Mobile-specific tokens
427
+ ///////////////////////
428
+ $mobile-minimum-clickable-area: 44px;
429
+
430
+ ////////////////////////
431
+ /// Header Tokens
432
+ ///
433
+ $search-size: var(--search-size);
434
+ $header-height: var(--header-height);
435
+ `;
436
+ export {
437
+ e as default
438
+ };
@@ -0,0 +1,32 @@
1
+ @import '../../allPartials';
2
+
3
+ .story-icon-flex-wrapper {
4
+ box-shadow: 0 0 8px 0 rgba(0, 0, 0, 20%);
5
+ display: flex;
6
+ flex-wrap: wrap;
7
+ justify-content: space-between;
8
+ margin: 24px;
9
+ padding: 24px;
10
+ width: fit-content;
11
+
12
+ .icon-set {
13
+ display: flex;
14
+ flex-direction: column;
15
+ margin: 24px 12px;
16
+ }
17
+
18
+ .icon-name {
19
+ padding: 8px;
20
+ text-align: center;
21
+
22
+ @include text($string2);
23
+ }
24
+
25
+ .icon-wrapper {
26
+ &.show-border {
27
+ border: 1px solid black;
28
+ }
29
+
30
+ margin: 0 auto;
31
+ }
32
+ }
@@ -8,7 +8,7 @@
8
8
  padding: 0;
9
9
  width: $spacing-md;
10
10
 
11
- & > svg {
11
+ & svg {
12
12
  height: $button-label-line-height;
13
13
  width: $button-label-line-height;
14
14
  }
@@ -29,7 +29,7 @@
29
29
  background: $pure-white;
30
30
  color: $pure-black;
31
31
 
32
- & > svg {
32
+ & svg {
33
33
  fill: $pure-black;
34
34
  height: calc($button-label-line-height * 1.5); // design-cheats-for-button-large
35
35
  margin-inline-end: unset;
@@ -93,10 +93,9 @@
93
93
  &:hover {
94
94
  background-color: $button-hover;
95
95
 
96
- & > svg {
96
+ & svg {
97
97
  fill: $pure-white;
98
98
  margin-inline-end: unset;
99
- position: absolute;
100
99
 
101
100
  path {
102
101
  fill: $pure-white;
@@ -15,7 +15,7 @@
15
15
  opacity: 0.15;
16
16
  pointer-events: none;
17
17
 
18
- svg path {
18
+ .#{$px}-icon path {
19
19
  fill: $pure-black;
20
20
  }
21
21
  }
@@ -23,7 +23,7 @@
23
23
  &:hover:not(:disabled) {
24
24
  background-color: inherit;
25
25
 
26
- svg path {
26
+ .#{$px}-icon path {
27
27
  fill: $pure-black;
28
28
  }
29
29
  }
@@ -55,9 +55,6 @@
55
55
  }
56
56
 
57
57
  &__account-icon {
58
- height: 1.5rem;
59
- width: 1.5rem;
60
-
61
58
  a {
62
59
  align-items: center;
63
60
  display: flex;
@@ -1,9 +1,9 @@
1
1
  import { jsxs as t, jsx as o } from "react/jsx-runtime";
2
2
  import l from "../../node_modules/classnames/index.js";
3
3
  import { px as r, defaultYear as m } from "../../utils/index.js";
4
- import f from "../../assets/PhillipsLogo.svg.js";
5
- import { TextVariants as c } from "../../components/Text/types.js";
6
- import d from "../../components/Text/Text.js";
4
+ import { TextVariants as f } from "../../components/Text/types.js";
5
+ import c from "../../components/Text/Text.js";
6
+ import n from "../../components/Icon/Icon.js";
7
7
  const $ = ({
8
8
  children: a,
9
9
  className: i,
@@ -12,8 +12,8 @@ const $ = ({
12
12
  }) => /* @__PURE__ */ t("footer", { "data-testid": e || "footer", id: e, className: l(`${r}-footer`, { className: i }), children: [
13
13
  /* @__PURE__ */ o("div", { className: `${r}-footer__links`, children: a }),
14
14
  /* @__PURE__ */ t("div", { className: `${r}-footer__copyright`, children: [
15
- /* @__PURE__ */ o("h3", { "data-testid": "footer-logo", className: `${r}-footer__logo`, children: /* @__PURE__ */ o("a", { href: "/", "aria-label": "logo", children: /* @__PURE__ */ o(f, {}) }) }),
16
- /* @__PURE__ */ o(d, { variant: c.body3, children: s })
15
+ /* @__PURE__ */ o("h3", { "data-testid": "footer-logo", className: `${r}-footer__logo`, children: /* @__PURE__ */ o("a", { href: "/", "aria-label": "logo", children: /* @__PURE__ */ o(n, { icon: "PhillipsLogo" }) }) }),
16
+ /* @__PURE__ */ o(c, { variant: f.body3, children: s })
17
17
  ] })
18
18
  ] });
19
19
  export {
@@ -2,29 +2,29 @@ import { jsxs as o, jsx as a } from "react/jsx-runtime";
2
2
  import r, { createContext as j, forwardRef as R, useState as V } from "react";
3
3
  import l from "../../node_modules/classnames/index.js";
4
4
  import { findChildrenOfType as s, findChildrenExcludingTypes as w, px as e } from "../../utils/index.js";
5
- import L from "../../assets/PhillipsLogo.svg.js";
6
5
  import u from "../../patterns/UserManagement/UserManagement.js";
7
6
  import f from "../../patterns/LanguageSelector/LanguageSelector.js";
8
7
  import _ from "../../components/Navigation/Navigation.js";
9
- import { defaultHeaderContext as k } from "./utils.js";
10
- import { SSRMediaQuery as q } from "../../providers/SeldonProvider/utils.js";
11
- import { useMobileMenu as A } from "./hooks.js";
12
- const I = j(k), Q = R(
8
+ import { defaultHeaderContext as I } from "./utils.js";
9
+ import { SSRMediaQuery as L } from "../../providers/SeldonProvider/utils.js";
10
+ import { useMobileMenu as k } from "./hooks.js";
11
+ import q from "../../components/Icon/Icon.js";
12
+ const A = j(I), Q = R(
13
13
  ({
14
- logo: i = /* @__PURE__ */ a(L, {}),
15
- logoHref: v = "/",
16
- className: E,
14
+ logo: i = /* @__PURE__ */ a(q, { icon: "PhillipsLogo" }),
15
+ logoHref: E = "/",
16
+ className: v,
17
17
  children: t,
18
18
  toggleOpenText: C = "Open Menu",
19
19
  toggleCloseText: M = "Close Menu",
20
20
  logoText: x = "Home Page",
21
21
  disabled: m,
22
22
  ...y
23
- }, S) => {
24
- const c = s(t, u), $ = r.isValidElement(c?.[0]) ? r.cloneElement(c[0], { disabled: m }) : "", h = s(t, f), p = r.isValidElement(h?.[0]) ? r.cloneElement(h[0], { disabled: m }) : "", [g, b] = V(!1), N = s(t, _), H = w(t, [_, u, f]), { closeMenu: T, handleMenuToggle: O, isMenuOpen: d, toggleText: P } = A({ toggleOpenText: C, toggleCloseText: M });
25
- return /* @__PURE__ */ o("header", { ...y, className: l(`${e}-header`, E), ref: S, children: [
23
+ }, $) => {
24
+ const c = s(t, u), b = r.isValidElement(c?.[0]) ? r.cloneElement(c[0], { disabled: m }) : "", h = s(t, f), p = r.isValidElement(h?.[0]) ? r.cloneElement(h[0], { disabled: m }) : "", [g, N] = V(!1), S = s(t, _), H = w(t, [_, u, f]), { closeMenu: T, handleMenuToggle: O, isMenuOpen: d, toggleText: P } = k({ toggleOpenText: C, toggleCloseText: M });
25
+ return /* @__PURE__ */ o("header", { ...y, className: l(`${e}-header`, v), ref: $, children: [
26
26
  /* @__PURE__ */ o("div", { className: `${e}-header__top-row`, children: [
27
- /* @__PURE__ */ a(q.Media, { greaterThanOrEqual: "md", children: p }),
27
+ /* @__PURE__ */ a(L.Media, { greaterThanOrEqual: "md", children: p }),
28
28
  /* @__PURE__ */ o(
29
29
  "button",
30
30
  {
@@ -41,21 +41,21 @@ const I = j(k), Q = R(
41
41
  ]
42
42
  }
43
43
  ),
44
- /* @__PURE__ */ a("h1", { "data-testid": "header-logo", className: `${e}-header__logo`, children: /* @__PURE__ */ a("a", { href: v, "aria-label": x, children: typeof i == "object" ? i : /* @__PURE__ */ a("img", { alt: "Phillips", "data-testid": "header-logo-img", src: i }) }) }),
45
- $
44
+ /* @__PURE__ */ a("h1", { "data-testid": "header-logo", className: `${e}-header__logo`, children: /* @__PURE__ */ a("a", { href: E, "aria-label": x, children: typeof i == "object" ? i : /* @__PURE__ */ a("img", { alt: "Phillips", "data-testid": "header-logo-img", src: i }) }) }),
45
+ b
46
46
  ] }),
47
47
  /* @__PURE__ */ a("div", { className: l(`${e}-header__nav`, { [`${e}-header__nav--closed`]: !d }), children: /* @__PURE__ */ o(
48
- I.Provider,
48
+ A.Provider,
49
49
  {
50
50
  value: {
51
51
  isMenuOpen: d,
52
52
  isSearchExpanded: g,
53
- setIsSearchExpanded: b,
53
+ setIsSearchExpanded: N,
54
54
  closeMenu: T
55
55
  },
56
56
  children: [
57
57
  r.Children.map(
58
- N,
58
+ S,
59
59
  (n) => r.isValidElement(n) ? r.cloneElement(n, {
60
60
  children: [
61
61
  ...r.Children.toArray(n.props.children),
@@ -80,6 +80,6 @@ const I = j(k), Q = R(
80
80
  );
81
81
  Q.displayName = "Header";
82
82
  export {
83
- I as HeaderContext,
83
+ A as HeaderContext,
84
84
  Q as default
85
85
  };
@@ -40,7 +40,7 @@ export interface InputProps {
40
40
  */
41
41
  disabled?: boolean;
42
42
  /**
43
- * Specify a custom `id` for the `<input>`
43
+ * Specify a unique `id` for the `<input>`
44
44
  */
45
45
  id: string;
46
46
  /**
@@ -0,0 +1,2 @@
1
+ export declare const getScssVar: (scssVar: string, defaultValue: string) => string;
2
+ export declare const getScssColors: () => string[];
@@ -0,0 +1,12 @@
1
+ import l from "../scss/_vars.scss.js";
2
+ const c = (r, a) => {
3
+ const n = l.split(`
4
+ `).map((e) => {
5
+ const [o, s] = e.split(": ");
6
+ return { name: o, value: s?.replace(";", "") };
7
+ }), t = n.findIndex(({ name: e }) => e === r);
8
+ return r && t > -1 ? n[t].value : a;
9
+ };
10
+ export {
11
+ c as getScssVar
12
+ };
@@ -0,0 +1 @@
1
+ export {};