@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,102 +1,398 @@
1
- import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
1
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Heading as DocHeading, Markdown, Stories, Subtitle, Title, } from '@storybook/addon-docs/blocks';
2
3
  import { SlideoverManager } from './SlideoverManager';
3
4
  import { SlideoverUtils } from '../../utils/SlideoverUtils';
4
5
  import { Button } from '../button/Button';
5
- import { Section } from '../section/Section';
6
6
  import { FormField } from '../formField/FormField';
7
- import { generateUuid } from '../../utils/generateUuid';
8
- import { allowedIcons } from '../icon/allowedIcons';
7
+ import { Section } from '../section/Section';
8
+ // ---------------------------------------------------------------------------
9
+ // Docs page content
10
+ // ---------------------------------------------------------------------------
11
+ const DESCRIPTION_INTRO = [
12
+ '`SlideoverManager` is a container that manages a **stack** of slideover panels.',
13
+ 'Mount it once near the root of your application and push slideovers onto the stack via `SlideoverUtils.addSlideover()`.',
14
+ 'The built-in **Back** button pops the top panel, enabling drill-down navigation patterns.',
15
+ ].join(' ');
16
+ const USAGE_GUIDANCE = [
17
+ '### When to use',
18
+ '',
19
+ '- **Editing a record** while keeping the parent list visible in context',
20
+ '- **Detail panels** — viewing supplementary information without a full-page navigation',
21
+ '- **Drill-down flows** — e.g. Pupil → Assessments → Edit Assessment (stacked panels)',
22
+ '',
23
+ '---',
24
+ '',
25
+ '### When NOT to use',
26
+ '',
27
+ '| Situation | Use instead |',
28
+ '|---|---|',
29
+ '| A short confirmation or irreversible action | [`Modal`](?path=/docs/components-modals-modal--docs) — modals are better for blocking decisions |',
30
+ '| Navigation to a distinct page/route | Standard page navigation |',
31
+ '| A floating menu or dropdown | [`Dropdown`](?path=/docs/components-dropdown--docs) |',
32
+ '',
33
+ '---',
34
+ '',
35
+ '### `SlideoverProps` — what goes inside each panel',
36
+ '',
37
+ '| Prop | Type | Default | Description |',
38
+ '|---|---|---|---|',
39
+ '| `title` | `string` | — | Header title text |',
40
+ '| `children` | `ReactNode` | — | Main scrollable content |',
41
+ '| `footerContents` | `ReactNode` | — | Sticky footer — use for primary actions (Save / Cancel) |',
42
+ '| `headerIcon` | `IconName` | — | Icon rendered next to the title |',
43
+ '| `centerHeaderText` | `boolean` | `true` | Whether the header text is centred |',
44
+ '| `hideBackButton` | `boolean` | — | Hides the Back chevron button in the header |',
45
+ '',
46
+ '---',
47
+ '',
48
+ '### `SlideoverManager` props',
49
+ '',
50
+ '| Prop | Type | Default | Description |',
51
+ '|---|---|---|---|',
52
+ '| `slideovers` | `SlideoverProps[]` | — | Initial stack of slideovers to mount pre-opened |',
53
+ ].join('\n');
54
+ const DEVELOPER_NOTES = [
55
+ '### Setup — mount once at the app root',
56
+ '',
57
+ '`SlideoverManager` must be mounted **once** near the root of your application.',
58
+ 'It subscribes to global PubSub events — mounting multiple instances means all receive the same events,',
59
+ 'causing duplicate slideovers.',
60
+ '',
61
+ '```tsx',
62
+ '// App root',
63
+ 'function App() {',
64
+ ' return (',
65
+ ' <div>',
66
+ ' <SlideoverManager slideovers={[]} />',
67
+ ' <YourRouter />',
68
+ ' </div>',
69
+ ' );',
70
+ '}',
71
+ '```',
72
+ '',
73
+ '---',
74
+ '',
75
+ '### Pushing and popping slideovers',
76
+ '',
77
+ '```ts',
78
+ "import { SlideoverUtils } from '@arbor-education/design-system.components';",
79
+ '',
80
+ '// Push a new panel onto the stack',
81
+ 'SlideoverUtils.addSlideover({',
82
+ " title: 'Edit Pupil',",
83
+ ' children: <EditPupilForm />,',
84
+ ' footerContents: (',
85
+ ' <>',
86
+ ' <Button variant="secondary" onClick={SlideoverUtils.removeSlideover}>Cancel</Button>',
87
+ ' <Button onClick={handleSave}>Save</Button>',
88
+ ' </>',
89
+ ' ),',
90
+ '});',
91
+ '',
92
+ '// Pop the top panel',
93
+ 'SlideoverUtils.removeSlideover();',
94
+ '',
95
+ '// Clear the entire stack',
96
+ 'SlideoverUtils.removeAllSlideovers();',
97
+ '```',
98
+ '',
99
+ '---',
100
+ '',
101
+ '### Stacking behaviour',
102
+ '',
103
+ 'Each `SlideoverUtils.addSlideover()` call pushes a new panel on top of the current one.',
104
+ 'The **Back** button (rendered automatically in each header) calls `SlideoverUtils.removeSlideover()` to pop the top panel.',
105
+ 'Set `hideBackButton={true}` on panels that should not allow the user to go back — use your own close action instead.',
106
+ '',
107
+ '---',
108
+ '',
109
+ '### Accessibility',
110
+ '',
111
+ '- The overlay dims the background and traps focus inside the active slideover panel.',
112
+ '- The Back button is keyboard accessible and labelled.',
113
+ '- Ensure the `title` prop is always set — it is the visible and accessible heading for the panel.',
114
+ ].join('\n');
115
+ const RELATED_COMPONENTS = [
116
+ '## Related components',
117
+ '',
118
+ '[Modal](?path=/docs/components-modals-modal--docs) · [ModalManager](?path=/docs/components-modals-modalmanager--docs) · [Section](?path=/docs/components-section--docs) · [Button](?path=/docs/components-button--docs)',
119
+ ].join('\n');
120
+ // ---------------------------------------------------------------------------
121
+ // Docs page
122
+ // ---------------------------------------------------------------------------
123
+ function SlideoverManagerDocsPage() {
124
+ return (_jsxs(_Fragment, { children: [_jsx(Title, {}), _jsx(Subtitle, {}), _jsx(Markdown, { children: DESCRIPTION_INTRO }), _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 })] }));
125
+ }
126
+ // ---------------------------------------------------------------------------
127
+ // Meta
128
+ // ---------------------------------------------------------------------------
9
129
  const meta = {
10
130
  title: 'Components/SlideoverManager',
131
+ component: SlideoverManager,
132
+ tags: ['autodocs'],
11
133
  parameters: {
12
134
  layout: 'fullscreen',
135
+ docs: {
136
+ page: SlideoverManagerDocsPage,
137
+ },
13
138
  },
14
139
  argTypes: {
15
- headerIcon: {
16
- control: { type: 'select' },
17
- options: Object.keys(allowedIcons),
18
- description: 'Icon to display in the slideover header',
19
- },
20
- centerHeaderText: {
21
- control: { type: 'boolean' },
22
- description: 'Whether to center the header text',
140
+ slideovers: {
141
+ control: false,
142
+ description: 'Initial stack of `SlideoverProps` to display on mount. Pass `[]` for the standard programmatic use case.',
143
+ table: {
144
+ type: { summary: 'SlideoverProps[]' },
145
+ defaultValue: { summary: '[]' },
146
+ },
23
147
  },
24
148
  },
25
- args: {
26
- centerHeaderText: true,
27
- },
28
- decorators: [
29
- Story => (_jsxs("div", { children: [_jsx(Story, {}), _jsxs("div", { style: { padding: '1rem' }, children: [_jsx("p", { children: "The SlideoverManager is a container that manages the display of slideovers. It listens for events to add or remove slideovers." }), _jsx("p", { children: "Use the buttons below to add slideovers with different content." })] })] })),
30
- ],
31
149
  };
32
150
  export default meta;
33
- let slideoverCount = 0;
34
- const addSlideoverWithContent = (content, headerIcon, centerHeaderText) => {
35
- slideoverCount++;
36
- SlideoverUtils.addSlideover({
37
- title: `Slideover ${slideoverCount}`,
38
- children: content,
39
- headerIcon,
40
- centerHeaderText,
41
- });
42
- };
43
- const removeSlideover = () => {
44
- if (slideoverCount > 0) {
45
- slideoverCount--;
46
- }
47
- SlideoverUtils.removeSlideover();
48
- };
49
- const removeAllSlideovers = () => {
50
- slideoverCount = 0;
51
- SlideoverUtils.removeAllSlideovers();
52
- };
53
- export const Default = {
54
- render: args => (_jsxs(_Fragment, { children: [_jsx(SlideoverManager, { slideovers: [] }), _jsxs("div", { style: { padding: '1rem', display: 'flex', gap: '1rem' }, children: [_jsx(Button, { onClick: () => addSlideoverWithContent(_jsx("p", { children: "This is a simple slideover." }), args.headerIcon, args.centerHeaderText), children: "Add Simple Slideover" }), _jsx(Button, { onClick: removeSlideover, variant: "secondary", children: "Remove Last Slideover" }), _jsx(Button, { onClick: removeAllSlideovers, variant: "primary-destructive", children: "Remove All" })] })] })),
55
- };
56
- export const WithSections = {
57
- render: args => (_jsxs(_Fragment, { children: [_jsx(SlideoverManager, { slideovers: [] }), _jsxs("div", { style: { padding: '1rem', display: 'flex', gap: '1rem' }, children: [_jsx(Button, { onClick: () => addSlideoverWithContent(_jsxs(_Fragment, { children: [_jsx(Section, { title: "Section 1", collapsible: true, children: _jsx("p", { children: "Aliquip ea tempor officia irure do qui culpa. Laborum proident laboris aliqua ad Lorem eiusmod fugiat dolore qui occaecat adipisicing. Dolore quis nisi occaecat commodo labore ad nulla aliquip in. Enim labore nisi laborum nostrud officia ad nulla ut quis. Aute excepteur quis amet aliquip. Excepteur Lorem cupidatat adipisicing consectetur ipsum Lorem. Deserunt dolor veniam sit mollit elit aliquip duis." }) }), _jsx(Section, { title: "Section 2", collapsible: true, collapsed: true, children: _jsx("p", { children: "Veniam adipisicing culpa id esse duis in officia consequat veniam ad ullamco sint sunt anim. Incididunt exercitation dolor Lorem anim aute ad deserunt. Nulla culpa sint aliqua ea Lorem sint. Elit sit consectetur minim cillum consectetur pariatur Lorem labore consectetur nisi consectetur officia exercitation. Est consectetur commodo deserunt ipsum aliqua occaecat qui sunt consectetur." }) })] }), args.headerIcon, args.centerHeaderText), children: "Add Slideover with Sections" }), _jsx(Button, { onClick: removeSlideover, variant: "secondary", children: "Remove Last Slideover" }), _jsx(Button, { onClick: removeAllSlideovers, variant: "primary-destructive", children: "Remove All" })] })] })),
58
- };
59
- export const WithFormFields = {
60
- render: (args) => {
61
- const formFieldId = generateUuid();
62
- return (_jsxs(_Fragment, { children: [_jsx(SlideoverManager, { slideovers: [] }), _jsxs("div", { style: { padding: '1rem', display: 'flex', gap: '1rem' }, children: [_jsx(Button, { onClick: () => addSlideoverWithContent(_jsx(_Fragment, { children: _jsx(FormField, { id: formFieldId, label: "Your Name", inputType: "text", inputProps: { placeholder: 'e.g. Jane Doe' }, fieldDescription: "Please enter your full name." }) }), args.headerIcon, args.centerHeaderText), children: "Add Slideover with Form" }), _jsx(Button, { onClick: removeSlideover, variant: "secondary", children: "Remove Last Slideover" }), _jsx(Button, { onClick: removeAllSlideovers, variant: "primary-destructive", children: "Remove All" })] })] }));
151
+ // ---------------------------------------------------------------------------
152
+ // Helper
153
+ // ---------------------------------------------------------------------------
154
+ const withDescription = (story, description) => ({
155
+ ...story,
156
+ parameters: {
157
+ ...story.parameters,
158
+ docs: {
159
+ ...story.parameters?.docs,
160
+ description: {
161
+ story: description,
162
+ },
163
+ },
63
164
  },
64
- };
65
- export const WithFooterContent = {
66
- render: (args) => {
67
- const handleSave = () => {
68
- alert('Save clicked!');
69
- SlideoverUtils.removeSlideover();
70
- };
71
- const handleCancel = () => {
72
- SlideoverUtils.removeSlideover();
73
- };
74
- const footerContent = (_jsxs("div", { style: { display: 'flex', gap: '1rem', justifyContent: 'flex-end' }, children: [_jsx(Button, { variant: "secondary", onClick: handleCancel, children: "Cancel" }), _jsx(Button, { variant: "primary", onClick: handleSave, children: "Save Changes" })] }));
75
- return (_jsxs(_Fragment, { children: [_jsx(SlideoverManager, { slideovers: [] }), _jsxs("div", { style: { padding: '1rem', display: 'flex', gap: '1rem' }, children: [_jsx(Button, { onClick: () => {
76
- slideoverCount++;
77
- SlideoverUtils.addSlideover({
78
- title: `Slideover ${slideoverCount}`,
79
- children: (_jsx(_Fragment, { children: _jsxs(Section, { title: "Edit Settings", children: [_jsx(FormField, { id: generateUuid(), label: "Setting Name", inputType: "text", inputProps: { placeholder: 'Enter setting name' } }), _jsx(FormField, { id: generateUuid(), label: "Description", inputType: "textarea", inputProps: { placeholder: 'Enter description', rows: 4 } })] }) })),
80
- footerContents: footerContent,
81
- headerIcon: args.headerIcon,
82
- centerHeaderText: args.centerHeaderText,
83
- });
84
- }, children: "Add Slideover with Footer" }), _jsx(Button, { onClick: removeSlideover, variant: "secondary", children: "Remove Last Slideover" }), _jsx(Button, { onClick: removeAllSlideovers, variant: "primary-destructive", children: "Remove All" })] })] }));
165
+ });
166
+ // ---------------------------------------------------------------------------
167
+ // Page wrapper used in all templates
168
+ // ---------------------------------------------------------------------------
169
+ const PageBackground = ({ children }) => (_jsxs("div", { style: { padding: 'var(--spacing-xlarge)', minHeight: '100vh', background: 'var(--color-grey-050)' }, children: [_jsx("h1", { style: { margin: '0 0 var(--spacing-large)', fontSize: 'var(--font-size-5-18)', fontWeight: 600 }, children: "Pupil List" }), _jsx("p", { style: { margin: '0 0 var(--spacing-large)', color: 'var(--color-grey-600)' }, children: "Click the button below to open a slideover panel." }), children] }));
170
+ // ---------------------------------------------------------------------------
171
+ // Templates
172
+ // ---------------------------------------------------------------------------
173
+ const DefaultTemplate = () => (_jsxs(PageBackground, { children: [_jsx(SlideoverManager, { slideovers: [] }), _jsxs("div", { style: { display: 'flex', gap: 'var(--spacing-small)' }, children: [_jsx(Button, { onClick: () => SlideoverUtils.addSlideover({
174
+ title: 'Pupil Record',
175
+ children: (_jsx("p", { children: "Select a pupil from the list to view their record here." })),
176
+ }), children: "Open slideover" }), _jsx(Button, { variant: "secondary", onClick: SlideoverUtils.removeSlideover, children: "Remove last" }), _jsx(Button, { variant: "primary-destructive", onClick: SlideoverUtils.removeAllSlideovers, children: "Close all" })] })] }));
177
+ const WithFooterActionsTemplate = () => (_jsxs(PageBackground, { children: [_jsx(SlideoverManager, { slideovers: [] }), _jsx(Button, { onClick: () => SlideoverUtils.addSlideover({
178
+ title: 'Edit Pupil Details',
179
+ children: (_jsxs(Section, { title: "Personal details", children: [_jsx(FormField, { id: "pupil-name", label: "Full name", inputType: "text", inputProps: { placeholder: 'e.g. Alex Johnson', defaultValue: 'Alex Johnson' } }), _jsx(FormField, { id: "pupil-dob", label: "Date of birth", inputType: "text", inputProps: { placeholder: 'DD/MM/YYYY', defaultValue: '12/03/2015' } }), _jsx(FormField, { id: "pupil-year", label: "Year group", inputType: "text", inputProps: { defaultValue: 'Year 5' } })] })),
180
+ footerContents: (_jsxs("div", { style: { display: 'flex', gap: 'var(--spacing-small)', justifyContent: 'flex-end' }, children: [_jsx(Button, { variant: "secondary", onClick: SlideoverUtils.removeSlideover, children: "Cancel" }), _jsx(Button, { onClick: SlideoverUtils.removeSlideover, children: "Save changes" })] })),
181
+ }), children: "Edit pupil details" })] }));
182
+ const StackedSlideoverTemplate = () => (_jsxs(PageBackground, { children: [_jsx(SlideoverManager, { slideovers: [] }), _jsx(Button, { onClick: () => SlideoverUtils.addSlideover({
183
+ title: 'Pupil: Alex Johnson',
184
+ children: (_jsxs(Section, { title: "Assessments", children: [_jsx("p", { style: { margin: '0 0 var(--spacing-medium)' }, children: "3 assessments recorded this term." }), _jsx(Button, { variant: "secondary", onClick: () => SlideoverUtils.addSlideover({
185
+ title: 'Edit Assessment',
186
+ children: (_jsxs(_Fragment, { children: [_jsx(FormField, { id: "assessment-name", label: "Assessment name", inputType: "text", inputProps: { defaultValue: 'Autumn Reading Assessment' } }), _jsx(FormField, { id: "assessment-score", label: "Score", inputType: "number", inputProps: { defaultValue: '78', min: 0, max: 100 } }), _jsx(FormField, { id: "assessment-notes", label: "Notes", inputType: "textarea", inputProps: { placeholder: 'Add a note…' } })] })),
187
+ footerContents: (_jsxs("div", { style: { display: 'flex', gap: 'var(--spacing-small)', justifyContent: 'flex-end' }, children: [_jsx(Button, { variant: "secondary", onClick: SlideoverUtils.removeSlideover, children: "Cancel" }), _jsx(Button, { onClick: SlideoverUtils.removeSlideover, children: "Save" })] })),
188
+ }), children: "Edit latest assessment" })] })),
189
+ }), children: "View pupil record" })] }));
190
+ const HideBackButtonTemplate = () => (_jsxs(PageBackground, { children: [_jsx(SlideoverManager, { slideovers: [] }), _jsx(Button, { onClick: () => SlideoverUtils.addSlideover({
191
+ title: 'Confirm deletion',
192
+ hideBackButton: true,
193
+ children: (_jsxs("p", { children: ["Are you sure you want to remove", ' ', _jsx("strong", { children: "Alex Johnson" }), ' ', "from Year 5? This cannot be undone."] })),
194
+ footerContents: (_jsxs("div", { style: { display: 'flex', gap: 'var(--spacing-small)', justifyContent: 'flex-end' }, children: [_jsx(Button, { variant: "secondary", onClick: SlideoverUtils.removeSlideover, children: "Cancel" }), _jsx(Button, { variant: "primary-destructive", onClick: SlideoverUtils.removeSlideover, children: "Remove pupil" })] })),
195
+ }), children: "Remove pupil" })] }));
196
+ // ---------------------------------------------------------------------------
197
+ // Stories
198
+ // ---------------------------------------------------------------------------
199
+ export const Default = withDescription({
200
+ render: DefaultTemplate,
201
+ parameters: {
202
+ controls: { disable: true },
203
+ docs: {
204
+ source: {
205
+ language: 'tsx',
206
+ code: `
207
+ import { SlideoverManager, SlideoverUtils } from '@arbor-education/design-system.components';
208
+
209
+ // Mount SlideoverManager once near your app root.
210
+ // Then call SlideoverUtils.addSlideover() from anywhere in the tree.
211
+ function AppRoot() {
212
+ return (
213
+ <div>
214
+ <SlideoverManager slideovers={[]} />
215
+ <main>
216
+ <button
217
+ type="button"
218
+ onClick={() =>
219
+ SlideoverUtils.addSlideover({
220
+ title: 'Pupil Record',
221
+ children: <p>Pupil details go here.</p>,
222
+ })
223
+ }
224
+ >
225
+ Open slideover
226
+ </button>
227
+ </main>
228
+ </div>
229
+ );
230
+ }
231
+ export default AppRoot;
232
+ `.trim(),
233
+ },
234
+ },
85
235
  },
86
- };
87
- export const WithScrollableContent = {
88
- render: (args) => {
89
- const footerContent = (_jsxs("div", { style: { display: 'flex', gap: '1rem', justifyContent: 'flex-end' }, children: [_jsx(Button, { variant: "secondary", onClick: SlideoverUtils.removeSlideover, children: "Cancel" }), _jsx(Button, { variant: "primary", onClick: SlideoverUtils.removeSlideover, children: "Save" })] }));
90
- return (_jsxs(_Fragment, { children: [_jsx(SlideoverManager, { slideovers: [] }), _jsxs("div", { style: { padding: '1rem', display: 'flex', gap: '1rem' }, children: [_jsx(Button, { onClick: () => {
91
- slideoverCount++;
92
- SlideoverUtils.addSlideover({
93
- title: `Slideover ${slideoverCount}`,
94
- children: (_jsxs(_Fragment, { children: [_jsxs(Section, { title: "Section 1", collapsible: true, children: [_jsx("p", { children: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat." }), _jsx(FormField, { id: generateUuid(), label: "Field 1", inputType: "text", inputProps: { placeholder: 'Enter value' } }), _jsx(FormField, { id: generateUuid(), label: "Field 2", inputType: "text", inputProps: { placeholder: 'Enter value' } })] }), _jsxs(Section, { title: "Section 2", collapsible: true, children: [_jsx("p", { children: "Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum." }), _jsx(FormField, { id: generateUuid(), label: "Field 3", inputType: "textarea", inputProps: { placeholder: 'Enter long text', rows: 6 } })] }), _jsxs(Section, { title: "Section 3", collapsible: true, children: [_jsx("p", { children: "Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo." }), _jsx(FormField, { id: generateUuid(), label: "Field 4", inputType: "number", inputProps: { placeholder: 'Enter number' } }), _jsx(FormField, { id: generateUuid(), label: "Field 5", inputType: "text", inputProps: { placeholder: 'Enter value' } })] }), _jsxs(Section, { title: "Section 4", collapsible: true, children: [_jsx("p", { children: "Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet." }), _jsx(FormField, { id: generateUuid(), label: "Field 6", inputType: "text", inputProps: { placeholder: 'Enter value' } })] }), _jsxs(Section, { title: "Section 5", collapsible: true, children: [_jsx("p", { children: "At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident." }), _jsx(FormField, { id: generateUuid(), label: "Field 7", inputType: "textarea", inputProps: { placeholder: 'Enter description', rows: 4 } }), _jsx(FormField, { id: generateUuid(), label: "Field 8", inputType: "text", inputProps: { placeholder: 'Enter value' } })] }), _jsxs(Section, { title: "Section 6", collapsible: true, collapsed: true, children: [_jsx("p", { children: "Similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio." }), _jsx(FormField, { id: generateUuid(), label: "Field 9", inputType: "text", inputProps: { placeholder: 'Enter value' } })] })] })),
95
- footerContents: footerContent,
96
- headerIcon: args.headerIcon,
97
- centerHeaderText: args.centerHeaderText,
98
- });
99
- }, children: "Add Slideover with Scrollable Content" }), _jsx(Button, { onClick: removeSlideover, variant: "secondary", children: "Remove Last Slideover" }), _jsx(Button, { onClick: removeAllSlideovers, variant: "primary-destructive", children: "Remove All" })] })] }));
236
+ }, [
237
+ 'Mount `SlideoverManager` once near the root of your application.',
238
+ 'Then call `SlideoverUtils.addSlideover()` from anywhere — event handlers, Redux actions, or any component in the tree.',
239
+ 'The **Back** button in the panel header calls `SlideoverUtils.removeSlideover()` automatically.',
240
+ ].join(' '));
241
+ export const WithFooterActions = withDescription({
242
+ render: WithFooterActionsTemplate,
243
+ parameters: {
244
+ controls: { disable: true },
245
+ docs: {
246
+ source: {
247
+ language: 'tsx',
248
+ code: `
249
+ import { Button, FormField, Section, SlideoverManager, SlideoverUtils } from '@arbor-education/design-system.components';
250
+
251
+ function EditPupilButton() {
252
+ return (
253
+ <>
254
+ <SlideoverManager slideovers={[]} />
255
+ <Button
256
+ onClick={() =>
257
+ SlideoverUtils.addSlideover({
258
+ title: 'Edit Pupil Details',
259
+ children: (
260
+ <Section title="Personal details">
261
+ <FormField id="pupil-name" label="Full name" inputType="text" inputProps={{ placeholder: 'e.g. Alex Johnson' }} />
262
+ <FormField id="pupil-dob" label="Date of birth" inputType="text" inputProps={{ placeholder: 'DD/MM/YYYY' }} />
263
+ </Section>
264
+ ),
265
+ footerContents: (
266
+ <div style={{ display: 'flex', gap: 'var(--spacing-small)', justifyContent: 'flex-end' }}>
267
+ <Button variant="secondary" onClick={SlideoverUtils.removeSlideover}>
268
+ Cancel
269
+ </Button>
270
+ <Button onClick={() => { /* save logic */ SlideoverUtils.removeSlideover(); }}>
271
+ Save changes
272
+ </Button>
273
+ </div>
274
+ ),
275
+ })
276
+ }
277
+ >
278
+ Edit pupil details
279
+ </Button>
280
+ </>
281
+ );
282
+ }
283
+ export default EditPupilButton;
284
+ `.trim(),
285
+ },
286
+ },
100
287
  },
101
- };
288
+ }, [
289
+ 'Pass `footerContents` to render a sticky footer with action buttons.',
290
+ 'Use `SlideoverUtils.removeSlideover()` in your Save and Cancel handlers to close the panel after the action completes.',
291
+ ].join(' '));
292
+ export const StackedSlideovers = withDescription({
293
+ render: StackedSlideoverTemplate,
294
+ parameters: {
295
+ controls: { disable: true },
296
+ docs: {
297
+ source: {
298
+ language: 'tsx',
299
+ code: `
300
+ import { Button, FormField, Section, SlideoverManager, SlideoverUtils } from '@arbor-education/design-system.components';
301
+
302
+ // Each addSlideover() call stacks a new panel on top.
303
+ // The Back button in each header pops the top panel.
304
+ function PupilDrillDown() {
305
+ return (
306
+ <>
307
+ <SlideoverManager slideovers={[]} />
308
+ <Button
309
+ onClick={() =>
310
+ SlideoverUtils.addSlideover({
311
+ title: 'Pupil: Alex Johnson',
312
+ children: (
313
+ <Section title="Assessments">
314
+ <Button
315
+ variant="secondary"
316
+ onClick={() =>
317
+ SlideoverUtils.addSlideover({
318
+ title: 'Edit Assessment',
319
+ children: (
320
+ <FormField id="score" label="Score" inputType="number" inputProps={{ defaultValue: '78' }} />
321
+ ),
322
+ footerContents: (
323
+ <Button onClick={SlideoverUtils.removeSlideover}>Save</Button>
324
+ ),
325
+ })
326
+ }
327
+ >
328
+ Edit latest assessment
329
+ </Button>
330
+ </Section>
331
+ ),
332
+ })
333
+ }
334
+ >
335
+ View pupil record
336
+ </Button>
337
+ </>
338
+ );
339
+ }
340
+ export default PupilDrillDown;
341
+ `.trim(),
342
+ },
343
+ },
344
+ },
345
+ }, [
346
+ 'Each `SlideoverUtils.addSlideover()` call stacks a new panel on top of the current one.',
347
+ 'The user can drill down through related records and navigate back with the **Back** button.',
348
+ 'This is the primary pattern for Pupil → Assessment → Edit flows in Arbor.',
349
+ ].join(' '));
350
+ export const HideBackButton = withDescription({
351
+ render: HideBackButtonTemplate,
352
+ parameters: {
353
+ controls: { disable: true },
354
+ docs: {
355
+ source: {
356
+ language: 'tsx',
357
+ code: `
358
+ import { Button, SlideoverManager, SlideoverUtils } from '@arbor-education/design-system.components';
359
+
360
+ // hideBackButton prevents the user navigating back — use when the action must be
361
+ // explicitly confirmed or cancelled, not dismissed by accident.
362
+ function RemovePupilButton() {
363
+ return (
364
+ <>
365
+ <SlideoverManager slideovers={[]} />
366
+ <Button
367
+ variant="primary-destructive"
368
+ onClick={() =>
369
+ SlideoverUtils.addSlideover({
370
+ title: 'Confirm deletion',
371
+ hideBackButton: true,
372
+ children: (
373
+ <p>Are you sure you want to remove Alex Johnson from Year 5?</p>
374
+ ),
375
+ footerContents: (
376
+ <div style={{ display: 'flex', gap: 'var(--spacing-small)', justifyContent: 'flex-end' }}>
377
+ <Button variant="secondary" onClick={SlideoverUtils.removeSlideover}>Cancel</Button>
378
+ <Button variant="primary-destructive" onClick={SlideoverUtils.removeSlideover}>Remove pupil</Button>
379
+ </div>
380
+ ),
381
+ })
382
+ }
383
+ >
384
+ Remove pupil
385
+ </Button>
386
+ </>
387
+ );
388
+ }
389
+ export default RemovePupilButton;
390
+ `.trim(),
391
+ },
392
+ },
393
+ },
394
+ }, [
395
+ 'Set `hideBackButton={true}` when the panel represents an action the user must explicitly confirm or cancel.',
396
+ 'Without a Back button, the user must interact with the footer actions — reducing accidental dismissal.',
397
+ ].join(' '));
102
398
  //# sourceMappingURL=SlideoverManager.stories.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SlideoverManager.stories.js","sourceRoot":"","sources":["../../../src/components/slideoverManager/SlideoverManager.stories.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,YAAY,EAAiB,MAAM,sBAAsB,CAAC;AAOnE,MAAM,IAAI,GAA6B;IACrC,KAAK,EAAE,6BAA6B;IACpC,UAAU,EAAE;QACV,MAAM,EAAE,YAAY;KACrB;IACD,QAAQ,EAAE;QACR,UAAU,EAAE;YACV,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YAC3B,OAAO,EAAE,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC;YAClC,WAAW,EAAE,yCAAyC;SACvD;QACD,gBAAgB,EAAE;YAChB,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;YAC5B,WAAW,EAAE,mCAAmC;SACjD;KACF;IACD,IAAI,EAAE;QACJ,gBAAgB,EAAE,IAAI;KACvB;IACD,UAAU,EAAE;QACV,KAAK,CAAC,EAAE,CAAC,CACP,0BACE,KAAC,KAAK,KAAG,EACT,eAAK,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,aAC7B,yJAEI,EACJ,0FAEI,IACA,IACF,CACP;KACF;CACF,CAAC;AAEF,eAAe,IAAI,CAAC;AAIpB,IAAI,cAAc,GAAG,CAAC,CAAC;AAEvB,MAAM,uBAAuB,GAAG,CAAC,OAAwB,EAAE,UAAqB,EAAE,gBAA0B,EAAE,EAAE;IAC9G,cAAc,EAAE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W,mBACpC,qOAGI,EACJ,KAAC,SAAS,IACR,EAAE,EAAE,YAAY,EAAE,EAClB,KAAK,EAAC,SAAS,EACf,SAAS,EAAC,UAAU,EACpB,UAAU,EAAE,EAAE,WAAW,EAAE,mBAAmB,EAAE,IAAI,EAAE,CAAC,EAAE,GACzD,EACF,KAAC,SAAS,IACR,EAAE,EAAE,YAAY,EAAE,EAClB,KAAK,EAAC,SAAS,EACf,SAAS,EAAC,MAAM,EAChB,UAAU,EAAE,EAAE,WAAW,EAAE,aAAa,EAAE,GAC1C,IACM,EACV,MAAC,OAAO,IAAC,KAAK,EAAC,WAAW,EAAC,WAAW,QAAC,SAAS,mBAC9C,0OAGI,EACJ,KAAC,SAAS,IACR,EAAE,EAAE,YAAY,EAAE,EAClB,KAAK,EAAC,SAAS,EACf,SAAS,EAAC,MAAM,EAChB,UAAU,EAAE,EAAE,WAAW,EAAE,aAAa,EAAE,GAC1C,IACM,IACT,CACJ;oCACD,cAAc,EAAE,aAAa;oCAC7B,UAAU,EAAE,IAAI,CAAC,UAAU;oCAC3B,gBAAgB,EAAE,IAAI,CAAC,gBAAgB;iCACxC,CAAC,CAAC;4BACL,CAAC,sDAGM,EACT,KAAC,MAAM,IAAC,OAAO,EAAE,eAAe,EAAE,OAAO,EAAC,WAAW,sCAE5C,EACT,KAAC,MAAM,IAAC,OAAO,EAAE,mBAAmB,EAAE,OAAO,EAAC,qBAAqB,2BAE1D,IACL,IACL,CACJ,CAAC;IACJ,CAAC;CACF,CAAC"}
1
+ {"version":3,"file":"SlideoverManager.stories.js","sourceRoot":"","sources":["../../../src/components/slideoverManager/SlideoverManager.stories.tsx"],"names":[],"mappings":";AACA,OAAO,EACL,OAAO,IAAI,UAAU,EACrB,QAAQ,EACR,OAAO,EACP,QAAQ,EACR,KAAK,GACN,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB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EAAE,KAAK;gBACf,IAAI,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiCf,CAAC,IAAI,EAAE;aACC;SACF;KACF;CACF,EACD;IACE,6GAA6G;IAC7G,wGAAwG;CACzG,CAAC,IAAI,CAAC,GAAG,CAAC,CACZ,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"DSDefaultColDef.d.ts","sourceRoot":"","sources":["../../../src/components/table/DSDefaultColDef.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,EAAE,gCAAgC,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAQ1I,eAAO,MAAM,qBAAqB,EAAE,kBAOnC,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,QAAQ,gCAAgC,GAAG,eAAe,GAAG,iBAAiB,QAKjH,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,MA0C7B,CAAC"}
1
+ {"version":3,"file":"DSDefaultColDef.d.ts","sourceRoot":"","sources":["../../../src/components/table/DSDefaultColDef.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,eAAe,EACf,iBAAiB,EACjB,MAAM,EACN,gCAAgC,EAChC,kBAAkB,EACnB,MAAM,mBAAmB,CAAC;AAQ3B,eAAO,MAAM,qBAAqB,EAAE,kBAOnC,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAC9B,QACI,gCAAgC,GAChC,eAAe,GACf,iBAAiB,QAStB,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,MAgD7B,CAAC"}
@@ -14,12 +14,13 @@ export const shouldSuppressFocus = (params) => {
14
14
  if (typeof params.column !== 'object') {
15
15
  return false;
16
16
  }
17
- return params.column?.getColDef().cellRendererParams.suppressCellFocusAndFocusFirstElement ?? false;
17
+ return (params.column?.getColDef()?.cellRendererParams
18
+ ?.suppressCellFocusAndFocusFirstElement ?? false);
18
19
  };
19
20
  export const DSDefaultColDef = {
20
21
  cellStyle: cellColorStyles,
21
22
  valueGetter: (params) => {
22
- const { data, colDef: { field } } = params;
23
+ const { data, colDef: { field }, } = params;
23
24
  if (data == null || field == null) {
24
25
  return undefined;
25
26
  }
@@ -27,7 +28,7 @@ export const DSDefaultColDef = {
27
28
  },
28
29
  valueFormatter: defaultValueFormatter,
29
30
  filterValueGetter: (params) => {
30
- const { data, colDef: { field } } = params;
31
+ const { data, colDef: { field }, } = params;
31
32
  if (data == null || field == null) {
32
33
  return undefined;
33
34
  }
@@ -1 +1 @@
1
- {"version":3,"file":"DSDefaultColDef.js","sourceRoot":"","sources":["../../../src/components/table/DSDefaultColDef.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD,mEAAmE;AACnE,MAAM,cAAc,GAAG,CAAC,KAAc,EAA+B,EAAE;IACrE,OAAO,KAAK,IAAI,IAAI,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,OAAO,IAAI,KAAK,CAAC;AACxE,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,qBAAqB,GAAuB,CAAC,MAAM,EAAE,EAAE;IAClE,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,CAAC;IACzB,IAAI,cAAc,CAAC,KAAK,CAAC,EAAE,CAAC;QAC1B,OAAO,KAAK,CAAC,KAAK,CAAC;IACrB,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,MAA8E,EAAE,EAAE;IACpH,IAAI,OAAO,MAAM,CAAC,MAAM,KAAK,QAAQ,EAAE,CAAC;QACtC,OAAO,KAAK,CAAC;IACf,CAAC;IACD,OAAO,MAAM,CAAC,MAAM,EAAE,SAAS,EAAE,CAAC,kBAAkB,CAAC,qCAAqC,IAAI,KAAK,CAAC;AACtG,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAAW;IACrC,SAAS,EAAE,eAAe;IAC1B,WAAW,EAAE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