summit-registration-lite 4.0.22 → 4.0.24

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/index.js CHANGED
@@ -2146,9 +2146,11 @@ const PersonalInfoComponent = ({
2146
2146
  }) => {
2147
2147
  var _errors$email, _errors$email2;
2148
2148
 
2149
+ const initialFirstName = userProfile.given_name || (invitation ? invitation.first_name : '');
2150
+ const initialLastName = userProfile.family_name || (invitation ? invitation.last_name : '');
2149
2151
  const [personalInfo, setPersonalInfo] = (0,external_react_.useState)({
2150
- firstName: userProfile.given_name || (invitation ? invitation.first_name : ''),
2151
- lastName: userProfile.family_name || (invitation ? invitation.last_name : ''),
2152
+ firstName: initialFirstName,
2153
+ lastName: initialLastName,
2152
2154
  email: userProfile.email || '',
2153
2155
  company: {
2154
2156
  id: null,
@@ -2219,6 +2221,9 @@ const PersonalInfoComponent = ({
2219
2221
  }),
2220
2222
  menuList: provided => personal_information_objectSpread(personal_information_objectSpread({}, provided), {}, {
2221
2223
  maxHeight: '120px'
2224
+ }),
2225
+ placeholder: provided => personal_information_objectSpread(personal_information_objectSpread({}, provided), {}, {
2226
+ fontSize: '12px'
2222
2227
  })
2223
2228
  };
2224
2229
  return /*#__PURE__*/external_react_default().createElement("div", {
@@ -2249,7 +2254,9 @@ const PersonalInfoComponent = ({
2249
2254
  }, /*#__PURE__*/external_react_default().createElement("input", personal_information_extends({
2250
2255
  type: "text",
2251
2256
  placeholder: "First name *",
2252
- defaultValue: personalInfo.firstName || ''
2257
+ defaultValue: personalInfo.firstName || '',
2258
+ readOnly: initialLastName !== '',
2259
+ className: initialLastName !== '' ? personal_information_index_module.readOnly : ''
2253
2260
  }, register("firstName", {
2254
2261
  required: true,
2255
2262
  maxLength: 80
@@ -2265,7 +2272,9 @@ const PersonalInfoComponent = ({
2265
2272
  }, /*#__PURE__*/external_react_default().createElement("input", personal_information_extends({
2266
2273
  type: "text",
2267
2274
  placeholder: "Last name *",
2268
- defaultValue: personalInfo.lastName || ''
2275
+ defaultValue: personalInfo.lastName || '',
2276
+ readOnly: initialLastName !== '',
2277
+ className: initialLastName !== '' ? personal_information_index_module.readOnly : ''
2269
2278
  }, register("lastName", {
2270
2279
  required: true,
2271
2280
  maxLength: 100
@@ -2307,7 +2316,9 @@ const PersonalInfoComponent = ({
2307
2316
  onError: handleCompanyError,
2308
2317
  value: personalInfo.company,
2309
2318
  placeholder: companyDDLPlaceholder,
2310
- isClearable: true
2319
+ isClearable: true,
2320
+ openMenuOnFocus: false,
2321
+ openMenuOnClick: false
2311
2322
  }), companyError && /*#__PURE__*/external_react_default().createElement("div", {
2312
2323
  className: personal_information_index_module.fieldError,
2313
2324
  "data-testid": "company-error"