@phillips/seldon 1.179.0 → 1.181.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/AddToCalendar/AddToCalendar.js +1 -1
- package/dist/components/Article/Article.js +2 -2
- package/dist/components/ComposedModal/ComposedModal.js +2 -2
- package/dist/components/ExitGateCard/ExitGateCard.js +2 -2
- package/dist/components/FavoritingTileButton/FavoritingTileButton.js +15 -15
- package/dist/components/Filter/FilterHeader.js +1 -1
- package/dist/components/Link/types.d.ts +2 -1
- package/dist/components/Link/types.js +1 -1
- package/dist/components/Text/Text.js +1 -1
- package/dist/components/Text/types.d.ts +17 -0
- package/dist/components/Text/types.js +3 -3
- package/dist/components/Text/utils.js +6 -6
- package/dist/index.d.ts +2 -0
- package/dist/index.js +104 -102
- package/dist/patterns/AccountPageHeader/AccountPageHeader.js +21 -21
- package/dist/patterns/BidSnapshot/BidMessage.js +6 -6
- package/dist/patterns/FavoritesCollectionTile/FavoritesCollectionTile.js +1 -1
- package/dist/patterns/FiltersInline/FilterButton.js +8 -8
- package/dist/patterns/FiltersInline/FilterDropdownMenuDesktop.js +41 -41
- package/dist/patterns/FiltersInline/FilterDropdownMenuMobile.js +38 -38
- package/dist/patterns/HeroBanner/HeroBanner.d.ts +1 -1
- package/dist/patterns/SaleCard/SaleCard.js +25 -25
- package/dist/patterns/SaleHeaderBanner/SaleHeaderBanner.js +45 -45
- package/dist/patterns/SaleHeaderBanner/SaleHeaderBrowseAuctions.js +7 -7
- package/dist/patterns/TextBanner/TextBanner.d.ts +26 -0
- package/dist/patterns/TextBanner/TextBanner.js +19 -0
- package/dist/patterns/TextBanner/TextBanner.stories.d.ts +25 -0
- package/dist/patterns/TextBanner/TextBanner.test.d.ts +1 -0
- package/dist/patterns/TextBanner/index.d.ts +1 -0
- package/dist/patterns/UserManagement/UserManagement.js +10 -10
- package/dist/patterns/ViewingDetails/ViewingDetails.js +12 -12
- package/dist/scss/_type.scss +142 -63
- package/dist/scss/_vars.scss +74 -45
- package/dist/scss/_vars.scss.js +76 -47
- package/dist/scss/componentStyles.scss +1 -0
- package/dist/scss/components/Accordion/_accordion.scss +4 -4
- package/dist/scss/components/AddToCalendar/_addToCalendar.scss +2 -2
- package/dist/scss/components/Article/_article.scss +5 -0
- package/dist/scss/components/Breadcrumb/_breadcrumb.scss +1 -1
- package/dist/scss/components/Button/_button.scss +1 -1
- package/dist/scss/components/ComboBox/_combobox.scss +4 -4
- package/dist/scss/components/Countdown/_countdown.scss +2 -2
- package/dist/scss/components/Countdown/_duration.scss +1 -1
- package/dist/scss/components/Detail/_detail.scss +1 -1
- package/dist/scss/components/Drawer/_drawerHeader.scss +2 -2
- package/dist/scss/components/Dropdown/_dropdown.scss +2 -2
- package/dist/scss/components/Filter/_filter.scss +3 -3
- package/dist/scss/components/Icon/_icon.stories.scss +1 -1
- package/dist/scss/components/Input/_input.scss +3 -3
- package/dist/scss/components/Link/_link.scss +4 -4
- package/dist/scss/components/Pagination/_pagination.scss +1 -1
- package/dist/scss/components/Search/_search.scss +1 -1
- package/dist/scss/components/Tabs/_tabs.scss +1 -1
- package/dist/scss/components/Tags/_tags.scss +1 -1
- package/dist/scss/components/TextArea/_textArea.scss +2 -2
- package/dist/scss/components/TextSymbol/_textSymbol.scss +2 -2
- package/dist/scss/patterns/HeroBanner/_heroBanner.scss +20 -14
- package/dist/scss/patterns/SaleHeaderBanner/_saleHeaderBanner.scss +1 -1
- package/dist/scss/patterns/Social/_social.scss +1 -1
- package/dist/scss/patterns/Subscribe/_subscribe.scss +3 -3
- package/dist/scss/patterns/TextBanner/_textBanner.scss +35 -0
- package/dist/scss/site-furniture/Footer/_footer.scss +2 -2
- package/dist/site-furniture/Footer/Footer.js +1 -1
- package/package.json +1 -1
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { jsx as o, Fragment as x, jsxs as s } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as A } from "react";
|
|
3
|
-
import { getCommonProps as
|
|
4
|
-
import
|
|
3
|
+
import { getCommonProps as M, noOp as w } from "../../utils/index.js";
|
|
4
|
+
import C from "../../node_modules/classnames/index.js";
|
|
5
5
|
import { AuthState as t } from "./types.js";
|
|
6
6
|
import { TextVariants as i } from "../../components/Text/types.js";
|
|
7
7
|
import r from "../../components/Text/Text.js";
|
|
8
8
|
import m from "../../components/Icon/Icon.js";
|
|
9
|
-
const
|
|
9
|
+
const $ = A(
|
|
10
10
|
({
|
|
11
11
|
accountDetailsLinkComponent: l = "a",
|
|
12
12
|
className: d,
|
|
13
|
-
onLogin: g =
|
|
13
|
+
onLogin: g = w,
|
|
14
14
|
authState: a = t.LoggedOut,
|
|
15
15
|
loginLabel: h = "Login",
|
|
16
16
|
accountLabel: u = "Account",
|
|
@@ -18,17 +18,17 @@ const b = A(
|
|
|
18
18
|
disabled: e = !1,
|
|
19
19
|
...c
|
|
20
20
|
}, p) => {
|
|
21
|
-
const { className: n, ...N } =
|
|
22
|
-
return /* @__PURE__ */ o("div", { ...N, className:
|
|
21
|
+
const { className: n, ...N } = M(c, "UserManagement"), _ = a === t.LoggedIn, L = a !== t.Loading;
|
|
22
|
+
return /* @__PURE__ */ o("div", { ...N, className: C(n, d), ...c, ref: p, children: L && /* @__PURE__ */ o(x, { children: _ ? /* @__PURE__ */ s(l, { className: `${n}__login`, href: f, disabled: e, children: [
|
|
23
23
|
/* @__PURE__ */ o(m, { icon: "Account", className: `${n}__account-icon`, height: "100%", width: "100%" }),
|
|
24
|
-
/* @__PURE__ */ o(r, { variant: i.
|
|
24
|
+
/* @__PURE__ */ o(r, { variant: i.bodyMd, children: u })
|
|
25
25
|
] }) : /* @__PURE__ */ s("button", { className: `${n}__login`, onClick: g, disabled: e, children: [
|
|
26
26
|
/* @__PURE__ */ o(m, { icon: "Account", className: `${n}__account-icon`, height: "100%", width: "100%" }),
|
|
27
|
-
/* @__PURE__ */ o(r, { variant: i.
|
|
27
|
+
/* @__PURE__ */ o(r, { variant: i.bodyMd, children: h })
|
|
28
28
|
] }) }) });
|
|
29
29
|
}
|
|
30
30
|
);
|
|
31
|
-
|
|
31
|
+
$.displayName = "UserManagement";
|
|
32
32
|
export {
|
|
33
|
-
|
|
33
|
+
$ as default
|
|
34
34
|
};
|
|
@@ -10,28 +10,28 @@ const y = b(
|
|
|
10
10
|
({
|
|
11
11
|
className: p,
|
|
12
12
|
children: m,
|
|
13
|
-
label:
|
|
14
|
-
sessionTimesLabel:
|
|
13
|
+
label: d,
|
|
14
|
+
sessionTimesLabel: o,
|
|
15
15
|
sessionTimes: n,
|
|
16
16
|
viewingTimes: t,
|
|
17
|
-
location:
|
|
18
|
-
mapLink:
|
|
19
|
-
onClose:
|
|
17
|
+
location: s,
|
|
18
|
+
mapLink: c,
|
|
19
|
+
onClose: M,
|
|
20
20
|
linkElement: f = g,
|
|
21
21
|
...h
|
|
22
22
|
}, N) => {
|
|
23
23
|
const { className: r, ...v } = x(h, "ViewingDetails");
|
|
24
24
|
return /* @__PURE__ */ a("div", { ...v, ...h, className: $(r, p), ref: N, children: /* @__PURE__ */ _("div", { className: `${r}__content`, children: [
|
|
25
25
|
m && /* @__PURE__ */ a("div", { className: `${r}__children`, children: m }),
|
|
26
|
-
|
|
26
|
+
o && /* @__PURE__ */ a(l, { variant: i.heading3, children: o }),
|
|
27
27
|
n && n.length > 0 && n.map((e) => /* @__PURE__ */ _("div", { children: [
|
|
28
|
-
e.sessionLabel && /* @__PURE__ */ a(l, { variant: i.
|
|
29
|
-
e.sessionTime && /* @__PURE__ */ a(l, { variant: i.
|
|
28
|
+
e.sessionLabel && /* @__PURE__ */ a(l, { variant: i.heading4, className: `${r}__label`, children: e.sessionLabel }),
|
|
29
|
+
e.sessionTime && /* @__PURE__ */ a(l, { variant: i.bodyMd, className: `${r}__text`, children: e.sessionTime })
|
|
30
30
|
] }, `${e.sessionLabel ?? ""}-${e.sessionTime ?? ""}`)),
|
|
31
|
-
|
|
32
|
-
t && t.length > 0 && t.map((e) => /* @__PURE__ */ a(l, { variant: i.
|
|
33
|
-
|
|
34
|
-
|
|
31
|
+
d && /* @__PURE__ */ a(l, { variant: i.heading3, children: d }),
|
|
32
|
+
t && t.length > 0 && t.map((e) => /* @__PURE__ */ a(l, { variant: i.bodyMd, className: `${r}__label`, children: e }, e)),
|
|
33
|
+
s && /* @__PURE__ */ a(l, { variant: i.bodyMd, className: `${r}__location`, children: s }),
|
|
34
|
+
c && /* @__PURE__ */ a(l, { variant: i.bodyMd, className: `${r}__map-link`, children: /* @__PURE__ */ a(f, { href: c, children: "(Map)" }) })
|
|
35
35
|
] }) });
|
|
36
36
|
}
|
|
37
37
|
);
|
package/dist/scss/_type.scss
CHANGED
|
@@ -44,196 +44,275 @@
|
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
@mixin hText(
|
|
47
|
-
$size: $
|
|
47
|
+
$size: $font-size-xl,
|
|
48
48
|
$color: $pure-black,
|
|
49
49
|
$transform-style: capitalize,
|
|
50
|
-
$
|
|
50
|
+
$text-decoration: unset,
|
|
51
|
+
$font-style: unset,
|
|
52
|
+
$line-height: $line-height-default
|
|
51
53
|
) {
|
|
52
54
|
@include DistinctDisplay;
|
|
53
55
|
|
|
54
56
|
color: $color;
|
|
55
57
|
font-size: $size;
|
|
56
|
-
font-
|
|
58
|
+
font-style: $font-style;
|
|
59
|
+
/* stylelint-disable-next-line declaration-property-value-disallowed-list */
|
|
60
|
+
font-weight: 400;
|
|
57
61
|
line-height: $line-height;
|
|
58
|
-
text-decoration:
|
|
62
|
+
text-decoration: $text-decoration;
|
|
59
63
|
text-transform: $transform-style;
|
|
60
64
|
}
|
|
61
65
|
|
|
62
|
-
@mixin pText($size: $body-size1, $color: $pure-black, $line-height:
|
|
66
|
+
@mixin pText($size: $body-size1, $color: $pure-black, $line-height: $line-height-body, $font-weight: 400) {
|
|
63
67
|
@include Montserrat;
|
|
64
68
|
|
|
65
69
|
color: $color;
|
|
66
70
|
font-size: $size;
|
|
71
|
+
font-variation-settings: 'wght' $font-weight;
|
|
67
72
|
line-height: $line-height;
|
|
68
73
|
}
|
|
69
74
|
|
|
70
|
-
@mixin
|
|
75
|
+
@mixin label($size: $font-size-md, $line-height: $line-height-default, $font-weight: 400, $text-decoration: unset) {
|
|
71
76
|
@include Montserrat;
|
|
72
77
|
|
|
73
|
-
font-
|
|
78
|
+
font-size: $size;
|
|
79
|
+
font-variation-settings: 'wght' $font-weight;
|
|
80
|
+
line-height: $line-height;
|
|
81
|
+
text-decoration: $text-decoration;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
@mixin labelText($label) {
|
|
85
|
+
@include Montserrat;
|
|
74
86
|
|
|
75
87
|
@if $label == 'link' {
|
|
76
|
-
font-size: $
|
|
77
|
-
letter-spacing: 1px;
|
|
78
|
-
line-height: $link-label-line-height;
|
|
79
|
-
text-transform: capitalize;
|
|
88
|
+
@include label($size: $font-size-sm, $font-weight: 600, $text-decoration: underline);
|
|
80
89
|
}
|
|
81
90
|
|
|
82
91
|
@if $label == 'button' {
|
|
83
|
-
font-size
|
|
92
|
+
@include label($size: $font-size-sm, $font-weight: 600);
|
|
93
|
+
|
|
84
94
|
letter-spacing: 0;
|
|
85
|
-
line-height: $button-label-line-height;
|
|
86
95
|
text-transform: capitalize;
|
|
87
96
|
}
|
|
88
97
|
|
|
89
98
|
@if $label == 'email' {
|
|
90
|
-
font-size
|
|
99
|
+
@include label($size: $font-size-sm, $font-weight: 600);
|
|
100
|
+
|
|
91
101
|
letter-spacing: 0.0625rem;
|
|
92
|
-
line-height: 1.25;
|
|
93
102
|
text-transform: lowercase;
|
|
94
103
|
}
|
|
95
104
|
|
|
96
105
|
@if $label == 'label' {
|
|
97
|
-
font-size
|
|
98
|
-
|
|
106
|
+
@include label($size: $font-size-xsm, $font-weight: 600);
|
|
107
|
+
|
|
99
108
|
letter-spacing: 0.0625rem;
|
|
100
|
-
line-height: 1.25;
|
|
101
109
|
}
|
|
102
110
|
|
|
103
111
|
@if $label == 'badge' {
|
|
104
|
-
|
|
105
|
-
|
|
112
|
+
@include eyebrow($size: $font-size-xsm);
|
|
113
|
+
|
|
106
114
|
letter-spacing: 0;
|
|
107
|
-
line-height: $badge-label-line-height;
|
|
108
|
-
text-transform: uppercase;
|
|
109
115
|
}
|
|
110
116
|
}
|
|
111
117
|
|
|
118
|
+
@mixin eyebrow($size: $font-size-xsm, $color: $pure-black, $line-height: $line-height-default, $letter-spacing: 0) {
|
|
119
|
+
@include Montserrat;
|
|
120
|
+
|
|
121
|
+
color: $color;
|
|
122
|
+
font-size: $size;
|
|
123
|
+
font-variation-settings: 'wght' 500;
|
|
124
|
+
letter-spacing: $letter-spacing;
|
|
125
|
+
line-height: $line-height;
|
|
126
|
+
text-transform: uppercase;
|
|
127
|
+
}
|
|
128
|
+
|
|
112
129
|
@mixin text($token) {
|
|
113
130
|
// Labels
|
|
131
|
+
@if $token == 'labelLg' {
|
|
132
|
+
@include label($size: $font-size-md);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
@if $token == 'labelLgBold' {
|
|
136
|
+
@include label($size: $font-size-md, $font-weight: 600);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
@if $token == 'labelMd' {
|
|
140
|
+
@include label($size: $font-size-sm, $font-weight: 400);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
@if $token == 'labelMdBold' {
|
|
144
|
+
@include label($size: $font-size-sm, $font-weight: 600);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
@if $token == 'labelSm' {
|
|
148
|
+
@include label($size: $font-size-xsm, $font-weight: 400);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
@if $token == 'labelSmBold' {
|
|
152
|
+
@include label($size: $font-size-xsm, $font-weight: 600);
|
|
153
|
+
}
|
|
154
|
+
|
|
114
155
|
@if $token == 'button' {
|
|
115
|
-
@include
|
|
156
|
+
@include label($size: $font-size-sm, $font-weight: 600);
|
|
116
157
|
}
|
|
117
158
|
|
|
118
159
|
@if $token == 'link' {
|
|
119
|
-
@include
|
|
160
|
+
@include label($size: $font-size-sm, $text-decoration: underline);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
@if $token == 'linkBold' {
|
|
164
|
+
@include label($size: $font-size-sm, $font-weight: 600, $text-decoration: underline);
|
|
120
165
|
}
|
|
121
166
|
|
|
122
167
|
@if $token == 'email' {
|
|
123
|
-
@include
|
|
168
|
+
@include label($size: $font-size-sm, $font-weight: 600);
|
|
124
169
|
}
|
|
125
170
|
|
|
126
171
|
@if $token == 'label' {
|
|
127
|
-
@include
|
|
172
|
+
@include label($size: $font-size-xsm, $font-weight: 600);
|
|
128
173
|
}
|
|
129
174
|
|
|
130
175
|
@if $token == 'badge' {
|
|
131
|
-
@include
|
|
176
|
+
@include eyebrow($size: $font-size-xsm);
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
@if $token == 'bodyLg' {
|
|
180
|
+
@include pText($font-size-md);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
@if $token == 'bodyMd' {
|
|
184
|
+
@include pText($font-size-sm);
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
@if $token == 'bodySm' {
|
|
188
|
+
@include pText($font-size-xsm);
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
@if $token == 'bodyLgBold' {
|
|
192
|
+
@include pText($font-size-md, $font-weight: 600);
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
@if $token == 'bodyMdBold' {
|
|
196
|
+
@include pText($font-size-sm, $font-weight: 600);
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
@if $token == 'bodySmBold' {
|
|
200
|
+
@include pText($font-size-xsm, $font-weight: 600);
|
|
132
201
|
}
|
|
133
202
|
|
|
134
203
|
// Headings
|
|
135
204
|
@if $token == 'blockquote' {
|
|
136
|
-
@include hText(
|
|
137
|
-
$heading-size1,
|
|
138
|
-
$color: $primary-black,
|
|
139
|
-
$transform-style: initial,
|
|
140
|
-
$line-height: $heading-line-height-size1
|
|
141
|
-
);
|
|
205
|
+
@include hText($font-size-xl, $color: $primary-black, $transform-style: initial, $line-height: $font-size-xxl);
|
|
142
206
|
}
|
|
143
207
|
|
|
144
208
|
@if $token == 'heading1' {
|
|
145
|
-
@include hText($
|
|
209
|
+
@include hText($font-size-xl);
|
|
146
210
|
}
|
|
147
211
|
|
|
148
212
|
@if $token == 'heading2' {
|
|
149
|
-
@include hText($
|
|
213
|
+
@include hText($font-size-lg);
|
|
150
214
|
}
|
|
151
215
|
|
|
152
216
|
@if $token == 'heading3' {
|
|
153
|
-
@include hText($
|
|
217
|
+
@include hText($font-size-md);
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
@if $token == 'heading3Italic' {
|
|
221
|
+
@include hText($font-size-md, $font-style: italic);
|
|
154
222
|
}
|
|
155
223
|
|
|
156
224
|
@if $token == 'heading4' {
|
|
157
|
-
@include hText($
|
|
225
|
+
@include hText($font-size-sm);
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
@if $token == 'heading4Italic' {
|
|
229
|
+
@include hText($font-size-sm, $font-style: italic);
|
|
158
230
|
}
|
|
159
231
|
|
|
160
232
|
@if $token == 'heading5' {
|
|
161
|
-
@include hText($
|
|
233
|
+
@include hText($font-size-xsm);
|
|
162
234
|
}
|
|
163
235
|
|
|
164
236
|
@if $token == 'title1' {
|
|
165
|
-
@include hText($
|
|
237
|
+
@include hText($font-size-xl, $transform-style: uppercase);
|
|
238
|
+
|
|
239
|
+
letter-spacing: 0.03rem; // design team request
|
|
166
240
|
}
|
|
167
241
|
|
|
168
242
|
// the title2 token skips heading 2 because it's the same size currently as heading1
|
|
169
243
|
@if $token == 'title2' {
|
|
170
|
-
@include hText($
|
|
244
|
+
@include hText($font-size-lg, $transform-style: uppercase);
|
|
245
|
+
|
|
246
|
+
letter-spacing: 0.03rem;
|
|
171
247
|
}
|
|
172
248
|
|
|
173
249
|
@if $token == 'title3' {
|
|
174
|
-
@include hText($
|
|
250
|
+
@include hText($font-size-md, $transform-style: uppercase);
|
|
251
|
+
|
|
252
|
+
letter-spacing: 0.03rem;
|
|
175
253
|
}
|
|
176
254
|
|
|
177
255
|
@if $token == 'title4' {
|
|
178
|
-
@include hText($
|
|
256
|
+
@include hText($font-size-sm, $transform-style: uppercase);
|
|
257
|
+
|
|
258
|
+
letter-spacing: 0.03rem;
|
|
179
259
|
}
|
|
180
260
|
|
|
181
261
|
// Body
|
|
182
262
|
@if $token == 'body1' {
|
|
183
|
-
@include pText($
|
|
263
|
+
@include pText($font-size-md);
|
|
184
264
|
}
|
|
185
265
|
|
|
186
266
|
@if $token == 'body2' {
|
|
187
|
-
@include pText($
|
|
267
|
+
@include pText($font-size-sm);
|
|
188
268
|
}
|
|
189
269
|
|
|
190
270
|
@if $token == 'body3' {
|
|
191
|
-
@include pText($
|
|
271
|
+
@include pText($font-size-xsm);
|
|
192
272
|
}
|
|
193
273
|
|
|
194
274
|
// String
|
|
195
275
|
@if $token == 'string1' {
|
|
196
|
-
@include
|
|
276
|
+
@include label($size: $font-size-md);
|
|
197
277
|
}
|
|
198
278
|
|
|
199
279
|
@if $token == 'string2' {
|
|
200
|
-
@include
|
|
280
|
+
@include label($size: $font-size-sm);
|
|
201
281
|
}
|
|
202
282
|
|
|
203
283
|
@if $token == 'string3' {
|
|
204
|
-
@include
|
|
284
|
+
@include label($size: $font-size-xsm);
|
|
205
285
|
}
|
|
206
286
|
|
|
207
287
|
// SNW
|
|
208
288
|
@if $token == 'snwHeaderLink' {
|
|
209
|
-
@include
|
|
289
|
+
@include hText($font-size-md, $transform-style: uppercase);
|
|
210
290
|
|
|
211
|
-
|
|
212
|
-
font-variation-settings: 'wght' 400;
|
|
213
|
-
letter-spacing: 1px;
|
|
214
|
-
line-height: $snw-header-link-line-height;
|
|
215
|
-
text-transform: uppercase;
|
|
291
|
+
letter-spacing: 0.03rem;
|
|
216
292
|
}
|
|
217
293
|
|
|
218
294
|
@if $token == 'snwFlyoutLink' {
|
|
219
|
-
@include
|
|
220
|
-
|
|
221
|
-
font-size: $snw-flyout-link-size;
|
|
222
|
-
font-variation-settings: 'wght' 400;
|
|
223
|
-
letter-spacing: 1px;
|
|
224
|
-
line-height: $snw-flyout-link-line-height;
|
|
225
|
-
text-transform: capitalize;
|
|
295
|
+
@include label($size: $font-size-md);
|
|
226
296
|
}
|
|
227
297
|
|
|
228
298
|
@if $token == 'snwHeadingHero1' {
|
|
229
|
-
@include hText($
|
|
299
|
+
@include hText($font-size-xl, $transform-style: uppercase);
|
|
230
300
|
|
|
231
301
|
text-align: center;
|
|
232
302
|
}
|
|
233
303
|
|
|
234
304
|
@if $token == 'snwHeadingHero2' {
|
|
235
|
-
@include hText($
|
|
305
|
+
@include hText($font-size-lg, $transform-style: uppercase);
|
|
236
306
|
|
|
237
307
|
text-align: center;
|
|
238
308
|
}
|
|
309
|
+
|
|
310
|
+
// Eyebrows
|
|
311
|
+
@if $token == 'eyebrowLg' {
|
|
312
|
+
@include eyebrow($size: $font-size-sm);
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
@if $token == 'eyebrowSm' {
|
|
316
|
+
@include eyebrow($size: $font-size-xsm);
|
|
317
|
+
}
|
|
239
318
|
}
|
package/dist/scss/_vars.scss
CHANGED
|
@@ -1,6 +1,41 @@
|
|
|
1
1
|
// prefix
|
|
2
2
|
$px: seldon;
|
|
3
3
|
|
|
4
|
+
@mixin font-size-vars--sm {
|
|
5
|
+
--font-size-micro: 0.25rem;
|
|
6
|
+
--font-size-xsm: 0.5rem;
|
|
7
|
+
--font-size-sm: 0.75rem;
|
|
8
|
+
--font-size-md: 1rem;
|
|
9
|
+
--font-size-lg: 1.25rem;
|
|
10
|
+
--font-size-xl: 1.5rem;
|
|
11
|
+
--font-size-xxl: 1.75rem;
|
|
12
|
+
--font-size-xxxl: 2rem;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@mixin font-size-vars--md {
|
|
16
|
+
@include font-size-vars--sm;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@mixin font-size-vars--lg {
|
|
20
|
+
--font-size-micro: 0.5rem;
|
|
21
|
+
--font-size-xsm: 0.75rem;
|
|
22
|
+
--font-size-sm: 1rem;
|
|
23
|
+
--font-size-md: 1.25rem;
|
|
24
|
+
--font-size-lg: 1.5rem;
|
|
25
|
+
--font-size-xl: 1.75rem;
|
|
26
|
+
--font-size-xxl: 2rem;
|
|
27
|
+
--font-size-xxxl: 2.25rem;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
$font-size-micro: var(--font-size-micro);
|
|
31
|
+
$font-size-xsm: var(--font-size-xsm);
|
|
32
|
+
$font-size-sm: var(--font-size-sm);
|
|
33
|
+
$font-size-md: var(--font-size-md);
|
|
34
|
+
$font-size-lg: var(--font-size-lg);
|
|
35
|
+
$font-size-xl: var(--font-size-xl);
|
|
36
|
+
$font-size-xxl: var(--font-size-xxl);
|
|
37
|
+
$font-size-xxxl: var(--font-size-xxxl);
|
|
38
|
+
|
|
4
39
|
////////////////////////
|
|
5
40
|
/// COlORS:
|
|
6
41
|
///////////////////////
|
|
@@ -83,19 +118,40 @@ $text-family: $DistinctText;
|
|
|
83
118
|
|
|
84
119
|
// Used with the labelText mixin
|
|
85
120
|
// @include labelText($label)
|
|
121
|
+
$labelLg: 'labelLg';
|
|
122
|
+
$labelLgBold: 'labelLgBold';
|
|
123
|
+
$labelMd: 'labelMd';
|
|
124
|
+
$labelMdBold: 'labelMdBold';
|
|
125
|
+
$labelSm: 'labelSm';
|
|
126
|
+
$labelSmBold: 'labelSmBold';
|
|
86
127
|
$button: 'button';
|
|
87
128
|
$link: 'link';
|
|
129
|
+
$linkBold: 'linkBold';
|
|
88
130
|
$email: 'email';
|
|
89
131
|
$label: 'label';
|
|
90
132
|
$badge: 'badge';
|
|
91
133
|
|
|
134
|
+
// Body styles
|
|
135
|
+
$bodyLg: 'bodyLg';
|
|
136
|
+
$bodyMd: 'bodyMd';
|
|
137
|
+
$bodySm: 'bodySm';
|
|
138
|
+
$bodyLgBold: 'bodyLgBold';
|
|
139
|
+
$bodyMdBold: 'bodyMdBold';
|
|
140
|
+
$bodySmBold: 'bodySmBold';
|
|
141
|
+
|
|
92
142
|
// Used with the hText mixin
|
|
93
143
|
$blockquote: 'blockquote';
|
|
94
144
|
$heading1: 'heading1';
|
|
95
145
|
$heading2: 'heading2';
|
|
96
146
|
$heading3: 'heading3';
|
|
147
|
+
$heading3Italic: 'heading3Italic';
|
|
97
148
|
$heading4: 'heading4';
|
|
149
|
+
$heading4Italic: 'heading4Italic';
|
|
98
150
|
$heading5: 'heading5';
|
|
151
|
+
|
|
152
|
+
// Eyebrow tokens
|
|
153
|
+
$eyebrowLg: 'eyebrowLg';
|
|
154
|
+
$eyebrowSm: 'eyebrowSm';
|
|
99
155
|
$title1: 'title1';
|
|
100
156
|
$title2: 'title2';
|
|
101
157
|
$title3: 'title3';
|
|
@@ -110,9 +166,11 @@ $snwHeaderLink: 'snwHeaderLink';
|
|
|
110
166
|
$snwFlyoutLink: 'snwFlyoutLink';
|
|
111
167
|
$snwHeadingHero1: 'snwHeadingHero1';
|
|
112
168
|
$snwHeadingHero2: 'snwHeadingHero2';
|
|
113
|
-
$text-tokens: $
|
|
114
|
-
$
|
|
115
|
-
$
|
|
169
|
+
$text-tokens: $labelLg, $labelLgBold, $labelMd, $labelMdBold, $labelSm, $labelSmBold, $button, $link, $linkBold, $email,
|
|
170
|
+
$label, $badge, $bodyLg, $bodyMd, $bodySm, $bodyLgBold, $bodyMdBold, $bodySmBold, $blockquote, $heading1, $heading2,
|
|
171
|
+
$heading3, $heading3Italic, $heading4, $heading4Italic, $heading5, $eyebrowLg, $eyebrowSm, $title1, $title2, $title3,
|
|
172
|
+
$title4, $body1, $body2, $body3, $string1, $string2, $string3, $snwFlyoutLink, $snwHeaderLink, $snwHeadingHero1,
|
|
173
|
+
$snwHeadingHero2;
|
|
116
174
|
|
|
117
175
|
////////////////////////
|
|
118
176
|
/// Breakpoint TOKENS to be used for min-width comparisons, make sure they match BREAKPOINTS in constants.ts
|
|
@@ -127,20 +185,14 @@ $breakpoint-xl: 1801px;
|
|
|
127
185
|
///////////////////////
|
|
128
186
|
// @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
|
|
129
187
|
// Once we update ObjectTile and other components will need to be updated to match the new token.
|
|
188
|
+
|
|
189
|
+
$line-height-default: 1.2;
|
|
190
|
+
$line-height-body: 1.4;
|
|
191
|
+
|
|
130
192
|
:root {
|
|
131
193
|
--desktop-max-width: 120rem;
|
|
132
194
|
--quote-size: 1.5rem;
|
|
133
195
|
--quote-line-height: 2rem;
|
|
134
|
-
--heading-size1: 1.5rem;
|
|
135
|
-
--heading-line-height-size1: 1.75rem;
|
|
136
|
-
--heading-size2: 1.5rem;
|
|
137
|
-
--heading-line-height-size2: 1.75rem;
|
|
138
|
-
--heading-size3: 1.25rem;
|
|
139
|
-
--heading-line-height-size3: 1.5rem;
|
|
140
|
-
--heading-size4: 1rem;
|
|
141
|
-
--heading-line-height-size4: 1.25rem;
|
|
142
|
-
--heading-size5: 0.75rem;
|
|
143
|
-
--heading-line-height-size5: 1rem;
|
|
144
196
|
--string-size1: 1rem;
|
|
145
197
|
--string-line-height-size1: 1.25rem;
|
|
146
198
|
--string-size2: 0.75rem;
|
|
@@ -173,19 +225,15 @@ $breakpoint-xl: 1801px;
|
|
|
173
225
|
--snw-heading-hero-size2: 1.625rem;
|
|
174
226
|
--snw-heading-hero-line-height-size2: 1.9375rem;
|
|
175
227
|
|
|
228
|
+
// FONT SIZES
|
|
229
|
+
--font-size-step: 0.25rem;
|
|
230
|
+
--body-size-step: 0.5rem;
|
|
231
|
+
|
|
232
|
+
@include font-size-vars--sm;
|
|
233
|
+
|
|
176
234
|
@media (min-width: $breakpoint-md) {
|
|
177
235
|
--quote-size: 1.75rem;
|
|
178
236
|
--quote-line-height: 2.25rem;
|
|
179
|
-
--heading-size1: 1.75rem;
|
|
180
|
-
--heading-line-height-size1: 2rem;
|
|
181
|
-
--heading-size2: 1.75rem;
|
|
182
|
-
--heading-line-height-size2: 2rem;
|
|
183
|
-
--heading-size3: 1.5rem;
|
|
184
|
-
--heading-line-height-size3: 1.75rem;
|
|
185
|
-
--heading-size4: 1.25rem;
|
|
186
|
-
--heading-line-height-size4: 1.5rem;
|
|
187
|
-
--heading-size5: 1rem;
|
|
188
|
-
--heading-line-height-size5: 1.25rem;
|
|
189
237
|
--string-size1: 1.25rem;
|
|
190
238
|
--string-line-height-size1: 1.5rem;
|
|
191
239
|
--string-size2: 1rem;
|
|
@@ -224,16 +272,6 @@ $breakpoint-xl: 1801px;
|
|
|
224
272
|
@media (min-width: $breakpoint-xl) {
|
|
225
273
|
--quote-size: 2rem;
|
|
226
274
|
--quote-line-height: 2.5rem;
|
|
227
|
-
--heading-size1: 2rem;
|
|
228
|
-
--heading-line-height-size1: 2.25rem;
|
|
229
|
-
--heading-size2: 2rem;
|
|
230
|
-
--heading-line-height-size2: 2.25rem;
|
|
231
|
-
--heading-size3: 1.75rem;
|
|
232
|
-
--heading-line-height-size3: 2rem;
|
|
233
|
-
--heading-size4: 1.5rem;
|
|
234
|
-
--heading-line-height-size4: 1.75rem;
|
|
235
|
-
--heading-size5: 1.25rem;
|
|
236
|
-
--heading-line-height-size5: 1.5rem;
|
|
237
275
|
--string-size1: 1.5rem;
|
|
238
276
|
--string-line-height-size1: 1.75rem;
|
|
239
277
|
--string-size2: 1.25rem;
|
|
@@ -259,6 +297,9 @@ $breakpoint-xl: 1801px;
|
|
|
259
297
|
--snw-header-link-line-height: 1.75rem;
|
|
260
298
|
--snw-flyout-link-size: 1.125rem;
|
|
261
299
|
--snw-flyout-link-line-height: 2.125rem;
|
|
300
|
+
|
|
301
|
+
// FONT SIZES
|
|
302
|
+
@include font-size-vars--lg;
|
|
262
303
|
}
|
|
263
304
|
}
|
|
264
305
|
|
|
@@ -268,18 +309,6 @@ $title-size2: var(--heading-size2);
|
|
|
268
309
|
$title-size3: var(--heading-size3);
|
|
269
310
|
$title-size4: var(--heading-size4);
|
|
270
311
|
|
|
271
|
-
// HEADING
|
|
272
|
-
$heading-size1: var(--heading-size1);
|
|
273
|
-
$heading-line-height-size1: var(--heading-line-height-size1);
|
|
274
|
-
$heading-size2: var(--heading-size2);
|
|
275
|
-
$heading-line-height-size2: var(--heading-line-height-size2);
|
|
276
|
-
$heading-size3: var(--heading-size3);
|
|
277
|
-
$heading-line-height-size3: var(--heading-line-height-size3);
|
|
278
|
-
$heading-size4: var(--heading-size4);
|
|
279
|
-
$heading-line-height-size4: var(--heading-line-height-size4);
|
|
280
|
-
$heading-size5: var(--heading-size5);
|
|
281
|
-
$heading-line-height-size5: var(--heading-line-height-size5);
|
|
282
|
-
|
|
283
312
|
// BODY
|
|
284
313
|
$body-size1: var(--body-size1);
|
|
285
314
|
$body-line-height-size1: var(--body-line-height-size1);
|