@arbor-education/design-system.components 0.15.0 → 0.16.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 (304) hide show
  1. package/.gather/skills/write-stories/SKILL.md +207 -271
  2. package/.storybook/preview.ts +5 -0
  3. package/CHANGELOG.md +23 -0
  4. package/README.md +8 -0
  5. package/component-library.md +144 -13
  6. package/dist/components/articleCard/ArticleCard.stories.d.ts +137 -11
  7. package/dist/components/articleCard/ArticleCard.stories.d.ts.map +1 -1
  8. package/dist/components/articleCard/ArticleCard.stories.js +358 -91
  9. package/dist/components/articleCard/ArticleCard.stories.js.map +1 -1
  10. package/dist/components/avatar/Avatar.stories.d.ts +6 -6
  11. package/dist/components/avatar/Avatar.stories.d.ts.map +1 -1
  12. package/dist/components/avatar/Avatar.stories.js +393 -49
  13. package/dist/components/avatar/Avatar.stories.js.map +1 -1
  14. package/dist/components/avatarGroup/AvatarGroup.stories.d.ts +9 -7
  15. package/dist/components/avatarGroup/AvatarGroup.stories.d.ts.map +1 -1
  16. package/dist/components/avatarGroup/AvatarGroup.stories.js +688 -65
  17. package/dist/components/avatarGroup/AvatarGroup.stories.js.map +1 -1
  18. package/dist/components/banner/Banner.stories.d.ts.map +1 -1
  19. package/dist/components/banner/Banner.stories.js +7 -3
  20. package/dist/components/banner/Banner.stories.js.map +1 -1
  21. package/dist/components/card/Card.stories.d.ts +105 -4
  22. package/dist/components/card/Card.stories.d.ts.map +1 -1
  23. package/dist/components/card/Card.stories.js +336 -18
  24. package/dist/components/card/Card.stories.js.map +1 -1
  25. package/dist/components/combobox/Combobox.stories.d.ts +134 -21
  26. package/dist/components/combobox/Combobox.stories.d.ts.map +1 -1
  27. package/dist/components/combobox/Combobox.stories.js +676 -175
  28. package/dist/components/combobox/Combobox.stories.js.map +1 -1
  29. package/dist/components/datePicker/DatePicker.stories.d.ts +119 -27
  30. package/dist/components/datePicker/DatePicker.stories.d.ts.map +1 -1
  31. package/dist/components/datePicker/DatePicker.stories.js +575 -47
  32. package/dist/components/datePicker/DatePicker.stories.js.map +1 -1
  33. package/dist/components/dateTimePicker/DateTimePicker.stories.d.ts +155 -39
  34. package/dist/components/dateTimePicker/DateTimePicker.stories.d.ts.map +1 -1
  35. package/dist/components/dateTimePicker/DateTimePicker.stories.js +674 -103
  36. package/dist/components/dateTimePicker/DateTimePicker.stories.js.map +1 -1
  37. package/dist/components/editableText/EditableText.stories.d.ts +53 -12
  38. package/dist/components/editableText/EditableText.stories.d.ts.map +1 -1
  39. package/dist/components/editableText/EditableText.stories.js +401 -64
  40. package/dist/components/editableText/EditableText.stories.js.map +1 -1
  41. package/dist/components/formField/FormField.d.ts +4 -0
  42. package/dist/components/formField/FormField.d.ts.map +1 -1
  43. package/dist/components/formField/FormField.js +2 -1
  44. package/dist/components/formField/FormField.js.map +1 -1
  45. package/dist/components/formField/FormField.test.js +5 -0
  46. package/dist/components/formField/FormField.test.js.map +1 -1
  47. package/dist/components/formField/fieldset/Fieldset.stories.d.ts +56 -4
  48. package/dist/components/formField/fieldset/Fieldset.stories.d.ts.map +1 -1
  49. package/dist/components/formField/fieldset/Fieldset.stories.js +534 -28
  50. package/dist/components/formField/fieldset/Fieldset.stories.js.map +1 -1
  51. package/dist/components/formField/inputs/checkbox/CheckboxGroup.d.ts +3 -1
  52. package/dist/components/formField/inputs/checkbox/CheckboxGroup.d.ts.map +1 -1
  53. package/dist/components/formField/inputs/checkbox/CheckboxInput.js +1 -1
  54. package/dist/components/formField/inputs/checkbox/CheckboxInput.js.map +1 -1
  55. package/dist/components/formField/inputs/colourPickerDropdown/ColourPickerDropdown.stories.d.ts +95 -1
  56. package/dist/components/formField/inputs/colourPickerDropdown/ColourPickerDropdown.stories.d.ts.map +1 -1
  57. package/dist/components/formField/inputs/colourPickerDropdown/ColourPickerDropdown.stories.js +386 -9
  58. package/dist/components/formField/inputs/colourPickerDropdown/ColourPickerDropdown.stories.js.map +1 -1
  59. package/dist/components/formField/inputs/radio/RadioButtonGroup.d.ts +6 -2
  60. package/dist/components/formField/inputs/radio/RadioButtonGroup.d.ts.map +1 -1
  61. package/dist/components/formField/inputs/radio/RadioButtonGroup.js.map +1 -1
  62. package/dist/components/formField/inputs/radio/RadioButtonInput.stories.d.ts.map +1 -1
  63. package/dist/components/formField/inputs/radio/RadioButtonInput.stories.js +61 -49
  64. package/dist/components/formField/inputs/radio/RadioButtonInput.stories.js.map +1 -1
  65. package/dist/components/formField/inputs/selectDropdown/SelectDropdown.stories.d.ts +188 -166
  66. package/dist/components/formField/inputs/selectDropdown/SelectDropdown.stories.d.ts.map +1 -1
  67. package/dist/components/formField/inputs/selectDropdown/SelectDropdown.stories.js +821 -160
  68. package/dist/components/formField/inputs/selectDropdown/SelectDropdown.stories.js.map +1 -1
  69. package/dist/components/formField/inputs/time/TimeInput.stories.d.ts +176 -22
  70. package/dist/components/formField/inputs/time/TimeInput.stories.d.ts.map +1 -1
  71. package/dist/components/formField/inputs/time/TimeInput.stories.js +851 -92
  72. package/dist/components/formField/inputs/time/TimeInput.stories.js.map +1 -1
  73. package/dist/components/formField/label/Label.stories.d.ts +54 -5
  74. package/dist/components/formField/label/Label.stories.d.ts.map +1 -1
  75. package/dist/components/formField/label/Label.stories.js +238 -4
  76. package/dist/components/formField/label/Label.stories.js.map +1 -1
  77. package/dist/components/icoText/IcoText.stories.d.ts +32 -6
  78. package/dist/components/icoText/IcoText.stories.d.ts.map +1 -1
  79. package/dist/components/icoText/IcoText.stories.js +309 -14
  80. package/dist/components/icoText/IcoText.stories.js.map +1 -1
  81. package/dist/components/kpiCard/KPICard.stories.d.ts +100 -2
  82. package/dist/components/kpiCard/KPICard.stories.d.ts.map +1 -1
  83. package/dist/components/kpiCard/KPICard.stories.js +354 -10
  84. package/dist/components/kpiCard/KPICard.stories.js.map +1 -1
  85. package/dist/components/kvpList/KVPList.stories.d.ts +57 -4
  86. package/dist/components/kvpList/KVPList.stories.d.ts.map +1 -1
  87. package/dist/components/kvpList/KVPList.stories.js +403 -10
  88. package/dist/components/kvpList/KVPList.stories.js.map +1 -1
  89. package/dist/components/modal/Modal.stories.d.ts +113 -9
  90. package/dist/components/modal/Modal.stories.d.ts.map +1 -1
  91. package/dist/components/modal/Modal.stories.js +633 -13
  92. package/dist/components/modal/Modal.stories.js.map +1 -1
  93. package/dist/components/modal/modalManager/ModalManager.stories.d.ts +34 -10
  94. package/dist/components/modal/modalManager/ModalManager.stories.d.ts.map +1 -1
  95. package/dist/components/modal/modalManager/ModalManager.stories.js +463 -85
  96. package/dist/components/modal/modalManager/ModalManager.stories.js.map +1 -1
  97. package/dist/components/pill/Pill.d.ts.map +1 -1
  98. package/dist/components/pill/Pill.js +1 -1
  99. package/dist/components/pill/Pill.js.map +1 -1
  100. package/dist/components/pill/Pill.stories.d.ts.map +1 -1
  101. package/dist/components/pill/Pill.stories.js +11 -13
  102. package/dist/components/pill/Pill.stories.js.map +1 -1
  103. package/dist/components/row/Row.stories.d.ts +1 -2
  104. package/dist/components/row/Row.stories.d.ts.map +1 -1
  105. package/dist/components/row/Row.stories.js +360 -50
  106. package/dist/components/row/Row.stories.js.map +1 -1
  107. package/dist/components/searchBar/SearchBar.stories.d.ts +52 -4
  108. package/dist/components/searchBar/SearchBar.stories.d.ts.map +1 -1
  109. package/dist/components/searchBar/SearchBar.stories.js +428 -36
  110. package/dist/components/searchBar/SearchBar.stories.js.map +1 -1
  111. package/dist/components/section/Section.stories.d.ts +11 -41
  112. package/dist/components/section/Section.stories.d.ts.map +1 -1
  113. package/dist/components/section/Section.stories.js +494 -56
  114. package/dist/components/section/Section.stories.js.map +1 -1
  115. package/dist/components/singleUser/SingleUser.stories.d.ts +5 -4
  116. package/dist/components/singleUser/SingleUser.stories.d.ts.map +1 -1
  117. package/dist/components/singleUser/SingleUser.stories.js +303 -31
  118. package/dist/components/singleUser/SingleUser.stories.js.map +1 -1
  119. package/dist/components/slideoverManager/SlideoverManager.stories.d.ts +32 -11
  120. package/dist/components/slideoverManager/SlideoverManager.stories.d.ts.map +1 -1
  121. package/dist/components/slideoverManager/SlideoverManager.stories.js +380 -84
  122. package/dist/components/slideoverManager/SlideoverManager.stories.js.map +1 -1
  123. package/dist/components/table/DSDefaultColDef.d.ts.map +1 -1
  124. package/dist/components/table/DSDefaultColDef.js +4 -3
  125. package/dist/components/table/DSDefaultColDef.js.map +1 -1
  126. package/dist/components/table/Table.d.ts +6 -1
  127. package/dist/components/table/Table.d.ts.map +1 -1
  128. package/dist/components/table/Table.js +8 -3
  129. package/dist/components/table/Table.js.map +1 -1
  130. package/dist/components/table/Table.stories.d.ts +3 -0
  131. package/dist/components/table/Table.stories.d.ts.map +1 -1
  132. package/dist/components/table/Table.stories.js +384 -5
  133. package/dist/components/table/Table.stories.js.map +1 -1
  134. package/dist/components/table/Table.test.js +30 -0
  135. package/dist/components/table/Table.test.js.map +1 -1
  136. package/dist/components/table/TableFooter.stories.d.ts +49 -0
  137. package/dist/components/table/TableFooter.stories.d.ts.map +1 -0
  138. package/dist/components/table/TableFooter.stories.js +137 -0
  139. package/dist/components/table/TableFooter.stories.js.map +1 -0
  140. package/dist/components/table/TableHeader.stories.d.ts +93 -0
  141. package/dist/components/table/TableHeader.stories.d.ts.map +1 -0
  142. package/dist/components/table/TableHeader.stories.js +176 -0
  143. package/dist/components/table/TableHeader.stories.js.map +1 -0
  144. package/dist/components/table/cellEditors/DateCellEditor.stories.d.ts +44 -0
  145. package/dist/components/table/cellEditors/DateCellEditor.stories.d.ts.map +1 -0
  146. package/dist/components/table/cellEditors/DateCellEditor.stories.js +186 -0
  147. package/dist/components/table/cellEditors/DateCellEditor.stories.js.map +1 -0
  148. package/dist/components/table/cellRenderers/BooleanCellRenderer.stories.d.ts +40 -0
  149. package/dist/components/table/cellRenderers/BooleanCellRenderer.stories.d.ts.map +1 -0
  150. package/dist/components/table/cellRenderers/BooleanCellRenderer.stories.js +209 -0
  151. package/dist/components/table/cellRenderers/BooleanCellRenderer.stories.js.map +1 -0
  152. package/dist/components/table/cellRenderers/ButtonCellRenderer.stories.d.ts +48 -0
  153. package/dist/components/table/cellRenderers/ButtonCellRenderer.stories.d.ts.map +1 -0
  154. package/dist/components/table/cellRenderers/ButtonCellRenderer.stories.js +244 -0
  155. package/dist/components/table/cellRenderers/ButtonCellRenderer.stories.js.map +1 -0
  156. package/dist/components/table/cellRenderers/CheckboxCellRenderer.d.ts.map +1 -1
  157. package/dist/components/table/cellRenderers/CheckboxCellRenderer.js +3 -1
  158. package/dist/components/table/cellRenderers/CheckboxCellRenderer.js.map +1 -1
  159. package/dist/components/table/cellRenderers/CheckboxCellRenderer.stories.d.ts +64 -0
  160. package/dist/components/table/cellRenderers/CheckboxCellRenderer.stories.d.ts.map +1 -0
  161. package/dist/components/table/cellRenderers/CheckboxCellRenderer.stories.js +241 -0
  162. package/dist/components/table/cellRenderers/CheckboxCellRenderer.stories.js.map +1 -0
  163. package/dist/components/table/cellRenderers/DefaultCellRenderer.stories.d.ts +55 -0
  164. package/dist/components/table/cellRenderers/DefaultCellRenderer.stories.d.ts.map +1 -0
  165. package/dist/components/table/cellRenderers/DefaultCellRenderer.stories.js +245 -0
  166. package/dist/components/table/cellRenderers/DefaultCellRenderer.stories.js.map +1 -0
  167. package/dist/components/table/cellRenderers/InlineTextCellRenderer.stories.d.ts +67 -0
  168. package/dist/components/table/cellRenderers/InlineTextCellRenderer.stories.d.ts.map +1 -0
  169. package/dist/components/table/cellRenderers/InlineTextCellRenderer.stories.js +221 -0
  170. package/dist/components/table/cellRenderers/InlineTextCellRenderer.stories.js.map +1 -0
  171. package/dist/components/table/cellRenderers/SelectDropdownCellRenderer.stories.d.ts +75 -0
  172. package/dist/components/table/cellRenderers/SelectDropdownCellRenderer.stories.d.ts.map +1 -0
  173. package/dist/components/table/cellRenderers/SelectDropdownCellRenderer.stories.js +270 -0
  174. package/dist/components/table/cellRenderers/SelectDropdownCellRenderer.stories.js.map +1 -0
  175. package/dist/components/table/columnFilters/BooleanFilter.stories.d.ts +57 -0
  176. package/dist/components/table/columnFilters/BooleanFilter.stories.d.ts.map +1 -0
  177. package/dist/components/table/columnFilters/BooleanFilter.stories.js +198 -0
  178. package/dist/components/table/columnFilters/BooleanFilter.stories.js.map +1 -0
  179. package/dist/components/table/columnFilters/TimeFilter.stories.d.ts +58 -0
  180. package/dist/components/table/columnFilters/TimeFilter.stories.d.ts.map +1 -0
  181. package/dist/components/table/columnFilters/TimeFilter.stories.js +207 -0
  182. package/dist/components/table/columnFilters/TimeFilter.stories.js.map +1 -0
  183. package/dist/components/table/pagination/PaginationPanel.stories.d.ts +113 -0
  184. package/dist/components/table/pagination/PaginationPanel.stories.d.ts.map +1 -0
  185. package/dist/components/table/pagination/PaginationPanel.stories.js +272 -0
  186. package/dist/components/table/pagination/PaginationPanel.stories.js.map +1 -0
  187. package/dist/components/table/tableControls/HideColumnsDropdown.d.ts.map +1 -1
  188. package/dist/components/table/tableControls/HideColumnsDropdown.js +9 -3
  189. package/dist/components/table/tableControls/HideColumnsDropdown.js.map +1 -1
  190. package/dist/components/table/tableControls/TableControls.stories.d.ts +151 -0
  191. package/dist/components/table/tableControls/TableControls.stories.d.ts.map +1 -0
  192. package/dist/components/table/tableControls/TableControls.stories.js +356 -0
  193. package/dist/components/table/tableControls/TableControls.stories.js.map +1 -0
  194. package/dist/components/table/tableControls/TableSettingsDropdown.d.ts +27 -1
  195. package/dist/components/table/tableControls/TableSettingsDropdown.d.ts.map +1 -1
  196. package/dist/components/table/tableControls/TableSettingsDropdown.js +53 -26
  197. package/dist/components/table/tableControls/TableSettingsDropdown.js.map +1 -1
  198. package/dist/components/table/tableControls/TableSettingsDropdown.test.d.ts +2 -0
  199. package/dist/components/table/tableControls/TableSettingsDropdown.test.d.ts.map +1 -0
  200. package/dist/components/table/tableControls/TableSettingsDropdown.test.js +178 -0
  201. package/dist/components/table/tableControls/TableSettingsDropdown.test.js.map +1 -0
  202. package/dist/components/tabs/Tabs.stories.d.ts +22 -4
  203. package/dist/components/tabs/Tabs.stories.d.ts.map +1 -1
  204. package/dist/components/tabs/Tabs.stories.js +398 -22
  205. package/dist/components/tabs/Tabs.stories.js.map +1 -1
  206. package/dist/components/tabs/TabsItem.stories.d.ts +54 -1
  207. package/dist/components/tabs/TabsItem.stories.d.ts.map +1 -1
  208. package/dist/components/tabs/TabsItem.stories.js +61 -9
  209. package/dist/components/tabs/TabsItem.stories.js.map +1 -1
  210. package/dist/components/toast/Toast.stories.d.ts +103 -10
  211. package/dist/components/toast/Toast.stories.d.ts.map +1 -1
  212. package/dist/components/toast/Toast.stories.js +409 -47
  213. package/dist/components/toast/Toast.stories.js.map +1 -1
  214. package/dist/components/toggle/Toggle.stories.d.ts +61 -46
  215. package/dist/components/toggle/Toggle.stories.d.ts.map +1 -1
  216. package/dist/components/toggle/Toggle.stories.js +311 -122
  217. package/dist/components/toggle/Toggle.stories.js.map +1 -1
  218. package/dist/components/tooltip/Tooltip.stories.d.ts +78 -6
  219. package/dist/components/tooltip/Tooltip.stories.d.ts.map +1 -1
  220. package/dist/components/tooltip/Tooltip.stories.js +413 -7
  221. package/dist/components/tooltip/Tooltip.stories.js.map +1 -1
  222. package/dist/components/tooltip/TooltipWrapper.stories.d.ts +71 -7
  223. package/dist/components/tooltip/TooltipWrapper.stories.d.ts.map +1 -1
  224. package/dist/components/tooltip/TooltipWrapper.stories.js +238 -10
  225. package/dist/components/tooltip/TooltipWrapper.stories.js.map +1 -1
  226. package/dist/index.css +8 -0
  227. package/dist/index.css.map +1 -1
  228. package/dist/utils/PopupParentContext.stories.d.ts +17 -0
  229. package/dist/utils/PopupParentContext.stories.d.ts.map +1 -0
  230. package/dist/utils/PopupParentContext.stories.js +266 -0
  231. package/dist/utils/PopupParentContext.stories.js.map +1 -0
  232. package/dist/utils/getDefaultPopupParent.d.ts.map +1 -1
  233. package/dist/utils/getDefaultPopupParent.js +6 -0
  234. package/dist/utils/getDefaultPopupParent.js.map +1 -1
  235. package/package.json +1 -1
  236. package/src/components/articleCard/ArticleCard.stories.tsx +524 -111
  237. package/src/components/avatar/Avatar.stories.tsx +504 -59
  238. package/src/components/avatarGroup/AvatarGroup.stories.tsx +977 -175
  239. package/src/components/banner/Banner.stories.tsx +7 -3
  240. package/src/components/card/Card.stories.tsx +466 -36
  241. package/src/components/combobox/Combobox.stories.tsx +867 -260
  242. package/src/components/datePicker/DatePicker.stories.tsx +777 -60
  243. package/src/components/dateTimePicker/DateTimePicker.stories.tsx +910 -132
  244. package/src/components/editableText/EditableText.stories.tsx +567 -91
  245. package/src/components/formField/FormField.test.tsx +6 -0
  246. package/src/components/formField/FormField.tsx +5 -0
  247. package/src/components/formField/fieldset/Fieldset.stories.tsx +761 -51
  248. package/src/components/formField/inputs/checkbox/CheckboxGroup.tsx +1 -1
  249. package/src/components/formField/inputs/checkbox/CheckboxInput.tsx +1 -1
  250. package/src/components/formField/inputs/colourPickerDropdown/ColourPickerDropdown.stories.tsx +504 -11
  251. package/src/components/formField/inputs/radio/RadioButtonGroup.tsx +17 -4
  252. package/src/components/formField/inputs/radio/RadioButtonInput.stories.tsx +71 -59
  253. package/src/components/formField/inputs/selectDropdown/SelectDropdown.stories.tsx +1079 -168
  254. package/src/components/formField/inputs/time/TimeInput.stories.tsx +1140 -104
  255. package/src/components/formField/label/Label.stories.tsx +317 -8
  256. package/src/components/icoText/IcoText.stories.tsx +442 -31
  257. package/src/components/kpiCard/KPICard.stories.tsx +475 -30
  258. package/src/components/kvpList/KVPList.stories.tsx +593 -26
  259. package/src/components/modal/Modal.stories.tsx +963 -26
  260. package/src/components/modal/modalManager/ModalManager.stories.tsx +612 -454
  261. package/src/components/pill/Pill.stories.tsx +11 -13
  262. package/src/components/pill/Pill.tsx +1 -0
  263. package/src/components/row/Row.stories.tsx +474 -58
  264. package/src/components/searchBar/SearchBar.stories.tsx +570 -38
  265. package/src/components/section/Section.stories.tsx +723 -70
  266. package/src/components/singleUser/SingleUser.stories.tsx +393 -34
  267. package/src/components/slideoverManager/SlideoverManager.stories.tsx +572 -342
  268. package/src/components/table/DSDefaultColDef.ts +25 -5
  269. package/src/components/table/Table.stories.tsx +460 -5
  270. package/src/components/table/Table.test.tsx +53 -0
  271. package/src/components/table/Table.tsx +9 -2
  272. package/src/components/table/TableFooter.stories.tsx +196 -0
  273. package/src/components/table/TableHeader.stories.tsx +251 -0
  274. package/src/components/table/cellEditors/DateCellEditor.stories.tsx +245 -0
  275. package/src/components/table/cellRenderers/BooleanCellRenderer.stories.tsx +278 -0
  276. package/src/components/table/cellRenderers/ButtonCellRenderer.stories.tsx +333 -0
  277. package/src/components/table/cellRenderers/CheckboxCellRenderer.stories.tsx +337 -0
  278. package/src/components/table/cellRenderers/CheckboxCellRenderer.tsx +5 -1
  279. package/src/components/table/cellRenderers/DefaultCellRenderer.stories.tsx +342 -0
  280. package/src/components/table/cellRenderers/InlineTextCellRenderer.stories.tsx +292 -0
  281. package/src/components/table/cellRenderers/SelectDropdownCellRenderer.stories.tsx +369 -0
  282. package/src/components/table/columnFilters/BooleanFilter.stories.tsx +268 -0
  283. package/src/components/table/columnFilters/TimeFilter.stories.tsx +281 -0
  284. package/src/components/table/pagination/PaginationPanel.stories.tsx +327 -0
  285. package/src/components/table/tableControls/HideColumnsDropdown.tsx +11 -2
  286. package/src/components/table/tableControls/TableControls.stories.tsx +415 -0
  287. package/src/components/table/tableControls/TableSettingsDropdown.test.tsx +207 -0
  288. package/src/components/table/tableControls/TableSettingsDropdown.tsx +103 -39
  289. package/src/components/tabs/Tabs.stories.tsx +540 -60
  290. package/src/components/tabs/TabsItem.stories.tsx +82 -8
  291. package/src/components/toast/Toast.stories.tsx +539 -77
  292. package/src/components/toggle/Toggle.stories.tsx +371 -135
  293. package/src/components/tooltip/Tooltip.stories.tsx +606 -15
  294. package/src/components/tooltip/TooltipWrapper.stories.tsx +348 -12
  295. package/src/docs/Contributing.mdx +241 -0
  296. package/src/docs/UsingComponents.mdx +93 -0
  297. package/src/docs/Welcome.mdx +68 -0
  298. package/src/global.scss +7 -0
  299. package/src/utils/PopupParentContext.stories.tsx +367 -0
  300. package/src/utils/getDefaultPopupParent.ts +6 -0
  301. package/.ralph/storybook-upgrade/knowledge.md +0 -308
  302. package/.ralph/storybook-upgrade/prd.json +0 -777
  303. package/.ralph/storybook-upgrade/progress.md +0 -342
  304. package/src/components/table/TableWIP.mdx +0 -3
