@bloom-housing/ui-components 7.3.2 → 8.0.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.
Files changed (170) hide show
  1. package/dist/src/actions/Button.stories.js +1 -5
  2. package/dist/src/actions/Button.stories.js.map +1 -1
  3. package/dist/src/blocks/HousingCounselor.js +2 -2
  4. package/dist/src/blocks/InfoCard.js +1 -1
  5. package/dist/src/blocks/StandardCard.stories.js +1 -1
  6. package/dist/src/blocks/ViewItem.js +1 -1
  7. package/dist/src/blocks/ViewItem.js.map +1 -1
  8. package/dist/src/footers/ExygyFooter.js +1 -1
  9. package/dist/src/headers/SiteHeader.js +1 -1
  10. package/dist/src/headers/SiteHeader.js.map +1 -1
  11. package/dist/src/headers/SiteHeader.stories.js +2 -2
  12. package/dist/src/headers/SiteHeader.stories.js.map +1 -1
  13. package/dist/src/helpers/preferences.js +1 -1
  14. package/dist/src/helpers/preferences.js.map +1 -1
  15. package/dist/src/notifications/ApplicationStatus.js +2 -2
  16. package/dist/src/notifications/ApplicationStatus.js.map +1 -1
  17. package/dist/src/notifications/ApplicationStatus.stories.js +8 -24
  18. package/dist/src/notifications/ApplicationStatus.stories.js.map +1 -1
  19. package/dist/src/page_components/NavigationHeader.d.ts +1 -1
  20. package/dist/src/page_components/NavigationHeader.js.map +1 -1
  21. package/dist/src/page_components/forgot-password/FormForgotPassword.js +1 -3
  22. package/dist/src/page_components/forgot-password/FormForgotPassword.js.map +1 -1
  23. package/dist/src/page_components/listing/AdditionalFees.js +1 -1
  24. package/dist/src/page_components/listing/ContentAccordion.stories.js +1 -1
  25. package/dist/src/page_components/listing/ListingCard.stories.js +5 -17
  26. package/dist/src/page_components/listing/ListingCard.stories.js.map +1 -1
  27. package/dist/src/page_components/listing/listing_sidebar/Contact.js +2 -2
  28. package/dist/src/page_components/listing/listing_sidebar/Contact.js.map +1 -1
  29. package/dist/src/page_components/listing/listing_sidebar/ExpandableSection.js +1 -1
  30. package/dist/src/page_components/listing/listing_sidebar/ExpandableSection.js.map +1 -1
  31. package/dist/src/page_components/listing/listing_sidebar/GetApplication.js +3 -3
  32. package/dist/src/page_components/listing/listing_sidebar/GetApplication.js.map +1 -1
  33. package/dist/src/page_components/listing/listing_sidebar/ListingUpdated.js +1 -1
  34. package/dist/src/page_components/listing/listing_sidebar/ListingUpdated.js.map +1 -1
  35. package/dist/src/page_components/listing/listing_sidebar/NumberedHeader.js +1 -1
  36. package/dist/src/page_components/listing/listing_sidebar/QuantityRowSection.js +2 -2
  37. package/dist/src/page_components/listing/listing_sidebar/QuantityRowSection.js.map +1 -1
  38. package/dist/src/page_components/listing/listing_sidebar/ReferralApplication.js +1 -1
  39. package/dist/src/page_components/listing/listing_sidebar/ReferralApplication.js.map +1 -1
  40. package/dist/src/page_components/listing/listing_sidebar/SidebarBlock.js +1 -1
  41. package/dist/src/page_components/listing/listing_sidebar/SidebarBlock.js.map +1 -1
  42. package/dist/src/page_components/listing/listing_sidebar/SidebarBlock.stories.js +1 -1
  43. package/dist/src/page_components/listing/listing_sidebar/SubmitApplication.js +3 -3
  44. package/dist/src/page_components/listing/listing_sidebar/SubmitApplication.js.map +1 -1
  45. package/dist/src/page_components/listing/listing_sidebar/events/DownloadLotteryResults.js +1 -1
  46. package/dist/src/page_components/listing/listing_sidebar/events/DownloadLotteryResults.js.map +1 -1
  47. package/dist/src/page_components/listing/listing_sidebar/events/EventSection.js +4 -4
  48. package/dist/src/page_components/listing/listing_sidebar/events/EventSection.js.map +1 -1
  49. package/dist/src/page_components/sign-in/FormSignIn.js +1 -1
  50. package/dist/src/page_components/sign-in/FormSignIn.js.map +1 -1
  51. package/dist/src/page_components/sign-in/FormSignInAddPhone.js.map +1 -1
  52. package/dist/src/page_components/sign-in/FormSignInErrorBox.d.ts +1 -1
  53. package/dist/src/page_components/sign-in/FormSignInErrorBox.js +1 -3
  54. package/dist/src/page_components/sign-in/FormSignInErrorBox.js.map +1 -1
  55. package/dist/src/page_components/sign-in/FormSignInMFACode.js.map +1 -1
  56. package/dist/src/page_components/sign-in/FormSignInMFAType.js.map +1 -1
  57. package/dist/src/page_components/sign-in/FormTerms.js.map +1 -1
  58. package/dist/src/page_components/sign-in/ResendConfirmationModal.js.map +1 -1
  59. package/dist/src/prototypes/SummaryCard.stories.js +1 -1
  60. package/dist/src/sections/InfoCardGrid.js +1 -1
  61. package/dist/src/sections/InfoCardGrid.js.map +1 -1
  62. package/dist/src/tables/AgPagination.js +1 -1
  63. package/dist/src/tables/AgPagination.js.map +1 -1
  64. package/dist/src/tables/GroupedTable.js +1 -1
  65. package/dist/src/tables/StandardTable.js +1 -1
  66. package/package.json +2 -2
  67. package/src/actions/Button.docs.mdx +3 -3
  68. package/src/actions/Button.scss +6 -6
  69. package/src/actions/Button.stories.tsx +1 -5
  70. package/src/blocks/Card.docs.mdx +3 -3
  71. package/src/blocks/DashBlocks.scss +1 -1
  72. package/src/blocks/FormCard.scss +3 -3
  73. package/src/blocks/HousingCounselor.tsx +2 -2
  74. package/src/blocks/ImageCard.scss +1 -1
  75. package/src/blocks/InfoCard.scss +1 -1
  76. package/src/blocks/InfoCard.tsx +1 -1
  77. package/src/blocks/MediaCard.docs.mdx +1 -1
  78. package/src/blocks/MediaCard.scss +1 -1
  79. package/src/blocks/StandardCard.docs.mdx +10 -11
  80. package/src/blocks/StandardCard.scss +1 -1
  81. package/src/blocks/StandardCard.stories.tsx +3 -3
  82. package/src/blocks/StatusItem.scss +3 -3
  83. package/src/blocks/ViewItem.scss +2 -2
  84. package/src/blocks/ViewItem.tsx +1 -1
  85. package/src/documentation/Utilities.scss +1 -1
  86. package/src/footers/ExygyFooter.tsx +1 -1
  87. package/src/forms/Dropzone.scss +1 -1
  88. package/src/forms/MultiSelectField.scss +4 -4
  89. package/src/forms/Textarea.scss +3 -3
  90. package/src/global/app-css.scss +1 -1
  91. package/src/global/blocks.scss +1 -1
  92. package/src/global/custom_counter.scss +2 -2
  93. package/src/global/forms.scss +11 -11
  94. package/src/global/headers.scss +6 -6
  95. package/src/global/homepage.scss +1 -1
  96. package/src/global/markdown.scss +2 -2
  97. package/src/global/mixins.scss +1 -1
  98. package/src/global/tables.scss +6 -6
  99. package/src/global/text.scss +17 -25
  100. package/src/global/tokens/colors.scss +49 -24
  101. package/src/global/tokens/fonts.scss +11 -13
  102. package/src/headers/Hero.scss +3 -3
  103. package/src/headers/PageHeader.docs.mdx +1 -1
  104. package/src/headers/PageHeader.scss +1 -1
  105. package/src/headers/SiteHeader.scss +7 -7
  106. package/src/headers/SiteHeader.stories.tsx +2 -2
  107. package/src/headers/SiteHeader.tsx +1 -1
  108. package/src/headers/StepHeader.docs.mdx +11 -11
  109. package/src/headers/StepHeader.scss +1 -1
  110. package/src/helpers/preferences.tsx +13 -13
  111. package/src/lists/PreferencesList.scss +5 -5
  112. package/src/navigation/Breadcrumbs.scss +2 -2
  113. package/src/navigation/FooterNav.scss +1 -1
  114. package/src/navigation/ProgressNav.docs.mdx +1 -1
  115. package/src/navigation/ProgressNav.scss +2 -2
  116. package/src/navigation/SideNav.docs.mdx +2 -2
  117. package/src/navigation/SideNav.scss +1 -1
  118. package/src/navigation/TabNav.scss +4 -4
  119. package/src/navigation/Tabs.scss +1 -1
  120. package/src/notifications/AlertBox.docs.mdx +2 -2
  121. package/src/notifications/AlertBox.scss +4 -4
  122. package/src/notifications/AlertNotice.scss +4 -4
  123. package/src/notifications/ApplicationStatus.stories.tsx +50 -76
  124. package/src/notifications/ApplicationStatus.tsx +2 -2
  125. package/src/notifications/StatusAside.scss +1 -1
  126. package/src/notifications/StatusMessage.scss +2 -2
  127. package/src/overlays/Modal.docs.mdx +3 -3
  128. package/src/overlays/Modal.scss +3 -3
  129. package/src/overlays/Overlay.scss +1 -1
  130. package/src/page_components/ApplicationTimeline.scss +1 -1
  131. package/src/page_components/NavigationHeader.tsx +31 -31
  132. package/src/page_components/forgot-password/FormForgotPassword.tsx +29 -42
  133. package/src/page_components/listing/AdditionalFees.tsx +1 -1
  134. package/src/page_components/listing/ContentAccordion.scss +2 -2
  135. package/src/page_components/listing/ContentAccordion.stories.tsx +1 -1
  136. package/src/page_components/listing/ListingCard.stories.tsx +5 -17
  137. package/src/page_components/listing/listing_sidebar/Contact.tsx +2 -2
  138. package/src/page_components/listing/listing_sidebar/ExpandableSection.tsx +1 -1
  139. package/src/page_components/listing/listing_sidebar/GetApplication.tsx +3 -3
  140. package/src/page_components/listing/listing_sidebar/ListingUpdated.tsx +1 -1
  141. package/src/page_components/listing/listing_sidebar/NumberedHeader.tsx +1 -1
  142. package/src/page_components/listing/listing_sidebar/QuantityRowSection.tsx +2 -2
  143. package/src/page_components/listing/listing_sidebar/ReferralApplication.tsx +1 -1
  144. package/src/page_components/listing/listing_sidebar/SidebarBlock.stories.tsx +1 -1
  145. package/src/page_components/listing/listing_sidebar/SidebarBlock.tsx +1 -1
  146. package/src/page_components/listing/listing_sidebar/SubmitApplication.tsx +3 -3
  147. package/src/page_components/listing/listing_sidebar/events/DownloadLotteryResults.tsx +1 -1
  148. package/src/page_components/listing/listing_sidebar/events/EventSection.tsx +4 -6
  149. package/src/page_components/sign-in/FormSignIn.tsx +40 -51
  150. package/src/page_components/sign-in/FormSignInAddPhone.tsx +24 -32
  151. package/src/page_components/sign-in/FormSignInErrorBox.tsx +18 -32
  152. package/src/page_components/sign-in/FormSignInMFACode.tsx +23 -32
  153. package/src/page_components/sign-in/FormSignInMFAType.tsx +21 -25
  154. package/src/page_components/sign-in/FormTerms.tsx +16 -23
  155. package/src/page_components/sign-in/ResendConfirmationModal.tsx +28 -30
  156. package/src/prototypes/AppCard.scss +2 -2
  157. package/src/prototypes/FieldSection.scss +1 -1
  158. package/src/prototypes/SummaryCard.scss +1 -1
  159. package/src/prototypes/SummaryCard.stories.tsx +1 -1
  160. package/src/sections/GridSection.scss +1 -1
  161. package/src/sections/InfoCardGrid.scss +2 -2
  162. package/src/sections/InfoCardGrid.tsx +1 -1
  163. package/src/tables/AgPagination.tsx +28 -30
  164. package/src/tables/GroupedTable.tsx +1 -1
  165. package/src/tables/StandardTable.tsx +1 -1
  166. package/src/text/Description.scss +2 -2
  167. package/src/text/Message.scss +1 -1
  168. package/src/text/Tag.docs.mdx +3 -3
  169. package/src/text/Tag.scss +8 -8
  170. package/tailwind.config.js +28 -13
