@bloom-housing/ui-components 7.3.1 → 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 (178) hide show
  1. package/README.md +40 -39
  2. package/dist/src/actions/Button.stories.js +1 -5
  3. package/dist/src/actions/Button.stories.js.map +1 -1
  4. package/dist/src/actions/ExpandableText.d.ts +2 -2
  5. package/dist/src/actions/ExpandableText.js.map +1 -1
  6. package/dist/src/blocks/HousingCounselor.js +2 -2
  7. package/dist/src/blocks/InfoCard.js +1 -1
  8. package/dist/src/blocks/StandardCard.stories.js +1 -1
  9. package/dist/src/blocks/ViewItem.js +1 -1
  10. package/dist/src/blocks/ViewItem.js.map +1 -1
  11. package/dist/src/footers/ExygyFooter.js +1 -1
  12. package/dist/src/headers/SiteHeader.js +1 -1
  13. package/dist/src/headers/SiteHeader.js.map +1 -1
  14. package/dist/src/headers/SiteHeader.stories.js +2 -2
  15. package/dist/src/headers/SiteHeader.stories.js.map +1 -1
  16. package/dist/src/helpers/preferences.js +1 -1
  17. package/dist/src/helpers/preferences.js.map +1 -1
  18. package/dist/src/notifications/ApplicationStatus.js +2 -2
  19. package/dist/src/notifications/ApplicationStatus.js.map +1 -1
  20. package/dist/src/notifications/ApplicationStatus.stories.js +8 -24
  21. package/dist/src/notifications/ApplicationStatus.stories.js.map +1 -1
  22. package/dist/src/page_components/NavigationHeader.d.ts +1 -1
  23. package/dist/src/page_components/NavigationHeader.js.map +1 -1
  24. package/dist/src/page_components/forgot-password/FormForgotPassword.js +1 -3
  25. package/dist/src/page_components/forgot-password/FormForgotPassword.js.map +1 -1
  26. package/dist/src/page_components/listing/AdditionalFees.js +11 -9
  27. package/dist/src/page_components/listing/AdditionalFees.js.map +1 -1
  28. package/dist/src/page_components/listing/ContentAccordion.stories.js +1 -1
  29. package/dist/src/page_components/listing/ListingCard.stories.js +5 -17
  30. package/dist/src/page_components/listing/ListingCard.stories.js.map +1 -1
  31. package/dist/src/page_components/listing/listing_sidebar/Contact.js +2 -2
  32. package/dist/src/page_components/listing/listing_sidebar/Contact.js.map +1 -1
  33. package/dist/src/page_components/listing/listing_sidebar/ExpandableSection.js +1 -1
  34. package/dist/src/page_components/listing/listing_sidebar/ExpandableSection.js.map +1 -1
  35. package/dist/src/page_components/listing/listing_sidebar/GetApplication.js +3 -3
  36. package/dist/src/page_components/listing/listing_sidebar/GetApplication.js.map +1 -1
  37. package/dist/src/page_components/listing/listing_sidebar/ListingUpdated.js +1 -1
  38. package/dist/src/page_components/listing/listing_sidebar/ListingUpdated.js.map +1 -1
  39. package/dist/src/page_components/listing/listing_sidebar/NumberedHeader.js +1 -1
  40. package/dist/src/page_components/listing/listing_sidebar/QuantityRowSection.js +2 -2
  41. package/dist/src/page_components/listing/listing_sidebar/QuantityRowSection.js.map +1 -1
  42. package/dist/src/page_components/listing/listing_sidebar/ReferralApplication.js +1 -1
  43. package/dist/src/page_components/listing/listing_sidebar/ReferralApplication.js.map +1 -1
  44. package/dist/src/page_components/listing/listing_sidebar/SidebarBlock.js +1 -1
  45. package/dist/src/page_components/listing/listing_sidebar/SidebarBlock.js.map +1 -1
  46. package/dist/src/page_components/listing/listing_sidebar/SidebarBlock.stories.js +1 -1
  47. package/dist/src/page_components/listing/listing_sidebar/SubmitApplication.js +3 -3
  48. package/dist/src/page_components/listing/listing_sidebar/SubmitApplication.js.map +1 -1
  49. package/dist/src/page_components/listing/listing_sidebar/events/DownloadLotteryResults.js +1 -1
  50. package/dist/src/page_components/listing/listing_sidebar/events/DownloadLotteryResults.js.map +1 -1
  51. package/dist/src/page_components/listing/listing_sidebar/events/EventSection.js +4 -4
  52. package/dist/src/page_components/listing/listing_sidebar/events/EventSection.js.map +1 -1
  53. package/dist/src/page_components/sign-in/FormSignIn.js +1 -1
  54. package/dist/src/page_components/sign-in/FormSignIn.js.map +1 -1
  55. package/dist/src/page_components/sign-in/FormSignInAddPhone.js.map +1 -1
  56. package/dist/src/page_components/sign-in/FormSignInErrorBox.d.ts +1 -1
  57. package/dist/src/page_components/sign-in/FormSignInErrorBox.js +1 -3
  58. package/dist/src/page_components/sign-in/FormSignInErrorBox.js.map +1 -1
  59. package/dist/src/page_components/sign-in/FormSignInMFACode.js.map +1 -1
  60. package/dist/src/page_components/sign-in/FormSignInMFAType.js.map +1 -1
  61. package/dist/src/page_components/sign-in/FormTerms.js.map +1 -1
  62. package/dist/src/page_components/sign-in/ResendConfirmationModal.js.map +1 -1
  63. package/dist/src/prototypes/SummaryCard.stories.js +1 -1
  64. package/dist/src/sections/InfoCardGrid.js +1 -1
  65. package/dist/src/sections/InfoCardGrid.js.map +1 -1
  66. package/dist/src/tables/AgPagination.js +1 -1
  67. package/dist/src/tables/AgPagination.js.map +1 -1
  68. package/dist/src/tables/GroupedTable.js +1 -1
  69. package/dist/src/tables/StandardTable.js +1 -1
  70. package/dist/src/text/Description.d.ts +2 -2
  71. package/dist/src/text/Description.js.map +1 -1
  72. package/package.json +18 -4
  73. package/src/actions/Button.docs.mdx +3 -3
  74. package/src/actions/Button.scss +6 -6
  75. package/src/actions/Button.stories.tsx +1 -5
  76. package/src/actions/ExpandableText.tsx +2 -2
  77. package/src/blocks/Card.docs.mdx +3 -3
  78. package/src/blocks/DashBlocks.scss +1 -1
  79. package/src/blocks/FormCard.scss +3 -3
  80. package/src/blocks/HousingCounselor.tsx +2 -2
  81. package/src/blocks/ImageCard.scss +1 -1
  82. package/src/blocks/InfoCard.scss +1 -1
  83. package/src/blocks/InfoCard.tsx +1 -1
  84. package/src/blocks/MediaCard.docs.mdx +1 -1
  85. package/src/blocks/MediaCard.scss +1 -1
  86. package/src/blocks/StandardCard.docs.mdx +10 -11
  87. package/src/blocks/StandardCard.scss +1 -1
  88. package/src/blocks/StandardCard.stories.tsx +3 -3
  89. package/src/blocks/StatusItem.scss +3 -3
  90. package/src/blocks/ViewItem.scss +2 -2
  91. package/src/blocks/ViewItem.tsx +1 -1
  92. package/src/documentation/Utilities.scss +1 -1
  93. package/src/footers/ExygyFooter.tsx +1 -1
  94. package/src/forms/Dropzone.scss +1 -1
  95. package/src/forms/MultiSelectField.scss +4 -4
  96. package/src/forms/Textarea.scss +3 -3
  97. package/src/global/app-css.scss +1 -1
  98. package/src/global/blocks.scss +1 -1
  99. package/src/global/custom_counter.scss +2 -2
  100. package/src/global/forms.scss +11 -11
  101. package/src/global/headers.scss +6 -6
  102. package/src/global/homepage.scss +1 -1
  103. package/src/global/markdown.scss +2 -2
  104. package/src/global/mixins.scss +1 -1
  105. package/src/global/tables.scss +6 -6
  106. package/src/global/text.scss +17 -25
  107. package/src/global/tokens/colors.scss +49 -24
  108. package/src/global/tokens/fonts.scss +11 -13
  109. package/src/headers/Hero.scss +3 -3
  110. package/src/headers/PageHeader.docs.mdx +1 -1
  111. package/src/headers/PageHeader.scss +1 -1
  112. package/src/headers/SiteHeader.scss +7 -7
  113. package/src/headers/SiteHeader.stories.tsx +2 -2
  114. package/src/headers/SiteHeader.tsx +1 -1
  115. package/src/headers/StepHeader.docs.mdx +11 -11
  116. package/src/headers/StepHeader.scss +1 -1
  117. package/src/helpers/preferences.tsx +13 -13
  118. package/src/lists/PreferencesList.scss +5 -5
  119. package/src/navigation/Breadcrumbs.scss +2 -2
  120. package/src/navigation/FooterNav.scss +1 -1
  121. package/src/navigation/ProgressNav.docs.mdx +1 -1
  122. package/src/navigation/ProgressNav.scss +2 -2
  123. package/src/navigation/SideNav.docs.mdx +2 -2
  124. package/src/navigation/SideNav.scss +1 -1
  125. package/src/navigation/TabNav.scss +4 -4
  126. package/src/navigation/Tabs.scss +1 -1
  127. package/src/notifications/AlertBox.docs.mdx +2 -2
  128. package/src/notifications/AlertBox.scss +4 -4
  129. package/src/notifications/AlertNotice.scss +4 -4
  130. package/src/notifications/ApplicationStatus.stories.tsx +50 -76
  131. package/src/notifications/ApplicationStatus.tsx +2 -2
  132. package/src/notifications/StatusAside.scss +1 -1
  133. package/src/notifications/StatusMessage.scss +2 -2
  134. package/src/overlays/Modal.docs.mdx +3 -3
  135. package/src/overlays/Modal.scss +3 -3
  136. package/src/overlays/Overlay.scss +1 -1
  137. package/src/page_components/ApplicationTimeline.scss +1 -1
  138. package/src/page_components/NavigationHeader.tsx +31 -31
  139. package/src/page_components/forgot-password/FormForgotPassword.tsx +29 -42
  140. package/src/page_components/listing/AdditionalFees.tsx +16 -14
  141. package/src/page_components/listing/ContentAccordion.scss +2 -2
  142. package/src/page_components/listing/ContentAccordion.stories.tsx +1 -1
  143. package/src/page_components/listing/ListingCard.stories.tsx +5 -17
  144. package/src/page_components/listing/listing_sidebar/Contact.tsx +2 -2
  145. package/src/page_components/listing/listing_sidebar/ExpandableSection.tsx +1 -1
  146. package/src/page_components/listing/listing_sidebar/GetApplication.tsx +3 -3
  147. package/src/page_components/listing/listing_sidebar/ListingUpdated.tsx +1 -1
  148. package/src/page_components/listing/listing_sidebar/NumberedHeader.tsx +1 -1
  149. package/src/page_components/listing/listing_sidebar/QuantityRowSection.tsx +2 -2
  150. package/src/page_components/listing/listing_sidebar/ReferralApplication.tsx +1 -1
  151. package/src/page_components/listing/listing_sidebar/SidebarBlock.stories.tsx +1 -1
  152. package/src/page_components/listing/listing_sidebar/SidebarBlock.tsx +1 -1
  153. package/src/page_components/listing/listing_sidebar/SubmitApplication.tsx +3 -3
  154. package/src/page_components/listing/listing_sidebar/events/DownloadLotteryResults.tsx +1 -1
  155. package/src/page_components/listing/listing_sidebar/events/EventSection.tsx +4 -6
  156. package/src/page_components/sign-in/FormSignIn.tsx +40 -51
  157. package/src/page_components/sign-in/FormSignInAddPhone.tsx +24 -32
  158. package/src/page_components/sign-in/FormSignInErrorBox.tsx +18 -32
  159. package/src/page_components/sign-in/FormSignInMFACode.tsx +23 -32
  160. package/src/page_components/sign-in/FormSignInMFAType.tsx +21 -25
  161. package/src/page_components/sign-in/FormTerms.tsx +16 -23
  162. package/src/page_components/sign-in/ResendConfirmationModal.tsx +28 -30
  163. package/src/prototypes/AppCard.scss +2 -2
  164. package/src/prototypes/FieldSection.scss +1 -1
  165. package/src/prototypes/SummaryCard.scss +1 -1
  166. package/src/prototypes/SummaryCard.stories.tsx +1 -1
  167. package/src/sections/GridSection.scss +1 -1
  168. package/src/sections/InfoCardGrid.scss +2 -2
  169. package/src/sections/InfoCardGrid.tsx +1 -1
  170. package/src/tables/AgPagination.tsx +28 -30
  171. package/src/tables/GroupedTable.tsx +1 -1
  172. package/src/tables/StandardTable.tsx +1 -1
  173. package/src/text/Description.scss +2 -2
  174. package/src/text/Description.tsx +2 -2
  175. package/src/text/Message.scss +1 -1
  176. package/src/text/Tag.docs.mdx +3 -3
  177. package/src/text/Tag.scss +8 -8
  178. package/tailwind.config.js +28 -13