@@ -1,52 +1,324 @@
1
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Controls, Heading as DocHeading, Markdown, Primary as DocPrimary, Stories, Subtitle, Title, } from '@storybook/addon-docs/blocks';
1
3
  import { SingleUser } from './SingleUser';
4
+ // ---------------------------------------------------------------------------
5
+ // Content strings for the custom DocsPage
6
+ // ---------------------------------------------------------------------------
7
+ const DESCRIPTION_INTRO = [
8
+ '`SingleUser` renders a user identity pill — an avatar paired with a visible name label.',
9
+ 'The avatar is always decorative (`aria-hidden="true"`) so the `label` prop is the sole accessible name for the element.',
10
+ 'The component is built on top of the [`Avatar`](?path=/docs/components-avatar--docs) component and inherits its `src` and `initials` props.',
11
+ ].join(' ');
12
+ const PROPS_INTRO = 'The preview below is wired to the **Controls** panel — tweak any prop to see the story update in real time.';
13
+ const USAGE_GUIDANCE = [
14
+ '### When to use',
15
+ '',
16
+ '- Displaying a named user inline — in a table cell, a row label, a card header, or a list of assignees.',
17
+ '- Anywhere a bare avatar would lack context — the label removes ambiguity about who the avatar represents.',
18
+ '- As a compact, non-interactive identity chip (e.g. "Assigned to · Sarah Okafor").',
19
+ '',
20
+ '---',
21
+ '',
22
+ '### When NOT to use',
23
+ '',
24
+ '| Situation | Use instead |',
25
+ '|---|---|',
26
+ '| Multiple users side by side | [`AvatarGroup`](?path=/docs/components-avatargroup--docs) |',
27
+ '| Avatar without a text label | [`Avatar`](?path=/docs/components-avatar--docs) directly |',
28
+ '| Clickable user link | Wrap `SingleUser` in an anchor or use a `Row` with `onClick` |',
29
+ '| User selection | A dropdown or autocomplete input |',
30
+ ].join('\n');
31
+ const DEVELOPER_NOTES = [
32
+ '### Avatar is always decorative',
33
+ '',
34
+ 'The inner `Avatar` is always rendered with `aria-hidden="true"` and `alt=""`. This means:',
35
+ '',
36
+ "- The `label` prop is the **only** accessible name — ensure it contains the user's full name.",
37
+ '- Screen readers announce the label text only; they will not announce initials or image alt text.',
38
+ '- You **cannot** override this behaviour via props — it is intentional design.',
39
+ '',
40
+ '---',
41
+ '',
42
+ '### Two className props',
43
+ '',
44
+ '`SingleUser` accepts two distinct `className` props:',
45
+ '',
46
+ '| Prop | Target element | Use case |',
47
+ '|---|---|---|',
48
+ '| `className` | Root `<span>` | Outer layout, margins, flex order |',
49
+ '| `avatarClassName` | Inner `<Avatar>` | Avatar-specific overrides |',
50
+ '',
51
+ '---',
52
+ '',
53
+ '### Default size is `"small"`',
54
+ '',
55
+ '> **Important:** `SingleUser` defaults to `size="small"`, not `"medium"` (which is `Avatar`\'s own default).',
56
+ '> Always pass `size` explicitly when a specific size is required.',
57
+ '',
58
+ '---',
59
+ '',
60
+ '### forwardRef',
61
+ '',
62
+ '`SingleUser` uses `React.forwardRef` and exposes a ref to the root `<span>` element.',
63
+ '',
64
+ '---',
65
+ '',
66
+ '### TypeScript types',
67
+ '',
68
+ '```ts',
69
+ "import { SingleUser } from '@arbor-education/design-system.components';",
70
+ "import type { SingleUserProps } from '@arbor-education/design-system.components';",
71
+ '',
72
+ 'type SingleUserProps = {',
73
+ ' label: string; // required — also the only accessible name',
74
+ ' className?: string; // applied to the root <span>',
75
+ ' avatarClassName?: string; // applied to the inner <Avatar>',
76
+ " size?: 'small' | 'medium' | 'large' | 'extra-large'; // default: 'small'",
77
+ ' src?: string; // avatar image URL',
78
+ ' initials?: string; // shown when src is absent or fails to load',
79
+ ' // ...plus remaining AvatarProps (excluding className, alt, size)',
80
+ '};',
81
+ '```',
82
+ ].join('\n');
83
+ const RELATED_COMPONENTS = [
84
+ '## Related components',
85
+ '',
86
+ '[Avatar](?path=/docs/components-avatar--docs) · [AvatarGroup](?path=/docs/components-avatargroup--docs) · [Row](?path=/docs/components-row--docs)',
87
+ ].join('\n');
88
+ // ---------------------------------------------------------------------------
89
+ // Custom DocsPage
90
+ // ---------------------------------------------------------------------------
91
+ function SingleUserDocsPage() {
92
+ return (_jsxs(_Fragment, { children: [_jsx(Title, {}), _jsx(Subtitle, {}), _jsx(Markdown, { children: DESCRIPTION_INTRO }), _jsx(DocHeading, { children: "Interactive example" }), _jsx(Markdown, { children: PROPS_INTRO }), _jsx(DocPrimary, {}), _jsx(Controls, {}), _jsx(DocHeading, { children: "Usage guidance" }), _jsx(Markdown, { children: USAGE_GUIDANCE }), _jsx(DocHeading, { children: "Developer notes" }), _jsx(Markdown, { children: DEVELOPER_NOTES }), _jsx(DocHeading, { children: "Examples" }), _jsx(Stories, { title: "" }), _jsx(Markdown, { children: RELATED_COMPONENTS })] }));
93
+ }
94
+ // ---------------------------------------------------------------------------
95
+ // Meta
96
+ // ---------------------------------------------------------------------------
2
97
  const meta = {
3
98
  title: 'Components/SingleUser',
4
99
  component: SingleUser,
5
100
  tags: ['autodocs'],
101
+ parameters: {
102
+ layout: 'padded',
103
+ docs: {
104
+ page: SingleUserDocsPage,
105
+ },
106
+ },
107
+ argTypes: {
108
+ label: {
109
+ description: [
110
+ 'The visible name label rendered alongside the avatar.',
111
+ 'This is also the **only** accessible name — the inner avatar is always `aria-hidden`.',
112
+ "Always pass the user's full name.",
113
+ ].join(' '),
114
+ control: 'text',
115
+ table: {
116
+ type: { summary: 'string' },
117
+ defaultValue: { summary: 'undefined' },
118
+ },
119
+ },
120
+ size: {
121
+ description: [
122
+ 'Controls the size of the inner avatar.',
123
+ "Defaults to `\"small\"` — note this differs from `Avatar`'s own default of `\"medium\"`.",
124
+ ].join(' '),
125
+ control: 'select',
126
+ options: ['small', 'medium', 'large', 'extra-large'],
127
+ table: {
128
+ type: { summary: "'small' | 'medium' | 'large' | 'extra-large'" },
129
+ defaultValue: { summary: "'small'" },
130
+ },
131
+ },
132
+ src: {
133
+ description: [
134
+ 'URL of the avatar image.',
135
+ 'When absent or broken, `initials` are used as a fallback.',
136
+ ].join(' '),
137
+ control: 'text',
138
+ table: {
139
+ type: { summary: 'string' },
140
+ defaultValue: { summary: 'undefined' },
141
+ },
142
+ },
143
+ initials: {
144
+ description: 'One or two initials shown inside the avatar when no `src` is provided or when the image fails to load.',
145
+ control: 'text',
146
+ table: {
147
+ type: { summary: 'string' },
148
+ defaultValue: { summary: 'undefined' },
149
+ },
150
+ },
151
+ className: {
152
+ description: [
153
+ 'Additional CSS class names applied to the **root** `<span>` wrapper.',
154
+ 'Use `avatarClassName` to target the inner avatar specifically.',
155
+ ].join(' '),
156
+ control: 'text',
157
+ table: {
158
+ type: { summary: 'string' },
159
+ defaultValue: { summary: 'undefined' },
160
+ },
161
+ },
162
+ avatarClassName: {
163
+ description: [
164
+ 'Additional CSS class names applied only to the **inner** `<Avatar>` element.',
165
+ 'Useful for avatar-specific overrides without affecting the root layout.',
166
+ ].join(' '),
167
+ control: 'text',
168
+ table: {
169
+ type: { summary: 'string' },
170
+ defaultValue: { summary: 'undefined' },
171
+ },
172
+ },
173
+ },
6
174
  };
