@royaloperahouse/harmonic 0.1.1-b-test → 0.1.1-d

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.
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
2
  import { IGenericTypographyProps, IHarmonicHeaderProps } from '../../types/typography';
3
+ import '../../styles/GlobalStyles.css';
3
4
  import './styles.css';
4
5
  export declare const DisplayHeader: ({ children, size, em, color, serif }: IGenericTypographyProps) => React.JSX.Element;
5
6
  export declare const HarmonicHeader: ({ children, size, em, color, serif, hierarchy: Tag }: IHarmonicHeaderProps) => React.JSX.Element;
@@ -1,3 +1,2 @@
1
1
  import { DisplayHeader, HarmonicHeader, HarmonicSubtitle, BodyCopyHarmonic, HarmonicOverline, ButtonText, Caption, NavigationText } from './Typography';
2
- import TextLinkHarmonic from './TextLink/TextLink';
3
- export { DisplayHeader, HarmonicHeader, HarmonicSubtitle, BodyCopyHarmonic, HarmonicOverline, ButtonText, Caption, NavigationText, TextLinkHarmonic, };
2
+ export { DisplayHeader, HarmonicHeader, HarmonicSubtitle, BodyCopyHarmonic, HarmonicOverline, ButtonText, Caption, NavigationText, };
@@ -1,5 +1,4 @@
1
1
  import React from 'react';
2
- import './Typography.css';
3
2
  import { IAltHeaderProps, IBodyTextProps, IHeaderProps, IOverlineProps, IStyledTag, ISubtitleProps } from '../../../types/typography';
4
3
  export declare const StyledTag: ({ tag, typography, children, level }: IStyledTag) => React.JSX.Element;
5
4
  export declare const AltHeader: ({ semanticLevel, level, children }: IAltHeaderProps) => React.JSX.Element;
@@ -1,9 +1,8 @@
1
1
  import { DisplayHeader, HarmonicHeader, HarmonicSubtitle, BodyCopyHarmonic, HarmonicOverline, ButtonText, Caption, NavigationText } from './Typography';
2
- import TextLinkHarmonic from './Typography/TextLink/TextLink';
3
2
  import { AltHeader, BodyText, CinemaBadge, ControlledDropdown, Grid, GridItem, Header, Icon, ImageAspectRatioWrapper, Overline, PrimaryButton, Progress, Radio, Radio2, RotatorButtons, SecondaryButton, SecondaryLogo, TertiaryButton, SectionSplitter, Sponsorship, Stepper, StreamBadge, Subtitle, Tab, TabLink, TextLogo, TextArea, TextField, TextFieldLegacy, TextLink, Tickbox, Tickbox2, Timer, TypeTags, VideoControls } from './atoms';
4
3
  import { AnchorTabBar, Footer, LiveChat, Navigation, StickyBar, TitleWithCTA, UpsellSection } from './organisms';
5
4
  import { Accordion, Accordions, AnnouncementBanner, AuxiliaryNav, Card, Cards, ContactCard, ContentSummary, CreditListing, Editorial, ImageWithCaption, Information, PageHeadingCinema, PageHeadingCompact, PageHeadingCore, PageHeadingImpact, PageHeadingPanel, PageHeadingStream, PasswordStrength, Pagination, PeopleListing, PromoWithTags, PromoWithTitle, RadioGroup, RadioGroup2, ReadMore, StatusBanner, SearchBar, SectionTitle, Select, Select2, Select2Async, Table, Tabs, TextOnly, UpsellCard, Quote, VideoWithControls } from './molecules';
6
5
  import ThemeProvider from '../styles/ThemeProvider';
7
6
  import GlobalStyles from '../styles/GlobalStyles';