@@ -1,30 +1,30 @@
1
- import React, { useMemo, useContext } from "react";
2
- import { PageHeader, TabNav, TabNavItem, AppearanceSizeType } from "../..";
3
- import { NavigationContext } from "../config/NavigationContext";
4
- import "./NavigationHeader.scss";
1
+ import React, { useMemo, useContext } from "react"
2
+ import { PageHeader, TabNav, TabNavItem, AppearanceSizeType } from "../.."
3
+ import { NavigationContext } from "../config/NavigationContext"
4
+ import "./NavigationHeader.scss"
5
5
 
6
6
  type NavigationHeaderProps = {
7
- className?: string;
8
- title: React.ReactNode;
9
- listingId?: string;
10
- tabs?: NavigationHeaderTabs;
11
- breadcrumbs?: React.ReactNode;
12
- children?: React.ReactChild;
13
- };
7
+ className?: string
8
+ title: React.ReactNode
9
+ listingId?: string
10
+ tabs?: NavigationHeaderTabs
11
+ breadcrumbs?: React.ReactNode
12
+ children?: React.ReactNode
13
+ }
14
14
 
15
15
  type NavigationHeaderTabs = {
16
- show?: boolean;
17
- flagsQty?: number;
18
- listingLabel: string;
19
- applicationsLabel: string;
20
- };
16
+ show?: boolean
17
+ flagsQty?: number
18
+ listingLabel: string
19
+ applicationsLabel: string
20
+ }
21
21
 
