@bloom-housing/ui-components 12.7.7 → 13.0.1

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 (309) hide show
  1. package/dist/__tests__/storyshots.spec.d.ts +0 -1
  2. package/dist/__tests__/storyshots.spec.js +9 -9
  3. package/dist/__tests__/storyshots.spec.js.map +1 -1
  4. package/dist/src/actions/Button.d.ts +2 -2
  5. package/dist/src/actions/Button.stories.d.ts +71 -21
  6. package/dist/src/actions/Button.stories.js +54 -38
  7. package/dist/src/actions/Button.stories.js.map +1 -1
  8. package/dist/src/actions/ButtonGroup.d.ts +2 -2
  9. package/dist/src/actions/ButtonGroup.stories.d.ts +7 -11
  10. package/dist/src/actions/ButtonGroup.stories.js +0 -4
  11. package/dist/src/actions/ButtonGroup.stories.js.map +1 -1
  12. package/dist/src/actions/ExpandableContent.d.ts +1 -1
  13. package/dist/src/actions/ExpandableContent.stories.d.ts +3 -2
  14. package/dist/src/actions/ExpandableText.d.ts +2 -1
  15. package/dist/src/actions/ExpandableText.stories.d.ts +7 -6
  16. package/dist/src/actions/LinkButton.d.ts +2 -1
  17. package/dist/src/actions/LinkButton.stories.d.ts +9 -8
  18. package/dist/src/actions/LocalizedLink.d.ts +2 -2
  19. package/dist/src/actions/Video.d.ts +2 -1
  20. package/dist/src/blocks/ActionBlock.d.ts +1 -1
  21. package/dist/src/blocks/ActionBlock.stories.d.ts +8 -7
  22. package/dist/src/blocks/Card.d.ts +7 -7
  23. package/dist/src/blocks/Card.stories.d.ts +5 -9
  24. package/dist/src/blocks/Card.stories.js +0 -4
  25. package/dist/src/blocks/Card.stories.js.map +1 -1
  26. package/dist/src/blocks/DashBlock.d.ts +1 -1
  27. package/dist/src/blocks/DashBlocks.d.ts +1 -1
  28. package/dist/src/blocks/DashBlocks.stories.d.ts +2 -1
  29. package/dist/src/blocks/FormCard.d.ts +1 -1
  30. package/dist/src/blocks/FormCard.stories.d.ts +3 -2
  31. package/dist/src/blocks/HousingCounselor.d.ts +2 -1
  32. package/dist/src/blocks/HousingCounselor.stories.d.ts +4 -3
  33. package/dist/src/blocks/ImageCard.d.ts +2 -1
  34. package/dist/src/blocks/ImageCard.js +5 -1
  35. package/dist/src/blocks/ImageCard.js.map +1 -1
  36. package/dist/src/blocks/ImageCard.stories.d.ts +18 -22
  37. package/dist/src/blocks/ImageCard.stories.js +0 -4
  38. package/dist/src/blocks/ImageCard.stories.js.map +1 -1
  39. package/dist/src/blocks/InfoCard.d.ts +1 -1
  40. package/dist/src/blocks/InfoCard.stories.d.ts +6 -10
  41. package/dist/src/blocks/InfoCard.stories.js +0 -4
  42. package/dist/src/blocks/InfoCard.stories.js.map +1 -1
  43. package/dist/src/blocks/MediaCard.d.ts +2 -1
  44. package/dist/src/blocks/MediaCard.stories.d.ts +5 -9
  45. package/dist/src/blocks/MediaCard.stories.js +0 -4
  46. package/dist/src/blocks/MediaCard.stories.js.map +1 -1
  47. package/dist/src/blocks/StandardCard.d.ts +1 -1
  48. package/dist/src/blocks/StandardCard.stories.d.ts +6 -10
  49. package/dist/src/blocks/StandardCard.stories.js +0 -4
  50. package/dist/src/blocks/StandardCard.stories.js.map +1 -1
  51. package/dist/src/blocks/StatusBar.d.ts +1 -1
  52. package/dist/src/blocks/StatusBar.stories.d.ts +4 -3
  53. package/dist/src/blocks/StatusItem.d.ts +2 -1
  54. package/dist/src/blocks/StatusItem.stories.d.ts +3 -2
  55. package/dist/src/blocks/Tooltip.d.ts +1 -1
  56. package/dist/src/blocks/ViewItem.d.ts +1 -1
  57. package/dist/src/blocks/ViewItem.stories.d.ts +5 -4
  58. package/dist/src/documentation/Utilities.d.ts +2 -1
  59. package/dist/src/footers/ExygyFooter.d.ts +2 -1
  60. package/dist/src/footers/SiteFooter.d.ts +1 -1
  61. package/dist/src/footers/SiteFooter.stories.d.ts +7 -6
  62. package/dist/src/forms/DOBField.d.ts +1 -1
  63. package/dist/src/forms/DOBField.stories.d.ts +3 -2
  64. package/dist/src/forms/DateField.d.ts +1 -1
  65. package/dist/src/forms/DateField.stories.d.ts +3 -2
  66. package/dist/src/forms/Dropzone.d.ts +1 -1
  67. package/dist/src/forms/Dropzone.stories.d.ts +4 -3
  68. package/dist/src/forms/Dropzone.stories.js +1 -2
  69. package/dist/src/forms/Dropzone.stories.js.map +1 -1
  70. package/dist/src/forms/Field.d.ts +4 -4
  71. package/dist/src/forms/Field.stories.d.ts +12 -11
  72. package/dist/src/forms/FieldGroup.d.ts +1 -1
  73. package/dist/src/forms/FieldGroup.stories.d.ts +6 -5
  74. package/dist/src/forms/Form.d.ts +1 -1
  75. package/dist/src/forms/HouseholdMemberForm.d.ts +2 -1
  76. package/dist/src/forms/HouseholdMemberForm.stories.d.ts +4 -3
  77. package/dist/src/forms/HouseholdSizeField.d.ts +2 -1
  78. package/dist/src/forms/HouseholdSizeField.stories.d.ts +3 -2
  79. package/dist/src/forms/MultiSelectField.d.ts +1 -1
  80. package/dist/src/forms/MultiSelectField.stories.d.ts +5 -9
  81. package/dist/src/forms/MultiSelectField.stories.js +0 -4
  82. package/dist/src/forms/MultiSelectField.stories.js.map +1 -1
  83. package/dist/src/forms/PhoneField.d.ts +2 -2
  84. package/dist/src/forms/Select.d.ts +1 -1
  85. package/dist/src/forms/Textarea.d.ts +1 -1
  86. package/dist/src/forms/Textarea.stories.d.ts +9 -8
  87. package/dist/src/forms/TimeField.d.ts +1 -1
  88. package/dist/src/forms/TimeField.stories.d.ts +4 -3
  89. package/dist/src/forms/checkbox.stories.d.ts +3 -2
  90. package/dist/src/forms/checkbox.stories.js.map +1 -1
  91. package/dist/src/forms/radio.stories.d.ts +3 -2
  92. package/dist/src/forms/radio.stories.js.map +1 -1
  93. package/dist/src/headers/HeadingGroup.d.ts +1 -1
  94. package/dist/src/headers/HeadingGroup.stories.d.ts +3 -7
  95. package/dist/src/headers/HeadingGroup.stories.js +0 -4
  96. package/dist/src/headers/HeadingGroup.stories.js.map +1 -1
  97. package/dist/src/headers/Hero.d.ts +1 -1
  98. package/dist/src/headers/Hero.stories.d.ts +7 -6
  99. package/dist/src/headers/PageHeader.d.ts +1 -1
  100. package/dist/src/headers/PageHeader.stories.d.ts +7 -11
  101. package/dist/src/headers/PageHeader.stories.js +0 -4
  102. package/dist/src/headers/PageHeader.stories.js.map +1 -1
  103. package/dist/src/headers/SiteHeader.d.ts +1 -1
  104. package/dist/src/headers/SiteHeader.js.map +1 -1
  105. package/dist/src/headers/SiteHeader.stories.d.ts +20 -19
  106. package/dist/src/headers/StepHeader.d.ts +2 -1
  107. package/dist/src/headers/StepHeader.js.map +1 -1
  108. package/dist/src/headers/StepHeader.stories.d.ts +5 -4
  109. package/dist/src/headers/StepHeader.stories.js +1 -2
  110. package/dist/src/headers/StepHeader.stories.js.map +1 -1
  111. package/dist/src/helpers/MultiLineAddress.d.ts +2 -1
  112. package/dist/src/helpers/MultiLineAddress.stories.d.ts +6 -5
  113. package/dist/src/helpers/OneLineAddress.d.ts +2 -1
  114. package/dist/src/helpers/OneLineAddress.stories.d.ts +6 -5
  115. package/dist/src/helpers/formOptions.d.ts +2 -1
  116. package/dist/src/helpers/preferences.d.ts +2 -1
  117. package/dist/src/helpers/useFallbackImage.d.ts +2 -2
  118. package/dist/src/icons/FontAwesome.stories.d.ts +5 -4
  119. package/dist/src/icons/HeaderBadge.d.ts +2 -1
  120. package/dist/src/icons/HeaderBadge.stories.d.ts +2 -1
  121. package/dist/src/icons/Icon.d.ts +63 -62
  122. package/dist/src/icons/Icon.stories.d.ts +61 -60
  123. package/dist/src/icons/Icons.d.ts +62 -61
  124. package/dist/src/lists/NumberedList.stories.d.ts +2 -1
  125. package/dist/src/lists/PreferencesList.d.ts +2 -1
  126. package/dist/src/lists/PreferencesList.stories.d.ts +3 -2
  127. package/dist/src/navigation/Breadcrumbs.d.ts +2 -2
  128. package/dist/src/navigation/Breadcrumbs.stories.d.ts +3 -2
  129. package/dist/src/navigation/FooterNav.d.ts +1 -1
  130. package/dist/src/navigation/LanguageNav.d.ts +2 -1
  131. package/dist/src/navigation/LanguageNav.stories.d.ts +3 -2
  132. package/dist/src/navigation/LanguageNav.stories.js +2 -3
  133. package/dist/src/navigation/LanguageNav.stories.js.map +1 -1
  134. package/dist/src/navigation/ProgressNav.d.ts +2 -1
  135. package/dist/src/navigation/ProgressNav.stories.d.ts +4 -8
  136. package/dist/src/navigation/ProgressNav.stories.js +0 -4
  137. package/dist/src/navigation/ProgressNav.stories.js.map +1 -1
  138. package/dist/src/navigation/SideNav.d.ts +2 -1
  139. package/dist/src/navigation/SideNav.stories.d.ts +6 -10
  140. package/dist/src/navigation/SideNav.stories.js +0 -4
  141. package/dist/src/navigation/SideNav.stories.js.map +1 -1
  142. package/dist/src/navigation/TabNav.d.ts +2 -2
  143. package/dist/src/navigation/TabNav.stories.d.ts +4 -3
  144. package/dist/src/navigation/Tabs.stories.d.ts +3 -2
  145. package/dist/src/notifications/AlertBox.d.ts +2 -1
  146. package/dist/src/notifications/AlertBox.stories.d.ts +15 -19
  147. package/dist/src/notifications/AlertBox.stories.js +0 -4
  148. package/dist/src/notifications/AlertBox.stories.js.map +1 -1
  149. package/dist/src/notifications/AlertNotice.d.ts +2 -1
  150. package/dist/src/notifications/AlertNotice.stories.d.ts +8 -7
  151. package/dist/src/notifications/ApplicationStatus.d.ts +2 -1
  152. package/dist/src/notifications/ApplicationStatus.stories.d.ts +17 -16
  153. package/dist/src/notifications/ApplicationStatus.stories.js +3 -4
  154. package/dist/src/notifications/ApplicationStatus.stories.js.map +1 -1
  155. package/dist/src/notifications/ErrorMessage.d.ts +1 -1
  156. package/dist/src/notifications/SiteAlert.d.ts +2 -1
  157. package/dist/src/notifications/StatusAside.d.ts +1 -1
  158. package/dist/src/notifications/StatusAside.stories.d.ts +4 -3
  159. package/dist/src/notifications/StatusMessage.d.ts +2 -2
  160. package/dist/src/notifications/StatusMessage.stories.d.ts +4 -3
  161. package/dist/src/overlays/Drawer.d.ts +1 -1
  162. package/dist/src/overlays/Drawer.stories.d.ts +6 -5
  163. package/dist/src/overlays/LoadingOverlay.d.ts +1 -1
  164. package/dist/src/overlays/LoadingOverlay.stories.d.ts +3 -2
  165. package/dist/src/overlays/Modal.d.ts +1 -1
  166. package/dist/src/overlays/Modal.stories.d.ts +102 -13
  167. package/dist/src/overlays/Modal.stories.js +119 -76
  168. package/dist/src/overlays/Modal.stories.js.map +1 -1
  169. package/dist/src/overlays/Overlay.d.ts +1 -0
  170. package/dist/src/overlays/Overlay.js +5 -4
  171. package/dist/src/overlays/Overlay.js.map +1 -1
  172. package/dist/src/page_components/ApplicationTimeline.d.ts +2 -1
  173. package/dist/src/page_components/NavigationHeader.d.ts +1 -1
  174. package/dist/src/page_components/forgot-password/FormForgotPassword.d.ts +2 -1
  175. package/dist/src/page_components/listing/AdditionalFees.d.ts +1 -1
  176. package/dist/src/page_components/listing/AdditionalFees.stories.d.ts +10 -9
  177. package/dist/src/page_components/listing/ContentAccordion.d.ts +1 -1
  178. package/dist/src/page_components/listing/ContentAccordion.stories.d.ts +7 -6
  179. package/dist/src/page_components/listing/ListingCard.d.ts +1 -1
  180. package/dist/src/page_components/listing/ListingCard.stories.d.ts +16 -15
  181. package/dist/src/page_components/listing/ListingDetailHeader.d.ts +1 -1
  182. package/dist/src/page_components/listing/ListingDetailHeader.stories.d.ts +2 -1
  183. package/dist/src/page_components/listing/ListingDetails.d.ts +3 -2
  184. package/dist/src/page_components/listing/ListingMap.d.ts +2 -1
  185. package/dist/src/page_components/listing/ListingMap.stories.d.ts +2 -1
  186. package/dist/src/page_components/listing/ListingsGroup.d.ts +1 -1
  187. package/dist/src/page_components/listing/ListingsGroup.stories.d.ts +5 -4
  188. package/dist/src/page_components/listing/listing_sidebar/Contact.d.ts +1 -1
  189. package/dist/src/page_components/listing/listing_sidebar/Contact.stories.d.ts +6 -5
  190. package/dist/src/page_components/listing/listing_sidebar/ContactAddress.d.ts +2 -1
  191. package/dist/src/page_components/listing/listing_sidebar/ContactAddress.stories.d.ts +3 -2
  192. package/dist/src/page_components/listing/listing_sidebar/ExpandableSection.d.ts +1 -1
  193. package/dist/src/page_components/listing/listing_sidebar/ExpandableSection.stories.d.ts +4 -3
  194. package/dist/src/page_components/listing/listing_sidebar/GetApplication.d.ts +2 -1
  195. package/dist/src/page_components/listing/listing_sidebar/GetApplication.stories.d.ts +10 -9
  196. package/dist/src/page_components/listing/listing_sidebar/ListingUpdated.d.ts +2 -1
  197. package/dist/src/page_components/listing/listing_sidebar/NumberedHeader.d.ts +2 -1
  198. package/dist/src/page_components/listing/listing_sidebar/OrDivider.d.ts +2 -1
  199. package/dist/src/page_components/listing/listing_sidebar/QuantityRowSection.d.ts +1 -1
  200. package/dist/src/page_components/listing/listing_sidebar/QuantityRowSection.stories.d.ts +9 -8
  201. package/dist/src/page_components/listing/listing_sidebar/ReferralApplication.d.ts +2 -1
  202. package/dist/src/page_components/listing/listing_sidebar/ReferralApplication.stories.d.ts +2 -1
  203. package/dist/src/page_components/listing/listing_sidebar/SidebarBlock.d.ts +1 -1
  204. package/dist/src/page_components/listing/listing_sidebar/SidebarBlock.stories.d.ts +4 -3
  205. package/dist/src/page_components/listing/listing_sidebar/SubmitApplication.d.ts +2 -1
  206. package/dist/src/page_components/listing/listing_sidebar/SubmitApplication.stories.d.ts +6 -5
  207. package/dist/src/page_components/listing/listing_sidebar/events/DownloadLotteryResults.d.ts +2 -1
  208. package/dist/src/page_components/listing/listing_sidebar/events/DownloadLotteryResults.stories.d.ts +3 -2
  209. package/dist/src/page_components/listing/listing_sidebar/events/EventSection.d.ts +1 -1
  210. package/dist/src/page_components/listing/listing_sidebar/events/EventSection.stories.d.ts +13 -12
  211. package/dist/src/page_components/sign-in/FormSignIn.d.ts +2 -1
  212. package/dist/src/page_components/sign-in/FormSignInAddPhone.d.ts +2 -1
  213. package/dist/src/page_components/sign-in/FormSignInErrorBox.d.ts +2 -1
  214. package/dist/src/page_components/sign-in/FormSignInMFACode.d.ts +2 -1
  215. package/dist/src/page_components/sign-in/FormSignInMFAType.d.ts +2 -1
  216. package/dist/src/page_components/sign-in/FormTerms.d.ts +2 -1
  217. package/dist/src/page_components/sign-in/ResendConfirmationModal.d.ts +2 -1
  218. package/dist/src/prototypes/AppCard.stories.d.ts +4 -3
  219. package/dist/src/prototypes/Back.stories.d.ts +3 -2
  220. package/dist/src/prototypes/ButtonGroup.stories.d.ts +4 -3
  221. package/dist/src/prototypes/ButtonPager.stories.d.ts +3 -2
  222. package/dist/src/prototypes/FieldSection.d.ts +1 -1
  223. package/dist/src/prototypes/FieldSection.stories.d.ts +5 -4
  224. package/dist/src/prototypes/GridItem.d.ts +1 -1
  225. package/dist/src/prototypes/GridItem.stories.d.ts +4 -3
  226. package/dist/src/prototypes/SummaryCard.stories.d.ts +4 -3
  227. package/dist/src/prototypes/Swatch.d.ts +2 -1
  228. package/dist/src/sections/ContentSection.d.ts +1 -1
  229. package/dist/src/sections/FooterSection.d.ts +1 -1
  230. package/dist/src/sections/GridSection.d.ts +2 -2
  231. package/dist/src/sections/GridSection.stories.d.ts +12 -11
  232. package/dist/src/sections/InfoCardGrid.d.ts +1 -1
  233. package/dist/src/sections/InfoCardGrid.stories.d.ts +4 -3
  234. package/dist/src/sections/ListSection.d.ts +1 -1
  235. package/dist/src/sections/MarkdownSection.d.ts +1 -1
  236. package/dist/src/sections/ResponsiveContentList.d.ts +4 -4
  237. package/dist/src/sections/ResponsiveContentList.stories.d.ts +2 -1
  238. package/dist/src/sections/ResponsiveWrappers.d.ts +2 -2
  239. package/dist/src/tables/AgPagination.d.ts +1 -1
  240. package/dist/src/tables/AgTable.d.ts +1 -1
  241. package/dist/src/tables/AgTable.stories.d.ts +4 -3
  242. package/dist/src/tables/CategoryTable.d.ts +2 -1
  243. package/dist/src/tables/CategoryTable.stories.d.ts +5 -4
  244. package/dist/src/tables/GroupedTable.d.ts +1 -1
  245. package/dist/src/tables/GroupedTable.stories.d.ts +3 -2
  246. package/dist/src/tables/MinimalTable.d.ts +2 -1
  247. package/dist/src/tables/MinimalTable.stories.d.ts +10 -9
  248. package/dist/src/tables/StackedTable.d.ts +2 -1
  249. package/dist/src/tables/StackedTable.stories.d.ts +8 -7
  250. package/dist/src/tables/StandardTable.d.ts +5 -5
  251. package/dist/src/tables/StandardTable.stories.d.ts +7 -6
  252. package/dist/src/text/Description.d.ts +1 -1
  253. package/dist/src/text/Description.stories.d.ts +4 -3
  254. package/dist/src/text/Heading.d.ts +1 -1
  255. package/dist/src/text/Heading.js.map +1 -1
  256. package/dist/src/text/Heading.stories.d.ts +15 -14
  257. package/dist/src/text/Message.d.ts +1 -1
  258. package/dist/src/text/Message.stories.d.ts +4 -3
  259. package/dist/src/text/Tag.d.ts +1 -1
  260. package/dist/src/text/Tag.stories.d.ts +11 -10
  261. package/package.json +33 -33
  262. package/src/actions/Button.docs.mdx +6 -5
  263. package/src/actions/Button.stories.tsx +73 -62
  264. package/src/actions/ButtonGroup.docs.mdx +7 -5
  265. package/src/actions/ButtonGroup.stories.tsx +0 -4
  266. package/src/actions/ButtonGroup.tsx +1 -1
  267. package/src/blocks/Card.docs.mdx +10 -11
  268. package/src/blocks/Card.stories.tsx +0 -4
  269. package/src/blocks/ImageCard.docs.mdx +8 -6
  270. package/src/blocks/ImageCard.stories.tsx +0 -4
  271. package/src/blocks/ImageCard.tsx +6 -2
  272. package/src/blocks/InfoCard.docs.mdx +8 -6
  273. package/src/blocks/InfoCard.stories.tsx +0 -4
  274. package/src/blocks/MediaCard.docs.mdx +10 -11
  275. package/src/blocks/MediaCard.stories.tsx +0 -4
  276. package/src/blocks/StandardCard.docs.mdx +7 -8
  277. package/src/blocks/StandardCard.stories.tsx +0 -4
  278. package/src/documentation/{Utilities.stories.mdx → Utilities.docs.mdx} +4 -2
  279. package/src/forms/Dropzone.stories.tsx +1 -2
  280. package/src/forms/Field.tsx +3 -3
  281. package/src/forms/MultiSelectField.docs.mdx +6 -5
  282. package/src/forms/MultiSelectField.stories.tsx +1 -5
  283. package/src/forms/PhoneField.tsx +1 -1
  284. package/src/forms/checkbox.stories.tsx +1 -1
  285. package/src/forms/radio.stories.tsx +1 -1
  286. package/src/headers/HeadingGroup.docs.mdx +6 -5
  287. package/src/headers/HeadingGroup.stories.tsx +0 -4
  288. package/src/headers/PageHeader.docs.mdx +10 -12
  289. package/src/headers/PageHeader.stories.tsx +0 -4
  290. package/src/headers/SiteHeader.tsx +1 -1
  291. package/src/headers/StepHeader.docs.mdx +14 -13
  292. package/src/headers/StepHeader.stories.tsx +1 -2
  293. package/src/headers/StepHeader.tsx +1 -1
  294. package/src/lists/PreferencesList.docs.mdx +8 -6
  295. package/src/navigation/LanguageNav.stories.tsx +1 -3
  296. package/src/navigation/ProgressNav.docs.mdx +13 -8
  297. package/src/navigation/ProgressNav.stories.tsx +0 -4
  298. package/src/navigation/SideNav.docs.mdx +7 -5
  299. package/src/navigation/SideNav.stories.tsx +0 -4
  300. package/src/notifications/AlertBox.docs.mdx +7 -8
  301. package/src/notifications/AlertBox.stories.tsx +0 -4
  302. package/src/notifications/ApplicationStatus.stories.tsx +3 -4
  303. package/src/overlays/Modal.docs.mdx +7 -5
  304. package/src/overlays/Modal.stories.tsx +273 -232
  305. package/src/overlays/Overlay.tsx +8 -2
  306. package/src/page_components/listing/ListingCard.docs.mdx +9 -9
  307. package/src/text/Heading.docs.mdx +7 -5
  308. package/src/text/Heading.tsx +1 -1
  309. package/src/text/Tag.docs.mdx +10 -14