8
- export { DisplayHeader, HarmonicHeader, HarmonicSubtitle, BodyCopyHarmonic, HarmonicOverline, ButtonText, Caption, NavigationText, TextLinkHarmonic, };
7
+ export { DisplayHeader, HarmonicHeader, HarmonicSubtitle, BodyCopyHarmonic, HarmonicOverline, ButtonText, Caption, NavigationText, };
9
8
  export { Accordion, Accordions, AnnouncementBanner, AltHeader, AnchorTabBar, AuxiliaryNav, BodyText, Card, Cards, ContactCard, ContentSummary, CinemaBadge, ControlledDropdown, CreditListing, Editorial, Footer, GlobalStyles, Grid, GridItem, Header, Icon, ImageAspectRatioWrapper, ImageWithCaption, Information, Navigation, Overline, PageHeadingCinema, PageHeadingCompact, PageHeadingCore, PageHeadingImpact, PageHeadingPanel, PageHeadingStream, Pagination, PasswordStrength, PeopleListing, PrimaryButton, Progress, PromoWithTags, PromoWithTitle, Radio, Radio2, RadioGroup, RadioGroup2, ReadMore, RotatorButtons, SecondaryButton, SecondaryLogo, StatusBanner, SearchBar, SectionTitle, Select, Select2, Select2Async, Sponsorship, Stepper, StickyBar, StreamBadge, Subtitle, TertiaryButton, TextOnly, ThemeProvider, TitleWithCTA, SectionSplitter, Tab, TabLink, Table, Tabs, TextArea, TextField, TextFieldLegacy, TextLink, TextLogo, Tickbox, Tickbox2, Timer, TypeTags, UpsellCard, UpsellSection, Quote, LiveChat, VideoControls, VideoWithControls, };
