@royaloperahouse/harmonic 0.2.3-m → 0.2.3-o
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/molecules/SignUpForm/SignUpForm.style.d.ts +1 -1
- package/dist/components/molecules/SignUpForm/components/SignUpFormButton.d.ts +1 -0
- package/dist/harmonic.cjs.development.css +43 -30
- package/dist/harmonic.cjs.development.js +22 -15
- package/dist/harmonic.cjs.development.js.map +1 -1
- package/dist/harmonic.cjs.production.min.js +1 -1
- package/dist/harmonic.cjs.production.min.js.map +1 -1
- package/dist/harmonic.esm.js +23 -16
- package/dist/harmonic.esm.js.map +1 -1
- package/package.json +1 -1
|
@@ -9,7 +9,7 @@ export declare const Form: import("styled-components").StyledComponent<"form", a
|
|
|
9
9
|
export declare const FormFooterWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
10
10
|
export declare const ServerError: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
11
11
|
export declare const CTALinkWrapper: import("styled-components").StyledComponent<"a", any, {}, never>;
|
|
12
|
-
export declare const ButtonWrapper: import("styled-components").StyledComponent<"
|
|
12
|
+
export declare const ButtonWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
13
13
|
export declare const FieldsWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
14
14
|
export declare const MessageWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
15
15
|
export declare const DropdownAreaWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -80,14 +80,8 @@
|
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
.typography-module_subtitle--large__1Ep9J {
|
|
83
|
-
font-size:
|
|
84
|
-
line-height:
|
|
85
|
-
letter-spacing: -0.5px;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
.typography-module_subtitle--medium__8FxeU {
|
|
89
|
-
font-size: 20px;
|
|
90
|
-
line-height: 28px;
|
|
83
|
+
font-size: 19px;
|
|
84
|
+
line-height: 26px;
|
|
91
85
|
letter-spacing: -0.5px;
|
|
92
86
|
}
|
|
93
87
|
|
|
@@ -99,7 +93,7 @@
|
|
|
99
93
|
|
|
100
94
|
.typography-module_bodycopy--large__BNzf2 {
|
|
101
95
|
font-size: 19px;
|
|
102
|
-
line-height:
|
|
96
|
+
line-height: 26px;
|
|
103
97
|
letter-spacing: -0.5px;
|
|
104
98
|
}
|
|
105
99
|
|
|
@@ -110,27 +104,21 @@
|
|
|
110
104
|
}
|
|
111
105
|
|
|
112
106
|
.typography-module_bodycopy--small__fTLSM {
|
|
113
|
-
font-size:
|
|
107
|
+
font-size: 14px;
|
|
114
108
|
line-height: 20px;
|
|
115
|
-
letter-spacing: -0.
|
|
109
|
+
letter-spacing: -0.5px;
|
|
116
110
|
}
|
|
117
111
|
|
|
118
112
|
.typography-module_overline--large__79WUM {
|
|
119
|
-
font-size:
|
|
120
|
-
line-height:
|
|
121
|
-
letter-spacing:
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
.typography-module_overline--medium__Y5z3w {
|
|
125
|
-
font-size: 15px;
|
|
126
|
-
line-height: 20px;
|
|
127
|
-
letter-spacing: 1.5px;
|
|
113
|
+
font-size: 14px;
|
|
114
|
+
line-height: 18px;
|
|
115
|
+
letter-spacing: 0.3px;
|
|
128
116
|
}
|
|
129
117
|
|
|
130
118
|
.typography-module_overline--small__MGEG6 {
|
|
131
|
-
font-size:
|
|
132
|
-
line-height:
|
|
133
|
-
letter-spacing:
|
|
119
|
+
font-size: 12px;
|
|
120
|
+
line-height: 14px;
|
|
121
|
+
letter-spacing: 0.2px;
|
|
134
122
|
}
|
|
135
123
|
|
|
136
124
|
/* Button, Caption, Navigation text */
|
|
@@ -211,7 +199,7 @@
|
|
|
211
199
|
|
|
212
200
|
.typography-module_display--inherit__ZNOHM,
|
|
213
201
|
.typography-module_header--inherit__qmHQE,
|
|
214
|
-
.typography-module_subtitle--inherit__mly-X,
|
|
202
|
+
.typography-module_subtitle--inherit__mly-X,
|
|
215
203
|
.typography-module_bodycopy--inherit__CoC-f,
|
|
216
204
|
.typography-module_overline--inherit__Cq4ni,
|
|
217
205
|
.typography-module_buttontext--inherit__vguWx,
|
|
@@ -274,18 +262,43 @@
|
|
|
274
262
|
}
|
|
275
263
|
|
|
276
264
|
.typography-module_subtitle--large__1Ep9J {
|
|
277
|
-
font-size: 20px;
|
|
278
|
-
line-height: 28px;
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
.typography-module_subtitle--medium__8FxeU {
|
|
282
265
|
font-size: 17px;
|
|
283
266
|
line-height: 24px;
|
|
267
|
+
letter-spacing: -0.5px;
|
|
284
268
|
}
|
|
285
|
-
|
|
269
|
+
|
|
270
|
+
.typography-module_subtitle--small__Vt9bZ {
|
|
271
|
+
font-size: 14px;
|
|
272
|
+
line-height: 20px;
|
|
273
|
+
letter-spacing: -0.2px;
|
|
274
|
+
}
|
|
275
|
+
|
|
286
276
|
.typography-module_bodycopy--large__BNzf2 {
|
|
287
277
|
font-size: 17px;
|
|
288
278
|
line-height: 24px;
|
|
279
|
+
letter-spacing: -0.5px;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
.typography-module_bodycopy--medium__cwJEu {
|
|
283
|
+
font-size: 14px;
|
|
284
|
+
line-height: 20px;
|
|
285
|
+
letter-spacing: -0.2px;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
.typography-module_bodycopy--small__fTLSM {
|
|
289
|
+
font-size: 11px;
|
|
290
|
+
line-height: 16px;
|
|
291
|
+
letter-spacing: -0.2px;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
.typography-module_overline--large__79WUM {
|
|
295
|
+
line-height: 17px;
|
|
296
|
+
letter-spacing: 0.3px;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
.typography-module_overline--small__MGEG6 {
|
|
300
|
+
line-height: 14px;
|
|
301
|
+
letter-spacing: 0.3px;
|
|
289
302
|
}
|
|
290
303
|
}
|
|
291
304
|
@font-face {
|
|
@@ -396,7 +396,7 @@ var createClassNames = function createClassNames(baseClass, options, styles) {
|
|
|
396
396
|
return classes.filter(Boolean).join(' ');
|
|
397
397
|
};
|
|
398
398
|
|
|
399
|
-
var styles = {"display":"typography-module_display__ZHsz9","header":"typography-module_header__FVsLI","subtitle":"typography-module_subtitle__x3sSn","bodycopy":"typography-module_bodycopy__-BY2U","overline":"typography-module_overline__y1yCC","buttontext":"typography-module_buttontext__Gp0W-","captiontext":"typography-module_captiontext__zyA--","navigationtext":"typography-module_navigationtext__Qj6Zw","display--large":"typography-module_display--large__RwPQD","display--small":"typography-module_display--small__XWUSJ","header--large":"typography-module_header--large__2vP3p","header--medium":"typography-module_header--medium__OgzlB","header--small":"typography-module_header--small__zLuFf","subtitle--large":"typography-module_subtitle--large__1Ep9J","subtitle--
|
|
399
|
+
var styles = {"display":"typography-module_display__ZHsz9","header":"typography-module_header__FVsLI","subtitle":"typography-module_subtitle__x3sSn","bodycopy":"typography-module_bodycopy__-BY2U","overline":"typography-module_overline__y1yCC","buttontext":"typography-module_buttontext__Gp0W-","captiontext":"typography-module_captiontext__zyA--","navigationtext":"typography-module_navigationtext__Qj6Zw","display--large":"typography-module_display--large__RwPQD","display--small":"typography-module_display--small__XWUSJ","header--large":"typography-module_header--large__2vP3p","header--medium":"typography-module_header--medium__OgzlB","header--small":"typography-module_header--small__zLuFf","subtitle--large":"typography-module_subtitle--large__1Ep9J","subtitle--small":"typography-module_subtitle--small__Vt9bZ","bodycopy--large":"typography-module_bodycopy--large__BNzf2","bodycopy--medium":"typography-module_bodycopy--medium__cwJEu","bodycopy--small":"typography-module_bodycopy--small__fTLSM","overline--large":"typography-module_overline--large__79WUM","overline--small":"typography-module_overline--small__MGEG6","display--primary":"typography-module_display--primary__9sTwU","header--primary":"typography-module_header--primary__KF0PJ","subtitle--primary":"typography-module_subtitle--primary__yL-hS","bodycopy--primary":"typography-module_bodycopy--primary__5Uo2D","overline--primary":"typography-module_overline--primary__a2NSa","buttontext--primary":"typography-module_buttontext--primary__HnmE3","captiontext--primary":"typography-module_captiontext--primary__mmafI","navigationtext--primary":"typography-module_navigationtext--primary__vIsUl","display--black":"typography-module_display--black__8hmsx","header--black":"typography-module_header--black__M3I14","subtitle--black":"typography-module_subtitle--black__IQRSo","bodycopy--black":"typography-module_bodycopy--black__J8BNP","overline--black":"typography-module_overline--black__RUDoj","buttontext--black":"typography-module_buttontext--black__irjmz","captiontext--black":"typography-module_captiontext--black__7axhP","navigationtext--black":"typography-module_navigationtext--black__wDz-G","display--white":"typography-module_display--white__3QA6W","header--white":"typography-module_header--white__mm-ex","subtitle--white":"typography-module_subtitle--white__VzQ3K","bodycopy--white":"typography-module_bodycopy--white__NJ8J8","overline--white":"typography-module_overline--white__cV5QV","buttontext--white":"typography-module_buttontext--white__rrr8U","captiontext--white":"typography-module_captiontext--white__OMFwW","navigationtext--white":"typography-module_navigationtext--white__5YDdY","display--red":"typography-module_display--red__khdLJ","header--red":"typography-module_header--red__hxuj9","subtitle--red":"typography-module_subtitle--red__gSK7d","bodycopy--red":"typography-module_bodycopy--red__P5Mau","overline--red":"typography-module_overline--red__OW5dE","buttontext--red":"typography-module_buttontext--red__mlRi2","captiontext--red":"typography-module_captiontext--red__jMQIK","navigationtext--red":"typography-module_navigationtext--red__-QADV","display--grey":"typography-module_display--grey__RsgTf","header--grey":"typography-module_header--grey__rC0vN","subtitle--grey":"typography-module_subtitle--grey__1nkEx","bodycopy--grey":"typography-module_bodycopy--grey__SNnaU","overline--grey":"typography-module_overline--grey__lGOsK","buttontext--grey":"typography-module_buttontext--grey__1Y4oX","captiontext--grey":"typography-module_captiontext--grey__V0MLc","navigationtext--grey":"typography-module_navigationtext--grey__xi3sz","display--inherit":"typography-module_display--inherit__ZNOHM","header--inherit":"typography-module_header--inherit__qmHQE","subtitle--inherit":"typography-module_subtitle--inherit__mly-X","bodycopy--inherit":"typography-module_bodycopy--inherit__CoC-f","overline--inherit":"typography-module_overline--inherit__Cq4ni","buttontext--inherit":"typography-module_buttontext--inherit__vguWx","captiontext--inherit":"typography-module_captiontext--inherit__ya6gm","navigationtext--inherit":"typography-module_navigationtext--inherit__cJLWf","display--serif":"typography-module_display--serif__C0-Ve","header--serif":"typography-module_header--serif__uTGCc","display--em":"typography-module_display--em__h2bPV","header--em":"typography-module_header--em__UFQIA","display--bold":"typography-module_display--bold__PG-8g","header--bold":"typography-module_header--bold__InvJk","subtitle--bold":"typography-module_subtitle--bold__Subov","bodycopy--bold":"typography-module_bodycopy--bold__nZX3C","overline--bold":"typography-module_overline--bold__3mUXy","buttontext--bold":"typography-module_buttontext--bold__rBKIJ","captiontext--bold":"typography-module_captiontext--bold__ebTyV","navigationtext--bold":"typography-module_navigationtext--bold__SRlV2"};
|
|
400
400
|
|
|
401
401
|
var _excluded = ["children", "size", "color", "className"],
|
|
402
402
|
_excluded2 = ["children", "size", "color", "className"];
|
|
@@ -11895,7 +11895,7 @@ var Form = /*#__PURE__*/styled__default.form(_templateObject5$A || (_templateObj
|
|
|
11895
11895
|
var FormFooterWrapper = /*#__PURE__*/styled__default.div(_templateObject6$s || (_templateObject6$s = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin-top: 32px;\n display: flex;\n gap: 28px;\n align-items: center;\n\n @media ", " {\n flex-direction: column;\n align-items: flex-start;\n }\n"])), devices.mobile);
|
|
11896
11896
|
var ServerError = /*#__PURE__*/styled__default.div(_templateObject7$l || (_templateObject7$l = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n text-align: left;\n color: var(--color-base-errorstate);\n"])));
|
|
11897
11897
|
var CTALinkWrapper = /*#__PURE__*/styled__default.a(_templateObject8$f || (_templateObject8$f = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n text-decoration: none;\n\n @media ", " {\n text-decoration: underline;\n }\n"])), devices.mobile);
|
|
11898
|
-
var ButtonWrapper$3 = /*#__PURE__*/styled__default.
|
|
11898
|
+
var ButtonWrapper$3 = /*#__PURE__*/styled__default.div(_templateObject9$a || (_templateObject9$a = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n all: unset;\n width: fit-content;\n\n @media ", " {\n width: 100%;\n }\n"])), devices.mobile);
|
|
11899
11899
|
var FieldsWrapper = /*#__PURE__*/styled__default.div(_templateObject10$a || (_templateObject10$a = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: grid;\n grid-template-columns: repeat(3, 1fr);\n gap: 36px;\n\n @media ", " {\n grid-template-columns: 1fr;\n gap: 20px;\n }\n"])), devices.mobile);
|
|
11900
11900
|
var MessageWrapper$1 = /*#__PURE__*/styled__default.div(_templateObject11$6 || (_templateObject11$6 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n div > p {\n margin: 0;\n }\n"])));
|
|
11901
11901
|
var DropdownAreaWrapper = /*#__PURE__*/styled__default.div(_templateObject12$4 || (_templateObject12$4 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n grid-column: 1 / -1;\n display: grid;\n grid-template-columns: var(--grid-template-columns);\n gap: var(--grid-column-gap);\n cursor: pointer;\n"])));
|
|
@@ -12002,16 +12002,28 @@ var getFormErrorMessage = function getFormErrorMessage(field, value) {
|
|
|
12002
12002
|
|
|
12003
12003
|
var BUTTON_TEXT = 'Sign up';
|
|
12004
12004
|
var SignUpFormButton = function SignUpFormButton(_ref) {
|
|
12005
|
-
var theme = _ref.theme
|
|
12005
|
+
var theme = _ref.theme,
|
|
12006
|
+
onClick = _ref.onClick;
|
|
12007
|
+
var onKeyDownHandler = function onKeyDownHandler(e) {
|
|
12008
|
+
if (e.key === 'Enter') {
|
|
12009
|
+
onClick(e);
|
|
12010
|
+
}
|
|
12011
|
+
};
|
|
12012
|
+
var buttonProps = {
|
|
12013
|
+
tabIndex: 0,
|
|
12014
|
+
ariaLabel: BUTTON_TEXT,
|
|
12015
|
+
onClick: onClick,
|
|
12016
|
+
onKeyDown: onKeyDownHandler
|
|
12017
|
+
};
|
|
12006
12018
|
if (theme === exports.ThemeType.Core) {
|
|
12007
|
-
return /*#__PURE__*/React__default.createElement(PrimaryButton,
|
|
12019
|
+
return /*#__PURE__*/React__default.createElement(PrimaryButton, Object.assign({}, buttonProps), BUTTON_TEXT);
|
|
12008
12020
|
}
|
|
12009
|
-
return /*#__PURE__*/React__default.createElement(PrimaryButton, {
|
|
12021
|
+
return /*#__PURE__*/React__default.createElement(PrimaryButton, Object.assign({}, buttonProps, {
|
|
12010
12022
|
textColor: ThemeColor['base-white'],
|
|
12011
12023
|
backgroundColor: ThemeColor['base-black'],
|
|
12012
12024
|
hoveredColor: ThemeColor['black-hovered'],
|
|
12013
12025
|
pressedColor: ThemeColor['black-pressed']
|
|
12014
|
-
}, BUTTON_TEXT);
|
|
12026
|
+
}), BUTTON_TEXT);
|
|
12015
12027
|
};
|
|
12016
12028
|
|
|
12017
12029
|
var SignUpForm = function SignUpForm(_ref) {
|
|
@@ -12133,7 +12145,6 @@ var SignUpForm = function SignUpForm(_ref) {
|
|
|
12133
12145
|
onBlur: handleBlur('firstName'),
|
|
12134
12146
|
"aria-required": "true",
|
|
12135
12147
|
"aria-invalid": !!errors.firstName,
|
|
12136
|
-
"aria-describedby": errors.firstName ? 'firstName-error' : undefined,
|
|
12137
12148
|
autoComplete: "given-name"
|
|
12138
12149
|
}), /*#__PURE__*/React__default.createElement(TextField, {
|
|
12139
12150
|
label: "Last name",
|
|
@@ -12146,7 +12157,6 @@ var SignUpForm = function SignUpForm(_ref) {
|
|
|
12146
12157
|
onBlur: handleBlur('lastName'),
|
|
12147
12158
|
"aria-required": "true",
|
|
12148
12159
|
"aria-invalid": !!errors.lastName,
|
|
12149
|
-
"aria-describedby": errors.lastName ? 'lastName-error' : undefined,
|
|
12150
12160
|
autoComplete: "family-name"
|
|
12151
12161
|
}), /*#__PURE__*/React__default.createElement(TextField, {
|
|
12152
12162
|
label: "Email",
|
|
@@ -12158,7 +12168,6 @@ var SignUpForm = function SignUpForm(_ref) {
|
|
|
12158
12168
|
onBlur: handleBlur('email'),
|
|
12159
12169
|
"aria-required": "true",
|
|
12160
12170
|
"aria-invalid": !!errors.email,
|
|
12161
|
-
"aria-describedby": errors.email ? 'email-error' : undefined,
|
|
12162
12171
|
maxLength: 80
|
|
12163
12172
|
}))), isLoggedIn && !!errors.serverError && (/*#__PURE__*/React__default.createElement(GridItem, {
|
|
12164
12173
|
columnStartDesktop: 2,
|
|
@@ -12172,13 +12181,11 @@ var SignUpForm = function SignUpForm(_ref) {
|
|
|
12172
12181
|
href: ctaPrivacy.link
|
|
12173
12182
|
}, /*#__PURE__*/React__default.createElement(BodyCopyHarmonic, {
|
|
12174
12183
|
size: "small"
|
|
12175
|
-
}, ctaPrivacy.text)), /*#__PURE__*/React__default.createElement(ButtonWrapper$3, {
|
|
12176
|
-
|
|
12177
|
-
}, /*#__PURE__*/React__default.createElement(SignUpFormButton, {
|
|
12184
|
+
}, ctaPrivacy.text)), /*#__PURE__*/React__default.createElement(ButtonWrapper$3, null, /*#__PURE__*/React__default.createElement(SignUpFormButton, {
|
|
12185
|
+
onClick: handleFormSubmit,
|
|
12178
12186
|
theme: theme
|
|
12179
|
-
})))) : (/*#__PURE__*/React__default.createElement(FormFooterWrapper, null, /*#__PURE__*/React__default.createElement(ButtonWrapper$3, {
|
|
12180
|
-
|
|
12181
|
-
}, /*#__PURE__*/React__default.createElement(SignUpFormButton, {
|
|
12187
|
+
})))) : (/*#__PURE__*/React__default.createElement(FormFooterWrapper, null, /*#__PURE__*/React__default.createElement(ButtonWrapper$3, null, /*#__PURE__*/React__default.createElement(SignUpFormButton, {
|
|
12188
|
+
onClick: handleFormSubmit,
|
|
12182
12189
|
theme: theme
|
|
12183
12190
|
})), /*#__PURE__*/React__default.createElement(CTALinkWrapper, {
|
|
12184
12191
|
href: ctaPrivacy.link
|