braid-ui 1.0.32 → 1.0.33

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
@@ -3346,30 +3346,30 @@ z.object({
3346
3346
 
3347
3347
  // src/lib/mock-data/business-data.ts
3348
3348
  var defaultBusinessProfile = {
3349
- legalName: "Acme Corporation",
3350
- dbaName: "ACME Tech",
3351
- businessType: "corporation",
3352
- taxId: "12-3456789",
3353
- formationDate: "2020-01-15",
3354
- idType: "EIN",
3349
+ name: "Acme Corporation",
3350
+ productId: 1,
3351
+ businessIdType: "EIN",
3352
+ idNumber: "12-3456789",
3353
+ dba: "ACME Tech",
3354
+ businessEntityType: "CORPORATION",
3355
3355
  incorporationState: "Delaware",
3356
+ formationDate: "2020-01-15",
3356
3357
  website: "https://acme.com",
3357
- email: "contact@acme.com",
3358
- mobilePhone: "+1 (555) 234-5678",
3359
3358
  mcc: "1234",
3360
3359
  naics: "123456",
3360
+ mobilePhone: "+1 (555) 234-5678",
3361
3361
  achCompanyId: "1234567890",
3362
- achCompanyName: "Acme Corporation",
3363
- externalId: "c48c9834-ccdd-42df-bd56-1022df37341b",
3364
- productId: 1,
3362
+ contactPersonFirstName: "John",
3363
+ contactPersonLastName: "Smith",
3364
+ contactPersonEmail: "contact@acme.com",
3365
+ contactPersonPhone: "+1 (555) 123-4567",
3365
3366
  address: {
3366
- streetAddress: "123 Business Avenue",
3367
- apartment: "Suite 100",
3367
+ line1: "123 Business Avenue",
3368
+ line2: "Suite 100",
3368
3369
  city: "New York",
3369
3370
  state: "NY",
3370
3371
  postalCode: "10001",
3371
- country: "US",
3372
- addressType: "business"
3372
+ countryCode: "US"
3373
3373
  }
3374
3374
  };
3375
3375
  var BusinessProfileCard = ({
@@ -3661,7 +3661,19 @@ var BusinessProfileCard = ({
3661
3661
  InfoField,
3662
3662
  {
3663
3663
  label: "Address",
3664
- value: formValues?.address ? `${formValues.address.line1 || ""}${formValues.address.line2 ? ", " + formValues.address.line2 : ""}, ${formValues.address.city || ""}, ${formValues.address.state || ""} ${formValues.address.postalCode || ""}, ${formValues.address.countryCode || ""}` : "-",
3664
+ value: formValues?.address ? (() => {
3665
+ const parts = [];
3666
+ if (formValues.address.line1) parts.push(formValues.address.line1);
3667
+ if (formValues.address.line2) parts.push(formValues.address.line2);
3668
+ const cityStateZip = [
3669
+ formValues.address.city,
3670
+ formValues.address.state,
3671
+ formValues.address.postalCode
3672
+ ].filter(Boolean).join(" ");
3673
+ if (cityStateZip) parts.push(cityStateZip);
3674
+ if (formValues.address.countryCode) parts.push(formValues.address.countryCode);
3675
+ return parts.length > 0 ? parts.join(", ") : "-";
3676
+ })() : "-",
3665
3677
  layout: "horizontal"
3666
3678
  }
3667
3679
  ),