@@ -1,275 +1,216 @@
1
- /* TEMPORARY CSS FILE - will relocate when CSS module issue is fixed */
2
-
1
+ /* Global Styles for Harmonic CSS components */
3
2
  :root {
4
3
  --font-family-sans: 'Grey LL Bold', 'Roboto', sans-serif;
5
4
  --font-family-serif: 'Victor Serif Medium', 'Inria Serif Regular', serif;
6
5
  --harmonic-red: #F40B0B;
7
6
  --harmonic-black: #000000;
8
7
  --text-link-underline-offset: 4px;
9
- }
10
-
11
- /* ~~~~~ Color Classes ~~~~~ */
12
- .styles_color-black__a05Fo {
13
- color: var(--harmonic-black);
14
- }
15
-
16
- .styles_color-red__zwTZW {
17
- color: var(--harmonic-red)
18
- }
19
-
20
-
21
- /* ~~~~~ Mobile ~~~~~ */
22
-
23
- @media (max-width: 600px) {
24
-
25
- /* ~~~ Letter Spacing - Mobile ~~~ */
26
- .styles_display__VgnTB.styles_large__vqVxY, .styles_display__VgnTB.styles_small__e7YDe {
27
- letter-spacing: -1.5px;
28
- }
29
-
30
- .styles_header-small__W-GSS {
31
- letter-spacing: -0.75px;
32
8
  }
33
9
 
34
- .styles_display__VgnTB.styles_large__vqVxY.styles_serif__b-ZjM, .styles_display__VgnTB.styles_large__vqVxY.styles_em__v4FoO, .styles_display__VgnTB.styles_small__e7YDe.styles_serif__b-ZjM, .styles_display__VgnTB.styles_small__e7YDe.styles_em__v4FoO, .styles_header__UDH-H.styles_small__e7YDe.styles_serif__b-ZjM, .styles_header__UDH-H.styles_small__e7YDe.styles_em__v4FoO, .styles_captiontext__-TA6x {
35
- letter-spacing: -0.5px;
36
- }
37
10
 
38
- .styles_subtitle__os3DH.styles_small__e7YDe, .styles_bodycopy__uEx9r.styles_medium__WQPZj, .styles_bodycopy__uEx9r.styles_small__e7YDe {
39
- letter-spacing: -0.2px;
11
+ /* TODO: store breakpoints here for use in css components */
12
+ /* export const breakpoints = {
13
+ xs: 320,
14
+ sm: 700,
15
+ md: 1140,
16
+ ml: 1280,
17
+ lg: 1400,
18
+ }; */
19
+ /* ~~~~~ General Styling Classes ~~~~~ */
20
+ .styles_color-black__a05Fo {
21
+ color: var(--harmonic-black);
40
22
  }
41
-
42
- .styles_overline__5xGDa.styles_small__e7YDe {
43
- letter-spacing: -0.3px;
44
- }
45
-
46
- /* Display */
47
- .styles_display__VgnTB.styles_large__vqVxY {
48
- font-size: 38px;
23
+
24
+ .styles_color-red__zwTZW {
25
+ color: var(--harmonic-red);
49
26
  }
50
27
 
51
- .styles_display__VgnTB.styles_small__e7YDe {
52
- font-size: 32px;
28
+ .styles_em__v4FoO {
29
+ font-style: italic;
53
30
  }
31
+ /* ~~~ */
54
32
 
55
- /* Header */
56
- .styles_header__UDH-H.styles_large__vqVxY {
57
- font-size: 28px;
58
- line-height: 34px;
59
- }
33
+ /* Display Headers */
34
+ .styles_display__VgnTB {
35
+ font-family: var(--font-family-sans);
60
36
 
61
- .styles_header__UDH-H.styles_medium__WQPZj {
62
- font-size: 24px;
63
- line-height: 28px;
37
+ &.styles_large__vqVxY {
38
+ font-size: 96px;
39
+ letter-spacing: -5px;
64
40
  }
65
41
 
66
- .styles_header__UDH-H.styles_small__e7YDe {
67
- font-size: 20px;
68
- line-height: 26px;
42
+ &.styles_small__e7YDe {
43
+ font-size: 68px;
44
+ letter-spacing: -3px;
45
+ font-weight: 500;
69
46
  }
70
47
 
71
- /* Subtitle */
72
- .styles_subtitle__os3DH.styles_large__vqVxY {
73
- font-size: 17px;
74
- line-height: 24px;
48
+ &.styles_serif__b-ZjM, &.styles_em__v4FoO {
49
+ font-family: var(--font-family-serif);
50
+ font-weight: 500;
75
51
  }
76
52
 
77
- .styles_subtitle__os3DH.styles_small__e7YDe {
78
- font-size: 14px;
79
- line-height: 20px;
80
- }
53
+ @media (max-width: 600px) {
54
+ &.styles_large__vqVxY {
55
+ font-size: 38px;
56
+ letter-spacing: -1.5px;
57
+ }
58
+
59
+ &.styles_small__e7YDe {
60
+ font-size: 32px;
61
+ letter-spacing: -1.5px;
62
+ }
81
63
 
82
- /* Body Copy */
83
- .styles_bodycopy__uEx9r.styles_large__vqVxY {
84
- font-size: 17px;
85
- line-height: 24px;
64
+ &.styles_large__vqVxY.styles_serif__b-ZjM,
65
+ &.styles_large__vqVxY.styles_em__v4FoO,
66
+ &.styles_small__e7YDe.styles_serif__b-ZjM,
67
+ &.styles_small__e7YDe.styles_em__v4FoO {
68
+ letter-spacing: -0.5px;
69
+ }
86
70
  }
71
+ }
87
72
 
88
- .styles_bodycopy__uEx9r.styles_medium__WQPZj {
89
- font-size: 14px;
90
- line-height: 20px;
91
- }
73
+ /* Headers */
74
+ .styles_header__UDH-H {
75
+ font-family: var(--font-family-sans);
76
+ font-weight: 500;
92
77
 
93
- .styles_bodycopy__uEx9r.styles_small__e7YDe {
94
- font-size: 11px;
95
- line-height: 16px;
78
+ &.styles_large__vqVxY {
79
+ font-size: 44px;
80
+ line-height: 48px;
81
+ letter-spacing: -1.5px;
96
82
  }
97
83
 
98
- /* Overline */
99
- .styles_overline__5xGDa.styles_large__vqVxY {
100
- font-size: 14px;
101
- line-height: 17px;
102
- }
103
-
104
- .styles_overline__5xGDa.styles_small__e7YDe {
105
- font-size: 12px;
106
- line-height: 14px;
84
+ &.styles_medium__WQPZj {
85
+ font-size: 34px;
86
+ line-height: 40px;
87
+ letter-spacing: -1.5px;
107
88
  }
108
89
 
109
- /* Caption */
110
- .styles_captiontext__-TA6x {
111
- font-size: 14px;
112
- line-height: 17px;
90
+ &.styles_small__e7YDe {
91
+ font-size: 26px;
92
+ line-height: 32px;
93
+ letter-spacing: -0.5px;
113
94
  }
114
95
 
115
- /* Navigation Text */
116
- .styles_navigationtext__qnnIo {
117
- font-size: 14px;
118
- line-height: 17px;
96
+ &.styles_serif__b-ZjM, &.styles_em__v4FoO {
97
+ font-family: var(--font-family-serif);
98
+ font-weight: 500;
119
99
  }
120
100
 
121
- /* Text Link */
122
- .styles_textlinkharmonic__S77lE {
123
- font-size: 14px;
124
- line-height: 14px;
101
+ @media (max-width: 600px) {
102
+ &.styles_large__vqVxY {
103
+ font-size: 28px;
104
+ letter-spacing: -1.5px;
105
+ line-height: 34px;
106
+ }
107
+
108
+ &.styles_medium__WQPZj {
109
+ font-size: 24px;
110
+ letter-spacing: -1px;
111
+ line-height: 28px;
112
+ }
113
+
114
+ &.styles_small__e7YDe {
115
+ font-size: 20px;
116
+ letter-spacing: -0.75px;
117
+ line-height: 26px;
118
+ }
125
119
  }
126
120
  }
127
121
 
128
-
129
- /* ~~~~~ Desktop ~~~~~~*/
130
-
131
- /* ~~~ Letter Spacing - Desktop ~~~ */
132
- .styles_display__VgnTB.styles_large__vqVxY {
133
- letter-spacing: -5px;
134
- }
135
-
136
- .styles_header__UDH-H.styles_large__vqVxY {
137
- letter-spacing: -1.5px;
138
- }
139
-
140
- .styles_header__UDH-H.styles_medium__WQPZj {
141
- letter-spacing: -1.5px;
142
- }
143
-
144
- .styles_display__VgnTB.styles_large__vqVxY.styles_serif__b-ZjM, .styles_display__VgnTB.styles_large__vqVxY.styles_em__v4FoO, .styles_display__VgnTB.styles_small__e7YDe {
145
- letter-spacing: -3px;
146
- }
147
-
148
- .styles_display__VgnTB.styles_small__e7YDe.styles_serif__b-ZjM, .styles_display__VgnTB.styles_small__e7YDe.styles_em__v4FoO {
149
- letter-spacing: -2px;
150
- }
151
-
152
- .styles_header__UDH-H.styles_large__vqVxY.styles_serif__b-ZjM, .styles_header__UDH-H.styles_large__vqVxY.styles_em__v4FoO, .styles_header__UDH-H.styles_medium__WQPZj.styles_serif__b-ZjM, .styles_header__UDH-H.styles_medium__WQPZj.styles_em__v4FoO, .styles_header__UDH-H.styles_small__e7YDe, .styles_header__UDH-H.styles_small__e7YDe.styles_serif__b-ZjM, .styles_header__UDH-H.styles_small__e7YDe.styles_em__v4FoO, .styles_subtitle__os3DH, .styles_bodycopy__uEx9r, .styles_buttontext__UPumF, .styles_captiontext__-TA6x, .styles_navigationtext__qnnIo, .styles_textlinkharmonic__S77lE {
153
- letter-spacing: -0.5px;
154
- }
155
-
156
- .styles_overline-large__nRJSl {
157
- letter-spacing: -0.3px;
158
- }
159
-
160
- .styles_overline-small__iF6Pd {
161
- letter-spacing: -0.2px;
162
- }
163
-
164
-
165
- /* ~~~ Display Headers - 1 (Large) , 2 (Small) ~~~ */
166
- .styles_display__VgnTB {
167
- font-family: var(--font-family-sans);
168
- font-weight: 700;
169
- }
170
-
171
- .styles_display__VgnTB em,
172
- .styles_display__VgnTB.styles_serif__b-ZjM {
173
- font-family: var(--font-family-serif);
174
- font-weight: 500;
175
- }
176
-
177
- .styles_display__VgnTB.styles_large__vqVxY {
178
- font-size: 96px;
179
- }
180
-
181
- .styles_display__VgnTB.styles_small__e7YDe {
182
- font-size: 68px;
183
- font-weight: 500;
184
- }
185
-
186
-
187
- /* ~~~ Header - 1 (Large) , 2 (Medium) , 3 (Small) ~~~ */
188
- .styles_header__UDH-H {
189
- font-family: var(--font-family-sans);
190
- font-weight: 500;
191
- }
192
-
193
- .styles_header__UDH-H em,
194
- .styles_header__UDH-H.styles_serif__b-ZjM {
195
- font-family: var(--font-family-serif);
196
- font-weight: 500;
197
- }
198
-
199
- .styles_header__UDH-H.styles_large__vqVxY {
200
- font-size: 44px;
201
- line-height: 48px;
202
- }
203
-
204
- .styles_header__UDH-H.styles_medium__WQPZj {
205
- font-size: 34px;
206
- line-height: 40px;
207
- }
208
-
209
- .styles_header__UDH-H.styles_small__e7YDe {
210
- font-size: 26px;
211
- line-height: 32px;
212
- }
213
-
214
-
215
- /* ~~~ Subtitle ~~~ */
122
+ /* Subtitle */
216
123
  .styles_subtitle__os3DH {
217
124
  font-family: var(--font-family-sans);
218
125
  font-weight: 500;
219
- }
220
126
 
221
- .styles_subtitle__os3DH.styles_large__vqVxY {
222
- font-size: 19px;
223
- line-height: 26px;
224
- }
127
+ &.styles_large__vqVxY {
128
+ font-size: 19px;
129
+ line-height: 26px;
130
+ }
225
131
 
226
- .styles_subtitle__os3DH.styles_small__e7YDe {
227
- font-size: 17px;
228
- line-height: 24px;
229
- }
132
+ &.styles_small__e7YDe {
133
+ font-size: 17px;
134
+ line-height: 24px;
135
+ }
230
136
 
137
+ @media (max-width: 600px) {
138
+ &.styles_large__vqVxY {
139
+ font-size: 17px;
140
+ line-height: 24px;
141
+ }
142
+
143
+ &.styles_small__e7YDe {
144
+ font-size: 14px;
145
+ letter-spacing: -0.2px;
146
+ line-height: 20px;
147
+ }
148
+ }
149
+ }
231
150
 
232
- /* ~~~ Body copy ~~~ */
151
+ /* Body Copy */
233
152
  .styles_bodycopy__uEx9r {
234
153
  font-family: var(--font-family-sans);
235
154
  font-weight: 400;
236
- }
155
+ letter-spacing: -0.5px;
237
156
 
238
- .styles_bodycopy__uEx9r.styles_large__vqVxY {
239
- font-size: 19px;
240
- line-height: 26px;
241
- }
157
+ &.styles_large__vqVxY {
158
+ font-size: 19px;
159
+ line-height: 26px;
160
+ }
242
161
 
243
- .styles_bodycopy__uEx9r.styles_medium__WQPZj {
244
- font-size: 17px;
245
- line-height: 24px;
246
- }
162
+ &.styles_medium__WQPZj {
163
+ font-size: 17px;
164
+ line-height: 24px;
165
+ }
247
166
 
248
- .styles_bodycopy__uEx9r.styles_small__e7YDe {
249
- font-size: 14px;
250
- line-height: 20px;
251
- }
167
+ &.styles_small__e7YDe {
168
+ font-size: 14px;
169
+ line-height: 20px;
170
+ }
252
171
 
172
+ @media (max-width: 600px) {
173
+ &.styles_large__vqVxY {
174
+ font-size: 17px;
175
+ line-height: 24px;
176
+ }
177
+
178
+ &.styles_medium__WQPZj {
179
+ font-size: 14px;
180
+ letter-spacing: -0.2px;
181
+ line-height: 20px;
182
+ }
183
+
184
+ &.styles_small__e7YDe {
185
+ font-size: 11px;
186
+ letter-spacing: -0.2px;
187
+ line-height: 16px;
188
+ }
189
+ }
190
+ }
253
191
 
254
- /* ~~~ Overline ~~~ */
192
+ /* Overline */
255
193
  .styles_overline__5xGDa {
256
194
  font-family: var(--font-family-sans);
257
195
  font-weight: 500;
258
196
  text-transform: uppercase;
259
- }
260
197
 
261
- .styles_overline__5xGDa.styles_large__vqVxY {
262
- font-size: 14px;
263
- line-height: 18px;
264
- }
198
+ &.styles_large__vqVxY { font-size: 14px; line-height: 18px; letter-spacing: 0.3px; }
199
+ &.styles_small__e7YDe { font-size: 12px; line-height: 14px; letter-spacing: 0.2px; }
265
200
 
266
- .styles_overline__5xGDa.styles_small__e7YDe {
267
- font-size: 12px;
268
- line-height: 14px;
201
+ @media (max-width: 600px) {
202
+ &.styles_large__vqVxY {
203
+ line-height: 17px;
204
+ }
205
+
206
+ &.styles_small__e7YDe {
207
+ letter-spacing: 0.3px;
208
+ line-height: 14px;
209
+ }
210
+ }
269
211
  }
270
212
 
271
-
272
- /* ~~~ Button text ~~~ */
213
+ /* Button Text */
273
214
  .styles_buttontext__UPumF {
274
215
  font-family: var(--font-family-sans);
275
216
  font-weight: 400;
@@ -277,44 +218,29 @@
277
218
  line-height: 20px;
278
219
  }
279
220
 
280
-
281
- /* ~~~ Caption text ~~~ */
221
+ /* Caption Text */
282
222
  .styles_captiontext__-TA6x {
283
223
  font-size: 17px;
284
224
  font-weight: 400;
285
225
  font-style: italic;
286
226
  line-height: 24px;
287
- }
288
227
 
228
+ @media (max-width: 600px) {
229
+ font-size: 14px;
230
+ line-height: 17px;
231
+ }
232
+ }
289
233
 
290
- /* ~~~ Navigation text ~~~ */
234
+ /* Navigation Text */
291
235
  .styles_navigationtext__qnnIo {
292
236
  font-family: var(--font-family-sans);
293
237
  font-size: 17px;
294
238
  font-weight: 500;
295
239
  text-transform: uppercase;
296
240
  line-height: 17px;
297
- }
298
-
299
241
 
300
- /* ~~~ Text link ~~~ */
301
- .styles_textlinkharmonic__S77lE {
302
- font-family: var(--font-family-sans);
303
- font-weight: 500;
304
- text-transform: uppercase;
305
- font-size: 17px;
306
- border-bottom: solid 1px;
307
- width: -moz-fit-content;
308
- width: fit-content;
309
- display: flex;
310
- align-items: center;
311
- cursor: pointer;
312
- text-decoration: none;
313
- line-height: 14px;
314
- }
315
-
316
- /* Typography.css */
317
- .Typography_test__1llmb {
318
- /* Add your styles here */
319
- color: red!important;
242
+ @media (max-width: 600px) {
243
+ font-size: 14px;
244
+ line-height: 17px;
245
+ }
320
246
  }