@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
@@ -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-tiny;
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-tiny;
45
+ @apply text-sm;
46
46
  @apply text-gray-700;
47
47
  @apply pb-4;
48
48
  }
@@ -18,7 +18,7 @@
18
18
 
19
19
  .field-group__title {
20
20
  @apply font-alt-sans;
21
- @apply text-lg;
21
+ @apply text-xl;
22
22
  @apply mb-6;
23
23
  }
24
24
 
@@ -18,7 +18,7 @@
18
18
  }
19
19
 
20
20
  .summary-card__title {
21
- @apply text-lg;
21
+ @apply text-xl;
22
22
  @apply font-alt-sans;
23
23
 
24
24
  a {
@@ -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-sm mt-3">
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>
@@ -43,7 +43,7 @@
43
43
  @apply uppercase;
44
44
  @apply font-alt-sans;
45
45
  @apply font-bold;
46
- @apply text-sm;
46
+ @apply text-xs;
47
47
  @apply tracking-widest;
48
48
  @apply w-full;
49
49
  @apply mt-4;
@@ -9,7 +9,7 @@
9
9
  .info-cards__title {
10
10
  @apply font-alt-sans;
11
11
  @apply uppercase;
12
- @apply text-tiny;
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-tiny;
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-tiny"}>
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 }
@@ -68,7 +68,7 @@ export const GroupedTable = (props: GroupedTableProps) => {
68
68
  })
69
69
  })
70
70
 
71
- const tableClasses = ["w-full", "text-sm"]
71
+ const tableClasses = ["w-full", "text-xs"]
72
72
  if (props.responsiveCollapse) {
73
73
  tableClasses.push("responsive-collapse")
74
74
  }
@@ -222,7 +222,7 @@ export const StandardTable = (props: StandardTableProps) => {
222
222
  )
223
223
  })
224
224
 
225
- const tableClasses = ["w-full", "text-sm"]
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-lg;
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-tiny;
39
+ @apply text-sm;
40
40
  @apply mb-5;
41
41
 