22
22
  type NavigationHeaderTabsElement = {
23
- label: string;
24
- path: string;
25
- activePaths: string[];
26
- content: React.ReactNode | undefined;
27
- };
23
+ label: string
24
+ path: string
25
+ activePaths: string[]
26
+ content: React.ReactNode | undefined
27
+ }
28
28
 
29
29
  const NavigationHeader = ({
30
30
  className,
@@ -34,8 +34,8 @@ const NavigationHeader = ({
34
34
  children,
35
35
  breadcrumbs,
36
36
  }: NavigationHeaderProps) => {
37
- const navigation = useContext(NavigationContext);
38
- const currentPath = navigation.router.asPath;
37
+ const navigation = useContext(NavigationContext)
38
+ const currentPath = navigation.router.asPath
39
39
 
40
40
  const tabNavElements = useMemo(() => {
41
41
  const elements: NavigationHeaderTabsElement[] = [
@@ -57,10 +57,10 @@ const NavigationHeader = ({
57
57
  ],
58
58
  content: undefined,
59
59
  },
60
- ];
60
+ ]
61
61
 
62
- return elements;
63
- }, [tabs, listingId]);
62
+ return elements
63
+ }, [tabs, listingId])
64
64
 
65
65
  const tabNavItems = useMemo(() => {
66
66
  return (
@@ -77,8 +77,8 @@ const NavigationHeader = ({
77
77
  </TabNavItem>
78
78
  ))}
79
79
  </TabNav>
80
- );
81
- }, [currentPath, tabNavElements]);
80
+ )
81
+ }, [currentPath, tabNavElements])
82
82
 