@@ -74,11 +74,7 @@ export const withStackedTable = () => {
74
74
  },
75
75
  stackedData: [
76
76
  {
77
- units: {
78
- cellText: "Studio",
79
- cellSubText: "23 available",
80
- hideSubTextMobile: true,
81
- },
77
+ units: { cellText: "Studio", cellSubText: "23 available", hideSubTextMobile: true },
82
78
  availability: { cellText: "23", cellSubText: "available" },
83
79
  income: { cellText: "$0 to $6,854", cellSubText: "per month" },
84
80
  rent: { cellText: "30%", cellSubText: "income" },
@@ -105,10 +101,7 @@ export const WithHeaders = () => {
105
101
  tableProps={{ ...standardTableProps }}
106
102
  footerButtons={[{ text: "See Details", href: "see-details-link", ariaHidden: true }]}
107
103
  contentProps={{
108
- contentHeader: {
109
- content: "Optional content header",
110
- href: "listing-link",
111
- },
104
+ contentHeader: { content: "Optional content header", href: "listing-link" },
112
105
  contentSubheader: { content: "Optional content subheader" },
113
106
  tableHeader: { content: "Optional table header" },
114
107
  tableSubheader: { content: "Optional table subheader" },
@@ -124,10 +117,7 @@ export const WithPillHeader = () => {
124
117
  tableProps={{ ...standardTableProps }}
125
118
  footerButtons={[{ text: "See Details", href: "see-details-link", ariaHidden: true }]}
126
119
  contentProps={{
127
- contentHeader: {
128
- content: "Optional content header",
129
- href: "listing-link",
130
- },
120
+ contentHeader: { content: "Optional content header", href: "listing-link" },
131
121
  contentSubheader: { content: "Optional content subheader" },
132
122
  tableHeader: { content: "Optional table header", isPillType: true },
133
123
  }}
@@ -184,9 +174,7 @@ export const WithHeadersContent = () => {
184
174
  contentHeader: { content: "Property Listing" },
185
175
  contentSubheader: { content: "Street Address, Local City ST 12345" },
186
176
  tableHeader: { content: "Open Waitlist & Available Units" },
187
- tableSubheader: {
188
- content: "Includes priority units for mobility impairments",
189
- },
177
+ tableSubheader: { content: "Includes priority units for mobility impairments" },
190
178
  }}
191
179
  />
192
180
  )
@@ -224,7 +212,7 @@ const exampleCustomContent = () => {
224
212
  }
225
213
  return (
226
214
  <div className={"text-gray-750"}>
227
- <div className={"font-alt-sans font-semibold text-base mb-2 text-gray-900"}>
215
+ <div className={"font-alt-sans font-semibold text-base mb-2 text-gray-950"}>
228
216
  Available units
229
217
  </div>
230
218
  {getHeader("Units")}
@@ -66,7 +66,7 @@ const Contact = ({
66
66
  </a>
67
67
  </p>
68
68
  {contactPhoneNumberNote && (
69
- <p className="text-sm text-gray-700">{contactPhoneNumberNote}</p>
69
+ <p className="text-xs text-gray-700">{contactPhoneNumberNote}</p>
70
70
  )}
71
71
  </>
72
72
  )}
@@ -99,7 +99,7 @@ const Contact = ({
99
99
  <Heading priority={3} styleType={"capsWeighted"}>
100
100
  {info.title}
101
101
  </Heading>
102
- <div className="text-gray-800 text-tiny markdown">{info.content}</div>
102
+ <div className="text-gray-800 text-sm markdown">{info.content}</div>
103
103
  </div>
104
104
  )
105
105
  })}
@@ -32,7 +32,7 @@ const ExpandableSection = ({ content, expandableContent, strings }: ExpandableSe
32
32
  <Heading priority={4} styleType={"underlineWeighted"}>
33
33
  {strings.title}
34
34
  </Heading>
35
- <div className="text-tiny text-gray-750">
35
+ <div className="text-sm text-gray-750">
36
36
  {getTextContent(content)}
37
37
  {expandableContent && (
38
38
  <div className={"mt-2"}>
@@ -90,7 +90,7 @@ const GetApplication = (props: ApplicationsProps) => {
90
90
  {props.applicationsOpen && props.paperMethod && !!props.paperApplications?.length && (
91
91
  <>
92
92
  {props.onlineApplicationURL && <OrDivider bgColor="white" />}
93
- <div className="text-serif-lg">
93
+ <div className="text-serif-xl">
94
94
  {props.strings?.getAPaperApplication ?? t("listings.apply.getAPaperApplication")}
95
95
  </div>
96
96
  <Button
@@ -107,7 +107,7 @@ const GetApplication = (props: ApplicationsProps) => {
107
107
  )}
108
108
  {showDownload &&
109
109
  props.paperApplications?.map((paperApplication: PaperApplication, index: number) => (
110
- <p key={index} className="text-center mt-2 mb-4 text-sm">
110
+ <p key={index} className="text-center mt-2 mb-4 text-xs">
111
111
  <a
112
112
  href={paperApplication.fileURL}
113
113
  title={props.strings?.downloadApplication ?? t("listings.apply.downloadApplication")}
@@ -134,7 +134,7 @@ const GetApplication = (props: ApplicationsProps) => {
134
134
  <Heading priority={3} styleType={"capsWeighted"}>
135
135
  {props.strings?.officeHoursHeading ?? t("leasingAgent.officeHours")}
136
136
  </Heading>
137
- <p className="text-gray-800 text-tiny markdown">
137
+ <p className="text-gray-800 text-sm markdown">
138
138
  <Markdown
139
139
  children={props.applicationPickUpAddressOfficeHours}
140
140
  options={{ disableParsingRawHTML: true }}
@@ -13,7 +13,7 @@ const ListingUpdated = (props: ListingUpdatedProps) => {
13
13
  const listingUpdated = props.listingUpdated
14
14
  return (
15
15
  <section className="aside-block">
16
- <p className="text-tiny text-gray-800">
16
+ <p className="text-sm text-gray-800">
17
17
  {props?.strings?.listingUpdated ??
18
18
  `${t("listings.listingUpdated")}: ${dayjs(listingUpdated).format("MMMM DD, YYYY")}`}
19
19
  </p>
@@ -1,7 +1,7 @@
1
1
  import * as React from "react"
2
2
 
3
3
  const NumberedHeader = (props: { num: number; text: string }) => (
4
- <div className="text-serif-lg">
4
+ <div className="text-serif-xl">
5
5
  <span className="text-primary pr-1">{props.num}</span>
6
6
  {props.text}
7
7
  </div>
@@ -27,7 +27,7 @@ const QuantityRowSection = ({ quantityRows, strings }: QuantityRowSectionProps)
27
27
  } font-alt-sans leading-7`}
28
28
  >
29
29
  <span className="text-right w-12 inline-block pr-2.5 text-base">{row.amount}</span>
30
- <span className={"text-sm"}>{row.text}</span>
30
+ <span className={"text-xs"}>{row.text}</span>
31
31
  </li>
32
32
  )
33
33
  }
@@ -39,7 +39,7 @@ const QuantityRowSection = ({ quantityRows, strings }: QuantityRowSectionProps)
39
39
  </Heading>
40
40
  <div>
41
41
  {strings.description && (
42
- <div className="text-tiny text-gray-800 pb-3">
42
+ <div className="text-sm text-gray-800 pb-3">
43
43
  {typeof strings.description === "string" ? (
44
44
  <p>{strings.description}</p>
45
45
  ) : (
@@ -26,7 +26,7 @@ const ReferralApplication = (props: ReferralApplicationProps) => {
26
26
  {props.strings.call ?? t("t.call")} {props.phoneNumber}
27
27
  </a>
28
28
  </p>
29
- <p className="text-tiny mt-4 text-gray-800">{props.description}</p>
29
+ <p className="text-sm mt-4 text-gray-800">{props.description}</p>
30
30
  </section>
31
31
  )
32
32
  }
@@ -22,7 +22,7 @@ export const Default = () => {
22
22
 
23
23
  export const Styled = () => {
24
24
  return (
25
- <SidebarBlock title={"Title"} styleType={"capsWeighted"} className={"bg-blue-200"}>
25
+ <SidebarBlock title={"Title"} styleType={"capsWeighted"} className={"bg-blue-100"}>
26
26
  Content
27
27
  </SidebarBlock>
28
28
  )
@@ -15,7 +15,7 @@ const SidebarBlock = ({ children, className, title, priority, styleType }: Sideb
15
15
  {title}
16
16
  </Heading>
17
17
  )}
18
- <div className="text-tiny text-gray-750">{children}</div>
18
+ <div className="text-sm text-gray-750">{children}</div>
19
19
  </section>
20
20
  )
21
21
  }
@@ -35,7 +35,7 @@ const SubmitApplication = ({
35
35
  return (
36
36
  <>
37
37
  <section className="aside-block is-tinted bg-gray-100">
38
- <div className="text-serif-lg">{strings.sectionHeader}</div>
38
+ <div className="text-serif-xl">{strings.sectionHeader}</div>
39
39
  {applicationMailingAddress && (
40
40
  <>
41
41
  <Heading priority={3} styleType={"capsWeighted"}>
@@ -45,7 +45,7 @@ const SubmitApplication = ({
45
45
  <p className="text-gray-700">{applicationOrganization}</p>
46
46
  <ContactAddress address={applicationMailingAddress} mapString={strings.mapString} />
47
47
  </>
48
- {strings.postmark && <p className="mt-4 text-tiny text-gray-750">{strings.postmark}</p>}
48
+ {strings.postmark && <p className="mt-4 text-sm text-gray-750">{strings.postmark}</p>}
49
49
  </>
50
50
  )}
51
51
  {applicationDropOffAddress && (
@@ -60,7 +60,7 @@ const SubmitApplication = ({
60
60
  <Heading priority={3} styleType={"capsWeighted"}>
61
61
  {strings.officeHoursHeader}
62
62
  </Heading>
63
- <p className="mt-4 text-tiny text-gray-750">
63
+ <p className="mt-4 text-sm text-gray-750">
64
64
  <Markdown
65
65
  children={applicationDropOffAddressOfficeHours}
66
66
  options={{ disableParsingRawHTML: true }}
@@ -18,7 +18,7 @@ const DownloadLotteryResults = (props: DownloadLotteryResultsProps) => {
18
18
  {props.strings?.sectionHeader ?? t("listings.lotteryResults.header")}
19
19
  </h2>
20
20
  {props.resultsDate && (
21
- <p className="uppercase text-gray-800 text-tiny font-semibold pb-4">{props.resultsDate}</p>
21
+ <p className="uppercase text-gray-800 text-sm font-semibold pb-4">{props.resultsDate}</p>
22
22
  )}
23
23
  <a
24
24
  className="button is-primary w-full mb-2"
@@ -19,7 +19,7 @@ type EventSectionProps = {
19
19
  const EventSection = (props: EventSectionProps) => {
20
20
  if (!props.events.length) return null
21
21
 
22
- const dateClasses = ["inline-block text-tiny uppercase"]
22
+ const dateClasses = ["inline-block text-sm uppercase"]
23
23
 
24
24
  if (props.dateClassName) {
25
25
  dateClasses.push(props.dateClassName)
@@ -41,21 +41,19 @@ const EventSection = (props: EventSectionProps) => {
41
41
  <p className="text text-gray-800 pb-2 flex justify-between items-center">
42
42
  <span className={dateClasses.join(" ")}>{event.dateString}</span>
43
43
  {event.timeString && (
44
- <span className="inline-block text-sm font-bold ml-5 font-alt-sans">
44
+ <span className="inline-block text-xs font-bold ml-5 font-alt-sans">
45
45
  {event.timeString}
46
46
  </span>
47
47
  )}
48
48
  </p>
49
49
  )}
50
50
  {event.linkURL && event.linkText && (
51
- <p className="pb-2 text-tiny">
51
+ <p className="pb-2 text-sm">
52
52
  <a href={event.linkURL}>{event.linkText}</a>
53
53
  </p>
54
54
  )}
55
55
  {event.note && (
56
- <div
57
- className={`text-tiny text-gray-700 ${index !== props.events.length - 1 && "pb-3"}`}
58
- >
56
+ <div className={`text-sm text-gray-700 ${index !== props.events.length - 1 && "pb-3"}`}>
59
57
  {typeof event.note === "string" ? <p>{event.note}</p> : event.note}
60
58
  </div>
61
59
  )}
@@ -1,4 +1,4 @@
1
- import React, { useContext } from "react";
1
+ import React, { useContext } from "react"
2
2
  import {
3
3
  AppearanceStyleType,
4
4
  Button,
@@ -9,47 +9,47 @@ import {
9
9
  LinkButton,
10
10
  t,
11
11
  FormSignInErrorBox,
12
- } from "../../..";
13
- import type { UseFormMethods } from "react-hook-form";
14
- import { NavigationContext } from "../../config/NavigationContext";
15
- import { AlertTypes } from "../../notifications/alertTypes";
12
+ } from "../../.."
13
+ import type { UseFormMethods } from "react-hook-form"
14
+ import { NavigationContext } from "../../config/NavigationContext"
15
+ import { AlertTypes } from "../../notifications/alertTypes"
16
16
 
17
- export type NetworkErrorDetermineError = (status: number, error: Error) => void;
17
+ export type NetworkErrorDetermineError = (status: number, error: Error) => void
18
18
 
19
- export type NetworkStatusType = AlertTypes;
19
+ export type NetworkStatusType = AlertTypes
20
20
 
21
- export type NetworkErrorReset = () => void;
21
+ export type NetworkErrorReset = () => void
22
22
 
23
23
  export type NetworkStatusContent = {
24
- title: string;
25
- description: string;
26
- error?: boolean;
27
- } | null;
24
+ title: string
25
+ description: string
26
+ error?: boolean
27
+ } | null
28
28
 
29
29
  export type NetworkStatus = {
30
- content: NetworkStatusContent;
31
- type?: NetworkStatusType;
32
- reset: NetworkErrorReset;
33
- };
30
+ content: NetworkStatusContent
31
+ type?: NetworkStatusType
32
+ reset: NetworkErrorReset
33
+ }
34
34
 
35
35
  export type FormSignInProps = {
36
- control: FormSignInControl;
37
- onSubmit: (data: FormSignInValues) => void;
38
- networkStatus: NetworkStatus;
39
- showRegisterBtn?: boolean;
40
- };
36
+ control: FormSignInControl
37
+ onSubmit: (data: FormSignInValues) => void
38
+ networkStatus: NetworkStatus
39
+ showRegisterBtn?: boolean
40
+ }
41
41
 
42
42
  export type FormSignInControl = {
43
- errors: UseFormMethods["errors"];
44
- handleSubmit: UseFormMethods["handleSubmit"];
45
- register: UseFormMethods["register"];
46
- watch: UseFormMethods["watch"];
47
- };
43
+ errors: UseFormMethods["errors"]
44
+ handleSubmit: UseFormMethods["handleSubmit"]
45
+ register: UseFormMethods["register"]
46
+ watch: UseFormMethods["watch"]
47
+ }
48
48
 
49
49
  export type FormSignInValues = {
50
- email: string;
51
- password: string;
52
- };
50
+ email: string
51
+ password: string
52
+ }
53
53
 
54
54
  const FormSignIn = ({
55
55
  onSubmit,
@@ -58,9 +58,9 @@ const FormSignIn = ({
58
58
  control: { errors, register, handleSubmit },
59
59
  }: FormSignInProps) => {
60
60
  const onError = () => {
61
- window.scrollTo(0, 0);
62
- };
63
- const { LinkComponent } = useContext(NavigationContext);
61
+ window.scrollTo(0, 0)
62
+ }
63
+ const { LinkComponent } = useContext(NavigationContext)
64
64
 
65
65
  return (
66
66
  <FormCard>
@@ -74,11 +74,7 @@ const FormSignIn = ({
74
74
  errorMessageId={"main-sign-in"}
75
75
  />
76
76
  <div className="form-card__group pt-0">
77
- <Form
78
- id="sign-in"
79
- className="mt-10"
80
- onSubmit={handleSubmit(onSubmit, onError)}
81
- >
77
+ <Form id="sign-in" className="mt-10" onSubmit={handleSubmit(onSubmit, onError)}>
82
78
  <Field
83
79
  caps={true}
84
80
  name="email"
@@ -90,7 +86,7 @@ const FormSignIn = ({
90
86
  dataTestId="sign-in-email-field"
91
87
  />
92
88
 
93
- <aside className="float-right text-tiny font-semibold">
89
+ <aside className="float-right text-sm font-semibold">
94
90
  <LinkComponent href="/forgot-password">
95
91
  {t("authentication.signIn.forgotPassword")}
96
92
  </LinkComponent>
@@ -109,10 +105,7 @@ const FormSignIn = ({
109
105
  />
110
106
 
111
107
  <div className="text-center mt-6">
112
- <Button
113
- styleType={AppearanceStyleType.primary}
114
- data-test-id="sign-in-button"
115
- >
108
+ <Button styleType={AppearanceStyleType.primary} data-test-id="sign-in-button">
116
109
  {t("nav.signIn")}
117
110
  </Button>
118
111
  </div>
@@ -120,17 +113,13 @@ const FormSignIn = ({
120
113
  </div>
121
114
  {showRegisterBtn && (
122
115
  <div className="form-card__group text-center border-t">
123
- <h2 className="mb-6">
124
- {t("authentication.createAccount.noAccount")}
125
- </h2>
116
+ <h2 className="mb-6">{t("authentication.createAccount.noAccount")}</h2>
126
117
 
127
- <LinkButton href="/create-account">
128
- {t("account.createAccount")}
129
- </LinkButton>
118
+ <LinkButton href="/create-account">{t("account.createAccount")}</LinkButton>
130
119
  </div>
131
120
  )}
132
121
  </FormCard>
133
- );
134
- };
122
+ )
123
+ }
135
124
 
136
- export { FormSignIn as default, FormSignIn };
125
+ export { FormSignIn as default, FormSignIn }
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import React from "react"
2
2
  import {
3
3
  AppearanceStyleType,
4
4
  Button,
@@ -9,26 +9,26 @@ import {
9
9
  SiteAlert,
10
10
  PhoneField,
11
11
  FormSignInErrorBox,
12
- } from "../../..";
13
- import type { UseFormMethods } from "react-hook-form";
14
- import { NetworkStatus } from "./FormSignIn";
12
+ } from "../../.."
13
+ import type { UseFormMethods } from "react-hook-form"
14
+ import { NetworkStatus } from "./FormSignIn"
15
15
 
16
16
  export type FormSignInAddPhoneProps = {
17
- control: FormSignInAddPhoneControl;
18
- onSubmit: (data: FormSignInAddPhoneValues) => void;
19
- networkError: NetworkStatus;
20
- phoneNumber: string;
21
- };
17
+ control: FormSignInAddPhoneControl
18
+ onSubmit: (data: FormSignInAddPhoneValues) => void
19
+ networkError: NetworkStatus
20
+ phoneNumber: string
21
+ }
22
22
 
23
23
  export type FormSignInAddPhoneControl = {
24
- errors: UseFormMethods["errors"];
25
- handleSubmit: UseFormMethods["handleSubmit"];
26
- control: UseFormMethods["control"];
27
- };
24
+ errors: UseFormMethods["errors"]
25
+ handleSubmit: UseFormMethods["handleSubmit"]
26
+ control: UseFormMethods["control"]
27
+ }
28
28
 
29
29
  export type FormSignInAddPhoneValues = {
30
- phoneNumber: string;
31
- };
30
+ phoneNumber: string
31
+ }
32
32
 
33
33
  const FormSignInAddPhone = ({
34
34
  onSubmit,
@@ -37,19 +37,15 @@ const FormSignInAddPhone = ({
37
37
  phoneNumber,
38
38
  }: FormSignInAddPhoneProps) => {
39
39
  const onError = () => {
40
- window.scrollTo(0, 0);
41
- };
42
- const { errors, handleSubmit } = control;
40
+ window.scrollTo(0, 0)
41
+ }
42
+ const { errors, handleSubmit } = control
43
43
  return (
44
44
  <FormCard>
45
45
  <div className="form-card__lead text-center">
46
46
  <Icon size="2xl" symbol="profile" className="form-card__header-icon" />
47
- <h2 className="form-card__title is-borderless">
48
- {t("nav.signInMFA.addNumber")}
49
- </h2>
50
- <p className="form-card__sub-title">
51
- {t("nav.signInMFA.addNumberSecondaryTitle")}
52
- </p>
47
+ <h2 className="form-card__title is-borderless">{t("nav.signInMFA.addNumber")}</h2>
48
+ <p className="form-card__sub-title">{t("nav.signInMFA.addNumberSecondaryTitle")}</p>
53
49
  </div>
54
50
  <FormSignInErrorBox
55
51
  errors={errors}
@@ -59,11 +55,7 @@ const FormSignInAddPhone = ({
59
55
 
60
56
  <SiteAlert type="notice" dismissable />
61
57
  <div className="form-card__group pt-0">
62
- <Form
63
- id="sign-in-mfa"
64
- className="mt-10"
65
- onSubmit={handleSubmit(onSubmit, onError)}
66
- >
58
+ <Form id="sign-in-mfa" className="mt-10" onSubmit={handleSubmit(onSubmit, onError)}>
67
59
  <PhoneField
68
60
  label={t("nav.signInMFA.phoneNumber")}
69
61
  caps={true}
@@ -89,7 +81,7 @@ const FormSignInAddPhone = ({
89
81
  </Form>
90
82
  </div>
91
83
  </FormCard>
92
- );
93
- };
84
+ )
85
+ }
94
86
 
95
- export { FormSignInAddPhone as default, FormSignInAddPhone };
87
+ export { FormSignInAddPhone as default, FormSignInAddPhone }
@@ -1,31 +1,25 @@
1
- import React from "react";
2
- import { t, AlertBox, SiteAlert, AlertNotice, ErrorMessage } from "../../..";
3
- import type { UseFormMethods } from "react-hook-form";
4
- import { NetworkStatus } from "./FormSignIn";
1
+ import React from "react"
2
+ import { t, AlertBox, SiteAlert, AlertNotice, ErrorMessage } from "../../.."
3
+ import type { UseFormMethods } from "react-hook-form"
4
+ import { NetworkStatus } from "./FormSignIn"
5
5
 
6
6
  export type FormSignInErrorBoxProps = {
7
- errors: FormSignInErrorBoxControl["errors"];
8
- networkStatus: NetworkStatus;
9
- errorMessageId: string;
10
- };
7
+ errors: FormSignInErrorBoxControl["errors"]
8
+ networkStatus: NetworkStatus
9
+ errorMessageId: string
10
+ }
11
11
 
12
12
  export type FormSignInErrorBoxControl = {
13
- errors: UseFormMethods["errors"];
14
- control: UseFormMethods["control"];
15
- };
13
+ errors: UseFormMethods["errors"]
14
+ control: UseFormMethods["control"]
15
+ }
16
16
 
17
- const FormSignInErrorBox = ({
18
- networkStatus,
19
- errors,
20
- errorMessageId,
21
- }: FormSignInErrorBoxProps) => {
17
+ const FormSignInErrorBox = ({ networkStatus, errors, errorMessageId }: FormSignInErrorBoxProps) => {
22
18
  return (
23
19
  <div className="border-b">
24
20
  {Object.entries(errors).length > 0 && !networkStatus.content && (
25
21
  <AlertBox type="alert" inverted closeable>
26
- {errors.authentication
27
- ? errors.authentication.message
28
- : t("errors.errorsToResolve")}
22
+ {errors.authentication ? errors.authentication.message : t("errors.errorsToResolve")}
29
23
  </AlertBox>
30
24
  )}
31
25
 
@@ -35,11 +29,7 @@ const FormSignInErrorBox = ({
35
29
  error={!!networkStatus.content}
36
30
  className="block mt-0 leading-normal text-alert"
37
31
  >
38
- <AlertBox
39
- type={"alert"}
40
- inverted
41
- onClose={() => networkStatus.reset()}
42
- >
32
+ <AlertBox type={"alert"} inverted onClose={() => networkStatus.reset()}>
43
33
  {networkStatus.content.title}
44
34
  </AlertBox>
45
35
 
@@ -51,11 +41,7 @@ const FormSignInErrorBox = ({
51
41
 
52
42
  {networkStatus.type === "success" && (
53
43
  <>
54
- <AlertBox
55
- type="success"
56
- inverted
57
- onClose={() => networkStatus.reset()}
58
- >
44
+ <AlertBox type="success" inverted onClose={() => networkStatus.reset()}>
59
45
  {networkStatus.content?.title}
60
46
  </AlertBox>
61
47
 
@@ -67,7 +53,7 @@ const FormSignInErrorBox = ({
67
53
 
68
54
  <SiteAlert type="notice" dismissable />
69
55
  </div>
70
- );
71
- };
56
+ )
57
+ }
72
58
 
73
- export { FormSignInErrorBox as default, FormSignInErrorBox };
59
+ export { FormSignInErrorBox as default, FormSignInErrorBox }