@phillips/seldon 1.214.0 → 1.216.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.
- package/dist/components/Accordion/Accordion.stories.d.ts +1 -1
- package/dist/components/Accordion/AccordionItem.js +101 -105
- package/dist/components/Accordion/types.d.ts +9 -3
- package/dist/components/Accordion/types.js +1 -1
- package/dist/components/Accordion/utils.d.ts +3 -3
- package/dist/components/Accordion/utils.js +7 -7
- package/dist/components/AddToCalendar/AddToCalendar.js +24 -25
- package/dist/components/Article/Article.js +17 -17
- package/dist/components/Breadcrumb/BreadcrumbItem.js +13 -13
- package/dist/components/Button/Button.d.ts +4 -0
- package/dist/components/Button/Button.js +71 -53
- package/dist/components/Button/Button.stories.d.ts +7 -1
- package/dist/components/ComboBox/ComboBox.js +33 -29
- package/dist/components/ComposedModal/ComposedModal.js +33 -33
- package/dist/components/ComposedModal/ComposedModal.stories.d.ts +1 -0
- package/dist/components/Countdown/Countdown.js +90 -51
- package/dist/components/Countdown/Duration.d.ts +3 -1
- package/dist/components/Countdown/Duration.js +17 -9
- package/dist/components/Countdown/types.d.ts +2 -1
- package/dist/components/Countdown/types.js +1 -1
- package/dist/components/DescriptiveRadioButton/DescriptiveRadioButton.js +21 -21
- package/dist/components/Detail/Detail.d.ts +2 -0
- package/dist/components/Detail/Detail.js +27 -16
- package/dist/components/Detail/Detail.stories.d.ts +35 -2
- package/dist/components/Detail/index.d.ts +1 -0
- package/dist/components/Detail/types.d.ts +5 -0
- package/dist/components/Detail/types.js +4 -0
- package/dist/components/Drawer/DrawerHeader.js +22 -20
- package/dist/components/ExitGateCard/ExitGateCard.js +29 -29
- package/dist/components/FavoritingTileButton/FavoritingTileButton.js +30 -31
- package/dist/components/Filter/Filter.js +36 -34
- package/dist/components/Filter/FilterHeader.d.ts +4 -0
- package/dist/components/Filter/FilterHeader.js +30 -22
- package/dist/components/Input/Input.js +43 -39
- package/dist/components/Input/Input.stories.d.ts +16 -0
- package/dist/components/Link/Link.js +11 -11
- package/dist/components/Link/Link.stories.d.ts +17 -1
- package/dist/components/Link/types.d.ts +9 -4
- package/dist/components/Link/types.js +3 -3
- package/dist/components/LinkBlock/LinkBlock.js +19 -11
- package/dist/components/Modal/Modal.d.ts +0 -4
- package/dist/components/Modal/Modal.js +6 -6
- package/dist/components/Navigation/NavigationItem/NavigationItem.js +31 -23
- package/dist/components/Navigation/NavigationItemTrigger/NavigationItemTrigger.js +37 -39
- package/dist/components/Navigation/NavigationList/NavigationList.js +5 -5
- package/dist/components/Pagination/Pagination.js +22 -21
- package/dist/components/ProgressIndicator/ProgressIndicator.js +22 -22
- package/dist/components/Search/Search.js +55 -53
- package/dist/components/Search/SearchResults/SearchResults.js +16 -16
- package/dist/components/Select/Select.d.ts +4 -0
- package/dist/components/Select/Select.js +51 -45
- package/dist/components/Select/Select.stories.d.ts +1 -0
- package/dist/components/Tabs/TabsContainer.js +1 -1
- package/dist/components/Tags/Tags.js +32 -30
- package/dist/components/Text/Text.js +17 -9
- package/dist/components/Text/types.d.ts +42 -1
- package/dist/components/Text/types.js +3 -3
- package/dist/components/Text/utils.js +40 -7
- package/dist/components/TextArea/TextArea.js +38 -34
- package/dist/components/Toast/Toast.js +4 -4
- package/dist/index.js +192 -190
- package/dist/patterns/AccountPageHeader/AccountPageHeader.js +45 -28
- package/dist/patterns/BidSnapshot/BidMessage.d.ts +6 -1
- package/dist/patterns/BidSnapshot/BidMessage.js +14 -13
- package/dist/patterns/BidSnapshot/BidSnapshot.d.ts +11 -1
- package/dist/patterns/BidSnapshot/BidSnapshot.js +76 -64
- package/dist/patterns/BidSnapshot/BidSnapshot.stories.d.ts +114 -0
- package/dist/patterns/CountryPicker/CountryPickerCountryList.js +5 -5
- package/dist/patterns/CountryPicker/CountryPickerModal.js +8 -8
- package/dist/patterns/CountryPicker/CountryPickerOption.js +22 -20
- package/dist/patterns/CountryPicker/CountryPickerTrigger.js +39 -38
- package/dist/patterns/DetailList/DetailList.d.ts +7 -2
- package/dist/patterns/DetailList/DetailList.js +25 -24
- package/dist/patterns/DetailList/DetailList.stories.d.ts +1 -0
- package/dist/patterns/FavoritesCollectionTile/FavoritesCollectionTile.js +52 -52
- package/dist/patterns/FavoritesCollectionTile/FavoritesCollectionTile.stories.d.ts +1 -0
- package/dist/patterns/FiltersInline/FilterButton.js +41 -25
- package/dist/patterns/FiltersInline/FilterDropdownMenuDesktop.js +50 -52
- package/dist/patterns/FiltersInline/FilterDropdownMenuMobile.js +31 -31
- package/dist/patterns/HeroBanner/HeroBanner.js +21 -21
- package/dist/patterns/LanguageSelector/LanguageSelector.js +26 -28
- package/dist/patterns/ObjectTile/ObjectTile.js +66 -73
- package/dist/patterns/ObjectTile/ObjectTile.stories.d.ts +36 -0
- package/dist/patterns/PhoneNumberInput/PhoneNumberInput.js +7 -6
- package/dist/patterns/SaleCard/SaleCard.js +33 -41
- package/dist/patterns/SaleCard/SaleCard.stories.d.ts +1 -1
- package/dist/patterns/SaleCard/SaleCardActions.js +9 -8
- package/dist/patterns/SaleHeaderBanner/SaleHeaderBanner.js +49 -49
- package/dist/patterns/SaleHeaderBanner/SaleHeaderBrowseAuctions.js +19 -12
- package/dist/patterns/Social/Social.js +22 -22
- package/dist/patterns/Subscribe/Subscribe.js +57 -55
- package/dist/patterns/Subscribe/Subscribe.stories.d.ts +0 -1
- package/dist/patterns/TextBanner/TextBanner.js +12 -12
- package/dist/patterns/UserManagement/UserManagement.js +13 -13
- package/dist/patterns/ViewingDetails/ViewingDetails.d.ts +4 -0
- package/dist/patterns/ViewingDetails/ViewingDetails.js +36 -34
- package/dist/patterns/ViewingDetails/ViewingDetails.stories.d.ts +2 -0
- package/dist/patterns/ViewingDetails/ViewingDetailsMock.d.ts +2 -0
- package/dist/scss/_reset.scss +4 -0
- package/dist/scss/_type.scss +172 -65
- package/dist/scss/_vars.scss +92 -197
- package/dist/scss/_vars.scss.js +94 -199
- package/dist/scss/componentStyles.scss +181 -0
- package/dist/scss/components/Accordion/_accordion.scss +14 -28
- package/dist/scss/components/AddToCalendar/_addToCalendar.scss +0 -4
- package/dist/scss/components/Breadcrumb/_breadcrumb.scss +8 -1
- package/dist/scss/components/Button/_button.scss +33 -7
- package/dist/scss/components/ComboBox/_combobox.scss +7 -5
- package/dist/scss/components/ComposedModal/_composedModal.scss +0 -4
- package/dist/scss/components/Countdown/_countdown.scss +8 -9
- package/dist/scss/components/Countdown/_duration.scss +0 -2
- package/dist/scss/components/DatePicker/_datePicker.scss +11 -10
- package/dist/scss/components/Detail/_detail.scss +15 -6
- package/dist/scss/components/Divider/_divider.scss +3 -3
- package/dist/scss/components/Drawer/_drawerHeader.scss +0 -7
- package/dist/scss/components/Dropdown/_dropdown.scss +2 -2
- package/dist/scss/components/FavoritingTileButton/_favoritingTileButton.scss +5 -0
- package/dist/scss/components/Filter/_filter.scss +13 -10
- package/dist/scss/components/Icon/_icon.stories.scss +1 -1
- package/dist/scss/components/IconButton/_iconButton.scss +3 -5
- package/dist/scss/components/Input/_input.scss +22 -14
- package/dist/scss/components/Link/_link.scss +13 -8
- package/dist/scss/components/LinkBlock/_linkBlock.scss +5 -1
- package/dist/scss/components/LinkList/_linkList.scss +6 -0
- package/dist/scss/components/Modal/_modal.scss +2 -2
- package/dist/scss/components/Navigation/NavigationItem/_navigationItem.scss +30 -14
- package/dist/scss/components/Navigation/NavigationItemTrigger/_navigationItemTrigger.scss +2 -2
- package/dist/scss/components/Navigation/NavigationList/_navigationList.scss +5 -4
- package/dist/scss/components/NotificationBanner/_notificationBanner.scss +4 -10
- package/dist/scss/components/Pagination/_pagination.scss +17 -1
- package/dist/scss/components/ProgressIndicator/_progressIndicator.scss +5 -0
- package/dist/scss/components/Search/SearchResults/_searchResults.scss +5 -0
- package/dist/scss/components/Search/_search.scss +3 -11
- package/dist/scss/components/Search/_searchButton.scss +0 -1
- package/dist/scss/components/Select/_select.scss +8 -3
- package/dist/scss/components/Tabs/_tabs.scss +1 -6
- package/dist/scss/components/Tags/_tags.scss +0 -2
- package/dist/scss/components/TextArea/_textArea.scss +2 -4
- package/dist/scss/components/TextSymbol/_textSymbol.scss +1 -4
- package/dist/scss/patterns/AccountPageHeader/_accountPageHeader.scss +4 -0
- package/dist/scss/patterns/BidSnapshot/_bidSnapshot.scss +12 -11
- package/dist/scss/patterns/CountryPicker/_countryPickerModal.scss +4 -0
- package/dist/scss/patterns/CountryPicker/_countryPickerOption.scss +3 -0
- package/dist/scss/patterns/CountryPicker/_countryPickerTrigger.scss +4 -7
- package/dist/scss/patterns/DetailList/_detailList.scss +8 -2
- package/dist/scss/patterns/FavoritesCollectionTile/_favoritesCollectionTile.scss +6 -8
- package/dist/scss/patterns/FilterMenu/_filterMenu.scss +2 -1
- package/dist/scss/patterns/FiltersInline/_filterButton.scss +12 -2
- package/dist/scss/patterns/FiltersInline/_filterDropdownMenu.scss +1 -9
- package/dist/scss/patterns/FiltersInline/_filtersInline.scss +5 -0
- package/dist/scss/patterns/HeroBanner/_heroBanner.scss +5 -6
- package/dist/scss/patterns/LanguageSelector/_languageSelector.scss +4 -0
- package/dist/scss/patterns/ObjectTile/_objectTile.scss +13 -12
- package/dist/scss/patterns/PhoneNumberInput/_phoneNumberInput.scss +9 -2
- package/dist/scss/patterns/SaleCard/_saleCard.scss +7 -23
- package/dist/scss/patterns/SaleHeaderBanner/_saleHeaderBanner.scss +16 -3
- package/dist/scss/patterns/Social/_social.scss +5 -1
- package/dist/scss/patterns/Subscribe/_subscribe.scss +0 -12
- package/dist/scss/patterns/TextBanner/_textBanner.scss +9 -3
- package/dist/scss/patterns/ViewingDetails/_viewingDetails.scss +15 -3
- package/dist/scss/site-furniture/Footer/_footer.scss +24 -4
- package/dist/scss/site-furniture/Header/_header.scss +12 -4
- package/dist/site-furniture/Footer/Footer.js +4 -4
- package/dist/site-furniture/Header/Header.js +76 -57
- package/package.json +4 -3
package/dist/scss/_type.scss
CHANGED
|
@@ -110,131 +110,238 @@
|
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
-
@mixin
|
|
114
|
-
|
|
115
|
-
@if $token == 'button' {
|
|
116
|
-
@include labelText($button);
|
|
117
|
-
}
|
|
113
|
+
@mixin display-styles($font-size, $font-weight: 400, $text-transform: unset, $font-style: unset) {
|
|
114
|
+
@include DistinctDisplay;
|
|
118
115
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
116
|
+
font-size: $font-size;
|
|
117
|
+
font-style: $font-style;
|
|
118
|
+
font-variation-settings: 'wght' $font-weight;
|
|
119
|
+
letter-spacing: 0;
|
|
120
|
+
line-height: 1.2;
|
|
121
|
+
text-transform: $text-transform;
|
|
122
|
+
}
|
|
122
123
|
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
124
|
+
@mixin heading-styles($font-size, $font-weight: 400, $text-transform: unset, $font-style: unset) {
|
|
125
|
+
@include display-styles($font-size, $font-weight, $text-transform, $font-style);
|
|
126
|
+
}
|
|
126
127
|
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
}
|
|
128
|
+
@mixin body-styles($font-size, $font-weight: 400, $text-transform: unset, $font-style: unset) {
|
|
129
|
+
@include Montserrat;
|
|
130
130
|
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
131
|
+
font-size: $font-size;
|
|
132
|
+
font-style: $font-style;
|
|
133
|
+
font-variation-settings: 'wght' $font-weight;
|
|
134
|
+
letter-spacing: 0;
|
|
135
|
+
line-height: 1.4;
|
|
136
|
+
text-transform: $text-transform;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
@mixin label-styles($font-size: $font-size-label-small, $font-weight: 400, $text-transform: unset, $font-style: unset) {
|
|
140
|
+
@include Montserrat;
|
|
141
|
+
|
|
142
|
+
font-size: $font-size;
|
|
143
|
+
font-style: $font-style;
|
|
144
|
+
font-variation-settings: 'wght' $font-weight;
|
|
145
|
+
letter-spacing: 0;
|
|
146
|
+
line-height: 1.2;
|
|
147
|
+
text-transform: $text-transform;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
@mixin link-styles(
|
|
151
|
+
$font-size,
|
|
152
|
+
$font-weight: 400,
|
|
153
|
+
$text-transform: unset,
|
|
154
|
+
$font-style: unset,
|
|
155
|
+
$text-decoration: underline
|
|
156
|
+
) {
|
|
157
|
+
@include Montserrat;
|
|
158
|
+
|
|
159
|
+
font-size: $font-size;
|
|
160
|
+
font-style: $font-style;
|
|
161
|
+
font-variation-settings: 'wght' $font-weight;
|
|
162
|
+
letter-spacing: 0;
|
|
163
|
+
line-height: 1.2;
|
|
164
|
+
text-decoration: $text-decoration;
|
|
165
|
+
text-transform: $text-transform;
|
|
166
|
+
}
|
|
134
167
|
|
|
135
|
-
|
|
168
|
+
@mixin text($token, $font-weight: 400, $text-transform: unset, $font-style: unset, $text-decoration: unset) {
|
|
136
169
|
@if $token == 'blockquote' {
|
|
137
|
-
@include
|
|
138
|
-
$heading-size1,
|
|
139
|
-
$color: $primary-black,
|
|
140
|
-
$transform-style: initial,
|
|
141
|
-
$line-height: $heading-line-height-size1
|
|
142
|
-
);
|
|
170
|
+
@include heading-styles($font-size-heading-large, $font-weight, $text-transform, $font-style);
|
|
143
171
|
}
|
|
144
172
|
|
|
145
173
|
@if $token == 'heading1' {
|
|
146
|
-
@include
|
|
174
|
+
@include heading-styles($font-size-heading-large, $font-weight, $text-transform, $font-style);
|
|
147
175
|
}
|
|
148
176
|
|
|
149
177
|
@if $token == 'heading2' {
|
|
150
|
-
@include
|
|
178
|
+
@include heading-styles($font-size-heading-large, $font-weight, $text-transform, $font-style);
|
|
151
179
|
}
|
|
152
180
|
|
|
153
181
|
@if $token == 'heading3' {
|
|
154
|
-
@include
|
|
182
|
+
@include heading-styles($font-size-heading-medium, $font-weight, $text-transform, $font-style);
|
|
155
183
|
}
|
|
156
184
|
|
|
157
185
|
@if $token == 'heading4' {
|
|
158
|
-
@include
|
|
186
|
+
@include heading-styles($font-size-heading-small, $font-weight, $text-transform, $font-style);
|
|
159
187
|
}
|
|
160
188
|
|
|
161
189
|
@if $token == 'heading5' {
|
|
162
|
-
@include
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
@if $token == 'title1' {
|
|
166
|
-
@include hText($heading-size1, $line-height: $heading-line-height-size1, $transform-style: uppercase);
|
|
190
|
+
@include body-styles($font-size-body-small, $font-weight, $text-transform, $font-style);
|
|
167
191
|
}
|
|
168
192
|
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
@include hText($heading-size3, $line-height: $heading-line-height-size3, $transform-style: uppercase);
|
|
193
|
+
@if $token == 'string1' {
|
|
194
|
+
@include heading-styles($font-size-heading-medium, $font-weight, $text-transform, $font-style);
|
|
172
195
|
}
|
|
173
196
|
|
|
174
|
-
@if $token == '
|
|
175
|
-
@include
|
|
197
|
+
@if $token == 'string2' {
|
|
198
|
+
@include body-styles($font-size-body-small, $font-weight, $text-transform, $font-style);
|
|
176
199
|
}
|
|
177
200
|
|
|
178
|
-
@if $token == '
|
|
179
|
-
@include
|
|
201
|
+
@if $token == 'string3' {
|
|
202
|
+
@include body-styles($font-size-body-small, $font-weight, $text-transform, $font-style);
|
|
180
203
|
}
|
|
181
204
|
|
|
182
|
-
// Body
|
|
183
205
|
@if $token == 'body1' {
|
|
184
|
-
@include
|
|
206
|
+
@include body-styles($font-size-body-large, $font-weight, $text-transform, $font-style);
|
|
185
207
|
}
|
|
186
208
|
|
|
187
209
|
@if $token == 'body2' {
|
|
188
|
-
@include
|
|
210
|
+
@include body-styles($font-size-body-medium, $font-weight, $text-transform, $font-style);
|
|
189
211
|
}
|
|
190
212
|
|
|
191
213
|
@if $token == 'body3' {
|
|
192
|
-
@include
|
|
214
|
+
@include body-styles($font-size-body-small, $font-weight, $text-transform, $font-style);
|
|
193
215
|
}
|
|
194
216
|
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
@include pText($string-size1, $line-height: $string-line-height-size1);
|
|
217
|
+
@if $token == 'link' {
|
|
218
|
+
@include link-styles($font-size: $font-size-link-medium);
|
|
198
219
|
}
|
|
199
220
|
|
|
200
|
-
@if $token == '
|
|
201
|
-
@include
|
|
221
|
+
@if $token == 'button' {
|
|
222
|
+
@include body-styles($font-size-body-small, $font-weight, $text-transform, $font-style);
|
|
202
223
|
}
|
|
203
224
|
|
|
204
|
-
@if $token == '
|
|
205
|
-
@include
|
|
225
|
+
@if $token == 'badge' {
|
|
226
|
+
@include label-styles($font-size: $font-size-label-small, $font-weight: 400, $text-transform: uppercase);
|
|
206
227
|
}
|
|
207
228
|
|
|
208
|
-
// SNW
|
|
209
229
|
@if $token == 'snwHeaderLink' {
|
|
230
|
+
@include link-styles(
|
|
231
|
+
$font-size: $font-size-link-stylised,
|
|
232
|
+
$font-weight: 600,
|
|
233
|
+
$text-transform: uppercase,
|
|
234
|
+
$text-decoration: unset
|
|
235
|
+
);
|
|
210
236
|
@include DistinctDisplay;
|
|
211
237
|
|
|
212
|
-
font-size: $snw-header-link-size;
|
|
213
|
-
font-variation-settings: 'wght' 400;
|
|
214
238
|
letter-spacing: 1px;
|
|
215
|
-
line-height: $snw-header-link-line-height;
|
|
216
|
-
text-transform: uppercase;
|
|
217
239
|
}
|
|
218
240
|
|
|
219
241
|
@if $token == 'snwFlyoutLink' {
|
|
220
|
-
@include
|
|
221
|
-
|
|
222
|
-
font-size: $snw-flyout-link-size;
|
|
223
|
-
font-variation-settings: 'wght' 400;
|
|
224
|
-
letter-spacing: 1px;
|
|
225
|
-
line-height: $snw-flyout-link-line-height;
|
|
226
|
-
text-transform: capitalize;
|
|
242
|
+
@include link-styles($font-size: $font-size-link-large, $text-decoration: unset);
|
|
227
243
|
}
|
|
228
244
|
|
|
229
245
|
@if $token == 'snwHeadingHero1' {
|
|
230
|
-
@include
|
|
246
|
+
@include display-styles($font-size-display-small, $font-weight, $text-transform: uppercase, $font-style: unset);
|
|
231
247
|
|
|
232
248
|
text-align: center;
|
|
233
249
|
}
|
|
234
250
|
|
|
235
251
|
@if $token == 'snwHeadingHero2' {
|
|
236
|
-
@include
|
|
252
|
+
@include heading-styles($font-size-heading-large, $font-weight, uppercase, $font-style);
|
|
237
253
|
|
|
238
254
|
text-align: center;
|
|
239
255
|
}
|
|
256
|
+
|
|
257
|
+
@if $token == 'title1' {
|
|
258
|
+
@include heading-styles($font-size-heading-large, $font-weight, uppercase, $font-style);
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
@if $token == 'title2' {
|
|
262
|
+
@include heading-styles($font-size-heading-medium, $font-weight, uppercase, $font-style);
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
@if $token == 'title3' {
|
|
266
|
+
@include heading-styles($font-size-heading-small, $font-weight, uppercase, $font-style);
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
@if $token == 'title4' {
|
|
270
|
+
@include body-styles($font-size-body-small, $font-weight, uppercase, $font-style);
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
@if $token == 'email' {
|
|
274
|
+
@include labelText($email);
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
@if $token == 'label' {
|
|
278
|
+
@include labelText($label);
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
@if $token == $displayMedium {
|
|
282
|
+
@include display-styles($font-size-display-medium, $font-weight, $text-transform: uppercase, $font-style: unset);
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
@if $token == $displaySmall {
|
|
286
|
+
@include display-styles($font-size-display-small, $font-weight, $text-transform: uppercase, $font-style: unset);
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
@if $token == $headingLarge {
|
|
290
|
+
@include heading-styles($font-size-heading-large, $font-weight, $text-transform, $font-style);
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
@if $token == $headingMedium {
|
|
294
|
+
@include heading-styles($font-size-heading-medium, $font-weight, $text-transform, $font-style);
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
@if $token == $headingSmall {
|
|
298
|
+
@include heading-styles($font-size-heading-small, $font-weight, $text-transform, $font-style);
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
@if $token == $headingExtraSmall {
|
|
302
|
+
@include heading-styles($font-size-heading-extra-small, $font-weight, $text-transform, $font-style);
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
@if $token == $bodyLarge {
|
|
306
|
+
@include body-styles($font-size-body-large, $font-weight, $text-transform, $font-style);
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
@if $token == $bodyMedium {
|
|
310
|
+
@include body-styles($font-size-body-medium, $font-weight, $text-transform, $font-style);
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
@if $token == $bodySmall {
|
|
314
|
+
@include body-styles($font-size-body-small, $font-weight, $text-transform, $font-style);
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
@if $token == $labelLarge {
|
|
318
|
+
@include label-styles($font-size: $font-size-label-large);
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
@if $token == $labelMedium {
|
|
322
|
+
@include label-styles($font-size: $font-size-label-medium);
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
@if $token == $labelSmall {
|
|
326
|
+
@include label-styles($font-size: $font-size-label-small);
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
@if $token == $linkStylised {
|
|
330
|
+
@include link-styles($font-size: $font-size-link-stylised, $text-transform: uppercase, $text-decoration: unset);
|
|
331
|
+
@include DistinctDisplay;
|
|
332
|
+
|
|
333
|
+
letter-spacing: 1px;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
@if $token == $linkLarge {
|
|
337
|
+
@include link-styles($font-size-link-large);
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
@if $token == $linkMedium {
|
|
341
|
+
@include link-styles($font-size-link-medium);
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
@if $token == $linkSmall {
|
|
345
|
+
@include link-styles($font-size-link-small);
|
|
346
|
+
}
|
|
240
347
|
}
|
package/dist/scss/_vars.scss
CHANGED
|
@@ -1,6 +1,76 @@
|
|
|
1
1
|
// prefix
|
|
2
2
|
$px: seldon;
|
|
3
3
|
|
|
4
|
+
// TODO: make design team to follow something like https://tailwindcss.com/docs/font-size
|
|
5
|
+
@mixin font-size-vars--sm {
|
|
6
|
+
--font-size-display-medium: 2.5rem; // 40px
|
|
7
|
+
--font-size-display-small: 2rem; // 32px
|
|
8
|
+
--font-size-heading-large: 1.5rem; // 24px
|
|
9
|
+
--font-size-heading-medium: 1.25rem; // 20px
|
|
10
|
+
--font-size-heading-small: 1rem; // 16px
|
|
11
|
+
--font-size-heading-extra-small: 0.75rem; // 12px
|
|
12
|
+
--font-size-body-large: 1rem; // 16px
|
|
13
|
+
--font-size-body-medium: 0.875rem; // 14px
|
|
14
|
+
--font-size-body-small: 0.75rem; // 12px
|
|
15
|
+
--font-size-label-large: 1rem; // 16px
|
|
16
|
+
--font-size-label-medium: 0.875rem; // 14px
|
|
17
|
+
--font-size-label-small: 0.75rem; // 12px
|
|
18
|
+
--font-size-link-stylised: 1rem; // 16px
|
|
19
|
+
--font-size-link-large: 1rem; // 16px
|
|
20
|
+
--font-size-link-medium: 0.875rem; // 14px
|
|
21
|
+
--font-size-link-small: 0.75rem; // 12px
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
@mixin font-size-vars--md {
|
|
25
|
+
@include font-size-vars--sm;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
@mixin font-size-vars--lg {
|
|
29
|
+
--font-size-display-medium: 3rem; // 48px
|
|
30
|
+
--font-size-display-small: 2.5rem; // 40px
|
|
31
|
+
--font-size-heading-large: 1.75rem; // 28px
|
|
32
|
+
--font-size-heading-medium: 1.5rem; // 24px
|
|
33
|
+
--font-size-heading-small: 1.25rem; // 20px
|
|
34
|
+
--font-size-heading-extra-small: 1rem; // 16px
|
|
35
|
+
--font-size-body-large: 1.25rem; // 20px
|
|
36
|
+
--font-size-body-medium: 1.125rem; // 18px
|
|
37
|
+
--font-size-body-small: 1rem; // 16px
|
|
38
|
+
--font-size-label-large: 1.25rem; // 20px
|
|
39
|
+
--font-size-label-medium: 1.125rem; // 18px
|
|
40
|
+
--font-size-label-small: 1rem; // 16px
|
|
41
|
+
--font-size-link-stylised: 1.25rem; // 20px
|
|
42
|
+
--font-size-link-large: 1.25rem; // 20px
|
|
43
|
+
--font-size-link-medium: 1.125rem; // 18px
|
|
44
|
+
--font-size-link-small: 1rem; // 16px
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
$font-size-xs: var(--font-size-xs);
|
|
48
|
+
$font-size-s: var(--font-size-s);
|
|
49
|
+
$font-size-m: var(--font-size-m);
|
|
50
|
+
$font-size-l: var(--font-size-l);
|
|
51
|
+
$font-size-xl: var(--font-size-xl);
|
|
52
|
+
$font-size-2xl: var(--font-size-2xl);
|
|
53
|
+
$font-size-3xl: var(--font-size-3xl);
|
|
54
|
+
$font-size-4xl: var(--font-size-4xl);
|
|
55
|
+
|
|
56
|
+
////////////////////////
|
|
57
|
+
$font-size-display-medium: var(--font-size-display-medium);
|
|
58
|
+
$font-size-display-small: var(--font-size-display-small);
|
|
59
|
+
$font-size-heading-large: var(--font-size-heading-large);
|
|
60
|
+
$font-size-heading-medium: var(--font-size-heading-medium);
|
|
61
|
+
$font-size-heading-small: var(--font-size-heading-small);
|
|
62
|
+
$font-size-heading-extra-small: var(--font-size-heading-extra-small);
|
|
63
|
+
$font-size-body-large: var(--font-size-body-large);
|
|
64
|
+
$font-size-body-medium: var(--font-size-body-medium);
|
|
65
|
+
$font-size-body-small: var(--font-size-body-small);
|
|
66
|
+
$font-size-label-large: var(--font-size-label-large);
|
|
67
|
+
$font-size-label-medium: var(--font-size-label-medium);
|
|
68
|
+
$font-size-label-small: var(--font-size-label-small);
|
|
69
|
+
$font-size-link-stylised: var(--font-size-link-stylised);
|
|
70
|
+
$font-size-link-large: var(--font-size-link-large);
|
|
71
|
+
$font-size-link-medium: var(--font-size-link-medium);
|
|
72
|
+
$font-size-link-small: var(--font-size-link-small);
|
|
73
|
+
|
|
4
74
|
////////////////////////
|
|
5
75
|
/// COlORS:
|
|
6
76
|
///////////////////////
|
|
@@ -168,9 +238,29 @@ $snwHeaderLink: 'snwHeaderLink';
|
|
|
168
238
|
$snwFlyoutLink: 'snwFlyoutLink';
|
|
169
239
|
$snwHeadingHero1: 'snwHeadingHero1';
|
|
170
240
|
$snwHeadingHero2: 'snwHeadingHero2';
|
|
241
|
+
|
|
242
|
+
// New Typography Variables
|
|
243
|
+
$displayMedium: 'displayMedium';
|
|
244
|
+
$displaySmall: 'displaySmall';
|
|
245
|
+
$headingLarge: 'headingLarge';
|
|
246
|
+
$headingMedium: 'headingMedium';
|
|
247
|
+
$headingSmall: 'headingSmall';
|
|
248
|
+
$headingExtraSmall: 'headingExtraSmall';
|
|
249
|
+
$bodyLarge: 'bodyLarge';
|
|
250
|
+
$bodyMedium: 'bodyMedium';
|
|
251
|
+
$bodySmall: 'bodySmall';
|
|
252
|
+
$labelLarge: 'labelLarge';
|
|
253
|
+
$labelMedium: 'labelMedium';
|
|
254
|
+
$labelSmall: 'labelSmall';
|
|
255
|
+
$linkStylised: 'linkStylised';
|
|
256
|
+
$linkLarge: 'linkLarge';
|
|
257
|
+
$linkMedium: 'linkMedium';
|
|
258
|
+
$linkSmall: 'linkSmall';
|
|
171
259
|
$text-tokens: $button, $link, $email, $label, $badge, $blockquote, $heading1, $heading2, $heading3, $heading4, $heading5,
|
|
172
260
|
$title1, $title2, $title3, $title4, $body1, $body2, $body3, $string1, $string2, $string3, $snwFlyoutLink,
|
|
173
|
-
$snwHeaderLink, $snwHeadingHero1, $snwHeadingHero2
|
|
261
|
+
$snwHeaderLink, $snwHeadingHero1, $snwHeadingHero2, $displayMedium, $displaySmall, $headingLarge, $headingMedium,
|
|
262
|
+
$headingSmall, $headingExtraSmall, $bodyLarge, $bodyMedium, $bodySmall, $labelLarge, $labelMedium, $labelSmall,
|
|
263
|
+
$linkStylised, $linkLarge, $linkMedium, $linkSmall;
|
|
174
264
|
|
|
175
265
|
////////////////////////
|
|
176
266
|
/// Breakpoint TOKENS to be used for min-width comparisons, make sure they match BREAKPOINTS in constants.ts
|
|
@@ -188,142 +278,6 @@ $breakpoint-snw-mobile: 768px;
|
|
|
188
278
|
///////////////////////
|
|
189
279
|
// @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
|
|
190
280
|
// Once we update ObjectTile and other components will need to be updated to match the new token.
|
|
191
|
-
:root {
|
|
192
|
-
--desktop-max-width: 120rem;
|
|
193
|
-
--quote-size: 1.5rem;
|
|
194
|
-
--quote-line-height: 2rem;
|
|
195
|
-
--heading-size1: 1.5rem;
|
|
196
|
-
--heading-line-height-size1: 1.75rem;
|
|
197
|
-
--heading-size2: 1.5rem;
|
|
198
|
-
--heading-line-height-size2: 1.75rem;
|
|
199
|
-
--heading-size3: 1.25rem;
|
|
200
|
-
--heading-line-height-size3: 1.5rem;
|
|
201
|
-
--heading-size4: 1rem;
|
|
202
|
-
--heading-line-height-size4: 1.25rem;
|
|
203
|
-
--heading-size5: 0.75rem;
|
|
204
|
-
--heading-line-height-size5: 1rem;
|
|
205
|
-
--string-size1: 1rem;
|
|
206
|
-
--string-line-height-size1: 1.25rem;
|
|
207
|
-
--string-size2: 0.75rem;
|
|
208
|
-
--string-line-height-size2: 1rem;
|
|
209
|
-
--string-size3: 0.5rem;
|
|
210
|
-
--string-line-height-size3: 0.75rem;
|
|
211
|
-
--body-size1: 1rem;
|
|
212
|
-
--body-line-height-size1: 1.5rem;
|
|
213
|
-
--body-size2: 0.75rem;
|
|
214
|
-
--body-line-height-size2: 1.25rem;
|
|
215
|
-
--body-size3: 0.5rem;
|
|
216
|
-
--body-line-height-size3: 1rem;
|
|
217
|
-
--label-size1: 1rem;
|
|
218
|
-
--label-size2: 0.75rem;
|
|
219
|
-
--label-size3: 0.56rem;
|
|
220
|
-
--label-size4: 0.56rem;
|
|
221
|
-
--link-label-size: 0.75rem;
|
|
222
|
-
--link-label-line-height: 0.75rem;
|
|
223
|
-
--button-label-size: 0.75rem;
|
|
224
|
-
--button-label-line-height: 1rem;
|
|
225
|
-
--button-tertiary-height: 1.75rem;
|
|
226
|
-
--badge-label-size: 0.5rem;
|
|
227
|
-
--badge-label-line-height: 0.67rem;
|
|
228
|
-
--snw-header-link-size: 1rem;
|
|
229
|
-
--snw-header-link-line-height: 1.5rem;
|
|
230
|
-
--snw-flyout-link-size: 1rem;
|
|
231
|
-
--snw-flyout-link-line-height: 1.75rem;
|
|
232
|
-
--snw-heading-hero-size1: 2rem;
|
|
233
|
-
--snw-heading-hero-line-height-size1: 2.375rem;
|
|
234
|
-
--snw-heading-hero-size2: 1.625rem;
|
|
235
|
-
--snw-heading-hero-line-height-size2: 1.9375rem;
|
|
236
|
-
--snw-note-size: 0.75rem;
|
|
237
|
-
--snw-note-line-height: 1rem;
|
|
238
|
-
|
|
239
|
-
@media (min-width: $breakpoint-md) {
|
|
240
|
-
--quote-size: 1.75rem;
|
|
241
|
-
--quote-line-height: 2.25rem;
|
|
242
|
-
--heading-size1: 1.75rem;
|
|
243
|
-
--heading-line-height-size1: 2rem;
|
|
244
|
-
--heading-size2: 1.75rem;
|
|
245
|
-
--heading-line-height-size2: 2rem;
|
|
246
|
-
--heading-size3: 1.5rem;
|
|
247
|
-
--heading-line-height-size3: 1.75rem;
|
|
248
|
-
--heading-size4: 1.25rem;
|
|
249
|
-
--heading-line-height-size4: 1.5rem;
|
|
250
|
-
--heading-size5: 1rem;
|
|
251
|
-
--heading-line-height-size5: 1.25rem;
|
|
252
|
-
--string-size1: 1.25rem;
|
|
253
|
-
--string-line-height-size1: 1.5rem;
|
|
254
|
-
--string-size2: 1rem;
|
|
255
|
-
--string-line-height-size2: 1.25rem;
|
|
256
|
-
--string-size3: 0.75rem;
|
|
257
|
-
--string-line-height-size3: 1rem;
|
|
258
|
-
--body-size1: 1.25rem;
|
|
259
|
-
--body-line-height-size1: 1.75rem;
|
|
260
|
-
--body-size2: 1rem;
|
|
261
|
-
--body-line-height-size2: 1.5rem;
|
|
262
|
-
--body-size3: 0.75rem;
|
|
263
|
-
--body-line-height-size3: 1.25rem;
|
|
264
|
-
--label-size1: 1.25rem;
|
|
265
|
-
--label-size2: 1rem;
|
|
266
|
-
--label-size3: 0.75rem;
|
|
267
|
-
--label-size4: 0.75rem;
|
|
268
|
-
--link-label-size: 1rem;
|
|
269
|
-
--link-label-line-height: 1rem;
|
|
270
|
-
--button-label-size: 1rem;
|
|
271
|
-
--button-label-line-height: 1.25rem;
|
|
272
|
-
--badge-label-size: 0.75rem;
|
|
273
|
-
--badge-label-line-height: 1rem;
|
|
274
|
-
--snw-header-link-size: 1rem;
|
|
275
|
-
--snw-header-link-line-height: 1.5rem;
|
|
276
|
-
--snw-flyout-link-size: 0.875rem;
|
|
277
|
-
--snw-flyout-link-line-height: 1.75rem;
|
|
278
|
-
--snw-heading-hero-size1: 2.375rem;
|
|
279
|
-
--snw-heading-hero-line-height-size1: 2.875rem;
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
@media (min-width: $breakpoint-lg) {
|
|
283
|
-
--snw-flyout-link-size: 0.875rem;
|
|
284
|
-
--snw-flyout-link-line-height: 1.75rem;
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
@media (min-width: $breakpoint-xl) {
|
|
288
|
-
--quote-size: 2rem;
|
|
289
|
-
--quote-line-height: 2.5rem;
|
|
290
|
-
--heading-size1: 2rem;
|
|
291
|
-
--heading-line-height-size1: 2.25rem;
|
|
292
|
-
--heading-size2: 2rem;
|
|
293
|
-
--heading-line-height-size2: 2.25rem;
|
|
294
|
-
--heading-size3: 1.75rem;
|
|
295
|
-
--heading-line-height-size3: 2rem;
|
|
296
|
-
--heading-size4: 1.5rem;
|
|
297
|
-
--heading-line-height-size4: 1.75rem;
|
|
298
|
-
--heading-size5: 1.25rem;
|
|
299
|
-
--heading-line-height-size5: 1.5rem;
|
|
300
|
-
--string-size1: 1.5rem;
|
|
301
|
-
--string-line-height-size1: 1.75rem;
|
|
302
|
-
--string-size2: 1.25rem;
|
|
303
|
-
--string-line-height-size2: 1.5rem;
|
|
304
|
-
--string-size3: 1rem;
|
|
305
|
-
--string-line-height-size3: 1.25rem;
|
|
306
|
-
--body-size1: 1.5rem;
|
|
307
|
-
--body-line-height-size1: 2rem;
|
|
308
|
-
--body-size2: 1.25rem;
|
|
309
|
-
--body-line-height-size2: 1.75rem;
|
|
310
|
-
--body-size3: 1rem;
|
|
311
|
-
--body-line-height-size3: 1.5rem;
|
|
312
|
-
--label-size1: 1.56rem;
|
|
313
|
-
--label-size2: 1.25rem;
|
|
314
|
-
--label-size3: 1rem;
|
|
315
|
-
--link-label-size: 1.25rem;
|
|
316
|
-
--link-label-line-height: 1.25rem;
|
|
317
|
-
--button-label-size: 1.25rem;
|
|
318
|
-
--button-label-line-height: 1.5rem;
|
|
319
|
-
--badge-label-size: 1rem;
|
|
320
|
-
--badge-label-line-height: 1.5rem;
|
|
321
|
-
--snw-header-link-size: 1.125rem;
|
|
322
|
-
--snw-header-link-line-height: 1.75rem;
|
|
323
|
-
--snw-flyout-link-size: 1.125rem;
|
|
324
|
-
--snw-flyout-link-line-height: 2.125rem;
|
|
325
|
-
}
|
|
326
|
-
}
|
|
327
281
|
|
|
328
282
|
// TITLE
|
|
329
283
|
$title-size1: var(--heading-size1);
|
|
@@ -360,7 +314,7 @@ $string-size3: var(--string-size3);
|
|
|
360
314
|
$string-line-height-size3: var(--string-line-height-size3);
|
|
361
315
|
|
|
362
316
|
// LABELS
|
|
363
|
-
$email-label-size: var(--
|
|
317
|
+
$email-label-size: var(--font-size-link-medium);
|
|
364
318
|
$text-label-size: var(--label-size3);
|
|
365
319
|
$badge-label-size: var(--label-size3);
|
|
366
320
|
$link-label-size: var(--link-label-size);
|
|
@@ -385,46 +339,6 @@ $snw-heading-hero-line-height2: var(--snw-heading-hero-line-height-size2);
|
|
|
385
339
|
|
|
386
340
|
// SNOWFLAKES
|
|
387
341
|
$snowflake-menu-padding: 1.25rem;
|
|
388
|
-
$snowflake-note-size: var(--snw-note-size);
|
|
389
|
-
$snowflake-note-line-height: var(--snw-note-line-height);
|
|
390
|
-
|
|
391
|
-
/* stylelint-disable-next-line no-duplicate-selectors */
|
|
392
|
-
:root {
|
|
393
|
-
--snw-button-padding: 0.8125rem;
|
|
394
|
-
--spacing-micro: 0.25rem;
|
|
395
|
-
--spacing-xsm: 0.5rem;
|
|
396
|
-
--spacing-sm: 0.75rem;
|
|
397
|
-
--spacing-md: 1.75rem;
|
|
398
|
-
--spacing-lg: 2.75rem;
|
|
399
|
-
--spacing-xl: 3.75rem;
|
|
400
|
-
--spacing-xxl: 4.75rem;
|
|
401
|
-
--spacing-xxxl: 5.75rem;
|
|
402
|
-
|
|
403
|
-
@media (min-width: $breakpoint-md) {
|
|
404
|
-
--snw-button-padding: 0.8125rem;
|
|
405
|
-
--spacing-micro: 0.25rem;
|
|
406
|
-
--spacing-xsm: 0.5rem;
|
|
407
|
-
--spacing-sm: 1rem;
|
|
408
|
-
--spacing-md: 2rem;
|
|
409
|
-
--spacing-lg: 3rem;
|
|
410
|
-
--spacing-xl: 4rem;
|
|
411
|
-
--spacing-xxl: 5rem;
|
|
412
|
-
--spacing-xxxl: 6rem;
|
|
413
|
-
}
|
|
414
|
-
|
|
415
|
-
@media (min-width: $breakpoint-xl) {
|
|
416
|
-
--snw-button-padding: 0.813rem;
|
|
417
|
-
--spacing-micro: 0.5rem;
|
|
418
|
-
--spacing-xsm: 0.75rem;
|
|
419
|
-
--spacing-sm: 1.25rem;
|
|
420
|
-
--spacing-md: 2.25rem;
|
|
421
|
-
--spacing-lg: 3.25rem;
|
|
422
|
-
--spacing-xl: 4.25rem;
|
|
423
|
-
--spacing-xxl: 5.25rem;
|
|
424
|
-
--spacing-xxxl: 6.25rem;
|
|
425
|
-
}
|
|
426
|
-
}
|
|
427
|
-
|
|
428
342
|
$spacing-micro: var(--spacing-micro);
|
|
429
343
|
$spacing-xsm: var(--spacing-xsm);
|
|
430
344
|
$spacing-sm: var(--spacing-sm);
|
|
@@ -455,25 +369,6 @@ $margin-lg: var(--spacing-lg);
|
|
|
455
369
|
$margin-xl: var(--spacing-xl);
|
|
456
370
|
$margin-xxl: var(--spacing-xxl);
|
|
457
371
|
|
|
458
|
-
////////////////////////
|
|
459
|
-
/// HEADER TOKENS:
|
|
460
|
-
///////////////////////
|
|
461
|
-
/* stylelint-disable-next-line no-duplicate-selectors */
|
|
462
|
-
:root {
|
|
463
|
-
--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
|
|
464
|
-
--search-size: 2.625rem; // This should be calculated from the scaling text and scaling spacing tokens instead of hardcoding in case they change
|
|
465
|
-
--banner-height: 0px;
|
|
466
|
-
|
|
467
|
-
@media (min-width: $breakpoint-md) {
|
|
468
|
-
--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
|
|
469
|
-
}
|
|
470
|
-
|
|
471
|
-
@media (min-width: $breakpoint-xl) {
|
|
472
|
-
--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
|
|
473
|
-
--search-size: 2.875rem; // This should be calculated from the scaling text and scaling spacing tokens instead of hardcoding in case they change
|
|
474
|
-
}
|
|
475
|
-
}
|
|
476
|
-
|
|
477
372
|
////////////////////////
|
|
478
373
|
/// max-site-width TOKEN:
|
|
479
374
|
///////////////////////
|