83
83
  return (
84
84
  <PageHeader
@@ -89,7 +89,7 @@ const NavigationHeader = ({
89
89
  >
90
90
  {children}
91
91
  </PageHeader>
92
- );
93
- };
92
+ )
93
+ }
94
94
 
95
- export { NavigationHeader as default, NavigationHeader };
95
+ export { NavigationHeader as default, NavigationHeader }
@@ -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,
@@ -12,31 +12,31 @@ import {
12
12
  AlertNotice,
13
13
  ErrorMessage,
14
14
  emailRegex,
15
- } from "../../..";
16
- import { NetworkErrorReset, NetworkStatusContent } from "../sign-in/FormSignIn";
17
- import { NavigationContext } from "../../config/NavigationContext";
18
- import type { UseFormMethods } from "react-hook-form";
15
+ } from "../../.."
16
+ import { NetworkErrorReset, NetworkStatusContent } from "../sign-in/FormSignIn"
17
+ import { NavigationContext } from "../../config/NavigationContext"
18
+ import type { UseFormMethods } from "react-hook-form"
19
19
 
20
20
  export type FormForgotPasswordProps = {
21
- control: FormForgotPasswordControl;
22
- onSubmit: (data: FormForgotPasswordValues) => void;
23
- networkError: FormForgotPasswordNetworkError;
24
- };
21
+ control: FormForgotPasswordControl
22
+ onSubmit: (data: FormForgotPasswordValues) => void
23
+ networkError: FormForgotPasswordNetworkError
24
+ }
25
25
 