package/package.json CHANGED
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "name": "@bloom-housing/ui-components",
3
- "version": "12.7.7",
3
+ "version": "13.0.1",
4
4
  "author": "Sean Albert <sean.albert@exygy.com>",
5
5
  "description": "Shared user interface components for Bloom affordable housing system",
6
6
  "homepage": "https://github.com/bloom-housing/ui-components",
7
7
  "main": "index.js",
8
8
  "license": "Apache-2.0",
9
9
  "private": false,
10
+ "packageManager": "yarn@1.22.22",
10
11
  "publishConfig": {
11
12
  "access": "public",
12
13
  "registry": "https://registry.npmjs.org"
@@ -29,62 +30,60 @@
29
30
  "index.ts"
30
31
  ],
31
32
  "scripts": {
32
- "build-storybook": "build-storybook -c .storybook -s ./public",
33
- "start": "start-storybook -s ./public -p 40791",
33
+ "build-storybook": "storybook build -c .storybook ./public",
34
+ "start": "storybook dev ./public -p 40791",
34
35
  "build": "tsc",
35
36
  "test": "jest -w 1",
36
37
  "test:coverage": "jest -w 1 --coverage --watchAll=false",
37
38
  "prettier": "prettier --write \"**/*.tsx\"",
38
- "test:a11y": "build-storybook -o ./storybook-static && jest storyshot --testRegex=storyshots.spec.ts"
39
+ "test:a11y": "storybook build -o ./storybook-static && jest storyshot --testRegex=storyshots.spec.ts"
39
40
  },