42
42
  @screen md {
@@ -1,13 +1,13 @@
1
1
  import * as React from "react"
2
2
  import "./Description.scss"
3
- import Markdown, { MarkdownOptions } from "markdown-to-jsx"
3
+ import Markdown, { MarkdownToJSX } from "markdown-to-jsx"
4
4
 
5
5
  export interface DescriptionProps {
6
6
  term: string
7
7
  description: any
8
8
  dtClassName?: string
9
9
  markdown?: boolean
10
- markdownProps?: MarkdownOptions
10
+ markdownProps?: MarkdownToJSX.Options
11
11
  }
12
12
 
13
13
  export const Description = (props: DescriptionProps) => {
@@ -5,7 +5,7 @@
5
5
  @apply font-semibold;
6
6
  @apply uppercase;
7
7
  @apply tracking-wider;
8
- @apply text-sm;
8
+ @apply text-xs;
9
9
  @apply border-l-2;
10
10
  @apply border-primary;
11
11
 
@@ -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-tiny` |
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-tiny` |
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-2xs` |
64
+ | `--small-pill-font-size` | Size | The font size of the small-size pill tag | `--bloom-font-size-3xs` |
package/src/text/Tag.scss CHANGED
@@ -2,12 +2,12 @@
2
2
  /* Component Variables */
3
3
  --normal-padding: var(--bloom-s3) var(--bloom-s5);
4
4
  --normal-rounded: var(--bloom-rounded-md);
5
- --normal-font-size: var(--bloom-font-size-tiny);
5
+ --normal-font-size: var(--bloom-font-size-sm);
6
6
  --normal-font-weight: normal;
7
7
 
8
8
  --pill-padding: var(--bloom-s2) var(--bloom-s4);
9
9
  --pill-rounded: var(--bloom-rounded-full);
10
- --pill-font-size: var(--bloom-font-size-tiny);
10
+ --pill-font-size: var(--bloom-font-size-sm);
11
11
  --pill-font-weight: 600;
12
12
  --pill-text-transform: uppercase;
13
13
  --pill-letter-spacing: var(--bloom-letter-spacing-ultrawide);
@@ -15,7 +15,7 @@
15
15
  --pill-capitalized-letter-spacing: var(--bloom-letter-spacing-wide);
16
16
 
17
17
  --small-pill-padding: var(--bloom-s1) var(--bloom-s3);
18
- --small-pill-font-size: var(--bloom-font-size-2xs);
18
+ --small-pill-font-size: var(--bloom-font-size-3xs);
19
19
 
20
20
  /* Default Styles */
21
21
  padding: var(--normal-padding);
@@ -62,7 +62,7 @@
62
62
 
63
63
  &.is-secondary {
64
64
  color: var(--secondary-appearance-label-color, var(--bloom-color-white));
65
- background-color: var(--secondary-appearance-background-color, var(--bloom-color-secondary));
65
+ background-color: var(--secondary-appearance-background-color, var(--bloom-color-primary-dark));
66
66
  }
67
67
 
68
68
  &.is-success {
@@ -72,7 +72,7 @@
72
72
  }
73
73
 
74
74
  &.is-light-mode {
75
- color: var(--success-light-appearance-label-color, var(--bloom-color-gray-900));
75
+ color: var(--success-light-appearance-label-color, var(--bloom-color-gray-950));
76
76
  background-color: var(
77
77
  --success-light-appearance-background-color,
78
78
  var(--bloom-color-success-light)
@@ -90,7 +90,7 @@
90
90
  }
91
91
 
92
92
  &.is-light-mode {
93
- color: var(--accent-cool-light-appearance-label-color, var(--bloom-color-gray-900));
93
+ color: var(--accent-cool-light-appearance-label-color, var(--bloom-color-gray-950));
94
94
  background-color: var(
95
95
  --accent-cool-light-appearance-background-color,
96
96
  var(--bloom-color-accent-cool)
@@ -108,7 +108,7 @@
108
108
  }
109
109
 
110
110
  &.is-light-mode {
111
- color: var(--accent-warm-light-appearance-label-color, var(--bloom-color-gray-900));
111
+ color: var(--accent-warm-light-appearance-label-color, var(--bloom-color-gray-950));
112
112
  background-color: var(
113
113
  --accent-warm-light-appearance-background-color,
114
114
  var(--bloom-color-accent-warm)
@@ -127,7 +127,7 @@
127
127
  }
128
128
 
129
129
  &.is-small {
130
- font-size: var(--bloom-font-size-sm);
130
+ font-size: var(--bloom-font-size-xs);
131
131
  padding-block: var(--bloom-s2);
132
132
  padding-inline: var(--bloom-s4);
133
133
  }
@@ -13,12 +13,11 @@ module.exports = {
13
13
  print: { raw: "print" },
14
14
  },
15
15
  fontSize: {
16
+ "3xs": "var(--bloom-font-size-3xs)",
16
17
  "2xs": "var(--bloom-font-size-2xs)",
17
18
  xs: "var(--bloom-font-size-xs)",
18
19
  sm: "var(--bloom-font-size-sm)",
19
- tiny: "var(--bloom-font-size-tiny)",
20
20
  base: "var(--bloom-font-size-base)",
21
- "base-alt": "var(--bloom-font-size-base-alt)",
22
21
  lg: "var(--bloom-font-size-lg)",
23
22
  xl: "var(--bloom-font-size-xl)",
24
23
  "2xl": "var(--bloom-font-size-2xl)",
@@ -26,7 +25,6 @@ module.exports = {
26
25
  "4xl": "var(--bloom-font-size-4xl)",
27
26
  "5xl": "var(--bloom-font-size-5xl)",
28
27
  "6xl": "var(--bloom-font-size-6xl)",
29
- "6.5xl": "var(--bloom-font-size-6_5xl)",
30
28
  "7xl": "var(--bloom-font-size-7xl)",
31
29
  },
32
30
  fontFamily: {
@@ -40,48 +38,65 @@ module.exports = {
40
38
  "primary-darker": "var(--bloom-color-primary-darker)",
41
39
  "primary-light": "var(--bloom-color-primary-light)",
42
40
  "primary-lighter": "var(--bloom-color-primary-lighter)",
43
- secondary: "var(--bloom-color-secondary)",
44
41
  alert: "var(--bloom-color-alert)",
45
42
  "alert-light": "var(--bloom-color-alert-light)",
43
+ "alert-lighter": "var(--bloom-color-alert-lighter)",
46
44
  "alert-dark": "var(--bloom-color-alert-dark)",
45
+ "alert-darker": "var(--bloom-color-alert-darker)",
47
46
  success: "var(--bloom-color-success)",
48
47
  "success-light": "var(--bloom-color-success-light)",
48
+ "success-lighter": "var(--bloom-color-success-lighter)",
49
49
  "success-dark": "var(--bloom-color-success-dark)",
50
+ "success-darker": "var(--bloom-color-success-darker)",
50
51
  warn: "var(--bloom-color-warn)",
51
52
  "warn-light": "var(--bloom-color-warn-light)",
53
+ "warn-lighter": "var(--bloom-color-warn-lighter)",
52
54
  "warn-dark": "var(--bloom-color-warn-dark)",
55
+ "warn-darker": "var(--bloom-color-warn-darker)",
56
+ text: "var(--bloom-text-color)",
57
+ "text-light": "var(--bloom-text-color-light)",
58
+ "text-lighter": "var(--bloom-text-color-lighter)",
59
+ "text-dark": "var(--bloom-text-color-dark)",
60
+ "text-darker": "var(--bloom-text-color-darker)",
53
61
  "accent-cool": "var(--bloom-color-accent-cool)",
54
62
  "accent-cool-light": "var(--bloom-color-accent-cool-light)",
63
+ "accent-cool-lighter": "var(--bloom-color-accent-cool-lighter)",
55
64
  "accent-cool-dark": "var(--bloom-color-accent-cool-dark)",
65
+ "accent-cool-darker": "var(--bloom-color-accent-cool-darker)",
56
66
  "accent-warm": "var(--bloom-color-accent-warm)",
57
- "accent-warm-dark": "var(--bloom-color-accent-warm-dark)",
58
67
  "accent-warm-light": "var(--bloom-color-accent-warm-light)",
59
68
  "accent-warm-lighter": "var(--bloom-color-accent-warm-lighter)",
60
- lush: "var(--bloom-color-lush)",
69
+ "accent-warm-dark": "var(--bloom-color-accent-warm-dark)",
70
+ "accent-warm-darker": "var(--bloom-color-accent-warm-darker)",
61
71
  white: "var(--bloom-color-white)",
62
72
  black: "var(--bloom-color-black)",
63
73
  blue: {
64
- 800: "var(--bloom-color-blue-800)",
74
+ 900: "var(--bloom-color-blue-900)",
65
75
  700: "var(--bloom-color-blue-700)",
66
- 600: "var(--bloom-color-blue-600)",
76
+ 500: "var(--bloom-color-blue-500)",
67
77
  300: "var(--bloom-color-blue-300)",
68
- 200: "var(--bloom-color-blue-200)",
78
+ 100: "var(--bloom-color-blue-100)",
69
79
  },
70
80
  red: {
81
+ 900: "var(--bloom-color-red-900)",
71
82
  700: "var(--bloom-color-red-700)",
83
+ 500: "var(--bloom-color-red-500)",
72
84
  300: "var(--bloom-color-red-300)",
85
+ 100: "var(--bloom-color-red-100)",
73
86
  },
74
87
  yellow: {
88
+ 900: "var(--bloom-color-yellow-900)",
75
89
  700: "var(--bloom-color-yellow-700)",
90
+ 500: "var(--bloom-color-yellow-500)",
76
91
  300: "var(--bloom-color-yellow-300)",
92
+ 100: "var(--bloom-color-yellow-100)",
77
93
  },
78
94
  green: {
95
+ 900: "var(--bloom-color-green-900)",
79
96
  700: "var(--bloom-color-green-700)",
97
+ 500: "var(--bloom-color-green-500)",
80
98
  300: "var(--bloom-color-green-300)",
81
- },
82
- teal: {
83
- 700: "var(--bloom-color-green-700)",
84
- 300: "var(--bloom-color-green-300)",
99
+ 100: "var(--bloom-color-green-100)",
85
100
  },
86
101
  gray: {
87
102
  950: "var(--bloom-color-gray-950)",