26
26
  export type FormForgotPasswordNetworkError = {
27
- error: NetworkStatusContent;
28
- reset: NetworkErrorReset;
29
- };
27
+ error: NetworkStatusContent
28
+ reset: NetworkErrorReset
29
+ }
30
30
 
31
31
  export type FormForgotPasswordControl = {
32
- errors: UseFormMethods["errors"];
33
- handleSubmit: UseFormMethods["handleSubmit"];
34
- register: UseFormMethods["register"];
35
- };
32
+ errors: UseFormMethods["errors"]
33
+ handleSubmit: UseFormMethods["handleSubmit"]
34
+ register: UseFormMethods["register"]
35
+ }
36
36
 
37
37
  export type FormForgotPasswordValues = {
38
- email: string;
39
- };
38
+ email: string
39
+ }
40
40
 
41
41
  const FormForgotPassword = ({
42
42
  onSubmit,
@@ -44,33 +44,26 @@ const FormForgotPassword = ({
44
44
  control: { errors, register, handleSubmit },
45
45
  }: FormForgotPasswordProps) => {
46
46
  const onError = () => {
47
- window.scrollTo(0, 0);
48
- };
47
+ window.scrollTo(0, 0)
48
+ }
49
49
 
50
- const { router } = useContext(NavigationContext);
50
+ const { router } = useContext(NavigationContext)
51
51
 
52
52
  return (
53
53
  <FormCard>
54
54
  <div className="form-card__lead text-center border-b mx-0">
55
55
  <Icon size="2xl" symbol="profile" />
56
- <h1 className="form-card__title">
57
- {t("authentication.forgotPassword.sendEmail")}
58
- </h1>
56
+ <h1 className="form-card__title">{t("authentication.forgotPassword.sendEmail")}</h1>
59
57
  </div>
60
58
 
61
59
  {Object.entries(errors).length > 0 && !networkError.error && (
62
60
  <AlertBox type="alert" inverted closeable>
63
- {errors.authentication
64
- ? errors.authentication.message
65
- : t("errors.errorsToResolve")}
61
+ {errors.authentication ? errors.authentication.message : t("errors.errorsToResolve")}
66
62
  </AlertBox>
67
63
  )}
68
64
 
69
65
  {!!networkError.error?.error && Object.entries(errors).length === 0 && (
70
- <ErrorMessage
71
- id={"forgotpasswordemail-error"}
72
- error={!!networkError.error}
73
- >
66
+ <ErrorMessage id={"forgotpasswordemail-error"} error={!!networkError.error}>
74
67
  <AlertBox type="alert" inverted onClose={() => networkError.reset()}>
75
68
  {networkError.error.title}
76
69
  </AlertBox>
@@ -84,20 +77,14 @@ const FormForgotPassword = ({
84
77
  <SiteAlert type="notice" dismissable />
85
78
 
86
79
  <div className="form-card__group pt-0">
87
- <Form
88
- id="sign-in"
89
- className="mt-10"
90
- onSubmit={handleSubmit(onSubmit, onError)}
91
- >
80
+ <Form id="sign-in" className="mt-10" onSubmit={handleSubmit(onSubmit, onError)}>
92
81
  <Field
93
82
  caps={true}
94
83
  name="email"
95
84
  label={t("t.email")}
96
85
  validation={{ required: true, pattern: emailRegex }}
97
86
  error={errors.email}
98
- errorMessage={
99
- errors.email ? t("authentication.signIn.loginError") : undefined
100
- }
87
+ errorMessage={errors.email ? t("authentication.signIn.loginError") : undefined}
101
88
  register={register}
102
89
  onChange={() => networkError.reset()}
103
90
  />
@@ -116,7 +103,7 @@ const FormForgotPassword = ({
116
103
  </Form>
117
104
  </div>
118
105
  </FormCard>
119
- );
120
- };
106
+ )
107
+ }
121
108
 
122
- export { FormForgotPassword as default, FormForgotPassword };
109
+ export { FormForgotPassword as default, FormForgotPassword }
@@ -1,4 +1,6 @@
1
1
  import * as React from "react"
2
+ import { GridSection, GridCell } from "../../sections/GridSection"
3
+ import { InfoCard } from "../../blocks/InfoCard"
2
4
 
3
5
  export interface AdditionalFeesProps {
4
6
  /** The application fee for the property, rendered in the first block */
@@ -22,32 +24,32 @@ const AdditionalFees = ({
22
24
  footerContent,
23
25
  strings,
24
26
  }: AdditionalFeesProps) => {
25
- if (!deposit && !applicationFee && (!footerContent || footerContent?.length === 0)) return <></>
27
+ const hasFooter = footerContent && footerContent?.length > 0
28
+ if (!deposit && !applicationFee && !hasFooter) return <></>
26
29
  return (
27
- <div className="info-card bg-gray-100 border-0">
28
- <p className="info-card__title mb-2">{strings.sectionHeader}</p>
29
- <div className="info-card__columns text-sm">
30
+ <InfoCard title={strings.sectionHeader} className="bg-gray-100 border-0">
31
+ <GridSection columns={2} className={`${hasFooter && "mb-5"}`}>
30
32
  {applicationFee && (
31
- <div className={`info-card__column-2 ${deposit && "mr-2"}`}>
33
+ <GridCell>
32
34
  <div className="text-base">{strings.applicationFee}</div>
33
35
  <div className="text-xl font-bold">{applicationFee}</div>
34
36
  {strings.applicationFeeSubtext?.map((appFeeSubtext, index) => (
35
- <div key={index}>{appFeeSubtext}</div>
37
+ <div key={index} className="text-sm">{appFeeSubtext}</div>
36
38
  ))}
37
- </div>
39
+ </GridCell>
38
40
  )}
39
41
  {deposit && (
40
- <div className={`info-card__column-2 ${applicationFee && "ml-2"}`}>
42
+ <GridCell>
41
43
  <div className="text-base">{strings.deposit}</div>
42
44
  <div className="text-xl font-bold">{deposit}</div>
43
45
  {strings.depositSubtext?.map((depositSubtext, index) => (
44
- <div key={index}>{depositSubtext}</div>
46
+ <div className="text-sm" key={index}>{depositSubtext}</div>
45
47
  ))}
46
- </div>
48
+ </GridCell>
47
49
  )}
48
- </div>
49
- {footerContent && footerContent?.length > 0 && (
50
- <div className="info-card__columns text-sm">
50
+ </GridSection>
51
+ {hasFooter && (
52
+ <div className="info-card__columns text-xs">
51
53
  {footerContent?.map((elem, idx) => (
52
54
  <div key={`footer_info_${idx}`} className="info-card__column-2">
53
55
  {elem}
@@ -55,7 +57,7 @@ const AdditionalFees = ({
55
57
  ))}
56
58
  </div>
57
59
  )}
58
- </div>
60
+ </InfoCard>
59
61
  )
60
62
  }
61
63
 
@@ -6,7 +6,7 @@
6
6
  @apply flex;
7
7
  @apply justify-between;
8
8
  @apply font-sans;
9
- @apply text-tiny;
9
+ @apply text-sm;
10
10
  @apply text-gray-800;
11
11
  }
12
12
 
@@ -22,7 +22,7 @@
22
22
  @apply justify-between;
23
23
  @apply font-sans;
24
24
  @apply text-base;
25
- @apply text-gray-950;
25
+ @apply text-gray-900;
26
26
 
27
27
  svg {
28
28
  fill: #1f2937; // gray-800
@@ -76,7 +76,7 @@ export const grayThemeFilled = () => {
76
76
  return (
77
77
  <span className={"flex w-full justify-between items-center"}>
78
78
  <span className={"flex items-center"}>
79
- <span className={"font-serif text-3xl font-medium leading-4 pr-2"}>1</span> person in
79
+ <span className={"font-serif text-2xl font-medium leading-4 pr-2"}>1</span> person in
80
80
  household
81
81
  </span>
82
82
  <span className={"flex pr-4 items-center"}>
@@ -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
  )}