7
175
  export default meta;
176
+ // ---------------------------------------------------------------------------
177
+ // Helper
178
+ // ---------------------------------------------------------------------------
8
179
  const withDescription = (story, description) => ({
9
180
  ...story,
10
181
  parameters: {
11
182
  ...story.parameters,
12
- docs: {
13
- ...story.parameters?.docs,
14
- description: {
15
- story: description,
16
- },
17
- },
183
+ docs: { ...story.parameters?.docs, description: { story: description } },
18
184
  },
19
185
  });
20
- const sampleSrc = 'https://i.pravatar.cc/150?img=12';
21
- export const WithImage = withDescription({
186
+ // ---------------------------------------------------------------------------
187
+ // Stories
188
+ // ---------------------------------------------------------------------------
189
+ export const Default = withDescription({
22
190
  args: {
23
- label: 'Jordan Matthews',
24
- src: sampleSrc,
191
+ label: 'Sarah Okafor',
192
+ initials: 'SO',
193
+ size: 'small',
25
194
  },
26
- }, 'Displays `SingleUser` with an avatar image and the default small layout.');
27
- export const WithInitials = withDescription({
28
- args: {
29
- label: 'Riley Chen',
30
- initials: 'RC',
195
+ render: args => _jsx(SingleUser, { ...args }),
196
+ }, 'The default story is wired to the Controls panel. Adjust `label`, `initials`, `src`, and `size` to see the component update in real time.');
197
+ export const WithPhoto = withDescription({
198
+ parameters: {
199
+ controls: { disable: true },
200
+ docs: {
201
+ source: {
202
+ language: 'tsx',
203
+ code: `
204
+ import { SingleUser } from '@arbor-education/design-system.components';
205
+
206
+ function TeacherIdentity() {
207
+ return (
208
+ <SingleUser
209
+ label="Miss Clara Jones"
210
+ src="https://i.pravatar.cc/150?img=47"
211
+ size="medium"
212
+ />
213
+ );
214
+ }
215
+ export default TeacherIdentity;
216
+ `.trim(),
217
+ },
218
+ },
31
219
  },
32
- }, 'Uses initials when no image source is provided.');
33
- export const Placeholder = withDescription({
34
- args: {
35
- label: 'Invited user',
220
+ render: () => (_jsx(SingleUser, { label: "Miss Clara Jones", src: "https://i.pravatar.cc/150?img=47", size: "medium" })),
221
+ }, 'When a `src` URL is provided the avatar displays the photo. If the image fails to load, the component falls back to `initials` if supplied. The avatar is still `aria-hidden` regardless — `label` remains the only accessible name.');
222
+ export const AllSizes = withDescription({
223
+ parameters: {
224
+ controls: { disable: true },
225
+ docs: {
226
+ source: {
227
+ language: 'tsx',
228
+ code: `
229
+ import { SingleUser } from '@arbor-education/design-system.components';
230
+
231
+ function SizeShowcase() {
232
+ return (
233
+ <div style={{ display: 'flex', flexDirection: 'column', gap: 'var(--spacing-medium)' }}>
234
+ <SingleUser label="James Okafor" initials="JO" size="small" />
235
+ <SingleUser label="James Okafor" initials="JO" size="medium" />
236
+ <SingleUser label="James Okafor" initials="JO" size="large" />
237
+ <SingleUser label="James Okafor" initials="JO" size="extra-large" />
238
+ </div>
239
+ );
240
+ }
241
+ export default SizeShowcase;
242
+ `.trim(),
243
+ },
244
+ },
36
245
  },
37
- }, 'Shows the placeholder avatar treatment when neither image nor initials are supplied.');
38
- export const MediumAvatar = withDescription({
39
- name: 'Size override (medium)',
40
- args: {
41
- label: 'Taylor Brooks',
42
- initials: 'TB',
43
- size: 'medium',
246
+ render: () => (_jsxs("div", { style: { display: 'flex', flexDirection: 'column', gap: 'var(--spacing-medium)' }, children: [_jsx(SingleUser, { label: "James Okafor", initials: "JO", size: "small" }), _jsx(SingleUser, { label: "James Okafor", initials: "JO", size: "medium" }), _jsx(SingleUser, { label: "James Okafor", initials: "JO", size: "large" }), _jsx(SingleUser, { label: "James Okafor", initials: "JO", size: "extra-large" })] })),
247
+ }, "All four supported sizes. `\"small\"` is the **default** — which differs from the underlying `Avatar` component's own default of `\"medium\"`. Always pass `size` explicitly when a specific size is required.");
248
+ export const InitialsFallback = withDescription({
249
+ parameters: {
250
+ controls: { disable: true },
251
+ docs: {
252
+ source: {
253
+ language: 'tsx',
254
+ code: `
255
+ import { SingleUser } from '@arbor-education/design-system.components';
256
+
257
+ function StaffList() {
258
+ return (
259
+ <div style={{ display: 'flex', flexDirection: 'column', gap: 'var(--spacing-small)' }}>
260
+ <SingleUser label="Dorothy Zbornak" initials="DZ" />
261
+ <SingleUser label="Rose Nylund" initials="RN" />
262
+ <SingleUser label="Blanche Devereaux" initials="BD" />
263
+ <SingleUser label="Sophia Petrillo" initials="SP" />
264
+ </div>
265
+ );
266
+ }
267
+ export default StaffList;
268
+ `.trim(),
269
+ },
270
+ },
271
+ },
272
+ render: () => (_jsxs("div", { style: { display: 'flex', flexDirection: 'column', gap: 'var(--spacing-small)' }, children: [_jsx(SingleUser, { label: "Dorothy Zbornak", initials: "DZ" }), _jsx(SingleUser, { label: "Rose Nylund", initials: "RN" }), _jsx(SingleUser, { label: "Blanche Devereaux", initials: "BD" }), _jsx(SingleUser, { label: "Sophia Petrillo", initials: "SP" })] })),
273
+ }, 'When no `src` is provided, the avatar falls back to `initials`. One or two characters are recommended for legibility across all sizes.');
274
+ export const TwoClassNameProps = withDescription({
275
+ parameters: {
276
+ controls: { disable: true },
277
+ docs: {
278
+ source: {
279
+ language: 'tsx',
280
+ code: `
281
+ import { SingleUser } from '@arbor-education/design-system.components';
282
+
283
+ function AssignedUser() {
284
+ return (
285
+ <SingleUser
286
+ label="Amara Osei-Bonsu"
287
+ initials="AO"
288
+ className="my-root-override"
289
+ avatarClassName="my-avatar-override"
290
+ />
291
+ );
292
+ }
293
+ export default AssignedUser;
294
+ `.trim(),
295
+ },
296
+ },
44
297
  },
45
- }, 'Demonstrates overriding the default avatar size within the SingleUser pill.');
298
+ render: () => (_jsx(SingleUser, { label: "Amara Osei-Bonsu", initials: "AO", className: "my-root-override", avatarClassName: "my-avatar-override" })),
299
+ }, '`SingleUser` exposes two separate `className` props: `className` targets the **root `<span>`** and `avatarClassName` targets only the **inner `<Avatar>`**. Use them independently to avoid unintended style bleed.');
46
300
  export const LongLabel = withDescription({
47
- args: {
48
- label: 'Dr. Alexandrina Constantinopolous-Worthington',
49
- initials: 'AC',
301
+ parameters: {
302
+ controls: { disable: true },
303
+ docs: {
304
+ source: {
305
+ language: 'tsx',
306
+ code: `
307
+ import { SingleUser } from '@arbor-education/design-system.components';
308
+
309
+ function LongNameExample() {
310
+ return (
311
+ <div style={{ display: 'flex', flexDirection: 'column', gap: 'var(--spacing-small)' }}>
312
+ <SingleUser label="Mrs Jacqueline Abernathy-Thornton" initials="JA" />
313
+ <SingleUser label="Mr Bartholomew Featherington-Smythe" initials="BF" size="medium" />
314
+ </div>
315
+ );
316
+ }
317
+ export default LongNameExample;
318
+ `.trim(),
319
+ },
320
+ },
50
321
  },
51
- }, 'Exercises the component with a longer label so text wrapping and spacing can be reviewed.');
322
+ render: () => (_jsxs("div", { style: { display: 'flex', flexDirection: 'column', gap: 'var(--spacing-small)' }, children: [_jsx(SingleUser, { label: "Mrs Jacqueline Abernathy-Thornton", initials: "JA" }), _jsx(SingleUser, { label: "Mr Bartholomew Featherington-Smythe", initials: "BF", size: "medium" })] })),
323
+ }, 'Long display names flow naturally — the label has no enforced max-width and extends the pill as needed. Apply a width constraint via `className` if truncation is required.');
52
324
  //# sourceMappingURL=SingleUser.stories.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SingleUser.stories.js","sourceRoot":"","sources":["../../../src/components/singleUser/SingleUser.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,MAAM,IAAI,GAA4B;IACpC,KAAK,EAAE,uBAAuB;IAC9B,SAAS,EAAE,UAAU;IACrB,IAAI,EAAE,CAAC,UAAU,CAAC;CACnB,CAAC;AAEF,eAAe,IAAI,CAAC;AAIpB,MAAM,eAAe,GAAG,CAAC,KAAY,EAAE,WAAmB,EAAS,EAAE,CAAC,CAAC;IACrE,GAAG,KAAK;IACR,UAAU,EAAE;QACV,GAAG,KAAK,CAAC,UAAU;QACnB,IAAI,EAAE;YACJ,GAAG,KAAK,CAAC,UAAU,EAAE,IAAI;YACzB,WAAW,EAAE;gBACX,KAAK,EAAE,WAAW;aACnB;SACF;KACF;CACF,CAAC,CAAC;AAEH,MAAM,SAAS,GAAG,kCAAkC,CAAC;AAErD,MAAM,CAAC,MAAM,SAAS,GAAU,eAAe,CAAC;IAC9C,IAAI,EAAE;QACJ,KAAK,EAAE,iBAAiB;QACxB,GAAG,EAAE,SAAS;KACf;CACF,EAAE,0EAA0E,CAAC,CAAC;AAE/E,MAAM,CAAC,MAAM,YAAY,GAAU,eAAe,CAAC;IACjD,IAAI,EAAE;QACJ,KAAK,EAAE,YAAY;QACnB,QAAQ,EAAE,IAAI;KACf;CACF,EAAE,iDAAiD,CAAC,CAAC;AAEtD,MAAM,CAAC,MAAM,WAAW,GAAU,eAAe,CAAC;IAChD,IAAI,EAAE;QACJ,KAAK,EAAE,cAAc;KACtB;CACF,EAAE,sFAAsF,CAAC,CAAC;AAE3F,MAAM,CAAC,MAAM,YAAY,GAAU,eAAe,CAAC;IACjD,IAAI,EAAE,wBAAwB;IAC9B,IAAI,EAAE;QACJ,KAAK,EAAE,eAAe;QACtB,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE,QAAQ;KACf;CACF,EAAE,6EAA6E,CAAC,CAAC;AAElF,MAAM,CAAC,MAAM,SAAS,GAAU,eAAe,CAAC;IAC9C,IAAI,EAAE;QACJ,KAAK,EAAE,+CAA+C;QACtD,QAAQ,EAAE,IAAI;KACf;CACF,EAAE,2FAA2F,CAAC,CAAC"}
1
+ {"version":3,"file":"SingleUser.stories.js","sourceRoot":"","sources":["../../../src/components/singleUser/SingleUser.stories.tsx"],"names":[],"mappings":";AACA,OAAO,EACL,QAAQ,EACR,OAAO,IAAI,UAAU,EACrB,QAAQ,EACR,OAAO,IAAI,UAAU,EACrB,OAAO,EACP,QAAQ,EACR,KAAK,GACN,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,8EAA8E;AAC9E,0CAA0C;AAC1C,8EAA8E;AAE9E,MAAM,iBAAiB,GAAG;IACxB,yFAAyF;IACzF,yHAAyH;IACzH,6IAA6I;CAC9I,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAEZ,MAAM,WAAW,GACb,6GAA6G,CAAC;AAElH,MAAM,cAAc,GAAG;IACrB,iBAAiB;IACjB,EAAE;IACF,yGAAyG;IACzG,4GAA4G;IAC5G,oFAAoF;IACpF,EAAE;IACF,KAAK;IACL,EAAE;IACF,qBAAqB;IACrB,EAAE;IACF,6BAA6B;IAC7B,WAAW;IACX,6FAA6F;IAC7F,4FAA4F;IAC5F,wFAAwF;IACxF,uDAAuD;CACxD,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAEb,MAAM,eAAe,GAAG;IACtB,iCAAiC;IACjC,EAAE;IACF,2FAA2F;IAC3F,EAAE;IACF,+FAA+F;IAC/F,mGAAmG;IACnG,gFAAgF;IAChF,EAAE;IACF,KAAK;IACL,EAAE;IACF,yBAAyB;IACzB,EAAE;IACF,sDAAsD;IACtD,EAAE;IACF,sCAAsC;IACtC,eAAe;IACf,qEAAqE;IACrE,sEAAsE;IACtE,EAAE;IACF,KAAK;IACL,EA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IAAI,EAAE;;;;;;;;;;;;CAYf,CAAC,IAAI,EAAE;aACC;SACF;KACF;IACD,MAAM,EAAE,GAAG,EAAE,CAAC,CACZ,eAAK,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,QAAQ,EAAE,GAAG,EAAE,sBAAsB,EAAE,aACnF,KAAC,UAAU,IAAC,KAAK,EAAC,mCAAmC,EAAC,QAAQ,EAAC,IAAI,GAAG,EACtE,KAAC,UAAU,IAAC,KAAK,EAAC,qCAAqC,EAAC,QAAQ,EAAC,IAAI,EAAC,IAAI,EAAC,QAAQ,GAAG,IAClF,CACP;CACF,EACD,6KAA6K,CAC9K,CAAC"}
@@ -1,15 +1,36 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
2
- import { type IconName } from '../icon/allowedIcons';
3
- type SlideoverStoryArgs = {
4
- headerIcon?: IconName;
5
- centerHeaderText?: boolean;
1
+ import type { StoryObj } from '@storybook/react-vite';
2
+ declare function SlideoverManagerDocsPage(): import("react/jsx-runtime").JSX.Element;
3
+ declare const meta: {
4
+ title: string;
5
+ component: (props: {
6
+ slideovers: import("../slideover/Slideover").SlideoverProps[];
7
+ }) => import("react/jsx-runtime").JSX.Element;
8
+ tags: string[];
9
+ parameters: {
10
+ layout: string;
11
+ docs: {
12
+ page: typeof SlideoverManagerDocsPage;
13
+ };
14
+ };
15
+ argTypes: {
16
+ slideovers: {
17
+ control: false;
18
+ description: string;
19
+ table: {
20
+ type: {
21
+ summary: string;
22
+ };
23
+ defaultValue: {
24
+ summary: string;
25
+ };
26
+ };
27
+ };
28
+ };
6
29
  };
7
- declare const meta: Meta<SlideoverStoryArgs>;
8
30
  export default meta;
9
- type Story = StoryObj<SlideoverStoryArgs>;
31
+ type Story = StoryObj<typeof meta>;
10
32
  export declare const Default: Story;
11
- export declare const WithSections: Story;
12
- export declare const WithFormFields: Story;
13
- export declare const WithFooterContent: Story;
14
- export declare const WithScrollableContent: Story;
33
+ export declare const WithFooterActions: Story;
34
+ export declare const StackedSlideovers: Story;
35
+ export declare const HideBackButton: Story;
15
36
  //# sourceMappingURL=SlideoverManager.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SlideoverManager.stories.d.ts","sourceRoot":"","sources":["../../../src/components/slideoverManager/SlideoverManager.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAOvD,OAAO,EAAgB,KAAK,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAEnE,KAAK,kBAAkB,GAAG;IACxB,UAAU,CAAC,EAAE,QAAQ,CAAC;IACtB,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B,CAAC;AAEF,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,kBAAkB,CAkClC,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,kBAAkB,CAAC,CAAC;AA0B1C,eAAO,MAAM,OAAO,EAAE,KAoBrB,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,KA+B1B,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,KAmC5B,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,KAmE/B,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,KAsInC,CAAC"}
1
+ {"version":3,"file":"SlideoverManager.stories.d.ts","sourceRoot":"","sources":["../../../src/components/slideoverManager/SlideoverManager.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAuI5D,iBAAS,wBAAwB,4CAehC;AAMD,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;CAoB+B,CAAC;AAE1C,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAmNnC,eAAO,MAAM,OAAO,EAAE,KA4CrB,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,KAqD/B,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,KA4D/B,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,KAkD5B,CAAC"}