@bloom-housing/ui-components 4.0.2 → 4.1.1-alpha.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 (51) hide show
  1. package/.jest/setup-tests.js +8 -0
  2. package/CHANGELOG.md +555 -36
  3. package/README.md +1 -1
  4. package/index.ts +8 -4
  5. package/package.json +4 -4
  6. package/src/authentication/AuthContext.ts +32 -3
  7. package/src/blocks/FormCard.scss +12 -0
  8. package/src/blocks/ImageCard.scss +10 -8
  9. package/src/blocks/ViewItem.tsx +5 -1
  10. package/src/config/NavigationContext.tsx +4 -0
  11. package/src/forms/DOBField.tsx +1 -1
  12. package/src/forms/Field.tsx +4 -2
  13. package/src/forms/FieldGroup.tsx +27 -14
  14. package/src/global/headers.scss +7 -3
  15. package/src/global/lists.scss +4 -5
  16. package/src/global/tables.scss +3 -1
  17. package/src/headers/PageHeader.tsx +5 -1
  18. package/src/helpers/tableSummaries.tsx +1 -1
  19. package/src/helpers/useIntersect.ts +48 -0
  20. package/src/icons/Icon.tsx +6 -1
  21. package/src/icons/Icons.tsx +1 -1
  22. package/src/locales/es.json +1 -1
  23. package/src/locales/general.json +41 -7
  24. package/src/locales/vi.json +1 -1
  25. package/src/locales/zh.json +1 -1
  26. package/src/notifications/AlertBox.scss +3 -3
  27. package/src/notifications/AlertBox.tsx +3 -1
  28. package/src/notifications/AlertNotice.tsx +6 -1
  29. package/src/notifications/ApplicationStatus.scss +2 -7
  30. package/src/notifications/ApplicationStatus.tsx +10 -13
  31. package/src/overlays/Modal.tsx +2 -0
  32. package/src/overlays/Overlay.scss +8 -0
  33. package/src/overlays/Overlay.tsx +2 -1
  34. package/src/page_components/forgot-password/FormForgotPassword.tsx +114 -0
  35. package/src/page_components/listing/ContentAccordion.scss +34 -0
  36. package/src/page_components/listing/ContentAccordion.tsx +77 -0
  37. package/src/page_components/listing/ListingMap.scss +4 -0
  38. package/src/page_components/listing/ListingMap.tsx +13 -3
  39. package/src/page_components/listing/UnitTables.tsx +37 -27
  40. package/src/page_components/listing/listing_sidebar/events/DownloadLotteryResults.tsx +21 -22
  41. package/src/page_components/listing/listing_sidebar/events/EventSection.tsx +54 -0
  42. package/src/page_components/sign-in/FormSignIn.tsx +9 -33
  43. package/src/page_components/sign-in/FormSignInAddPhone.tsx +87 -0
  44. package/src/page_components/sign-in/FormSignInErrorBox.tsx +43 -0
  45. package/src/page_components/sign-in/FormSignInMFACode.tsx +98 -0
  46. package/src/page_components/sign-in/FormSignInMFAType.tsx +95 -0
  47. package/src/tables/StackedTable.tsx +1 -1
  48. package/src/page_components/listing/listing_sidebar/events/EventDateSection.tsx +0 -25
  49. package/src/page_components/listing/listing_sidebar/events/LotteryResultsEvent.tsx +0 -26
  50. package/src/page_components/listing/listing_sidebar/events/OpenHouseEvent.tsx +0 -27
  51. package/src/page_components/listing/listing_sidebar/events/PublicLotteryEvent.tsx +0 -22
@@ -18,6 +18,14 @@ window.matchMedia = jest.fn().mockImplementation((query) => {
18
18
  }
19
19
  })
20
20
 
21
+ window.IntersectionObserver = class {
22
+ constructor(root, options) {
23
+ // no-op
24
+ }
25
+ observe = jest.fn()
26
+ disconnect = jest.fn()
27
+ }
28
+
21
29
  addTranslation(general)
22
30
 
23
31
  configure({ testIdAttribute: "data-test-id" })