@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.
- package/dist/src/actions/Button.stories.js +1 -5
- package/dist/src/actions/Button.stories.js.map +1 -1
- package/dist/src/blocks/HousingCounselor.js +2 -2
- package/dist/src/blocks/InfoCard.js +1 -1
- package/dist/src/blocks/StandardCard.stories.js +1 -1
- package/dist/src/blocks/ViewItem.js +1 -1
- package/dist/src/blocks/ViewItem.js.map +1 -1
- package/dist/src/footers/ExygyFooter.js +1 -1
- package/dist/src/headers/SiteHeader.js +1 -1
- package/dist/src/headers/SiteHeader.js.map +1 -1
- package/dist/src/headers/SiteHeader.stories.js +2 -2
- package/dist/src/headers/SiteHeader.stories.js.map +1 -1
- package/dist/src/helpers/preferences.js +1 -1
- package/dist/src/helpers/preferences.js.map +1 -1
- package/dist/src/notifications/ApplicationStatus.js +2 -2
- package/dist/src/notifications/ApplicationStatus.js.map +1 -1
- package/dist/src/notifications/ApplicationStatus.stories.js +8 -24
- package/dist/src/notifications/ApplicationStatus.stories.js.map +1 -1
- package/dist/src/page_components/NavigationHeader.d.ts +1 -1
- package/dist/src/page_components/NavigationHeader.js.map +1 -1
- package/dist/src/page_components/forgot-password/FormForgotPassword.js +1 -3
- package/dist/src/page_components/forgot-password/FormForgotPassword.js.map +1 -1
- package/dist/src/page_components/listing/AdditionalFees.js +1 -1
- package/dist/src/page_components/listing/ContentAccordion.stories.js +1 -1
- package/dist/src/page_components/listing/ListingCard.stories.js +5 -17
- package/dist/src/page_components/listing/ListingCard.stories.js.map +1 -1
- package/dist/src/page_components/listing/listing_sidebar/Contact.js +2 -2
- package/dist/src/page_components/listing/listing_sidebar/Contact.js.map +1 -1
- package/dist/src/page_components/listing/listing_sidebar/ExpandableSection.js +1 -1
- package/dist/src/page_components/listing/listing_sidebar/ExpandableSection.js.map +1 -1
- package/dist/src/page_components/listing/listing_sidebar/GetApplication.js +3 -3
- package/dist/src/page_components/listing/listing_sidebar/GetApplication.js.map +1 -1
- package/dist/src/page_components/listing/listing_sidebar/ListingUpdated.js +1 -1
- package/dist/src/page_components/listing/listing_sidebar/ListingUpdated.js.map +1 -1
- package/dist/src/page_components/listing/listing_sidebar/NumberedHeader.js +1 -1
- package/dist/src/page_components/listing/listing_sidebar/QuantityRowSection.js +2 -2
- package/dist/src/page_components/listing/listing_sidebar/QuantityRowSection.js.map +1 -1
- package/dist/src/page_components/listing/listing_sidebar/ReferralApplication.js +1 -1
- package/dist/src/page_components/listing/listing_sidebar/ReferralApplication.js.map +1 -1
- package/dist/src/page_components/listing/listing_sidebar/SidebarBlock.js +1 -1
- package/dist/src/page_components/listing/listing_sidebar/SidebarBlock.js.map +1 -1
- package/dist/src/page_components/listing/listing_sidebar/SidebarBlock.stories.js +1 -1
- package/dist/src/page_components/listing/listing_sidebar/SubmitApplication.js +3 -3
- package/dist/src/page_components/listing/listing_sidebar/SubmitApplication.js.map +1 -1
- package/dist/src/page_components/listing/listing_sidebar/events/DownloadLotteryResults.js +1 -1
- package/dist/src/page_components/listing/listing_sidebar/events/DownloadLotteryResults.js.map +1 -1
- package/dist/src/page_components/listing/listing_sidebar/events/EventSection.js +4 -4
- package/dist/src/page_components/listing/listing_sidebar/events/EventSection.js.map +1 -1
- package/dist/src/page_components/sign-in/FormSignIn.js +1 -1
- package/dist/src/page_components/sign-in/FormSignIn.js.map +1 -1
- package/dist/src/page_components/sign-in/FormSignInAddPhone.js.map +1 -1
- package/dist/src/page_components/sign-in/FormSignInErrorBox.d.ts +1 -1
- package/dist/src/page_components/sign-in/FormSignInErrorBox.js +1 -3
- package/dist/src/page_components/sign-in/FormSignInErrorBox.js.map +1 -1
- package/dist/src/page_components/sign-in/FormSignInMFACode.js.map +1 -1
- package/dist/src/page_components/sign-in/FormSignInMFAType.js.map +1 -1
- package/dist/src/page_components/sign-in/FormTerms.js.map +1 -1
- package/dist/src/page_components/sign-in/ResendConfirmationModal.js.map +1 -1
- package/dist/src/prototypes/SummaryCard.stories.js +1 -1
- package/dist/src/sections/InfoCardGrid.js +1 -1
- package/dist/src/sections/InfoCardGrid.js.map +1 -1
- package/dist/src/tables/AgPagination.js +1 -1
- package/dist/src/tables/AgPagination.js.map +1 -1
- package/dist/src/tables/GroupedTable.js +1 -1
- package/dist/src/tables/StandardTable.js +1 -1
- package/package.json +2 -2
- package/src/actions/Button.docs.mdx +3 -3
- package/src/actions/Button.scss +6 -6
- package/src/actions/Button.stories.tsx +1 -5
- package/src/blocks/Card.docs.mdx +3 -3
- package/src/blocks/DashBlocks.scss +1 -1
- package/src/blocks/FormCard.scss +3 -3
- package/src/blocks/HousingCounselor.tsx +2 -2
- package/src/blocks/ImageCard.scss +1 -1
- package/src/blocks/InfoCard.scss +1 -1
- package/src/blocks/InfoCard.tsx +1 -1
- package/src/blocks/MediaCard.docs.mdx +1 -1
- package/src/blocks/MediaCard.scss +1 -1
- package/src/blocks/StandardCard.docs.mdx +10 -11
- package/src/blocks/StandardCard.scss +1 -1
- package/src/blocks/StandardCard.stories.tsx +3 -3
- package/src/blocks/StatusItem.scss +3 -3
- package/src/blocks/ViewItem.scss +2 -2
- package/src/blocks/ViewItem.tsx +1 -1
- package/src/documentation/Utilities.scss +1 -1
- package/src/footers/ExygyFooter.tsx +1 -1
- package/src/forms/Dropzone.scss +1 -1
- package/src/forms/MultiSelectField.scss +4 -4
- package/src/forms/Textarea.scss +3 -3
- package/src/global/app-css.scss +1 -1
- package/src/global/blocks.scss +1 -1
- package/src/global/custom_counter.scss +2 -2
- package/src/global/forms.scss +11 -11
- package/src/global/headers.scss +6 -6
- package/src/global/homepage.scss +1 -1
- package/src/global/markdown.scss +2 -2
- package/src/global/mixins.scss +1 -1
- package/src/global/tables.scss +6 -6
- package/src/global/text.scss +17 -25
- package/src/global/tokens/colors.scss +49 -24
- package/src/global/tokens/fonts.scss +11 -13
- package/src/headers/Hero.scss +3 -3
- package/src/headers/PageHeader.docs.mdx +1 -1
- package/src/headers/PageHeader.scss +1 -1
- package/src/headers/SiteHeader.scss +7 -7
- package/src/headers/SiteHeader.stories.tsx +2 -2
- package/src/headers/SiteHeader.tsx +1 -1
- package/src/headers/StepHeader.docs.mdx +11 -11
- package/src/headers/StepHeader.scss +1 -1
- package/src/helpers/preferences.tsx +13 -13
- package/src/lists/PreferencesList.scss +5 -5
- package/src/navigation/Breadcrumbs.scss +2 -2
- package/src/navigation/FooterNav.scss +1 -1
- package/src/navigation/ProgressNav.docs.mdx +1 -1
- package/src/navigation/ProgressNav.scss +2 -2
- package/src/navigation/SideNav.docs.mdx +2 -2
- package/src/navigation/SideNav.scss +1 -1
- package/src/navigation/TabNav.scss +4 -4
- package/src/navigation/Tabs.scss +1 -1
- package/src/notifications/AlertBox.docs.mdx +2 -2
- package/src/notifications/AlertBox.scss +4 -4
- package/src/notifications/AlertNotice.scss +4 -4
- package/src/notifications/ApplicationStatus.stories.tsx +50 -76
- package/src/notifications/ApplicationStatus.tsx +2 -2
- package/src/notifications/StatusAside.scss +1 -1
- package/src/notifications/StatusMessage.scss +2 -2
- package/src/overlays/Modal.docs.mdx +3 -3
- package/src/overlays/Modal.scss +3 -3
- package/src/overlays/Overlay.scss +1 -1
- package/src/page_components/ApplicationTimeline.scss +1 -1
- package/src/page_components/NavigationHeader.tsx +31 -31
- package/src/page_components/forgot-password/FormForgotPassword.tsx +29 -42
- package/src/page_components/listing/AdditionalFees.tsx +1 -1
- package/src/page_components/listing/ContentAccordion.scss +2 -2
- package/src/page_components/listing/ContentAccordion.stories.tsx +1 -1
- package/src/page_components/listing/ListingCard.stories.tsx +5 -17
- package/src/page_components/listing/listing_sidebar/Contact.tsx +2 -2
- package/src/page_components/listing/listing_sidebar/ExpandableSection.tsx +1 -1
- package/src/page_components/listing/listing_sidebar/GetApplication.tsx +3 -3
- package/src/page_components/listing/listing_sidebar/ListingUpdated.tsx +1 -1
- package/src/page_components/listing/listing_sidebar/NumberedHeader.tsx +1 -1
- package/src/page_components/listing/listing_sidebar/QuantityRowSection.tsx +2 -2
- package/src/page_components/listing/listing_sidebar/ReferralApplication.tsx +1 -1
- package/src/page_components/listing/listing_sidebar/SidebarBlock.stories.tsx +1 -1
- package/src/page_components/listing/listing_sidebar/SidebarBlock.tsx +1 -1
- package/src/page_components/listing/listing_sidebar/SubmitApplication.tsx +3 -3
- package/src/page_components/listing/listing_sidebar/events/DownloadLotteryResults.tsx +1 -1
- package/src/page_components/listing/listing_sidebar/events/EventSection.tsx +4 -6
- package/src/page_components/sign-in/FormSignIn.tsx +40 -51
- package/src/page_components/sign-in/FormSignInAddPhone.tsx +24 -32
- package/src/page_components/sign-in/FormSignInErrorBox.tsx +18 -32
- package/src/page_components/sign-in/FormSignInMFACode.tsx +23 -32
- package/src/page_components/sign-in/FormSignInMFAType.tsx +21 -25
- package/src/page_components/sign-in/FormTerms.tsx +16 -23
- package/src/page_components/sign-in/ResendConfirmationModal.tsx +28 -30
- package/src/prototypes/AppCard.scss +2 -2
- package/src/prototypes/FieldSection.scss +1 -1
- package/src/prototypes/SummaryCard.scss +1 -1
- package/src/prototypes/SummaryCard.stories.tsx +1 -1
- package/src/sections/GridSection.scss +1 -1
- package/src/sections/InfoCardGrid.scss +2 -2
- package/src/sections/InfoCardGrid.tsx +1 -1
- package/src/tables/AgPagination.tsx +28 -30
- package/src/tables/GroupedTable.tsx +1 -1
- package/src/tables/StandardTable.tsx +1 -1
- package/src/text/Description.scss +2 -2
- package/src/text/Message.scss +1 -1
- package/src/text/Tag.docs.mdx +3 -3
- package/src/text/Tag.scss +8 -8
- package/tailwind.config.js +28 -13
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from "react"
|
|
1
|
+
import React from "react"
|
|
2
2
|
import {
|
|
3
3
|
AppearanceStyleType,
|
|
4
4
|
Button,
|
|
@@ -9,8 +9,8 @@ import {
|
|
|
9
9
|
t,
|
|
10
10
|
SiteAlert,
|
|
11
11
|
FormSignInErrorBox,
|
|
12
|
-
} from "../../.."
|
|
13
|
-
import { NetworkStatus, FormSignInControl } from "./FormSignIn"
|
|
12
|
+
} from "../../.."
|
|
13
|
+
import { NetworkStatus, FormSignInControl } from "./FormSignIn"
|
|
14
14
|
|
|
15
15
|
export enum RequestType {
|
|
16
16
|
email = "email",
|
|
@@ -18,18 +18,18 @@ export enum RequestType {
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
export type FormSignInMFACodeProps = {
|
|
21
|
-
control: FormSignInControl
|
|
22
|
-
onSubmit: (data: FormSignInMFACodeValues) => void
|
|
23
|
-
networkError: NetworkStatus
|
|
24
|
-
mfaType: RequestType
|
|
25
|
-
allowPhoneNumberEdit: boolean
|
|
26
|
-
phoneNumber: string
|
|
27
|
-
goBackToPhone: () => void
|
|
28
|
-
}
|
|
21
|
+
control: FormSignInControl
|
|
22
|
+
onSubmit: (data: FormSignInMFACodeValues) => void
|
|
23
|
+
networkError: NetworkStatus
|
|
24
|
+
mfaType: RequestType
|
|
25
|
+
allowPhoneNumberEdit: boolean
|
|
26
|
+
phoneNumber: string
|
|
27
|
+
goBackToPhone: () => void
|
|
28
|
+
}
|
|
29
29
|
|
|
30
30
|
export type FormSignInMFACodeValues = {
|
|
31
|
-
mfaCode: string
|
|
32
|
-
}
|
|
31
|
+
mfaCode: string
|
|
32
|
+
}
|
|
33
33
|
|
|
34
34
|
const FormSignInMFACode = ({
|
|
35
35
|
onSubmit,
|
|
@@ -41,10 +41,10 @@ const FormSignInMFACode = ({
|
|
|
41
41
|
goBackToPhone,
|
|
42
42
|
}: FormSignInMFACodeProps) => {
|
|
43
43
|
const onError = () => {
|
|
44
|
-
window.scrollTo(0, 0)
|
|
45
|
-
}
|
|
44
|
+
window.scrollTo(0, 0)
|
|
45
|
+
}
|
|
46
46
|
|
|
47
|
-
let note
|
|
47
|
+
let note
|
|
48
48
|
if (allowPhoneNumberEdit) {
|
|
49
49
|
note = (
|
|
50
50
|
<>
|
|
@@ -58,16 +58,14 @@ const FormSignInMFACode = ({
|
|
|
58
58
|
{t("nav.signInMFA.editPhoneNumber")}{" "}
|
|
59
59
|
</Button>
|
|
60
60
|
</>
|
|
61
|
-
)
|
|
61
|
+
)
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
return (
|
|
65
65
|
<FormCard>
|
|
66
66
|
<div className="form-card__lead text-center">
|
|
67
67
|
<Icon size="2xl" symbol="profile" className="form-card__header-icon" />
|
|
68
|
-
<h2 className="form-card__title is-borderless">
|
|
69
|
-
{t("nav.signInMFA.verifyTitle")}
|
|
70
|
-
</h2>
|
|
68
|
+
<h2 className="form-card__title is-borderless">{t("nav.signInMFA.verifyTitle")}</h2>
|
|
71
69
|
<p className="form-card__sub-title">
|
|
72
70
|
{mfaType === RequestType.sms
|
|
73
71
|
? t("nav.signInMFA.haveSentCodeToPhone")
|
|
@@ -82,11 +80,7 @@ const FormSignInMFACode = ({
|
|
|
82
80
|
|
|
83
81
|
<SiteAlert type="notice" dismissable />
|
|
84
82
|
<div className="form-card__group pt-0">
|
|
85
|
-
<Form
|
|
86
|
-
id="sign-in-mfa"
|
|
87
|
-
className="mt-10"
|
|
88
|
-
onSubmit={handleSubmit(onSubmit, onError)}
|
|
89
|
-
>
|
|
83
|
+
<Form id="sign-in-mfa" className="mt-10" onSubmit={handleSubmit(onSubmit, onError)}>
|
|
90
84
|
<Field
|
|
91
85
|
caps={true}
|
|
92
86
|
name="mfaCode"
|
|
@@ -99,17 +93,14 @@ const FormSignInMFACode = ({
|
|
|
99
93
|
note={note}
|
|
100
94
|
/>
|
|
101
95
|
<div className="text-center mt-10">
|
|
102
|
-
<Button
|
|
103
|
-
styleType={AppearanceStyleType.primary}
|
|
104
|
-
data-test-id="verify-and-sign-in"
|
|
105
|
-
>
|
|
96
|
+
<Button styleType={AppearanceStyleType.primary} data-test-id="verify-and-sign-in">
|
|
106
97
|
{t("nav.signInMFA.signIn")}
|
|
107
98
|
</Button>
|
|
108
99
|
</div>
|
|
109
100
|
</Form>
|
|
110
101
|
</div>
|
|
111
102
|
</FormCard>
|
|
112
|
-
)
|
|
113
|
-
}
|
|
103
|
+
)
|
|
104
|
+
}
|
|
114
105
|
|
|
115
|
-
export { FormSignInMFACode as default, FormSignInMFACode }
|
|
106
|
+
export { FormSignInMFACode as default, FormSignInMFACode }
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from "react"
|
|
1
|
+
import React from "react"
|
|
2
2
|
import {
|
|
3
3
|
AppearanceStyleType,
|
|
4
4
|
Button,
|
|
@@ -9,24 +9,24 @@ import {
|
|
|
9
9
|
t,
|
|
10
10
|
SiteAlert,
|
|
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 FormSignInMFAProps = {
|
|
17
|
-
control: FormSignInMFAControl
|
|
18
|
-
onSubmit: (data: unknown) => void
|
|
19
|
-
networkError: NetworkStatus
|
|
20
|
-
emailOnClick: () => void
|
|
21
|
-
smsOnClick: () => void
|
|
22
|
-
}
|
|
17
|
+
control: FormSignInMFAControl
|
|
18
|
+
onSubmit: (data: unknown) => void
|
|
19
|
+
networkError: NetworkStatus
|
|
20
|
+
emailOnClick: () => void
|
|
21
|
+
smsOnClick: () => void
|
|
22
|
+
}
|
|
23
23
|
|
|
24
24
|
export type FormSignInMFAControl = {
|
|
25
|
-
errors: UseFormMethods["errors"]
|
|
26
|
-
handleSubmit: UseFormMethods["handleSubmit"]
|
|
27
|
-
register: UseFormMethods["register"]
|
|
28
|
-
setValue: UseFormMethods["setValue"]
|
|
29
|
-
}
|
|
25
|
+
errors: UseFormMethods["errors"]
|
|
26
|
+
handleSubmit: UseFormMethods["handleSubmit"]
|
|
27
|
+
register: UseFormMethods["register"]
|
|
28
|
+
setValue: UseFormMethods["setValue"]
|
|
29
|
+
}
|
|
30
30
|
|
|
31
31
|
const FormSignInMFAType = ({
|
|
32
32
|
onSubmit,
|
|
@@ -36,8 +36,8 @@ const FormSignInMFAType = ({
|
|
|
36
36
|
smsOnClick,
|
|
37
37
|
}: FormSignInMFAProps) => {
|
|
38
38
|
const onError = () => {
|
|
39
|
-
window.scrollTo(0, 0)
|
|
40
|
-
}
|
|
39
|
+
window.scrollTo(0, 0)
|
|
40
|
+
}
|
|
41
41
|
|
|
42
42
|
return (
|
|
43
43
|
<FormCard>
|
|
@@ -58,11 +58,7 @@ const FormSignInMFAType = ({
|
|
|
58
58
|
|
|
59
59
|
<SiteAlert type="notice" dismissable />
|
|
60
60
|
<div className="form-card__group pt-0">
|
|
61
|
-
<Form
|
|
62
|
-
id="sign-in-mfa"
|
|
63
|
-
className="mt-10"
|
|
64
|
-
onSubmit={handleSubmit(onSubmit, onError)}
|
|
65
|
-
>
|
|
61
|
+
<Form id="sign-in-mfa" className="mt-10" onSubmit={handleSubmit(onSubmit, onError)}>
|
|
66
62
|
<Field
|
|
67
63
|
caps={true}
|
|
68
64
|
name="mfaType"
|
|
@@ -96,7 +92,7 @@ const FormSignInMFAType = ({
|
|
|
96
92
|
</Form>
|
|
97
93
|
</div>
|
|
98
94
|
</FormCard>
|
|
99
|
-
)
|
|
100
|
-
}
|
|
95
|
+
)
|
|
96
|
+
}
|
|
101
97
|
|
|
102
|
-
export { FormSignInMFAType as default, FormSignInMFAType }
|
|
98
|
+
export { FormSignInMFAType as default, FormSignInMFAType }
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from "react"
|
|
1
|
+
import React from "react"
|
|
2
2
|
import {
|
|
3
3
|
AppearanceStyleType,
|
|
4
4
|
Button,
|
|
@@ -8,31 +8,29 @@ import {
|
|
|
8
8
|
Icon,
|
|
9
9
|
MarkdownSection,
|
|
10
10
|
t,
|
|
11
|
-
} from "../../.."
|
|
12
|
-
import Markdown from "markdown-to-jsx"
|
|
13
|
-
import { useForm } from "react-hook-form"
|
|
11
|
+
} from "../../.."
|
|
12
|
+
import Markdown from "markdown-to-jsx"
|
|
13
|
+
import { useForm } from "react-hook-form"
|
|
14
14
|
|
|
15
15
|
type FormTermsInValues = {
|
|
16
|
-
agree: boolean
|
|
17
|
-
}
|
|
16
|
+
agree: boolean
|
|
17
|
+
}
|
|
18
18
|
|
|
19
19
|
export type FormTermsProps = {
|
|
20
|
-
onSubmit: () => void
|
|
21
|
-
terms?: string
|
|
22
|
-
}
|
|
20
|
+
onSubmit: () => void
|
|
21
|
+
terms?: string
|
|
22
|
+
}
|
|
23
23
|
|
|
24
24
|
const FormTerms = (props: FormTermsProps) => {
|
|
25
25
|
// eslint-disable-next-line @typescript-eslint/unbound-method
|
|
26
|
-
const { handleSubmit, register, errors } = useForm<FormTermsInValues>()
|
|
26
|
+
const { handleSubmit, register, errors } = useForm<FormTermsInValues>()
|
|
27
27
|
|
|
28
28
|
return (
|
|
29
29
|
<Form id="terms" className="mt-10" onSubmit={handleSubmit(props.onSubmit)}>
|
|
30
30
|
<FormCard>
|
|
31
31
|
<div className="form-card__lead text-center">
|
|
32
32
|
<Icon size="2xl" symbol="settings" />
|
|
33
|
-
<h2 className="form-card__title">
|
|
34
|
-
{t(`authentication.terms.reviewToc`)}
|
|
35
|
-
</h2>
|
|
33
|
+
<h2 className="form-card__title">{t(`authentication.terms.reviewToc`)}</h2>
|
|
36
34
|
<p className="field-note mt-4 text-center">
|
|
37
35
|
{t(`authentication.terms.youMustAcceptToc`)}
|
|
38
36
|
</p>
|
|
@@ -40,9 +38,7 @@ const FormTerms = (props: FormTermsProps) => {
|
|
|
40
38
|
<div className="overflow-y-auto max-h-96 mt-5 pr-4 text-left">
|
|
41
39
|
{props.terms && (
|
|
42
40
|
<MarkdownSection padding={false} fullwidth={true}>
|
|
43
|
-
<Markdown options={{ disableParsingRawHTML: false }}>
|
|
44
|
-
{props.terms}
|
|
45
|
-
</Markdown>
|
|
41
|
+
<Markdown options={{ disableParsingRawHTML: false }}>{props.terms}</Markdown>
|
|
46
42
|
</MarkdownSection>
|
|
47
43
|
)}
|
|
48
44
|
</div>
|
|
@@ -67,17 +63,14 @@ const FormTerms = (props: FormTermsProps) => {
|
|
|
67
63
|
|
|
68
64
|
<div className="form-card__pager">
|
|
69
65
|
<div className="form-card__pager-row primary">
|
|
70
|
-
<Button
|
|
71
|
-
styleType={AppearanceStyleType.primary}
|
|
72
|
-
data-test-id="form-submit"
|
|
73
|
-
>
|
|
66
|
+
<Button styleType={AppearanceStyleType.primary} data-test-id="form-submit">
|
|
74
67
|
{t("t.submit")}
|
|
75
68
|
</Button>
|
|
76
69
|
</div>
|
|
77
70
|
</div>
|
|
78
71
|
</FormCard>
|
|
79
72
|
</Form>
|
|
80
|
-
)
|
|
81
|
-
}
|
|
73
|
+
)
|
|
74
|
+
}
|
|
82
75
|
|
|
83
|
-
export { FormTerms as default, FormTerms }
|
|
76
|
+
export { FormTerms as default, FormTerms }
|
|
@@ -7,21 +7,21 @@ import {
|
|
|
7
7
|
Field,
|
|
8
8
|
emailRegex,
|
|
9
9
|
AppearanceSizeType,
|
|
10
|
-
} from "../../.."
|
|
11
|
-
import React, { useEffect, useMemo } from "react"
|
|
12
|
-
import { useForm } from "react-hook-form"
|
|
10
|
+
} from "../../.."
|
|
11
|
+
import React, { useEffect, useMemo } from "react"
|
|
12
|
+
import { useForm } from "react-hook-form"
|
|
13
13
|
|
|
14
14
|
export type ResendConfirmationModalProps = {
|
|
15
|
-
isOpen: boolean
|
|
16
|
-
initialEmailValue: string
|
|
17
|
-
onClose: () => void
|
|
18
|
-
onSubmit: (email: string) => void
|
|
19
|
-
loading: boolean
|
|
20
|
-
}
|
|
15
|
+
isOpen: boolean
|
|
16
|
+
initialEmailValue: string
|
|
17
|
+
onClose: () => void
|
|
18
|
+
onSubmit: (email: string) => void
|
|
19
|
+
loading: boolean
|
|
20
|
+
}
|
|
21
21
|
|
|
22
22
|
export type ResendConfirmationModalForm = {
|
|
23
|
-
onSubmit: (email: string) => void
|
|
24
|
-
}
|
|
23
|
+
onSubmit: (email: string) => void
|
|
24
|
+
}
|
|
25
25
|
|
|
26
26
|
const ResendConfirmationModal = ({
|
|
27
27
|
isOpen,
|
|
@@ -35,23 +35,23 @@ const ResendConfirmationModal = ({
|
|
|
35
35
|
defaultValues: useMemo(() => {
|
|
36
36
|
return {
|
|
37
37
|
emailResend: initialEmailValue,
|
|
38
|
-
}
|
|
38
|
+
}
|
|
39
39
|
}, [initialEmailValue]),
|
|
40
|
-
})
|
|
40
|
+
})
|
|
41
41
|
|
|
42
42
|
useEffect(() => {
|
|
43
43
|
reset({
|
|
44
44
|
emailResend: initialEmailValue,
|
|
45
|
-
})
|
|
46
|
-
}, [initialEmailValue, reset])
|
|
45
|
+
})
|
|
46
|
+
}, [initialEmailValue, reset])
|
|
47
47
|
|
|
48
48
|
const onFormSubmit = async () => {
|
|
49
|
-
const isValid = await trigger()
|
|
50
|
-
if (!isValid) return
|
|
49
|
+
const isValid = await trigger()
|
|
50
|
+
if (!isValid) return
|
|
51
51
|
|
|
52
|
-
const { emailResend } = getValues()
|
|
53
|
-
onSubmit(emailResend)
|
|
54
|
-
}
|
|
52
|
+
const { emailResend } = getValues()
|
|
53
|
+
onSubmit(emailResend)
|
|
54
|
+
}
|
|
55
55
|
|
|
56
56
|
return (
|
|
57
57
|
<Modal
|
|
@@ -59,8 +59,8 @@ const ResendConfirmationModal = ({
|
|
|
59
59
|
title={t("authentication.signIn.yourAccountIsNotConfirmed")}
|
|
60
60
|
ariaDescription={t("authentication.createAccount.linkExpired")}
|
|
61
61
|
onClose={() => {
|
|
62
|
-
onClose()
|
|
63
|
-
window.scrollTo(0, 0)
|
|
62
|
+
onClose()
|
|
63
|
+
window.scrollTo(0, 0)
|
|
64
64
|
}}
|
|
65
65
|
actions={[
|
|
66
66
|
<Button
|
|
@@ -76,8 +76,8 @@ const ResendConfirmationModal = ({
|
|
|
76
76
|
type="button"
|
|
77
77
|
styleType={AppearanceStyleType.alert}
|
|
78
78
|
onClick={() => {
|
|
79
|
-
onClose()
|
|
80
|
-
window.scrollTo(0, 0)
|
|
79
|
+
onClose()
|
|
80
|
+
window.scrollTo(0, 0)
|
|
81
81
|
}}
|
|
82
82
|
size={AppearanceSizeType.small}
|
|
83
83
|
>
|
|
@@ -100,12 +100,10 @@ const ResendConfirmationModal = ({
|
|
|
100
100
|
/>
|
|
101
101
|
</Form>
|
|
102
102
|
|
|
103
|
-
<p className="pt-4">
|
|
104
|
-
{t("authentication.createAccount.resendEmailInfo")}
|
|
105
|
-
</p>
|
|
103
|
+
<p className="pt-4">{t("authentication.createAccount.resendEmailInfo")}</p>
|
|
106
104
|
</>
|
|
107
105
|
</Modal>
|
|
108
|
-
)
|
|
109
|
-
}
|
|
106
|
+
)
|
|
107
|
+
}
|
|
110
108
|
|
|
111
|
-
export { ResendConfirmationModal as default, ResendConfirmationModal }
|
|
109
|
+
export { ResendConfirmationModal as default, ResendConfirmationModal }
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
|
|
31
31
|
.app-card__back {
|
|
32
32
|
@apply font-semibold;
|
|
33
|
-
@apply text-
|
|
33
|
+
@apply text-sm;
|
|
34
34
|
@apply mb-4;
|
|
35
35
|
}
|
|
36
36
|
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
|
|
43
43
|
.app-card__note {
|
|
44
44
|
@apply font-semibold;
|
|
45
|
-
@apply text-
|
|
45
|
+
@apply text-sm;
|
|
46
46
|
@apply text-gray-700;
|
|
47
47
|
@apply pb-4;
|
|
48
48
|
}
|
|
@@ -26,7 +26,7 @@ export const SummaryCardHeading = () => (
|
|
|
26
26
|
<h2 className="summary-card__title">
|
|
27
27
|
<a href="#">My Property</a>
|
|
28
28
|
</h2>
|
|
29
|
-
<p className="text-
|
|
29
|
+
<p className="text-xs mt-3">
|
|
30
30
|
<span>1 Polk St, San Francisco, CA 94102</span>
|
|
31
31
|
<span className="ml-4 pl-4 border-l border-gray-600">Waitlist: 353</span>
|
|
32
32
|
</p>
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
.info-cards__title {
|
|
10
10
|
@apply font-alt-sans;
|
|
11
11
|
@apply uppercase;
|
|
12
|
-
@apply text-
|
|
12
|
+
@apply text-sm;
|
|
13
13
|
@apply mb-5;
|
|
14
14
|
@apply pb-2;
|
|
15
15
|
@apply border-0;
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
|
|
35
35
|
.info-card {
|
|
36
36
|
& > :not(.info-card__title) {
|
|
37
|
-
@apply text-
|
|
37
|
+
@apply text-sm;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
@screen md {
|
|
@@ -11,7 +11,7 @@ export interface InfoCardGridProps {
|
|
|
11
11
|
const InfoCardGrid = (props: InfoCardGridProps) => (
|
|
12
12
|
<section className="info-cards">
|
|
13
13
|
<header className="info-cards__header">
|
|
14
|
-
<Heading styleType={"underlineWeighted"} priority={2} className={"text-
|
|
14
|
+
<Heading styleType={"underlineWeighted"} priority={2} className={"text-sm"}>
|
|
15
15
|
{props.title}
|
|
16
16
|
</Heading>
|
|
17
17
|
{props.subtitle && <p className="info-cards__subtitle">{props.subtitle}</p>}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import React from "react"
|
|
2
|
-
import { Button, t } from "../.."
|
|
1
|
+
import React from "react"
|
|
2
|
+
import { Button, t } from "../.."
|
|
3
3
|
|
|
4
4
|
type AgPaginationProps = {
|
|
5
|
-
totalItems: number
|
|
6
|
-
totalPages: number
|
|
7
|
-
currentPage: number
|
|
8
|
-
itemsPerPage: number
|
|
9
|
-
quantityLabel?: string
|
|
10
|
-
setCurrentPage: React.Dispatch<React.SetStateAction<number
|
|
11
|
-
setItemsPerPage: React.Dispatch<React.SetStateAction<number
|
|
12
|
-
onPageChange?: (page: number) => void
|
|
13
|
-
onPerPageChange?: (size: number) => void
|
|
14
|
-
}
|
|
5
|
+
totalItems: number
|
|
6
|
+
totalPages: number
|
|
7
|
+
currentPage: number
|
|
8
|
+
itemsPerPage: number
|
|
9
|
+
quantityLabel?: string
|
|
10
|
+
setCurrentPage: React.Dispatch<React.SetStateAction<number>>
|
|
11
|
+
setItemsPerPage: React.Dispatch<React.SetStateAction<number>>
|
|
12
|
+
onPageChange?: (page: number) => void
|
|
13
|
+
onPerPageChange?: (size: number) => void
|
|
14
|
+
}
|
|
15
15
|
|
|
16
|
-
const AG_PER_PAGE_OPTIONS = [8, 25, 50, 100]
|
|
16
|
+
const AG_PER_PAGE_OPTIONS = [8, 25, 50, 100]
|
|
17
17
|
|
|
18
18
|
const AgPagination = ({
|
|
19
19
|
totalItems,
|
|
@@ -27,19 +27,19 @@ const AgPagination = ({
|
|
|
27
27
|
onPerPageChange,
|
|
28
28
|
}: AgPaginationProps) => {
|
|
29
29
|
const onNextClick = () => {
|
|
30
|
-
setCurrentPage(currentPage + 1)
|
|
31
|
-
onPageChange && onPageChange(currentPage)
|
|
32
|
-
}
|
|
30
|
+
setCurrentPage(currentPage + 1)
|
|
31
|
+
onPageChange && onPageChange(currentPage)
|
|
32
|
+
}
|
|
33
33
|
|
|
34
34
|
const onPrevClick = () => {
|
|
35
|
-
setCurrentPage(currentPage - 1)
|
|
36
|
-
onPageChange && onPageChange(currentPage)
|
|
37
|
-
}
|
|
35
|
+
setCurrentPage(currentPage - 1)
|
|
36
|
+
onPageChange && onPageChange(currentPage)
|
|
37
|
+
}
|
|
38
38
|
|
|
39
39
|
const onRowLimitChange = (size: string) => {
|
|
40
|
-
setItemsPerPage(parseInt(size))
|
|
41
|
-
onPerPageChange && onPerPageChange(itemsPerPage)
|
|
42
|
-
}
|
|
40
|
+
setItemsPerPage(parseInt(size))
|
|
41
|
+
onPerPageChange && onPerPageChange(itemsPerPage)
|
|
42
|
+
}
|
|
43
43
|
|
|
44
44
|
return (
|
|
45
45
|
<div className="data-pager flex flex-col md:flex-row">
|
|
@@ -58,9 +58,7 @@ const AgPagination = ({
|
|
|
58
58
|
<span className="field-label" id="lbTotalPages">
|
|
59
59
|
{totalItems}
|
|
60
60
|
</span>
|
|
61
|
-
{quantityLabel &&
|
|
62
|
-
<span className="field-label">{quantityLabel}</span>
|
|
63
|
-
)}
|
|
61
|
+
{quantityLabel && <span className="field-label">{quantityLabel}</span>}
|
|
64
62
|
</div>
|
|
65
63
|
|
|
66
64
|
<div className="flex mt-5 md:mt-0 md:items-center">
|
|
@@ -99,12 +97,12 @@ const AgPagination = ({
|
|
|
99
97
|
{Array(totalPages)
|
|
100
98
|
.fill(totalPages)
|
|
101
99
|
.map((_, i) => {
|
|
102
|
-
const value = i + 1
|
|
100
|
+
const value = i + 1
|
|
103
101
|
return (
|
|
104
102
|
<option key={value} value={value}>
|
|
105
103
|
{value}
|
|
106
104
|
</option>
|
|
107
|
-
)
|
|
105
|
+
)
|
|
108
106
|
})}
|
|
109
107
|
</select>
|
|
110
108
|
</div>
|
|
@@ -133,7 +131,7 @@ const AgPagination = ({
|
|
|
133
131
|
</Button>
|
|
134
132
|
</div>
|
|
135
133
|
</div>
|
|
136
|
-
)
|
|
137
|
-
}
|
|
134
|
+
)
|
|
135
|
+
}
|
|
138
136
|
|
|
139
|
-
export { AgPagination as default, AgPagination, AG_PER_PAGE_OPTIONS }
|
|
137
|
+
export { AgPagination as default, AgPagination, AG_PER_PAGE_OPTIONS }
|
|
@@ -222,7 +222,7 @@ export const StandardTable = (props: StandardTableProps) => {
|
|
|
222
222
|
)
|
|
223
223
|
})
|
|
224
224
|
|
|
225
|
-
const tableClasses = ["w-full", "text-
|
|
225
|
+
const tableClasses = ["w-full", "text-xs"]
|
|
226
226
|
if (props.responsiveCollapse) {
|
|
227
227
|
tableClasses.push("responsive-collapse")
|
|
228
228
|
}
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
@include clearfix;
|
|
20
20
|
|
|
21
21
|
.description__title {
|
|
22
|
-
@apply text-
|
|
22
|
+
@apply text-xl;
|
|
23
23
|
@apply text-gray-800;
|
|
24
24
|
@apply mb-3;
|
|
25
25
|
clear: left;
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
.description__body {
|
|
39
|
-
@apply text-
|
|
39
|
+
@apply text-sm;
|
|
40
40
|
@apply mb-5;
|
|
41
41
|
|
|
42
42
|
@screen md {
|
package/src/text/Message.scss
CHANGED
package/src/text/Tag.docs.mdx
CHANGED
|
@@ -52,13 +52,13 @@ You can apply CSS variables to the `.tag` selector to customize the appearance o
|
|
|
52
52
|
| ------------------------ | ----------- | ----------------------------------------------- | --------------------------------------------------- |
|
|
53
53
|
| `--normal-padding` | Size | Padding of the normal (no variant) tag | `--bloom-s3` (top/bottom) `--bloom-s5` (left/right) |
|
|
54
54
|
| `--normal-rounded` | Size | The border radius of the normal tag | `--bloom-rounded-md` |
|
|
55
|
-
| `--normal-font-size` | Size | The font size of the normal tag | `--bloom-font-size-
|
|
55
|
+
| `--normal-font-size` | Size | The font size of the normal tag | `--bloom-font-size-sm` |
|
|
56
56
|
| `--normal-font-weight` | Font Weight | The font weight of the normal tag | `normal` |
|
|
57
57
|
| `--pill-padding` | Size | Padding of the pill variant tag | `--bloom-s2` (top/bottom) `--bloom-s4` (left/right) |
|
|
58
58
|
| `--pill-rounded` | Size | The border radius of the pill tag | `--bloom-rounded-full` |
|
|
59
|
-
| `--pill-font-size` | Size | The font size of the pill tag | `--bloom-font-size-
|
|
59
|
+
| `--pill-font-size` | Size | The font size of the pill tag | `--bloom-font-size-sm` |
|
|
60
60
|
| `--pill-font-weight` | Font Weight | The font weight of the pill tag | `600` |
|
|
61
61
|
| `--pill-text-transform` | Case | Text case of of the pill tag | `uppercase` |
|
|
62
62
|
| `--pill-letter-spacing` | Size | The average gap between letters of the pill tag | `--bloom-letter-spacing-ultrawide` |
|
|
63
63
|
| `--small-pill-padding` | Size | Padding of the small-size pill tag | `--bloom-s1` (top/bottom) `--bloom-s3` (left/right) | |
|
|
64
|
-
| `--small-pill-font-size` | Size | The font size of the small-size pill tag | `--bloom-font-size-
|
|
64
|
+
| `--small-pill-font-size` | Size | The font size of the small-size pill tag | `--bloom-font-size-3xs` |
|