40
41
  "devDependencies": {
41
42
  "@babel/core": "^7.15.5",
42
43
  "@babel/preset-env": "^7.15.4",
44
+ "@chromatic-com/storybook": "^3",
43
45
  "@commitlint/cli": "^13.1.0",
44
46
  "@commitlint/config-conventional": "^13.1.0",
45
- "@geometricpanda/storybook-addon-badges": "^1.1.1",
46
- "@storybook/addon-a11y": "^6.5.16",
47
- "@storybook/addon-actions": "^6.5.16",
48
- "@storybook/addon-essentials": "^6.5.16",
49
- "@storybook/addon-interactions": "^6.5.16",
50
- "@storybook/addon-knobs": "^6.4.0",
51
- "@storybook/addon-links": "^6.5.16",
52
- "@storybook/addon-postcss": "^2.0.0",
53
- "@storybook/addon-storyshots": "^6.3.8",
54
- "@storybook/addon-storyshots-puppeteer": "^6.3.8",
55
- "@storybook/addons": "^6.5.8",
56
- "@storybook/api": "^6.5.8",
57
- "@storybook/builder-webpack5": "^6.5.16",
58
- "@storybook/components": "^6.5.8",
59
- "@storybook/core-events": "^6.5.8",
60
- "@storybook/manager-webpack5": "^6.5.16",
61
- "@storybook/node-logger": "^6.5.16",
62
- "@storybook/react": "^6.5.16",
63
- "@storybook/testing-library": "^0.0.13",
64
- "@storybook/theming": "^6.5.8",
65
- "@testing-library/jest-dom": "5.16.5",
66
- "@testing-library/react": "14.0.0",
47
+ "@geometricpanda/storybook-addon-badges": "^2.0.5",
48
+ "@storybook/addon-a11y": "8.6.14",
49
+ "@storybook/addon-actions": "8.6.14",
50
+ "@storybook/addon-essentials": "8.6.14",
51
+ "@storybook/addon-interactions": "8.6.14",
52
+ "@storybook/addon-links": "8.6.14",
53
+ "@storybook/addon-mdx-gfm": "8.6.14",
54
+ "@storybook/addon-styling-webpack": "^2.0.0",
55
+ "@storybook/addon-webpack5-compiler-babel": "^3.0.6",
56
+ "@storybook/components": "8.6.14",
57
+ "@storybook/core-events": "8.6.14",
58
+ "@storybook/node-logger": "8.6.14",
59
+ "@storybook/react": "8.6.14",
60
+ "@storybook/react-webpack5": "8.6.14",
61
+ "@storybook/test": "8.6.14",
62
+ "@storybook/theming": "8.6.14",
63
+ "@testing-library/jest-dom": "^6.6.2",
64
+ "@testing-library/react": "^16.3.0",
67
65
  "@types/dompurify": "^2.3.3",
68
- "@types/jest": "^26.0.14",
66
+ "@types/jest": "^30.0.0",
69
67
  "@types/jwt-decode": "^2.2.1",
70
68
  "@types/mdx": "^2.0.1",
71
69
  "@types/node": "18.14.6",
72
70
  "@types/node-polyglot": "^2.4.1",
73
71
  "@types/pretty": "2.0.1",
74
- "@types/react": "^18.0.32",
72
+ "@types/react": "^19.2.0",
75
73
  "@types/react-beautiful-dnd": "^13.1.1",
76
- "@types/react-dom": "^18.0.11",
74
+ "@types/react-dom": "^19.2.0",
77
75
  "@types/react-map-gl": "^5.2.10",
78
76
  "@types/react-tabs": "^2.3.2",
79
77
  "@types/react-test-renderer": "^18.0.0",
80
78
  "@types/react-text-mask": "^5.4.14",
81
- "@types/react-transition-group": "^4.4.0",
79
+ "@types/react-transition-group": "^4.4.12",
82
80
  "@types/webpack": "5.28.0",
83
81
  "@typescript-eslint/eslint-plugin": "^5.12.1",
84
82
  "@typescript-eslint/parser": "^5.12.1",
85
83
  "autoprefixer": "^10.3.4",
86
84
  "babel-loader": "^8.2.2",
87
85
  "babel-plugin-require-context-hook": "^1.0.0",
86
+ "css-loader": "^7.1.2",
88
87
  "dotenv": "^8.2.0",
89
88
  "eslint": "^7.11.0",
90
89
  "eslint-config-prettier": "^6.11.0",
@@ -115,6 +114,7 @@
115
114
  "sass": "1.52.1",
116
115
  "sass-loader": "^10.0.3",
117
116
  "semantic-release": "19.0.5",
117
+ "storybook": "8.6.14",
118
118
  "style-loader": "^1.1.3",
119
119
  "ts-jest": "^26.4.1",
120
120
  "ts-loader": "^8.0.4",
@@ -135,17 +135,17 @@
135
135
  "markdown-to-jsx": "7.1.8",
136
136
  "nanoid": "^3.1.12",
137
137
  "node-polyglot": "^2.4.0",
138
- "react": "18.2.0",
138
+ "react": "^19.1.1",
139
139
  "react-accessible-accordion": "5.0.0",
140
140
  "react-beautiful-dnd": "^13.1.1",
141
- "react-dom": "18.2.0",
141
+ "react-dom": "^19.1.1",
142
142
  "react-dropzone": "^11.3.2",
143
143
  "react-focus-lock": "^2.9.4",
144
144
  "react-hook-form": "^6.15.5",
145
145
  "react-map-gl": "^6.1.16",
146
146
  "react-media": "^1.10.0",
147
147
  "react-remove-scroll": "2.5.4",
148
- "react-tabs": "^3.2.2",
148
+ "react-tabs": "^6.0.0",
149
149
  "react-text-mask": "^5.5.0",
150
150
  "react-transition-group": "^4.4.1",
151
151
  "tailwindcss": "2.2.10",
@@ -1,6 +1,9 @@
1
- import { Canvas, Story, Source, ArgsTable } from "@storybook/addon-docs"
1
+ import { ArgTypes, Canvas, Meta } from "@storybook/blocks"
2
2
  import { Swatch } from "../prototypes/Swatch"
3
3
  import { Button } from "./Button"
4
+ import * as ButtonStories from './Button.stories';
5
+
6
+ <Meta of={ButtonStories} />
4
7
 
5
8
  # Button
6
9
 
@@ -14,15 +17,13 @@ The button component offers flexible usage with a variety of different appearanc
14
17
 
15
18
  There are several props which accept enums to adjust style type, border, and size. For example, to choose the "primary" style and a "small" size, you would pass the `AppearanceStyleType.primary` enum to `styleType` prop and `AppearanceSizeType.small` enum to `size` prop.
16
19
 
17
- <Canvas>
18
- <Story id="actions-button--small-and-primary" />
19
- </Canvas>
20
+ <Canvas of={ButtonStories.SmallAndPrimary} />
20
21
 
21
22
  Other variants include appearances which aren't button-like such as `unstyled` and `inline`.
22
23
 
23
24
  ## Component Properties
24
25
 
25
- <ArgsTable of={Button} />
26
+ <ArgTypes of={Button} />
26
27
 
27
28
  ## Theming Variables
28
29
 
@@ -1,5 +1,5 @@
1
1
  import * as React from "react"
2
- import { withKnobs, text, select } from "@storybook/addon-knobs"
2
+ import { useArgs } from "@storybook/preview-api"
3
3
  import { BADGES } from "../../.storybook/constants"
4
4
  import { Button } from "../actions/Button"
5
5
  import {
@@ -7,18 +7,37 @@ import {
7
7
  AppearanceSizeType,
8
8
  AppearanceStyleType,
9
9
  } from "../global/AppearanceTypes"
10
- import ButtonDocumentation from "./Button.docs.mdx"
11
10
  import { faArrowsRotate, faCoffee, faTable } from "@fortawesome/free-solid-svg-icons"
12
11
 
13
12
  export default {
14
13
  title: "Actions/Button 🚩",
15
- id: "actions-button",
16
- decorators: [(storyFn: any) => <div>{storyFn()}</div>, withKnobs],
14
+ decorators: [(storyFn: any) => <div>{storyFn()}</div>],
17
15
  parameters: {
18
- docs: {
19
- page: ButtonDocumentation,
20
- },
21
16
  badges: [BADGES.GEN2],
17
+ controls: {
18
+ disable: true,
19
+ },
20
+ },
21
+ argTypes: {
22
+ label: {
23
+ control: "text",
24
+ },
25
+ styleType: {
26
+ options: AppearanceStyleType,
27
+ control: "select",
28
+ },
29
+ border: {
30
+ options: AppearanceBorderType,
31
+ control: "select",
32
+ },
33
+ icon: {
34
+ options: { arrowBack: "arrowBack", arrowForward: "arrowForward", coffee: faCoffee, rotate: faArrowsRotate, table: faTable },
35
+ control: "select",
36
+ },
37
+ iconPlacement: {
38
+ options: { left: "left", right: "right" },
39
+ control: "select",
40
+ },
22
41
  },
23
42
  }
24
43
 
@@ -26,63 +45,55 @@ const handleClick = (e: React.MouseEvent) => {
26
45
  alert(`You clicked me! Event: ${e.type}`)
27
46
  }
28
47
 
29
- const StyleTypeStory = { ...AppearanceStyleType, default: undefined }
30
- const BorderTypeStory = { ...AppearanceBorderType, default: undefined }
31
-
32
- export const standard = () => {
33
- const styleSelect = select("Appearance Style", StyleTypeStory, undefined)
34
- const borderSelect = select("Appearance Border", BorderTypeStory, undefined)
35
- const iconSelect = select(
36
- "Icon",
37
- { arrowBack: "arrowBack", arrowForward: "arrowForward", default: undefined },
38
- undefined
39
- )
40
- const iconPlacementSelect = select(
41
- "Icon Placement",
42
- { left: "left", right: "right", default: undefined },
43
- undefined
44
- )
45
-
46
- return (
47
- <>
48
- <Button
49
- styleType={styleSelect}
50
- border={borderSelect}
51
- icon={iconSelect}
52
- iconPlacement={iconPlacementSelect}
53
- onClick={handleClick}
54
- >
55
- {text("Label", "Hello Storybook")}
56
- </Button>
57
-
58
- <p className="mt-10">Try out different styles with the Knobs below.</p>
59
- </>
60
- )
48
+ export const standard = {
49
+ parameters: {
50
+ controls: {
51
+ disable: false,
52
+ },
53
+ },
54
+ args: {
55
+ label: "Hello Storybook",
56
+ },
57
+ render: (args: Record<string, any>) => {
58
+ return (
59
+ <>
60
+ <Button
61
+ styleType={args.styleType}
62
+ border={args.border}
63
+ icon={args.icon}
64
+ iconPlacement={args.iconPlacement}
65
+ onClick={handleClick}
66
+ >
67
+ {args.label}
68
+ </Button>
69
+
70
+ <p className="mt-10">Try out different styles with the controls below.</p>
71
+ </>
72
+ )
73
+ },
61
74
  }
62
75
 
63
- export const withFontAwesomeIcon = () => {
64
- const iconSelect = select("Icon", ["coffee", "rotate", "table"], "rotate")
65
-
66
- const iconsMap = {
67
- coffee: faCoffee,
68
- rotate: faArrowsRotate,
69
- table: faTable,
70
- }
71
-
72
- return (
73
- <>
74
- <Button
75
- icon={iconSelect ? iconsMap[iconSelect] : undefined}
76
- iconSize="medium"
77
- iconPlacement="left"
78
- onClick={handleClick}
79
- >
80
- FontAwesome is awesome
81
- </Button>
82
-
83
- <p className="mt-10">Try out different icons with the Knobs below.</p>
84
- </>
85
- )
76
+ export const withFontAwesomeIcon = {
77
+ parameters: {
78
+ controls: {
79
+ disable: false,
80
+ include: ["icon"]
81
+ },
82
+ },
83
+ args: {
84
+ icon: faArrowsRotate,
85
+ },
86
+ render: (args: Record<string, any>) => {
87
+ return (
88
+ <>
89
+ <Button icon={args.icon} iconSize="medium" iconPlacement="left" onClick={handleClick}>
90
+ FontAwesome is awesome
91
+ </Button>
92
+
93
+ <p className="mt-10">Try out different icons with the controls below.</p>
94
+ </>
95
+ )
96
+ },
86
97
  }
87
98
 
88
99
  export const small = () => (
@@ -1,21 +1,23 @@
1
- import { Canvas, Story, ArgsTable } from "@storybook/addon-docs"
1
+ import { ArgTypes, Canvas, Meta, Story } from "@storybook/blocks"
2
2
  import { Swatch } from "../prototypes/Swatch"
3
3
  import { ButtonGroup } from "./ButtonGroup"
4
+ import * as ButtonGroupStories from './ButtonGroup.stories';
5
+
6
+ <Meta of={ButtonGroupStories} />
4
7
 
5
8
  # ButtonGroup
6
9
 
7
10
  The button group component lets you place multiple buttons along a horizontal or vertical (mobile primarily) axis and group/space buttons according to some simple flex rules.
8
11
 
9
- <Canvas>
10
- <Story id="actions-button-group--two-columns" />
11
- </Canvas>
12
+ <Canvas of={ButtonGroupStories.twoColumns} />
12
13
 
13
14
  <br />
15
+
14
16
  <br />
15
17
 
16
18
  ## Component Properties
17
19
 
18
- <ArgsTable of={ButtonGroup} />
20
+ <ArgTypes of={ButtonGroup} />
19
21
 
20
22
  ## Theming Variables
21
23
 
@@ -2,7 +2,6 @@ import * as React from "react"
2
2
  import { BADGES } from "../../.storybook/constants"
3
3
  import { AppearanceStyleType } from "../.."
4
4
  import Button from "./Button"
5
- import ButtonGroupDocumentation from "./ButtonGroup.docs.mdx"
6
5
 
7
6
  import { ButtonGroup, ButtonGroupSpacing } from "./ButtonGroup"
8
7
 
@@ -10,9 +9,6 @@ export default {
10
9
  title: "Actions/Button Group 🚩",
11
10
  id: "actions-button-group",
12
11
  parameters: {
13
- docs: {
14
- page: ButtonGroupDocumentation,
15
- },
16
12
  badges: [BADGES.GEN2],
17
13
  },
18
14
  }
@@ -8,7 +8,7 @@ export enum ButtonGroupSpacing {
8
8
 
9
9
  export interface ButtonGroupProps {
10
10
  /** Pass either Button components in, or fragments which can contain one or more buttons */
11
- columns: React.ReactNodeArray
11
+ columns: React.ReactNode[]
12
12
  /** Between spacing pushes the columns far apart, even spacing keeps them closer together */
13
13
  spacing?: ButtonGroupSpacing
14
14
  /** When true, buttons will collapse to a single column on small screens and go full-width */
@@ -1,12 +1,13 @@
1
- import { Canvas, Story, ArgsTable } from "@storybook/addon-docs"
1
+ import { ArgTypes, Canvas, Meta } from "@storybook/blocks"
2
2
  import { Swatch } from "../prototypes/Swatch"
3
3
  import { Card } from "./Card"
4
+ import * as CardStories from './Card.stories';
5
+
6
+ <Meta of={CardStories} />
4
7
 
5
8
  # Card
6
9
 
7
- <Canvas>
8
- <Story id="blocks-card--text-content" />
9
- </Canvas>
10
+ <Canvas of={CardStories.TextContent} />
10
11
 
11
12
  The 2nd-generation Card component is intended to serve as a flexible content container with a header, optional content sections, and a footer. Over time our intention is to "port" some other card types and content blocks in the system to use Card as their underlying structure.
12
13
 
@@ -20,25 +21,23 @@ The `<Card.Header>` subcomponent will typically be paired with a child `<Heading
20
21
 
21
22
  You can browse through the various stories for different examples of how you'd pattern a card with various subcomponents. Many of the visual aspects of a Card can be customized using the CSS variables listed below. For example, this "Detroit style" example:
22
23
 
23
- <Canvas>
24
- <Story id="blocks-card--detroit-style" />
25
- </Canvas>
24
+ <Canvas of={CardStories.DetroitStyle} />
26
25
 
27
26
  ## Card Properties
28
27
 
29
- <ArgsTable of={Card} />
28
+ <ArgTypes of={Card} />
30
29
 
31
30
  ## Card.Header Properties
32
31
 
33
- <ArgsTable of={Card.Header} />
32
+ <ArgTypes of={Card.Header} />
34
33
 
35
34
  ## Card.Section Properties
36
35
 
37
- <ArgsTable of={Card.Section} />
36
+ <ArgTypes of={Card.Section} />
38
37
 
39
38
  ## Card.Footer Properties
40
39
 
41
- <ArgsTable of={Card.Footer} />
40
+ <ArgTypes of={Card.Footer} />
42
41
 
43
42
  ## Theming Variables
44
43
 
@@ -3,15 +3,11 @@ import { BADGES } from "../../.storybook/constants"
3
3
  import { AppearanceStyleType, Button, ButtonGroup, ButtonGroupSpacing, LinkButton } from "../.."
4
4
  import { HeadingGroup } from "../headers/HeadingGroup"
5
5
  import Card from "./Card"
6
- import CardDocumentation from "./Card.docs.mdx"
7
6
 
8
7
  export default {
9
8
  title: "Blocks/Card 🚩",
10
9
  id: "blocks/card",
11
10
  parameters: {
12
- docs: {
13
- page: CardDocumentation,
14
- },
15
11
  badges: [BADGES.GEN2],
16
12
  },
17
13
  }
@@ -1,21 +1,23 @@
1
- import { Canvas, Story, ArgsTable } from "@storybook/addon-docs"
1
+ import { ArgTypes, Canvas, Meta } from "@storybook/blocks"
2
2
  import { Swatch } from "../prototypes/Swatch"
3
3
  import { ImageCard, ImageItem } from "./ImageCard"
4
+ import * as ImageCardStories from './ImageCard.stories';
5
+
6
+ <Meta of={ImageCardStories} />
4
7
 
5
8
  # Image Card
6
9
 
7
- The image card component renders an image with optional tags at top and status bars below it. You can optionally pass multiple images in which will faciliate a popup gallery modal automatically.
10
+ The image card component renders an image with optional tags at top and status bars below it. You can optionally pass multiple images in which will facilitate a popup gallery modal automatically.
8
11
 
9
- <Canvas>
10
- <Story id="blocks-image-card--with-one-status-and-tag" />
11
- </Canvas>
12
+ <Canvas of={ImageCardStories.withOneStatusAndTag} />
12
13
 
13
14
  <br />
15
+
14
16
  <br />
15
17
 
16
18
  ## Component Properties
17
19
 
18
- <ArgsTable of={ImageCard} />
20
+ <ArgTypes of={ImageCard} />
19
21
 
20
22
  ## Theming Variables
21
23
 
@@ -4,16 +4,12 @@ import { ImageCard } from "./ImageCard"
4
4
  import { t } from "../helpers/translator"
5
5
  import { ApplicationStatusType } from "../global/ApplicationStatusType"
6
6
  import { IconFillColors, UniversalIconType } from "../icons/Icon"
7
- import ImageCardDocumentation from "./ImageCard.docs.mdx"
8
7
 
9
8
  export default {
10
9
  title: "Blocks/Image Card 🚩",
11
10
  id: "blocks/image-card",
12
11
  decorators: [(storyFn: any) => <div style={{ maxWidth: "700px" }}>{storyFn()}</div>],
13
12
  parameters: {
14
- docs: {
15
- page: ImageCardDocumentation,
16
- },
17
13
  badges: [BADGES.GEN2],
18
14
  },
19
15
  }
@@ -134,7 +134,9 @@ const ImageCard = (props: ImageCardProps) => {
134
134
  props.strings?.defaultImageAltText ??
135
135
  t("listings.buildingImageAltText")
136
136
  }
137
- ref={(el) => (imgRefs.current[0] = el)}
137
+ ref={(el) => {
138
+ imgRefs.current[0] = el
139
+ }}
138
140
  onError={onError}
139
141
  />
140
142
  ) : props.images && displayedImages ? (
@@ -143,7 +145,9 @@ const ImageCard = (props: ImageCardProps) => {
143
145
  key={index}
144
146
  src={image.thumbnailUrl || image.mobileUrl || image.url}
145
147
  alt={getAltText(index, displayedImages, image.description)}
146
- ref={(el) => (imgRefs.current[index] = el)}
148
+ ref={(el) => {
149
+ imgRefs.current[index] = el
150
+ }}
147
151
  onError={onError}
148
152
  />
149
153
  ))
@@ -1,21 +1,23 @@
1
- import { Canvas, Story, ArgsTable } from "@storybook/addon-docs"
1
+ import { ArgTypes, Canvas, Meta } from "@storybook/blocks"
2
2
  import { Swatch } from "../prototypes/Swatch"
3
3
  import { InfoCard } from "./InfoCard"
4
+ import * as InfoCardStories from './InfoCard.stories';
5
+
6
+ <Meta of={InfoCardStories} />
4
7
 
5
8
  # Info Card
6
9
 
7
10
  The Info Card component renders a box with a title, which can optionally be a hyperlink. Beneath the title is an optional subtitle. Beneath the subtitle can be a string, a component, or markdown.
8
11
 
9
- <Canvas>
10
- <Story id="blocks-info-card" />
11
- </Canvas>
12
+ <Canvas of={InfoCardStories.Default} />
12
13
 
13
14
  <br />
15
+
14
16
  <br />
15
17
 
16
18
  ## Component Properties
17
19
 
18
- <ArgsTable of={InfoCard} />
20
+ <ArgTypes of={InfoCard} />
19
21
 
20
22
  ## Theming Variables
21
23
 
@@ -26,7 +28,7 @@ You can apply CSS variables to the `.info-card` selector to customize the appear
26
28
  | `--padding` | Size | Padding around card | `--bloom-s6` |
27
29
  | `--margin-bottom` | Size | Margin beneath card | `--bloom-s4` |
28
30
  | `--border-color` | <Swatch colorVar="--bloom-color-gray-450" /> | Color of border around card | `--bloom-color-gray-450` |
29
- | `--background-color` | <Swatch colorVar="--bloom-color-primary-lighter"/> | Background color of card | `--bloom-color-primary-lighter` |
31
+ | `--background-color` | <Swatch colorVar="--bloom-color-primary-lighter" /> | Background color of card | `--bloom-color-primary-lighter` |
30
32
  | `--title-color` | <Swatch colorVar="--bloom-color-gray-800" /> | Color of title text | `--bloom-color-gray-800` |
31
33
  | `--title-font-size` | Size | Size of title text | `--bloom-font-size-base` |
32
34
  | `--title-font-family` | Font | Font family of title text | `--bloom-font-sans` |
@@ -2,16 +2,12 @@ import React from "react"
2
2
  import { BADGES } from "../../.storybook/constants"
3
3
  import { InfoCard } from "../blocks/InfoCard"
4
4
  import { ExpandableText } from "../actions/ExpandableText"
5
- import InfoCardDocumentation from "./InfoCard.docs.mdx"
6
5
 
7
6
  export default {
8
7
  title: "blocks/Info Card 🚩",
9
8
  decorators: [(storyFn: any) => <div style={{ padding: "1rem" }}>{storyFn()}</div>],
10
9
  id: "blocks/info-card",
11
10
  parameters: {
12
- docs: {
13
- page: InfoCardDocumentation,
14
- },
15
11
  badges: [BADGES.GEN2],
16
12
  },
17
13
  }
@@ -1,23 +1,22 @@
1
- import { Canvas, Story, ArgsTable } from "@storybook/addon-docs"
1
+ import { ArgTypes, Canvas, Meta } from "@storybook/blocks"
2
2
  import { MediaCard } from "./MediaCard"
3
+ import * as MediaCardStories from './MediaCard.stories';
4
+
5
+ <Meta of={MediaCardStories} />
3
6
 
4
7
  # Media Card
5
8
 
6
9
  The media card component is used to describe the title and, optionally, subtitle of a corresponding piece of media. The header section and title of the media card is clickable and displays the media via the required handleClick prop.
7
10
 
8
- <Canvas>
9
- <Story id="blocks-media-card--with-title-and-subtitle" />
10
- </Canvas>
11
- <Canvas>
12
- <Story id="blocks-media-card--with-just-title" />
13
- </Canvas>
14
- <Canvas>
15
- <Story id="blocks-media-card--with-custom-icon" />
16
- </Canvas>
11
+ <Canvas of={MediaCardStories.withTitleAndSubtitle} />
12
+
13
+ <Canvas of={MediaCardStories.withJustTitle} />
14
+
15
+ <Canvas of={MediaCardStories.withCustomIcon} />
17
16
 
18
17
  ## Component Properties
19
18
 
20
- <ArgsTable of={MediaCard} />
19
+ <ArgTypes of={MediaCard} />
21
20
 
22
21
  ## Theming Variables
23
22
 
@@ -1,7 +1,6 @@
1
1
  import * as React from "react"
2
2
  import { MediaCard } from "./MediaCard"
3
3
  import { faCirclePlay } from "@fortawesome/free-solid-svg-icons"
4
- import MediaCardDocumentation from "./MediaCard.docs.mdx"
5
4
  import { BADGES } from "../../.storybook/constants"
6
5
 
7
6
  export default {
@@ -9,9 +8,6 @@ export default {
9
8
  id: "blocks/media-card",
10
9
  decorators: [(storyFn: any) => <div style={{ maxWidth: "313px" }}>{storyFn()}</div>],
11
10
  parameters: {
12
- docs: {
13
- page: MediaCardDocumentation,
14
- },
15
11
  badges: [BADGES.GEN2],
16
12
  },
17
13
  }