@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.
- package/README.md +40 -39
- package/dist/src/actions/Button.stories.js +1 -5
- package/dist/src/actions/Button.stories.js.map +1 -1
- package/dist/src/actions/ExpandableText.d.ts +2 -2
- package/dist/src/actions/ExpandableText.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 +11 -9
- package/dist/src/page_components/listing/AdditionalFees.js.map +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/dist/src/text/Description.d.ts +2 -2
- package/dist/src/text/Description.js.map +1 -1
- package/package.json +18 -4
- 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/actions/ExpandableText.tsx +2 -2
- 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 +16 -14
- 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/Description.tsx +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
|
@@ -25,14 +25,14 @@ The step header component is used to quickly describe progress in a multi-step p
|
|
|
25
25
|
|
|
26
26
|
You can apply CSS variables to the `.step-header` selector to customize the appearance of the component.
|
|
27
27
|
|
|
28
|
-
| Name | Type | Description | Default
|
|
29
|
-
| ----------------------- | ----- | ------------------------------------------------------------------ |
|
|
30
|
-
| `--number-color` | Color | The color of the current step number | `--bloom-color-white`
|
|
31
|
-
| `--circle-color` | Color | The background color of the number circle | `--bloom-color-primary`
|
|
32
|
-
| `--circle-desktop-size` | Size | The diameter of the number circle on desktop | `--bloom-s8`
|
|
33
|
-
| `--circle-mobile-size` | Size | The diameter of the number circle on mobile | `--bloom-s6`
|
|
34
|
-
| `-font-desktop-size` | Size | The font size of the numbers and text on desktop | `--bloom-font-size-
|
|
35
|
-
| `--font-mobile-size` | Size | The font size of the numbers and text on mobile | `--bloom-font-size-base`
|
|
36
|
-
| `-circle-x-padding` | Size | The horizontal padding between current step number and circle edge | `--bloom-s0_5`
|
|
37
|
-
| `--title-spacing` | Size | The padding between elements of the header | `--bloom-s1_5`
|
|
38
|
-
| `--label-font-weight` | Size | The font weight of the current step label | `600`
|
|
28
|
+
| Name | Type | Description | Default |
|
|
29
|
+
| ----------------------- | ----- | ------------------------------------------------------------------ | ------------------------ |
|
|
30
|
+
| `--number-color` | Color | The color of the current step number | `--bloom-color-white` |
|
|
31
|
+
| `--circle-color` | Color | The background color of the number circle | `--bloom-color-primary` |
|
|
32
|
+
| `--circle-desktop-size` | Size | The diameter of the number circle on desktop | `--bloom-s8` |
|
|
33
|
+
| `--circle-mobile-size` | Size | The diameter of the number circle on mobile | `--bloom-s6` |
|
|
34
|
+
| `-font-desktop-size` | Size | The font size of the numbers and text on desktop | `--bloom-font-size-lg` |
|
|
35
|
+
| `--font-mobile-size` | Size | The font size of the numbers and text on mobile | `--bloom-font-size-base` |
|
|
36
|
+
| `-circle-x-padding` | Size | The horizontal padding between current step number and circle edge | `--bloom-s0_5` |
|
|
37
|
+
| `--title-spacing` | Size | The padding between elements of the header | `--bloom-s1_5` |
|
|
38
|
+
| `--label-font-weight` | Size | The font weight of the current step label | `600` |
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
--circle-color: var(--bloom-color-primary);
|
|
4
4
|
--circle-desktop-size: var(--bloom-s8);
|
|
5
5
|
--circle-mobile-size: var(--bloom-s6);
|
|
6
|
-
--font-desktop-size: var(--bloom-font-size-
|
|
6
|
+
--font-desktop-size: var(--bloom-font-size-lg);
|
|
7
7
|
--font-mobile-size: var(--bloom-font-size-base);
|
|
8
8
|
--circle-x-padding: var(--bloom-s0_5);
|
|
9
9
|
--title-spacing: var(--bloom-s1_5);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from "react"
|
|
2
|
-
import { UseFormMethods } from "react-hook-form"
|
|
1
|
+
import React from "react"
|
|
2
|
+
import { UseFormMethods } from "react-hook-form"
|
|
3
3
|
import {
|
|
4
4
|
t,
|
|
5
5
|
GridSection,
|
|
@@ -8,17 +8,17 @@ import {
|
|
|
8
8
|
Field,
|
|
9
9
|
Select,
|
|
10
10
|
resolveObject,
|
|
11
|
-
} from "
|
|
11
|
+
} from "../../"
|
|
12
12
|
|
|
13
13
|
type FormAddressProps = {
|
|
14
|
-
subtitle: string
|
|
15
|
-
dataKey: string
|
|
16
|
-
enableMailCheckbox?: boolean
|
|
17
|
-
register: UseFormMethods["register"]
|
|
18
|
-
errors?: UseFormMethods["errors"]
|
|
19
|
-
required?: boolean
|
|
20
|
-
stateKeys: string[]
|
|
21
|
-
}
|
|
14
|
+
subtitle: string
|
|
15
|
+
dataKey: string
|
|
16
|
+
enableMailCheckbox?: boolean
|
|
17
|
+
register: UseFormMethods["register"]
|
|
18
|
+
errors?: UseFormMethods["errors"]
|
|
19
|
+
required?: boolean
|
|
20
|
+
stateKeys: string[]
|
|
21
|
+
}
|
|
22
22
|
|
|
23
23
|
export const FormAddress = ({
|
|
24
24
|
subtitle,
|
|
@@ -121,5 +121,5 @@ export const FormAddress = ({
|
|
|
121
121
|
)}
|
|
122
122
|
</GridSection>
|
|
123
123
|
</>
|
|
124
|
-
)
|
|
125
|
-
}
|
|
124
|
+
)
|
|
125
|
+
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
--ordinal-border-width: var(--bloom-border-2);
|
|
5
5
|
--ordinal-border-color: var(--bloom-color-primary);
|
|
6
6
|
--ordinal-color: var(--bloom-color-primary);
|
|
7
|
-
--ordinal-font-size: var(--bloom-font-size-
|
|
7
|
+
--ordinal-font-size: var(--bloom-font-size-xs);
|
|
8
8
|
--ordinal-padding: var(--bloom-s2);
|
|
9
9
|
--ordinal-margin-right: var(--bloom-s2);
|
|
10
10
|
--subtitle-color: var(--bloom-color-gray-750);
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
|
|
14
14
|
.preferences-list__item {
|
|
15
15
|
.info-card__title {
|
|
16
|
-
--title-font-size: var(--bloom-font-size-
|
|
16
|
+
--title-font-size: var(--bloom-font-size-xs);
|
|
17
17
|
|
|
18
18
|
margin-bottom: 0px;
|
|
19
19
|
color: var(--info-card-title-color);
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
|
|
72
72
|
.preferences-list__subtitle {
|
|
73
73
|
color: var(--subtitle-color);
|
|
74
|
-
font-size: var(--bloom-font-size-
|
|
74
|
+
font-size: var(--bloom-font-size-sm);
|
|
75
75
|
|
|
76
76
|
@media (max-width: $screen-md) {
|
|
77
77
|
margin-left: 0px;
|
|
@@ -80,12 +80,12 @@
|
|
|
80
80
|
|
|
81
81
|
.preferences-list__description {
|
|
82
82
|
color: var(--description-color);
|
|
83
|
-
font-size: var(--bloom-font-size-
|
|
83
|
+
font-size: var(--bloom-font-size-xs);
|
|
84
84
|
margin-top: var(--bloom-s3);
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
.preferences-list__links {
|
|
88
|
-
font-size: var(--bloom-font-size-
|
|
88
|
+
font-size: var(--bloom-font-size-sm);
|
|
89
89
|
margin-top: var(--bloom-s3);
|
|
90
90
|
span {
|
|
91
91
|
margin-right: var(--bloom-s4);
|
|
@@ -7,14 +7,14 @@
|
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
li {
|
|
10
|
-
@apply text-
|
|
10
|
+
@apply text-xs;
|
|
11
11
|
@apply flex;
|
|
12
12
|
@apply tracking-wider;
|
|
13
13
|
@apply self-center;
|
|
14
14
|
|
|
15
15
|
&:not(:last-child)::after {
|
|
16
16
|
content: "\203A";
|
|
17
|
-
@apply text-
|
|
17
|
+
@apply text-xl;
|
|
18
18
|
@apply px-2;
|
|
19
19
|
line-height: 1.4rem;
|
|
20
20
|
}
|
|
@@ -33,7 +33,7 @@ You can apply CSS variables to the `.progrss-nav` selector to customize the appe
|
|
|
33
33
|
| `--dot-label-padding-top` | Size | The padding-top of each dot step label | `--bloom-s4` |
|
|
34
34
|
| `--dot-label-padding-left` | Size | The padding-left of each dot step label | `--bloom-s1` |
|
|
35
35
|
| `--dot-font-size-desktop` | Size | The font size of dot step labels on desktop | `--bloom-font-size-base` |
|
|
36
|
-
| `--dot-font-size-mobile` | Size | The font size of dot step labels on mobile | `--bloom-font-size-
|
|
36
|
+
| `--dot-font-size-mobile` | Size | The font size of dot step labels on mobile | `--bloom-font-size-3xs` |
|
|
37
37
|
| `--dot-line-color` | Color | The color of the dot connecting line | `--bloom-color-gray-450` |
|
|
38
38
|
| `--dot-active-font-weight` | Size | The font weight of active dot step label | `600` |
|
|
39
39
|
| `--dot-text-transform` | Size | The capitalization of dot step label | `capitalize` |
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
--completed-step-color: var(--bloom-color-gray-850);
|
|
3
3
|
--completed-step-font-color: var(--bloom-color-gray-850);
|
|
4
4
|
--active-step-color: var(--bloom-color-primary);
|
|
5
|
-
--active-step-font-color: var(--bloom-color-gray-
|
|
5
|
+
--active-step-font-color: var(--bloom-color-gray-950);
|
|
6
6
|
--future-step-color: var(--bloom-color-gray-450);
|
|
7
7
|
--future-step-font-color: var(--bloom-text-color);
|
|
8
8
|
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
--dot-label-padding-top: var(--bloom-s4);
|
|
12
12
|
--dot-label-padding-left: var(--bloom-s1);
|
|
13
13
|
--dot-font-size-desktop: var(--bloom-font-size-base);
|
|
14
|
-
--dot-font-size-mobile: var(--bloom-font-size-
|
|
14
|
+
--dot-font-size-mobile: var(--bloom-font-size-3xs);
|
|
15
15
|
--dot-line-color: var(--bloom-color-gray-450);
|
|
16
16
|
--dot-active-font-weight: bold;
|
|
17
17
|
--dot-text-transform: capitalize;
|
|
@@ -28,7 +28,7 @@ You can apply CSS variables to the `.side-nav` selector to customize the appeara
|
|
|
28
28
|
| `--current-padding-inline` | Size | The space on either side of a link | `--bloom-s6` |
|
|
29
29
|
| `--current-padding-block` | Size | The space above and below a link | `--bloom-s4` |
|
|
30
30
|
| `--link-color` | <Swatch colorVar="--bloom-color-gray-700" /> | Default color of links | `--bloom-color-gray-700` |
|
|
31
|
-
| `--current-selection-color` | <Swatch colorVar="--bloom-color-gray-
|
|
32
|
-
| `--selection-parent-accent` | <Swatch colorVar="--bloom-color-gray-450" /> | Color of the current link's parent's border accent | `--bloom-color-gray-
|
|
31
|
+
| `--current-selection-color` | <Swatch colorVar="--bloom-color-gray-950" /> | Color of the current link and parent of the current link if applicable | `--bloom-color-gray-950` |
|
|
32
|
+
| `--selection-parent-accent` | <Swatch colorVar="--bloom-color-gray-450" /> | Color of the current link's parent's border accent | `--bloom-color-gray-450` |
|
|
33
33
|
| `--hover-link-color` | <Swatch colorVar="--bloom-color-primary" /> | Link text color when you hover over it or tab to it | `--bloom-color-primary` |
|
|
34
34
|
| `--hover-background-color` | <Swatch colorVar="--bloom-color-primary-lighter" /> | Link background color when you hover over it or tab to it | `--bloom-color-primary-lighter` |
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
--current-padding-inline: var(--bloom-s6);
|
|
5
5
|
--current-padding-block: var(--bloom-s4);
|
|
6
6
|
--link-color: var(--bloom-color-gray-700);
|
|
7
|
-
--current-selection-color: var(--bloom-color-gray-
|
|
7
|
+
--current-selection-color: var(--bloom-color-gray-950);
|
|
8
8
|
--selection-parent-accent: var(--bloom-color-gray-450);
|
|
9
9
|
--hover-link-color: var(--bloom-color-primary);
|
|
10
10
|
--hover-background-color: var(--bloom-color-primary-lighter);
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
@apply items-center;
|
|
4
4
|
@apply font-alt-sans;
|
|
5
5
|
@apply uppercase;
|
|
6
|
-
@apply text-
|
|
6
|
+
@apply text-xs;
|
|
7
7
|
@apply font-semibold;
|
|
8
8
|
@apply tracking-wider;
|
|
9
9
|
}
|
|
@@ -23,18 +23,18 @@
|
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
&:hover {
|
|
26
|
-
@apply text-gray-
|
|
26
|
+
@apply text-gray-950;
|
|
27
27
|
@apply border-gray-450;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
&.is-active {
|
|
31
31
|
@apply border-primary;
|
|
32
|
-
@apply text-gray-
|
|
32
|
+
@apply text-gray-950;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
.tag {
|
|
36
36
|
@apply ml-2;
|
|
37
|
-
@apply text-
|
|
37
|
+
@apply text-2xs;
|
|
38
38
|
line-height: 1rem;
|
|
39
39
|
}
|
|
40
40
|
}
|
package/src/navigation/Tabs.scss
CHANGED
|
@@ -34,8 +34,8 @@ You can apply CSS variables to the `.alert-box` selector to customize the appear
|
|
|
34
34
|
| `--success-invert-background-color` | Color | Success invert theme background color | `--bloom-color-success` |
|
|
35
35
|
| `--warn-background-color` | Color | Warn theme background color | `--bloom-color-warn-light` |
|
|
36
36
|
| `--warn-invert-background-color` | Color | Warn invert theme background color | `--bloom-color-warn` |
|
|
37
|
-
| `--text-color` | Color | Content text color | `--bloom-color-gray-
|
|
38
|
-
| `--close-icon-color` | Color | Close icon color | `--bloom-color-gray-
|
|
37
|
+
| `--text-color` | Color | Content text color | `--bloom-color-gray-950` |
|
|
38
|
+
| `--close-icon-color` | Color | Close icon color | `--bloom-color-gray-950` |
|
|
39
39
|
| `--font-weight` | Font weight | Content text font weight | `600` |
|
|
40
40
|
| `--max-width` | Size | Max width | `--bloom-width-5xl` |
|
|
41
41
|
| `--line-height` | Line height | Content text line height | `1.375` |
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
--success-invert-background-color: var(--bloom-color-success);
|
|
11
11
|
--warn-background-color: var(--bloom-color-warn-light);
|
|
12
12
|
--warn-invert-background-color: var(--bloom-color-warn);
|
|
13
|
-
--text-color: var(--bloom-color-gray-
|
|
14
|
-
--close-icon-color: var(--bloom-color-gray-
|
|
13
|
+
--text-color: var(--bloom-color-gray-950);
|
|
14
|
+
--close-icon-color: var(--bloom-color-gray-950);
|
|
15
15
|
--font-weight: 500;
|
|
16
16
|
--max-width: var(--bloom-width-5xl);
|
|
17
17
|
--line-height: 1.375;
|
|
@@ -91,11 +91,11 @@
|
|
|
91
91
|
|
|
92
92
|
.alert-box__body {
|
|
93
93
|
font-weight: var(--font-weight);
|
|
94
|
-
font-size: var(--bloom-font-size-
|
|
94
|
+
font-size: var(--bloom-font-size-sm);
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
.alert-box__close {
|
|
98
|
-
font-size: var(--bloom-font-size-
|
|
98
|
+
font-size: var(--bloom-font-size-2xl);
|
|
99
99
|
right: var(--horizontal-padding);
|
|
100
100
|
margin-left: var(--bloom-s3);
|
|
101
101
|
padding: 0;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// secondary alert messaging
|
|
2
2
|
.alert-notice {
|
|
3
|
-
@apply text-
|
|
3
|
+
@apply text-xs;
|
|
4
4
|
@apply py-4;
|
|
5
5
|
@apply px-8;
|
|
6
6
|
@apply bg-gray-200;
|
|
@@ -33,12 +33,12 @@
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
p {
|
|
36
|
-
@apply text-
|
|
36
|
+
@apply text-xs;
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
.alert-notice__title {
|
|
41
|
-
@apply text-
|
|
41
|
+
@apply text-xs;
|
|
42
42
|
@apply mb-3;
|
|
43
43
|
@apply font-semibold;
|
|
44
44
|
|
|
@@ -54,5 +54,5 @@
|
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
.alert-notice__body {
|
|
57
|
-
@apply text-
|
|
57
|
+
@apply text-xs;
|
|
58
58
|
}
|
|
@@ -1,37 +1,33 @@
|
|
|
1
|
-
import * as React from "react"
|
|
2
|
-
import dayjs from "dayjs"
|
|
3
|
-
import advancedFormat from "dayjs/plugin/advancedFormat"
|
|
4
|
-
import { ApplicationStatus } from "./ApplicationStatus"
|
|
5
|
-
import { ApplicationStatusType } from "../global/ApplicationStatusType"
|
|
6
|
-
import { t } from "../helpers/translator"
|
|
7
|
-
import Archer from "../../__tests__/fixtures/archer.json"
|
|
8
|
-
import { text, withKnobs } from "@storybook/addon-knobs"
|
|
9
|
-
import formatDateTime from "../helpers/DateFormat"
|
|
10
|
-
|
|
11
|
-
dayjs.extend(advancedFormat)
|
|
1
|
+
import * as React from "react"
|
|
2
|
+
import dayjs from "dayjs"
|
|
3
|
+
import advancedFormat from "dayjs/plugin/advancedFormat"
|
|
4
|
+
import { ApplicationStatus } from "./ApplicationStatus"
|
|
5
|
+
import { ApplicationStatusType } from "../global/ApplicationStatusType"
|
|
6
|
+
import { t } from "../helpers/translator"
|
|
7
|
+
import Archer from "../../__tests__/fixtures/archer.json"
|
|
8
|
+
import { text, withKnobs } from "@storybook/addon-knobs"
|
|
9
|
+
import formatDateTime from "../helpers/DateFormat"
|
|
10
|
+
|
|
11
|
+
dayjs.extend(advancedFormat)
|
|
12
12
|
|
|
13
13
|
export default {
|
|
14
14
|
component: ApplicationStatus,
|
|
15
15
|
title: "Notifications/Application Status",
|
|
16
16
|
decorators: [(storyFn: any) => <div>{storyFn()}</div>, withKnobs],
|
|
17
|
-
}
|
|
17
|
+
}
|
|
18
18
|
|
|
19
|
-
const listing = Object.assign({}, Archer) as any
|
|
20
|
-
listing.applicationOpenDate = ""
|
|
21
|
-
let days = 10
|
|
22
|
-
listing.applicationDueDate = dayjs().add(days, "days").format()
|
|
19
|
+
const listing = Object.assign({}, Archer) as any
|
|
20
|
+
listing.applicationOpenDate = ""
|
|
21
|
+
let days = 10
|
|
22
|
+
listing.applicationDueDate = dayjs().add(days, "days").format()
|
|
23
23
|
|
|
24
24
|
export const dueSoonAndVivid = () => (
|
|
25
25
|
<ApplicationStatus
|
|
26
|
-
content={
|
|
27
|
-
t("listings.applicationDeadline") +
|
|
28
|
-
": " +
|
|
29
|
-
formatDateTime(listing.applicationDueDate)
|
|
30
|
-
}
|
|
26
|
+
content={t("listings.applicationDeadline") + ": " + formatDateTime(listing.applicationDueDate)}
|
|
31
27
|
status={ApplicationStatusType.Open}
|
|
32
28
|
vivid
|
|
33
29
|
/>
|
|
34
|
-
)
|
|
30
|
+
)
|
|
35
31
|
|
|
36
32
|
export const withSubContent = () => (
|
|
37
33
|
<ApplicationStatus
|
|
@@ -40,115 +36,93 @@ export const withSubContent = () => (
|
|
|
40
36
|
status={ApplicationStatusType.Open}
|
|
41
37
|
vivid
|
|
42
38
|
/>
|
|
43
|
-
)
|
|
39
|
+
)
|
|
44
40
|
|
|
45
41
|
export const dueSoonWithTime = () => (
|
|
46
42
|
<ApplicationStatus
|
|
47
43
|
content={
|
|
48
|
-
t("listings.applicationDeadline") +
|
|
49
|
-
": " +
|
|
50
|
-
formatDateTime(listing.applicationDueDate, true)
|
|
44
|
+
t("listings.applicationDeadline") + ": " + formatDateTime(listing.applicationDueDate, true)
|
|
51
45
|
}
|
|
52
46
|
status={ApplicationStatusType.Open}
|
|
53
47
|
/>
|
|
54
|
-
)
|
|
48
|
+
)
|
|
55
49
|
|
|
56
|
-
const listingPast = Object.assign({}, Archer) as any
|
|
57
|
-
listingPast.applicationOpenDate = ""
|
|
58
|
-
days = 10
|
|
50
|
+
const listingPast = Object.assign({}, Archer) as any
|
|
51
|
+
listingPast.applicationOpenDate = ""
|
|
52
|
+
days = 10
|
|
59
53
|
|
|
60
54
|
export const pastDue = () => (
|
|
61
55
|
<ApplicationStatus
|
|
62
56
|
content={
|
|
63
|
-
t("listings.applicationsClosed") +
|
|
64
|
-
": " +
|
|
65
|
-
formatDateTime(listingPast.applicationDueDate)
|
|
57
|
+
t("listings.applicationsClosed") + ": " + formatDateTime(listingPast.applicationDueDate)
|
|
66
58
|
}
|
|
67
59
|
status={ApplicationStatusType.Closed}
|
|
68
60
|
/>
|
|
69
|
-
)
|
|
61
|
+
)
|
|
70
62
|
|
|
71
|
-
listingPast.applicationDueDate = dayjs().subtract(days, "days").format()
|
|
63
|
+
listingPast.applicationDueDate = dayjs().subtract(days, "days").format()
|
|
72
64
|
|
|
73
65
|
export const pastDueAndVivid = () => (
|
|
74
66
|
<ApplicationStatus
|
|
75
67
|
content={
|
|
76
|
-
t("listings.applicationsClosed") +
|
|
77
|
-
": " +
|
|
78
|
-
formatDateTime(listingPast.applicationDueDate)
|
|
68
|
+
t("listings.applicationsClosed") + ": " + formatDateTime(listingPast.applicationDueDate)
|
|
79
69
|
}
|
|
80
70
|
status={ApplicationStatusType.Closed}
|
|
81
71
|
vivid={true}
|
|
82
72
|
/>
|
|
83
|
-
)
|
|
73
|
+
)
|
|
84
74
|
|
|
85
75
|
export const pastDueWithStyles = () => (
|
|
86
76
|
<ApplicationStatus
|
|
87
77
|
className={text("className", "place-content-center")}
|
|
88
78
|
content={
|
|
89
|
-
t("listings.applicationsClosed") +
|
|
90
|
-
": " +
|
|
91
|
-
formatDateTime(listingPast.applicationDueDate)
|
|
79
|
+
t("listings.applicationsClosed") + ": " + formatDateTime(listingPast.applicationDueDate)
|
|
92
80
|
}
|
|
93
81
|
status={ApplicationStatusType.Closed}
|
|
94
82
|
/>
|
|
95
|
-
)
|
|
83
|
+
)
|
|
96
84
|
|
|
97
85
|
export const pastDueWithIconColor = () => (
|
|
98
86
|
<ApplicationStatus
|
|
99
87
|
content={
|
|
100
|
-
t("listings.applicationsClosed") +
|
|
101
|
-
": " +
|
|
102
|
-
formatDateTime(listingPast.applicationDueDate)
|
|
88
|
+
t("listings.applicationsClosed") + ": " + formatDateTime(listingPast.applicationDueDate)
|
|
103
89
|
}
|
|
104
90
|
iconColor={text("Icon Color", "#ff0000")}
|
|
105
91
|
status={ApplicationStatusType.Closed}
|
|
106
92
|
/>
|
|
107
|
-
)
|
|
93
|
+
)
|
|
108
94
|
|
|
109
|
-
const listing2 = Object.assign({}, Archer) as any
|
|
110
|
-
days = 10
|
|
111
|
-
listing2.applicationDueDate = dayjs().add(days, "days").format()
|
|
95
|
+
const listing2 = Object.assign({}, Archer) as any
|
|
96
|
+
days = 10
|
|
97
|
+
listing2.applicationDueDate = dayjs().add(days, "days").format()
|
|
112
98
|
|
|
113
99
|
export const openSoon = () => (
|
|
114
100
|
<ApplicationStatus
|
|
115
101
|
content={
|
|
116
|
-
t("listings.applicationOpenPeriod") +
|
|
117
|
-
": " +
|
|
118
|
-
formatDateTime(listing2.applicationDueDate)
|
|
102
|
+
t("listings.applicationOpenPeriod") + ": " + formatDateTime(listing2.applicationDueDate)
|
|
119
103
|
}
|
|
120
104
|
status={ApplicationStatusType.Open}
|
|
121
105
|
/>
|
|
122
|
-
)
|
|
106
|
+
)
|
|
123
107
|
|
|
124
|
-
const listing3 = Object.assign({}, Archer) as any
|
|
125
|
-
days = 10
|
|
126
|
-
listing3.applicationDueDate = dayjs().add(days, "days").format()
|
|
108
|
+
const listing3 = Object.assign({}, Archer) as any
|
|
109
|
+
days = 10
|
|
110
|
+
listing3.applicationDueDate = dayjs().add(days, "days").format()
|
|
127
111
|
|
|
128
112
|
export const openedAlready = () => (
|
|
129
113
|
<ApplicationStatus
|
|
130
|
-
content={
|
|
131
|
-
t("listings.applicationDeadline") +
|
|
132
|
-
": " +
|
|
133
|
-
formatDateTime(listing3.applicationDueDate)
|
|
134
|
-
}
|
|
114
|
+
content={t("listings.applicationDeadline") + ": " + formatDateTime(listing3.applicationDueDate)}
|
|
135
115
|
status={ApplicationStatusType.Open}
|
|
136
116
|
/>
|
|
137
|
-
)
|
|
117
|
+
)
|
|
138
118
|
|
|
139
119
|
export const openedWithNoDue = () => (
|
|
140
|
-
<ApplicationStatus
|
|
141
|
-
|
|
142
|
-
status={ApplicationStatusType.Open}
|
|
143
|
-
/>
|
|
144
|
-
);
|
|
120
|
+
<ApplicationStatus content={t("listings.applicationFCFS")} status={ApplicationStatusType.Open} />
|
|
121
|
+
)
|
|
145
122
|
|
|
146
123
|
export const openedWithFCFS = () => (
|
|
147
|
-
<ApplicationStatus
|
|
148
|
-
|
|
149
|
-
status={ApplicationStatusType.Open}
|
|
150
|
-
/>
|
|
151
|
-
);
|
|
124
|
+
<ApplicationStatus content={t("listings.applicationFCFS")} status={ApplicationStatusType.Open} />
|
|
125
|
+
)
|
|
152
126
|
|
|
153
127
|
export const openedWithFCFSVivid = () => (
|
|
154
128
|
<ApplicationStatus
|
|
@@ -156,7 +130,7 @@ export const openedWithFCFSVivid = () => (
|
|
|
156
130
|
status={ApplicationStatusType.Open}
|
|
157
131
|
vivid
|
|
158
132
|
/>
|
|
159
|
-
)
|
|
133
|
+
)
|
|
160
134
|
|
|
161
135
|
export const postLottery = () => (
|
|
162
136
|
<ApplicationStatus
|
|
@@ -164,7 +138,7 @@ export const postLottery = () => (
|
|
|
164
138
|
status={ApplicationStatusType.PostLottery}
|
|
165
139
|
withIcon={false}
|
|
166
140
|
/>
|
|
167
|
-
)
|
|
141
|
+
)
|
|
168
142
|
|
|
169
143
|
export const matched = () => (
|
|
170
144
|
<ApplicationStatus
|
|
@@ -173,4 +147,4 @@ export const matched = () => (
|
|
|
173
147
|
withIcon={true}
|
|
174
148
|
iconType={"check"}
|
|
175
149
|
/>
|
|
176
|
-
)
|
|
150
|
+
)
|
|
@@ -29,7 +29,7 @@ const ApplicationStatus = (props: ApplicationStatusProps) => {
|
|
|
29
29
|
|
|
30
30
|
// determine styling
|
|
31
31
|
let textColor = vivid ? "text-white" : "text-gray-800"
|
|
32
|
-
const textSize = vivid ? "text-
|
|
32
|
+
const textSize = vivid ? "text-2xs" : "text-xs"
|
|
33
33
|
|
|
34
34
|
const icon = withIcon && (
|
|
35
35
|
<Icon
|
|
@@ -51,7 +51,7 @@ const ApplicationStatus = (props: ApplicationStatusProps) => {
|
|
|
51
51
|
textColor = "text-white"
|
|
52
52
|
break
|
|
53
53
|
case ApplicationStatusType.Matched:
|
|
54
|
-
bgColor = "bg-green-
|
|
54
|
+
bgColor = "bg-green-500"
|
|
55
55
|
textColor = "text-white"
|
|
56
56
|
break
|
|
57
57
|
default:
|
|
@@ -23,12 +23,12 @@ You can apply CSS variables to the `.modal` selector to customize the appearance
|
|
|
23
23
|
|
|
24
24
|
| Name | Type | Description | Default |
|
|
25
25
|
| --------------------------- | ------------------ | ------------------------------- | --------------------------------------------------------- |
|
|
26
|
-
| `--title-color` | Color | Title text color | <Swatch colorVar="--bloom-color-gray-
|
|
27
|
-
| `--title-font-size` | Size | Title text size | `--bloom-font-size-
|
|
26
|
+
| `--title-color` | Color | Title text color | <Swatch colorVar="--bloom-color-gray-950" /> |
|
|
27
|
+
| `--title-font-size` | Size | Title text size | `--bloom-font-size-lg` |
|
|
28
28
|
| `--title-font-family` | Font | Title font family | `--bloom-font-sans` |
|
|
29
29
|
| `--content-font-color` | Color | Title text color | <Swatch colorVar="--bloom-color-gray-700" /> |
|
|
30
30
|
| `--max-width` | Size | Modal max width | `--bloom-width-5xl` |
|
|
31
|
-
| `--desktop-min-width` | Size | Modal min width on desktop | `--bloom-width-
|
|
31
|
+
| `--desktop-min-width` | Size | Modal min width on desktop | `--bloom-width-xl` |
|
|
32
32
|
| `--footer-background-color` | Color | Footer background color | <Swatch colorVar="--bloom-color-primary-lighter" /> |
|
|
33
33
|
| `--border-radius` | Size | Border radius of modal, content | `--bloom-rounded` |
|
|
34
34
|
| `--background-color` | Color | Background color of modal | <Swatch colorVar="--bloom-color-white" /> |
|
package/src/overlays/Modal.scss
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
.modal {
|
|
2
2
|
/* Component Variables */
|
|
3
|
-
--title-color: var(--bloom-color-gray-
|
|
4
|
-
--title-font-size: var(--bloom-font-size-
|
|
3
|
+
--title-color: var(--bloom-color-gray-950);
|
|
4
|
+
--title-font-size: var(--bloom-font-size-lg);
|
|
5
5
|
--title-font-family: var(--bloom-font-sans);
|
|
6
6
|
--content-font-color: var(--bloom-color-gray-700);
|
|
7
7
|
--content-padding: var(--bloom-s6);
|
|
8
8
|
--max-width: var(--bloom-width-5xl);
|
|
9
|
-
--desktop-min-width: var(--bloom-width-
|
|
9
|
+
--desktop-min-width: var(--bloom-width-xl);
|
|
10
10
|
--footer-background-color: var(--bloom-color-primary-lighter);
|
|
11
11
|
--border-radius: var(--bloom-rounded);
|
|
12
12
|
--mobile-border-radius: 0;
|