@takecasper/acuity-design-system 1.27.13 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (237) hide show
  1. package/README.md +29 -2
  2. package/dist/assets/icons/add.d.ts +10 -0
  3. package/dist/assets/icons/add.d.ts.map +1 -0
  4. package/dist/assets/icons/bookmark.d.ts +10 -0
  5. package/dist/assets/icons/bookmark.d.ts.map +1 -0
  6. package/dist/assets/icons/bookmarkWithIndicator.d.ts +10 -0
  7. package/dist/assets/icons/bookmarkWithIndicator.d.ts.map +1 -0
  8. package/dist/assets/icons/calendar.d.ts +10 -0
  9. package/dist/assets/icons/calendar.d.ts.map +1 -0
  10. package/dist/assets/icons/check.d.ts +10 -0
  11. package/dist/assets/icons/check.d.ts.map +1 -0
  12. package/dist/assets/icons/checkCircle.d.ts +11 -0
  13. package/dist/assets/icons/checkCircle.d.ts.map +1 -0
  14. package/dist/assets/icons/close.d.ts +10 -0
  15. package/dist/assets/icons/close.d.ts.map +1 -0
  16. package/dist/assets/icons/deleteIcon.d.ts +10 -0
  17. package/dist/assets/icons/deleteIcon.d.ts.map +1 -0
  18. package/dist/assets/icons/dropdown.d.ts +10 -0
  19. package/dist/assets/icons/dropdown.d.ts.map +1 -0
  20. package/dist/assets/icons/edit.d.ts +10 -0
  21. package/dist/assets/icons/edit.d.ts.map +1 -0
  22. package/dist/assets/icons/email.d.ts +10 -0
  23. package/dist/assets/icons/email.d.ts.map +1 -0
  24. package/dist/assets/icons/error.d.ts +11 -0
  25. package/dist/assets/icons/error.d.ts.map +1 -0
  26. package/dist/assets/icons/exclude.d.ts +10 -0
  27. package/dist/assets/icons/exclude.d.ts.map +1 -0
  28. package/dist/assets/icons/flag.d.ts +10 -0
  29. package/dist/assets/icons/flag.d.ts.map +1 -0
  30. package/dist/assets/icons/index.d.ts +29 -0
  31. package/dist/assets/icons/index.d.ts.map +1 -0
  32. package/dist/assets/icons/infoCircle.d.ts +11 -0
  33. package/dist/assets/icons/infoCircle.d.ts.map +1 -0
  34. package/dist/assets/icons/linkNewTab.d.ts +10 -0
  35. package/dist/assets/icons/linkNewTab.d.ts.map +1 -0
  36. package/dist/assets/icons/lockClosed.d.ts +10 -0
  37. package/dist/assets/icons/lockClosed.d.ts.map +1 -0
  38. package/dist/assets/icons/lockOpened.d.ts +10 -0
  39. package/dist/assets/icons/lockOpened.d.ts.map +1 -0
  40. package/dist/assets/icons/menu.d.ts +9 -0
  41. package/dist/assets/icons/menu.d.ts.map +1 -0
  42. package/dist/assets/icons/notifications.d.ts +10 -0
  43. package/dist/assets/icons/notifications.d.ts.map +1 -0
  44. package/dist/assets/icons/notificationsWithIndicator.d.ts +10 -0
  45. package/dist/assets/icons/notificationsWithIndicator.d.ts.map +1 -0
  46. package/dist/assets/icons/questionCircle.d.ts +10 -0
  47. package/dist/assets/icons/questionCircle.d.ts.map +1 -0
  48. package/dist/assets/icons/resourceCenter.d.ts +10 -0
  49. package/dist/assets/icons/resourceCenter.d.ts.map +1 -0
  50. package/dist/assets/icons/resourceCenterWithIndicator.d.ts +10 -0
  51. package/dist/assets/icons/resourceCenterWithIndicator.d.ts.map +1 -0
  52. package/dist/assets/icons/search.d.ts +10 -0
  53. package/dist/assets/icons/search.d.ts.map +1 -0
  54. package/dist/assets/icons/settings.d.ts +10 -0
  55. package/dist/assets/icons/settings.d.ts.map +1 -0
  56. package/dist/assets/icons/warning.d.ts +11 -0
  57. package/dist/assets/icons/warning.d.ts.map +1 -0
  58. package/dist/assets/index.css +1 -1
  59. package/dist/components/AddItem/AddItem.d.ts +10 -0
  60. package/dist/components/AddItem/AddItem.d.ts.map +1 -0
  61. package/dist/components/AdvancedTable/AdvancedTable.d.ts +44 -0
  62. package/dist/components/AdvancedTable/AdvancedTable.d.ts.map +1 -0
  63. package/dist/components/Alert/alert.d.ts +16 -0
  64. package/dist/components/Alert/alert.d.ts.map +1 -0
  65. package/dist/components/AlertBanner/AlertBanner.d.ts +16 -0
  66. package/dist/components/AlertBanner/AlertBanner.d.ts.map +1 -0
  67. package/dist/components/AppLayout/AppLayout.d.ts +24 -0
  68. package/dist/components/AppLayout/AppLayout.d.ts.map +1 -0
  69. package/dist/components/AppLayout/AppLayoutDrawer.d.ts +9 -0
  70. package/dist/components/AppLayout/AppLayoutDrawer.d.ts.map +1 -0
  71. package/dist/components/AppLayout/ContentPanelContext.d.ts +4 -0
  72. package/dist/components/AppLayout/ContentPanelContext.d.ts.map +1 -0
  73. package/dist/components/AudioVolumeIndicator/AudioVolumeIndicator.d.ts +20 -0
  74. package/dist/components/AudioVolumeIndicator/AudioVolumeIndicator.d.ts.map +1 -0
  75. package/dist/components/Badge/badge.d.ts +12 -0
  76. package/dist/components/Badge/badge.d.ts.map +1 -0
  77. package/dist/components/Button/button.d.ts +23 -0
  78. package/dist/components/Button/button.d.ts.map +1 -0
  79. package/dist/components/ButtonAddTableItem/ButtonAddTableItem.d.ts +32 -0
  80. package/dist/components/ButtonAddTableItem/ButtonAddTableItem.d.ts.map +1 -0
  81. package/dist/components/Card/card.d.ts +11 -0
  82. package/dist/components/Card/card.d.ts.map +1 -0
  83. package/dist/components/Colors/colorSwatch.d.ts +7 -0
  84. package/dist/components/Colors/colorSwatch.d.ts.map +1 -0
  85. package/dist/components/DataGrid/AcuityDataGrid.d.ts +9 -0
  86. package/dist/components/DataGrid/AcuityDataGrid.d.ts.map +1 -0
  87. package/dist/components/DigitalTimer/DigitalTimer.d.ts +29 -0
  88. package/dist/components/DigitalTimer/DigitalTimer.d.ts.map +1 -0
  89. package/dist/components/FileDropzone/FileDropzone.d.ts +13 -0
  90. package/dist/components/FileDropzone/FileDropzone.d.ts.map +1 -0
  91. package/dist/components/FormValidation/FormValidation/formValidation.d.ts +13 -0
  92. package/dist/components/FormValidation/FormValidation/formValidation.d.ts.map +1 -0
  93. package/dist/components/Heading/heading.d.ts +18 -0
  94. package/dist/components/Heading/heading.d.ts.map +1 -0
  95. package/dist/components/HoldToConfirmButton/HoldToConfirmButton.d.ts +12 -0
  96. package/dist/components/HoldToConfirmButton/HoldToConfirmButton.d.ts.map +1 -0
  97. package/dist/components/Icon/icon.d.ts +17 -0
  98. package/dist/components/Icon/icon.d.ts.map +1 -0
  99. package/dist/components/IconButton/iconButton.d.ts +19 -0
  100. package/dist/components/IconButton/iconButton.d.ts.map +1 -0
  101. package/dist/components/Icons/CheckedIcon.d.ts +3 -0
  102. package/dist/components/Icons/CheckedIcon.d.ts.map +1 -0
  103. package/dist/components/Icons/IndeterminateIcon.d.ts +3 -0
  104. package/dist/components/Icons/IndeterminateIcon.d.ts.map +1 -0
  105. package/dist/components/Icons/SortIcon.d.ts +6 -0
  106. package/dist/components/Icons/SortIcon.d.ts.map +1 -0
  107. package/dist/components/Icons/VideoInterviewIcon.d.ts +4 -0
  108. package/dist/components/Icons/VideoInterviewIcon.d.ts.map +1 -0
  109. package/dist/components/ImagePreview/ImagePreview.d.ts +17 -0
  110. package/dist/components/ImagePreview/ImagePreview.d.ts.map +1 -0
  111. package/dist/components/InlineAlert/InlineAlert.d.ts +12 -0
  112. package/dist/components/InlineAlert/InlineAlert.d.ts.map +1 -0
  113. package/dist/components/InputDeviceSelect/InputDeviceSelect.d.ts +54 -0
  114. package/dist/components/InputDeviceSelect/InputDeviceSelect.d.ts.map +1 -0
  115. package/dist/components/Inputs/Checkbox/checkbox.d.ts +10 -0
  116. package/dist/components/Inputs/Checkbox/checkbox.d.ts.map +1 -0
  117. package/dist/components/Inputs/Dropdown/dropdown.d.ts +15 -0
  118. package/dist/components/Inputs/Dropdown/dropdown.d.ts.map +1 -0
  119. package/dist/components/Inputs/DropdownAtom/dropdownAtom.d.ts +11 -0
  120. package/dist/components/Inputs/DropdownAtom/dropdownAtom.d.ts.map +1 -0
  121. package/dist/components/Inputs/LabelAtom/labelAtom.d.ts +19 -0
  122. package/dist/components/Inputs/LabelAtom/labelAtom.d.ts.map +1 -0
  123. package/dist/components/Inputs/Radio/radio.d.ts +10 -0
  124. package/dist/components/Inputs/Radio/radio.d.ts.map +1 -0
  125. package/dist/components/Inputs/TextInput/textInput.d.ts +17 -0
  126. package/dist/components/Inputs/TextInput/textInput.d.ts.map +1 -0
  127. package/dist/components/Inputs/TextInputAtom/textInputAtom.d.ts +8 -0
  128. package/dist/components/Inputs/TextInputAtom/textInputAtom.d.ts.map +1 -0
  129. package/dist/components/Inputs/Textarea/textarea.d.ts +18 -0
  130. package/dist/components/Inputs/Textarea/textarea.d.ts.map +1 -0
  131. package/dist/components/Inputs/TextareaAtom/textareaAtom.d.ts +10 -0
  132. package/dist/components/Inputs/TextareaAtom/textareaAtom.d.ts.map +1 -0
  133. package/dist/components/Inputs/inputWrapper.d.ts +34 -0
  134. package/dist/components/Inputs/inputWrapper.d.ts.map +1 -0
  135. package/dist/components/Inputs/styles.d.ts +27 -0
  136. package/dist/components/Inputs/styles.d.ts.map +1 -0
  137. package/dist/components/KebabMenu/KebabMenu.d.ts +12 -0
  138. package/dist/components/KebabMenu/KebabMenu.d.ts.map +1 -0
  139. package/dist/components/Link/link.d.ts +11 -0
  140. package/dist/components/Link/link.d.ts.map +1 -0
  141. package/dist/components/Logos/AcuityLogos.d.ts +11 -0
  142. package/dist/components/Logos/AcuityLogos.d.ts.map +1 -0
  143. package/dist/components/Markdown/Markdown.d.ts +15 -0
  144. package/dist/components/Markdown/Markdown.d.ts.map +1 -0
  145. package/dist/components/Markdown/Markdown.styles.d.ts +81 -0
  146. package/dist/components/Markdown/Markdown.styles.d.ts.map +1 -0
  147. package/dist/components/Modal/modal.d.ts +18 -0
  148. package/dist/components/Modal/modal.d.ts.map +1 -0
  149. package/dist/components/NumericScale/NumericScale.d.ts +28 -0
  150. package/dist/components/NumericScale/NumericScale.d.ts.map +1 -0
  151. package/dist/components/PageTitle/PageTitle.d.ts +11 -0
  152. package/dist/components/PageTitle/PageTitle.d.ts.map +1 -0
  153. package/dist/components/PrimaryButton/PrimaryButton.d.ts +10 -0
  154. package/dist/components/PrimaryButton/PrimaryButton.d.ts.map +1 -0
  155. package/dist/components/ProgressBar/progressBar.d.ts +13 -0
  156. package/dist/components/ProgressBar/progressBar.d.ts.map +1 -0
  157. package/dist/components/ProgressStepper/ProgressStepper.d.ts +41 -0
  158. package/dist/components/ProgressStepper/ProgressStepper.d.ts.map +1 -0
  159. package/dist/components/ReplayButton/ReplayButton.d.ts +18 -0
  160. package/dist/components/ReplayButton/ReplayButton.d.ts.map +1 -0
  161. package/dist/components/SingleSelect/SingleSelect.d.ts +32 -0
  162. package/dist/components/SingleSelect/SingleSelect.d.ts.map +1 -0
  163. package/dist/components/Spinner/spinner.d.ts +11 -0
  164. package/dist/components/Spinner/spinner.d.ts.map +1 -0
  165. package/dist/components/StepButtons/StepButtons.d.ts +22 -0
  166. package/dist/components/StepButtons/StepButtons.d.ts.map +1 -0
  167. package/dist/components/Table/CheckboxCell.d.ts +8 -0
  168. package/dist/components/Table/CheckboxCell.d.ts.map +1 -0
  169. package/dist/components/Table/CustomTable.d.ts +7 -0
  170. package/dist/components/Table/CustomTable.d.ts.map +1 -0
  171. package/dist/components/Table/CustomTableHead.d.ts +28 -0
  172. package/dist/components/Table/CustomTableHead.d.ts.map +1 -0
  173. package/dist/components/Table/CustomTableRow.d.ts +13 -0
  174. package/dist/components/Table/CustomTableRow.d.ts.map +1 -0
  175. package/dist/components/Table/LabelCell.d.ts +7 -0
  176. package/dist/components/Table/LabelCell.d.ts.map +1 -0
  177. package/dist/components/Table/SortableTableCell.d.ts +20 -0
  178. package/dist/components/Table/SortableTableCell.d.ts.map +1 -0
  179. package/dist/components/Table/filterTableData.d.ts +5 -0
  180. package/dist/components/Table/filterTableData.d.ts.map +1 -0
  181. package/dist/components/Table/useTable.d.ts +19 -0
  182. package/dist/components/Table/useTable.d.ts.map +1 -0
  183. package/dist/components/Tabs/Tab/tab.d.ts +9 -0
  184. package/dist/components/Tabs/Tab/tab.d.ts.map +1 -0
  185. package/dist/components/Tabs/TabItem/tabItem.d.ts +11 -0
  186. package/dist/components/Tabs/TabItem/tabItem.d.ts.map +1 -0
  187. package/dist/components/Tabs/TabPanel/tabPanel.d.ts +7 -0
  188. package/dist/components/Tabs/TabPanel/tabPanel.d.ts.map +1 -0
  189. package/dist/components/Tabs/Tabs/tabs.d.ts +11 -0
  190. package/dist/components/Tabs/Tabs/tabs.d.ts.map +1 -0
  191. package/dist/components/TexFooter/TexFooter.d.ts +14 -0
  192. package/dist/components/TexFooter/TexFooter.d.ts.map +1 -0
  193. package/dist/components/TextResponse/TextResponse.d.ts +21 -0
  194. package/dist/components/TextResponse/TextResponse.d.ts.map +1 -0
  195. package/dist/components/TextToSpeech/TextToSpeech.d.ts +56 -0
  196. package/dist/components/TextToSpeech/TextToSpeech.d.ts.map +1 -0
  197. package/dist/components/TimerProgressBar/TimerProgressBar.d.ts +28 -0
  198. package/dist/components/TimerProgressBar/TimerProgressBar.d.ts.map +1 -0
  199. package/dist/components/Toast/Toast.d.ts +12 -0
  200. package/dist/components/Toast/Toast.d.ts.map +1 -0
  201. package/dist/components/Tooltip/Tooltip.d.ts +13 -0
  202. package/dist/components/Tooltip/Tooltip.d.ts.map +1 -0
  203. package/dist/components/UploadProgressBar/UploadProgressBar.d.ts +23 -0
  204. package/dist/components/UploadProgressBar/UploadProgressBar.d.ts.map +1 -0
  205. package/dist/components/UserAvatar/UserAvatar.d.ts +15 -0
  206. package/dist/components/UserAvatar/UserAvatar.d.ts.map +1 -0
  207. package/dist/docs/storiesList.d.ts +7 -0
  208. package/dist/docs/storiesList.d.ts.map +1 -0
  209. package/dist/index.cjs.js +1268 -15
  210. package/dist/index.cjs.js.map +1 -1
  211. package/dist/index.d.ts +96 -306
  212. package/dist/index.d.ts.map +1 -0
  213. package/dist/index.es.js +59638 -4006
  214. package/dist/index.es.js.map +1 -1
  215. package/dist/theme/AcuityMuiThemeProvider.d.ts +9 -0
  216. package/dist/theme/AcuityMuiThemeProvider.d.ts.map +1 -0
  217. package/dist/theme/muiTheme.d.ts +134 -0
  218. package/dist/theme/muiTheme.d.ts.map +1 -0
  219. package/dist/theme/platformPalette.d.ts +97 -0
  220. package/dist/theme/platformPalette.d.ts.map +1 -0
  221. package/dist/theme/theme.d.ts +124 -0
  222. package/dist/theme/theme.d.ts.map +1 -0
  223. package/dist/util/eventHandlers.d.ts +6 -0
  224. package/dist/util/eventHandlers.d.ts.map +1 -0
  225. package/dist/util/index.d.ts +10 -0
  226. package/dist/util/index.d.ts.map +1 -0
  227. package/dist/util/landingPageUtil.d.ts +7 -0
  228. package/dist/util/landingPageUtil.d.ts.map +1 -0
  229. package/dist/util/numberToWord.d.ts +5 -0
  230. package/dist/util/numberToWord.d.ts.map +1 -0
  231. package/dist/util/randomId.d.ts +5 -0
  232. package/dist/util/randomId.d.ts.map +1 -0
  233. package/dist/util/timerHelpers.d.ts +6 -0
  234. package/dist/util/timerHelpers.d.ts.map +1 -0
  235. package/dist/util/types.d.ts +7 -0
  236. package/dist/util/types.d.ts.map +1 -0
  237. package/package.json +97 -63
@@ -0,0 +1,15 @@
1
+ export interface MarkdownProps {
2
+ /** Markdown source. Renders an empty block when omitted. */
3
+ content?: string;
4
+ }
5
+ /**
6
+ * Renders question and instruction copy written in Markdown.
7
+ *
8
+ * Every element is mapped onto a MUI component rather than a bare tag, so authored
9
+ * content picks up the platform's type scale and link colours instead of browser
10
+ * defaults. Links always open in a new tab with `noopener` — content is authored
11
+ * per-institution, and a candidate mid-assessment must not be navigated away.
12
+ */
13
+ export declare const Markdown: ({ content }: MarkdownProps) => import("react").JSX.Element;
14
+ export default Markdown;
15
+ //# sourceMappingURL=Markdown.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Markdown.d.ts","sourceRoot":"","sources":["../../../src/components/Markdown/Markdown.tsx"],"names":[],"mappings":"AAiBA,MAAM,WAAW,aAAa;IAC5B,4DAA4D;IAC5D,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,QAAQ,GAAI,aAAkB,aAAa,gCAuEvD,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -0,0 +1,81 @@
1
+ import { Theme } from '@mui/material';
2
+ /**
3
+ * Style overrides for each Markdown element, ported verbatim from TEX.
4
+ *
5
+ * NOTE: the heading rules assign a whole typography variant object (e.g.
6
+ * `theme.typography['4xl']`, which is `{ fontSize, lineHeight }`) to `fontSize`.
7
+ * MUI reads an object there as a responsive breakpoint map, so those values are
8
+ * discarded and headings fall back to their MUI variant sizes. This is carried over
9
+ * as-is rather than fixed here, so TEX and the design system render identically —
10
+ * see the component's docs page.
11
+ */
12
+ export declare const getMarkdownStyles: (theme: Theme) => {
13
+ h1: {
14
+ fontFamily: string | (string & {});
15
+ fontWeight: number | import("csstype").Property.FontWeight;
16
+ fontSize: import('react').CSSProperties;
17
+ textAlign: string;
18
+ verticalAlign: string;
19
+ };
20
+ h2: {
21
+ fontFamily: string | (string & {});
22
+ fontWeight: number | import("csstype").Property.FontWeight;
23
+ fontSize: import('react').CSSProperties;
24
+ textAlign: string;
25
+ verticalAlign: string;
26
+ };
27
+ h3: {
28
+ fontFamily: string | (string & {});
29
+ fontWeight: number | import("csstype").Property.FontWeight;
30
+ fontSize: import('react').CSSProperties;
31
+ textAlign: string;
32
+ width: string;
33
+ mt: string;
34
+ };
35
+ h4: {
36
+ fontFamily: string | (string & {});
37
+ fontWeight: number | import("csstype").Property.FontWeight;
38
+ fontSize: import('react').CSSProperties;
39
+ textAlign: string;
40
+ verticalAlign: string;
41
+ };
42
+ ul: {
43
+ fontFamily: string | (string & {});
44
+ fontWeight: number | import("csstype").Property.FontWeight;
45
+ listStyleType: string;
46
+ pl: string;
47
+ textAlign: string;
48
+ width: string;
49
+ pt: number;
50
+ };
51
+ ol: {
52
+ fontFamily: string | (string & {});
53
+ fontWeight: number | import("csstype").Property.FontWeight;
54
+ listStyleType: string;
55
+ pl: string;
56
+ mt: string;
57
+ textAlign: string;
58
+ width: string;
59
+ };
60
+ p: {
61
+ fontFamily: string | (string & {});
62
+ fontWeight: number | import("csstype").Property.FontWeight;
63
+ mt: string;
64
+ textAlign: string;
65
+ wordBreak: string;
66
+ width: string;
67
+ };
68
+ a: {
69
+ fontFamily: string | (string & {});
70
+ fontWeight: number | import("csstype").Property.FontWeight;
71
+ color: string;
72
+ textDecoration: string;
73
+ };
74
+ li: {
75
+ fontFamily: string | (string & {});
76
+ fontWeight: number | import("csstype").Property.FontWeight;
77
+ display: string;
78
+ p: number;
79
+ };
80
+ };
81
+ //# sourceMappingURL=Markdown.styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Markdown.styles.d.ts","sourceRoot":"","sources":["../../../src/components/Markdown/Markdown.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAItC;;;;;;;;;GASG;AACH,eAAO,MAAM,iBAAiB,GAAI,OAAO,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqE5C,CAAC"}
@@ -0,0 +1,18 @@
1
+ import { default as React } from 'react';
2
+ import { IconNames } from '../../util/types';
3
+ export interface ModalProps {
4
+ open: boolean;
5
+ onClose: () => void;
6
+ title: string;
7
+ backdrop: 'static' | 'dismissible' | 'none';
8
+ content: React.ReactNode;
9
+ footer?: React.ReactNode;
10
+ icon?: boolean;
11
+ iconName?: IconNames;
12
+ iconComponent?: React.ReactNode;
13
+ dismissible?: boolean;
14
+ horizontalRule?: boolean;
15
+ }
16
+ declare const Modal: ({ open, onClose, title, backdrop, content, footer, icon, iconComponent, iconName, dismissible, horizontalRule }: ModalProps) => React.JSX.Element;
17
+ export default Modal;
18
+ //# sourceMappingURL=modal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"modal.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/modal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAIxC,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAG7C,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,QAAQ,GAAG,aAAa,GAAG,MAAM,CAAC;IAC5C,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAChC,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,QAAA,MAAM,KAAK,GAAI,iHAYZ,UAAU,sBAwGZ,CAAC;AAEF,eAAe,KAAK,CAAC"}
@@ -0,0 +1,28 @@
1
+ export interface NumericScaleProps {
2
+ /** The question being answered. */
3
+ label: string;
4
+ min: number;
5
+ max: number;
6
+ /** Meaning of `min`, e.g. "Very difficult". */
7
+ leftLabel: string;
8
+ /** Meaning of `max`, e.g. "Very easy". */
9
+ rightLabel: string;
10
+ /** Controlled value. Leave unset to let the scale manage its own state. */
11
+ value?: number;
12
+ onChange?: (value: number) => void;
13
+ /** Radio group `name`. Defaults to a generated id. */
14
+ name?: string;
15
+ disabled?: boolean;
16
+ /**
17
+ * ARIA label for one point on the scale. Supplied by the consuming app so the copy
18
+ * can be translated there; defaults to English, e.g. "1 of 7, Very difficult".
19
+ */
20
+ getOptionAriaLabel?: (option: number) => string;
21
+ }
22
+ /**
23
+ * A Likert-style survey question: one radio per whole number from `min` to `max`,
24
+ * with the meaning of each end shown beside the scale.
25
+ */
26
+ export declare const NumericScale: ({ label, min, max, leftLabel, rightLabel, value, onChange, name, disabled, getOptionAriaLabel }: NumericScaleProps) => import("react").JSX.Element;
27
+ export default NumericScale;
28
+ //# sourceMappingURL=NumericScale.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NumericScale.d.ts","sourceRoot":"","sources":["../../../src/components/NumericScale/NumericScale.tsx"],"names":[],"mappings":"AA6FA,MAAM,WAAW,iBAAiB;IAChC,mCAAmC;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,+CAA+C;IAC/C,SAAS,EAAE,MAAM,CAAC;IAClB,0CAA0C;IAC1C,UAAU,EAAE,MAAM,CAAC;IACnB,2EAA2E;IAC3E,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,sDAAsD;IACtD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,kBAAkB,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,MAAM,CAAC;CACjD;AAED;;;GAGG;AACH,eAAO,MAAM,YAAY,GAAI,iGAW1B,iBAAiB,gCA8DnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { FC, ReactNode } from 'react';
2
+ interface PageTitleProps {
3
+ title: string;
4
+ className?: string;
5
+ 'data-testid'?: string;
6
+ /** Optional subtitle rendered below the title */
7
+ subtitle?: ReactNode;
8
+ }
9
+ export declare const PageTitle: FC<PageTitleProps>;
10
+ export default PageTitle;
11
+ //# sourceMappingURL=PageTitle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PageTitle.d.ts","sourceRoot":"","sources":["../../../src/components/PageTitle/PageTitle.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEtC,UAAU,cAAc;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,iDAAiD;IACjD,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,eAAO,MAAM,SAAS,EAAE,EAAE,CAAC,cAAc,CAiBxC,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { ButtonProps } from '@mui/material';
2
+ export type PrimaryButtonProps = ButtonProps;
3
+ /**
4
+ * The main call to action on an X page: a contained, rounded MUI `Button` in the
5
+ * platform primary colour. Every MUI `Button` prop applies, and a caller's `sx` is
6
+ * merged over the defaults rather than replacing them.
7
+ */
8
+ export declare const PrimaryButton: ({ children, sx, ...props }: PrimaryButtonProps) => import("react").JSX.Element;
9
+ export default PrimaryButton;
10
+ //# sourceMappingURL=PrimaryButton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PrimaryButton.d.ts","sourceRoot":"","sources":["../../../src/components/PrimaryButton/PrimaryButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAU,WAAW,EAAE,MAAM,eAAe,CAAC;AAEpD,MAAM,MAAM,kBAAkB,GAAG,WAAW,CAAC;AAE7C;;;;GAIG;AACH,eAAO,MAAM,aAAa,GAAI,4BAA4B,kBAAkB,gCAoB3E,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -0,0 +1,13 @@
1
+ export interface ProgressBarProps {
2
+ size?: 'small' | 'large';
3
+ state?: 'in-progress' | 'error' | 'success' | 'indeterminate';
4
+ label?: string;
5
+ helperMessage?: string;
6
+ className?: string;
7
+ value?: number;
8
+ maxValue?: number;
9
+ hideIcon?: boolean;
10
+ }
11
+ declare const ProgressBar: ({ size, label, helperMessage, className, state, maxValue, value, hideIcon, ...props }: ProgressBarProps) => import("react").JSX.Element;
12
+ export default ProgressBar;
13
+ //# sourceMappingURL=progressBar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"progressBar.d.ts","sourceRoot":"","sources":["../../../src/components/ProgressBar/progressBar.tsx"],"names":[],"mappings":"AAIA,MAAM,WAAW,gBAAgB;IAC/B,IAAI,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;IACzB,KAAK,CAAC,EAAE,aAAa,GAAG,OAAO,GAAG,SAAS,GAAG,eAAe,CAAC;IAC9D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAiDD,QAAA,MAAM,WAAW,GAAI,uFAUlB,gBAAgB,gCA0FlB,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -0,0 +1,41 @@
1
+ /**
2
+ * Where a section sits in the session. Mirrors x-api's `ProgressSectionStateEnum`
3
+ * values, so an API `Progress` object can be passed straight through.
4
+ */
5
+ export type ProgressSectionState = 'complete' | 'active' | 'upcoming';
6
+ export interface ProgressSection {
7
+ /** Text shown in the step: a number, or a word such as "INTRO" or "BREAK". */
8
+ label: string;
9
+ state: ProgressSectionState;
10
+ }
11
+ export interface ProgressStepperProps {
12
+ progress: {
13
+ sections?: ProgressSection[];
14
+ };
15
+ /**
16
+ * ARIA label for one step. Supplied by the consuming app so the copy can be
17
+ * translated there; defaults to English.
18
+ */
19
+ getStepAriaLabel?: (args: {
20
+ section: ProgressSection;
21
+ sectionNumber: number;
22
+ totalSections: number;
23
+ }) => string;
24
+ /**
25
+ * ARIA label for the whole stepper. Supplied by the consuming app so the copy can
26
+ * be translated there; defaults to English.
27
+ */
28
+ getContainerAriaLabel?: (args: {
29
+ completedSections: number;
30
+ totalSections: number;
31
+ currentSection: number;
32
+ }) => string;
33
+ }
34
+ /**
35
+ * A horizontal stepper for a candidate's progress through an X session. Completed
36
+ * sections show a check, the active one is outlined in primary, and upcoming ones
37
+ * are grey. Renders nothing when there are no sections.
38
+ */
39
+ export declare const ProgressStepper: ({ progress, getStepAriaLabel, getContainerAriaLabel }: ProgressStepperProps) => import("react").JSX.Element | null;
40
+ export default ProgressStepper;
41
+ //# sourceMappingURL=ProgressStepper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProgressStepper.d.ts","sourceRoot":"","sources":["../../../src/components/ProgressStepper/ProgressStepper.tsx"],"names":[],"mappings":"AAIA;;;GAGG;AACH,MAAM,MAAM,oBAAoB,GAAG,UAAU,GAAG,QAAQ,GAAG,UAAU,CAAC;AAEtE,MAAM,WAAW,eAAe;IAC9B,8EAA8E;IAC9E,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,oBAAoB,CAAC;CAC7B;AAED,MAAM,WAAW,oBAAoB;IACnC,QAAQ,EAAE;QAAE,QAAQ,CAAC,EAAE,eAAe,EAAE,CAAA;KAAE,CAAC;IAC3C;;;OAGG;IACH,gBAAgB,CAAC,EAAE,CAAC,IAAI,EAAE;QACxB,OAAO,EAAE,eAAe,CAAC;QACzB,aAAa,EAAE,MAAM,CAAC;QACtB,aAAa,EAAE,MAAM,CAAC;KACvB,KAAK,MAAM,CAAC;IACb;;;OAGG;IACH,qBAAqB,CAAC,EAAE,CAAC,IAAI,EAAE;QAC7B,iBAAiB,EAAE,MAAM,CAAC;QAC1B,aAAa,EAAE,MAAM,CAAC;QACtB,cAAc,EAAE,MAAM,CAAC;KACxB,KAAK,MAAM,CAAC;CACd;AA0LD;;;;GAIG;AACH,eAAO,MAAM,eAAe,GAAI,uDAI7B,oBAAoB,uCAoDtB,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -0,0 +1,18 @@
1
+ import { FC } from 'react';
2
+ export interface ReplayButtonProps {
3
+ /** Text label for the replay button */
4
+ label: string;
5
+ /** Click handler for the replay action */
6
+ onClick: () => void;
7
+ /** Additional ARIA label for accessibility */
8
+ ariaLabel?: string;
9
+ }
10
+ /**
11
+ * The control overlaid on a finished video, offering to play it again.
12
+ *
13
+ * Wraps its label instead of truncating and has a generous minimum height, because
14
+ * the label is caller-supplied copy that can be a full sentence in either language.
15
+ */
16
+ export declare const ReplayButton: FC<ReplayButtonProps>;
17
+ export default ReplayButton;
18
+ //# sourceMappingURL=ReplayButton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ReplayButton.d.ts","sourceRoot":"","sources":["../../../src/components/ReplayButton/ReplayButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAK3B,MAAM,WAAW,iBAAiB;IAChC,uCAAuC;IACvC,KAAK,EAAE,MAAM,CAAC;IACd,0CAA0C;IAC1C,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,8CAA8C;IAC9C,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;GAKG;AACH,eAAO,MAAM,YAAY,EAAE,EAAE,CAAC,iBAAiB,CAyC9C,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -0,0 +1,32 @@
1
+ export interface SingleSelectOption {
2
+ label: string;
3
+ value: string;
4
+ /** Reveals a free-text box under the option while it is selected, e.g. for "Other". */
5
+ allowsFreeText?: boolean;
6
+ }
7
+ export interface SingleSelectProps {
8
+ /** The question being answered. */
9
+ label: string;
10
+ options: SingleSelectOption[];
11
+ /** Controlled selection. Leave unset to let the group manage its own state. */
12
+ value?: string;
13
+ /** Controlled free text for an `allowsFreeText` option. */
14
+ freeTextValue?: string;
15
+ /**
16
+ * Called with the selected value, plus the free text when the selected option
17
+ * allows it.
18
+ */
19
+ onChange?: (value: string, freeTextValue?: string) => void;
20
+ /** Radio group `name`. Defaults to a generated id. */
21
+ name?: string;
22
+ disabled?: boolean;
23
+ /** Placeholder for the free-text box. Supplied by the app so it can be translated. */
24
+ freeTextPlaceholder?: string;
25
+ }
26
+ /**
27
+ * A single-choice survey question as a vertical radio group. An option marked
28
+ * `allowsFreeText` opens a text box beneath it while selected.
29
+ */
30
+ export declare const SingleSelect: ({ label, options, value, freeTextValue, onChange, name, disabled, freeTextPlaceholder }: SingleSelectProps) => import("react").JSX.Element;
31
+ export default SingleSelect;
32
+ //# sourceMappingURL=SingleSelect.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SingleSelect.d.ts","sourceRoot":"","sources":["../../../src/components/SingleSelect/SingleSelect.tsx"],"names":[],"mappings":"AAWA,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,uFAAuF;IACvF,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAmED,MAAM,WAAW,iBAAiB;IAChC,mCAAmC;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,kBAAkB,EAAE,CAAC;IAC9B,+EAA+E;IAC/E,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,2DAA2D;IAC3D,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;OAGG;IACH,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,aAAa,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3D,sDAAsD;IACtD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,sFAAsF;IACtF,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B;AAED;;;GAGG;AACH,eAAO,MAAM,YAAY,GAAI,yFAS1B,iBAAiB,gCAuEnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -0,0 +1,11 @@
1
+ export interface SpinnerProps {
2
+ size: 'small' | 'medium' | 'large' | 'extra-large';
3
+ focusable: boolean;
4
+ label: string;
5
+ ariaLive?: 'polite' | 'assertive' | 'off';
6
+ className?: string;
7
+ spinnerClassName?: string;
8
+ }
9
+ declare const Spinner: ({ size, focusable, label, ariaLive, className, spinnerClassName }: SpinnerProps) => import("react").JSX.Element;
10
+ export default Spinner;
11
+ //# sourceMappingURL=spinner.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spinner.d.ts","sourceRoot":"","sources":["../../../src/components/Spinner/spinner.tsx"],"names":[],"mappings":"AAGA,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,aAAa,CAAC;IACnD,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,QAAQ,GAAG,WAAW,GAAG,KAAK,CAAC;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AA8BD,QAAA,MAAM,OAAO,GAAI,mEAOd,YAAY,gCAgBd,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -0,0 +1,22 @@
1
+ import { ButtonProps } from '@mui/material';
2
+ export interface StepButtonProps extends ButtonProps {
3
+ onAdvance?: () => void;
4
+ /** Description of what this button does - helpful for aria-labels */
5
+ description?: string;
6
+ }
7
+ /**
8
+ * The primary "move to the next step" button in a TEX assessment.
9
+ *
10
+ * Greys out rather than disappearing when disabled, so the candidate can see where
11
+ * the control will be before it becomes available.
12
+ */
13
+ export declare const DefaultStepButton: import('@emotion/styled').StyledComponent<import('@mui/material').ButtonOwnProps & Omit<import('@mui/material').ButtonBaseOwnProps, "classes"> & import('@mui/material/OverridableComponent').CommonProps & Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "className" | "children" | "size" | "tabIndex" | "variant" | "disabled" | "style" | "color" | "href" | "loading" | "action" | "classes" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "sx" | "TouchRippleProps" | "touchRippleRef" | "fullWidth" | "disableElevation" | "disableFocusRipple" | "endIcon" | "loadingIndicator" | "loadingPosition" | "startIcon"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & StepButtonProps, {}, {}>;
14
+ /**
15
+ * The record control for a video response step.
16
+ *
17
+ * Deliberately red and visually distinct from {@link DefaultStepButton}: starting a
18
+ * recording is not the same kind of action as advancing, and a candidate should
19
+ * never confuse the two. Goes full width on small screens so it stays reachable.
20
+ */
21
+ export declare const RecordStepButton: import('@emotion/styled').StyledComponent<import('@mui/material').ButtonOwnProps & Omit<import('@mui/material').ButtonBaseOwnProps, "classes"> & import('@mui/material/OverridableComponent').CommonProps & Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "className" | "children" | "size" | "tabIndex" | "variant" | "disabled" | "style" | "color" | "href" | "loading" | "action" | "classes" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "sx" | "TouchRippleProps" | "touchRippleRef" | "fullWidth" | "disableElevation" | "disableFocusRipple" | "endIcon" | "loadingIndicator" | "loadingPosition" | "startIcon"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & StepButtonProps, {}, {}>;
22
+ //# sourceMappingURL=StepButtons.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StepButtons.d.ts","sourceRoot":"","sources":["../../../src/components/StepButtons/StepButtons.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAU,WAAW,EAAE,MAAM,eAAe,CAAC;AAGpD,MAAM,WAAW,eAAgB,SAAQ,WAAW;IAClD,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,qEAAqE;IACrE,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,s2BAyB7B,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB,s2BA6B5B,CAAC"}
@@ -0,0 +1,8 @@
1
+ interface CheckboxCellProps {
2
+ allChecked: boolean;
3
+ someChecked: boolean;
4
+ onSelectAll: () => void;
5
+ }
6
+ export declare const CheckboxCell: ({ allChecked, someChecked, onSelectAll }: CheckboxCellProps) => import("react").JSX.Element;
7
+ export default CheckboxCell;
8
+ //# sourceMappingURL=CheckboxCell.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CheckboxCell.d.ts","sourceRoot":"","sources":["../../../src/components/Table/CheckboxCell.tsx"],"names":[],"mappings":"AAKA,UAAU,iBAAiB;IACzB,UAAU,EAAE,OAAO,CAAC;IACpB,WAAW,EAAE,OAAO,CAAC;IACrB,WAAW,EAAE,MAAM,IAAI,CAAC;CACzB;AAED,eAAO,MAAM,YAAY,GAAI,0CAI1B,iBAAiB,gCA8BnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { ReactNode } from 'react';
2
+ interface CustomTableProps {
3
+ children: ReactNode;
4
+ }
5
+ export declare const CustomTable: ({ children }: CustomTableProps) => import("react").JSX.Element;
6
+ export default CustomTable;
7
+ //# sourceMappingURL=CustomTable.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CustomTable.d.ts","sourceRoot":"","sources":["../../../src/components/Table/CustomTable.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGlC,UAAU,gBAAgB;IACxB,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,eAAO,MAAM,WAAW,GAAI,cAAc,gBAAgB,gCA8BzD,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -0,0 +1,28 @@
1
+ import { SortConfig, TableSearch } from './SortableTableCell';
2
+ type ColumnType = 'tableCell' | 'searchable';
3
+ interface ColumnItem<T> {
4
+ id: string;
5
+ type: ColumnType;
6
+ field: keyof T;
7
+ label: string;
8
+ sortDirection?: 'asc' | 'desc';
9
+ }
10
+ interface CustomTableHeadProps<T extends {
11
+ id: string;
12
+ }> {
13
+ items: ColumnItem<T>[];
14
+ tableSearch: TableSearch<T>;
15
+ setTableSearch: (update: (prev: TableSearch<T>) => TableSearch<T>) => void;
16
+ tableSort: SortConfig<T> | undefined;
17
+ setTableSort: (update: (prev: SortConfig<T> | undefined) => SortConfig<T> | undefined) => void;
18
+ allChecked: boolean;
19
+ someChecked: boolean;
20
+ onSelectAll: () => void;
21
+ shouldRenderCheckbox?: boolean;
22
+ shouldRenderAction?: boolean;
23
+ }
24
+ export declare const CustomTableHead: <T extends {
25
+ id: string;
26
+ }>({ shouldRenderCheckbox, shouldRenderAction, items, tableSearch, setTableSearch, tableSort, setTableSort, allChecked, someChecked, onSelectAll }: CustomTableHeadProps<T>) => import("react").JSX.Element;
27
+ export default CustomTableHead;
28
+ //# sourceMappingURL=CustomTableHead.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CustomTableHead.d.ts","sourceRoot":"","sources":["../../../src/components/Table/CustomTableHead.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAqB,UAAU,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAejF,KAAK,UAAU,GAAG,WAAW,GAAG,YAAY,CAAC;AAE7C,UAAU,UAAU,CAAC,CAAC;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,UAAU,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;CAChC;AAED,UAAU,oBAAoB,CAAC,CAAC,SAAS;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE;IACrD,KAAK,EAAE,UAAU,CAAC,CAAC,CAAC,EAAE,CAAC;IACvB,WAAW,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC;IAC5B,cAAc,EAAE,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC,CAAC,KAAK,WAAW,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;IAC3E,SAAS,EAAE,UAAU,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC;IACrC,YAAY,EAAE,CACZ,MAAM,EAAE,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,GAAG,SAAS,KAAK,UAAU,CAAC,CAAC,CAAC,GAAG,SAAS,KACnE,IAAI,CAAC;IACV,UAAU,EAAE,OAAO,CAAC;IACpB,WAAW,EAAE,OAAO,CAAC;IACrB,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B;AAED,eAAO,MAAM,eAAe,GAAI,CAAC,SAAS;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,EAAE,iJAWvD,oBAAoB,CAAC,CAAC,CAAC,gCAoDzB,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { MouseEvent, ReactNode } from 'react';
2
+ interface CustomTableRowProps {
3
+ id: string;
4
+ index: number;
5
+ checked: boolean;
6
+ children: ReactNode;
7
+ onTableRowCheck?: (id: string, index: number, e: MouseEvent) => void;
8
+ onClick?: () => void;
9
+ shouldRenderCheckbox?: boolean;
10
+ }
11
+ export declare const CustomTableRow: import('react').MemoExoticComponent<({ id, index, checked, onTableRowCheck, children, onClick, shouldRenderCheckbox }: CustomTableRowProps) => import("react").JSX.Element>;
12
+ export default CustomTableRow;
13
+ //# sourceMappingURL=CustomTableRow.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CustomTableRow.d.ts","sourceRoot":"","sources":["../../../src/components/Table/CustomTableRow.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAQ,MAAM,OAAO,CAAC;AAOpD,UAAU,mBAAmB;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,SAAS,CAAC;IACpB,eAAe,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,EAAE,UAAU,KAAK,IAAI,CAAC;IACrE,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAChC;AAED,eAAO,MAAM,cAAc,yHAStB,mBAAmB,iCAoCvB,CAAC;AAIF,eAAe,cAAc,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { ReactNode } from 'react';
2
+ interface LabelCellProps {
3
+ label: ReactNode;
4
+ }
5
+ export declare const LabelCell: ({ label }: LabelCellProps) => import("react").JSX.Element;
6
+ export default LabelCell;
7
+ //# sourceMappingURL=LabelCell.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LabelCell.d.ts","sourceRoot":"","sources":["../../../src/components/Table/LabelCell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIlC,UAAU,cAAc;IACtB,KAAK,EAAE,SAAS,CAAC;CAClB;AAED,eAAO,MAAM,SAAS,GAAI,WAAW,cAAc,gCAMlD,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -0,0 +1,20 @@
1
+ import { JSX } from 'react';
2
+ import { TableCellProps } from '@mui/material';
3
+ export type SortConfig<T> = {
4
+ field: keyof T;
5
+ direction: 'asc' | 'desc';
6
+ };
7
+ export type TableSearch<T> = Partial<Record<keyof T, string>>;
8
+ export interface SortableTableCellProps<T extends object> extends TableCellProps {
9
+ field: keyof T;
10
+ label: string;
11
+ value: string;
12
+ setTableSearch: (update: (prev: TableSearch<T>) => TableSearch<T>) => void;
13
+ setTableSort: (update: (prev: SortConfig<T> | undefined) => SortConfig<T> | undefined) => void;
14
+ sortDirection?: 'asc' | 'desc';
15
+ /** Enable the inline search field. Defaults to true. */
16
+ searchable?: boolean;
17
+ }
18
+ export declare const SortableTableCell: <T extends object>(props: SortableTableCellProps<T>) => JSX.Element;
19
+ export default SortableTableCell;
20
+ //# sourceMappingURL=SortableTableCell.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SortableTableCell.d.ts","sourceRoot":"","sources":["../../../src/components/Table/SortableTableCell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAkB,MAAM,OAAO,CAAC;AAG5C,OAAO,EAIL,cAAc,EAEf,MAAM,eAAe,CAAC;AAKvB,MAAM,MAAM,UAAU,CAAC,CAAC,IAAI;IAC1B,KAAK,EAAE,MAAM,CAAC,CAAC;IACf,SAAS,EAAE,KAAK,GAAG,MAAM,CAAC;CAC3B,CAAC;AAEF,MAAM,MAAM,WAAW,CAAC,CAAC,IAAI,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC;AAE9D,MAAM,WAAW,sBAAsB,CAAC,CAAC,SAAS,MAAM,CAAE,SAAQ,cAAc;IAC9E,KAAK,EAAE,MAAM,CAAC,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC,CAAC,KAAK,WAAW,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;IAC3E,YAAY,EAAE,CACZ,MAAM,EAAE,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,GAAG,SAAS,KAAK,UAAU,CAAC,CAAC,CAAC,GAAG,SAAS,KACnE,IAAI,CAAC;IACV,aAAa,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IAC/B,wDAAwD;IACxD,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAgJD,eAAO,MAAM,iBAAiB,EAAmC,CAAC,CAAC,SAAS,MAAM,EAChF,KAAK,EAAE,sBAAsB,CAAC,CAAC,CAAC,KAC7B,GAAG,CAAC,OAAO,CAAC;AAEjB,eAAe,iBAAiB,CAAC"}
@@ -0,0 +1,5 @@
1
+ export declare function filterTableData<T>(data: T[], tableSearch?: Partial<Record<keyof T, string>>, tableSort?: {
2
+ field: keyof T;
3
+ direction: 'asc' | 'desc';
4
+ }): T[];
5
+ //# sourceMappingURL=filterTableData.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"filterTableData.d.ts","sourceRoot":"","sources":["../../../src/components/Table/filterTableData.ts"],"names":[],"mappings":"AAAA,wBAAgB,eAAe,CAAC,CAAC,EAC/B,IAAI,EAAE,CAAC,EAAE,EACT,WAAW,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,CAAC,EAC9C,SAAS,CAAC,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC,CAAC;IAAC,SAAS,EAAE,KAAK,GAAG,MAAM,CAAA;CAAE,GACxD,CAAC,EAAE,CAsCL"}
@@ -0,0 +1,19 @@
1
+ import { MouseEvent } from 'react';
2
+ import { SortConfig, TableSearch } from './SortableTableCell';
3
+ export type { SortConfig, TableSearch };
4
+ export declare const useTable: <T extends {
5
+ id: string;
6
+ }>(tableData: T[]) => {
7
+ tableSearch: Partial<Record<keyof T, string>>;
8
+ setTableSearch: import('react').Dispatch<import('react').SetStateAction<Partial<Record<keyof T, string>>>>;
9
+ tableSort: SortConfig<T> | undefined;
10
+ setTableSort: import('react').Dispatch<import('react').SetStateAction<SortConfig<T> | undefined>>;
11
+ allChecked: boolean;
12
+ someChecked: boolean;
13
+ onSelectAll: () => void;
14
+ onTableRowCheck: (id: string, index: number, e: MouseEvent) => void;
15
+ filteredTableData: T[];
16
+ checkedIds: Set<string>;
17
+ unselectAll: () => void;
18
+ };
19
+ //# sourceMappingURL=useTable.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useTable.d.ts","sourceRoot":"","sources":["../../../src/components/Table/useTable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAY,MAAM,OAAO,CAAC;AAE7C,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAE9D,YAAY,EAAE,UAAU,EAAE,WAAW,EAAE,CAAC;AAExC,eAAO,MAAM,QAAQ,GAAI,CAAC,SAAS;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,EAAE,WAAW,CAAC,EAAE;;;;;;;;0BAqBlC,MAAM,SAAS,MAAM,KAAK,UAAU;;;;CA6BlE,CAAC"}
@@ -0,0 +1,9 @@
1
+ export interface TabProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
2
+ title: string;
3
+ id: string;
4
+ badgeText?: string;
5
+ children: React.ReactNode;
6
+ }
7
+ declare const Tab: ({ children }: TabProps) => import('react').ReactNode;
8
+ export default Tab;
9
+ //# sourceMappingURL=tab.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tab.d.ts","sourceRoot":"","sources":["../../../../src/components/Tabs/Tab/tab.tsx"],"names":[],"mappings":"AAAA,MAAM,WAAW,QAAS,SAAQ,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC;IAC7E,KAAK,EAAE,MAAM,CAAC;IACd,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,QAAA,MAAM,GAAG,GAAI,cAAc,QAAQ,8BAElC,CAAC;AAEF,eAAe,GAAG,CAAC"}
@@ -0,0 +1,11 @@
1
+ export interface TabItemProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
2
+ title: string;
3
+ id: string;
4
+ badgeText?: string;
5
+ handleClick: () => void;
6
+ isActive: boolean;
7
+ isNested?: boolean;
8
+ className?: string;
9
+ }
10
+ export declare const TabItem: ({ title, id, handleClick, isActive, isNested, badgeText, className, ...props }: TabItemProps) => import("react").JSX.Element;
11
+ //# sourceMappingURL=tabItem.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tabItem.d.ts","sourceRoot":"","sources":["../../../../src/components/Tabs/TabItem/tabItem.tsx"],"names":[],"mappings":"AAIA,MAAM,WAAW,YAAa,SAAQ,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC;IACjF,KAAK,EAAE,MAAM,CAAC;IACd,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAqDD,eAAO,MAAM,OAAO,GAAI,gFASrB,YAAY,gCA6Bd,CAAC"}
@@ -0,0 +1,7 @@
1
+ export interface TabItemProps {
2
+ id: string;
3
+ children: React.ReactNode;
4
+ hidden: boolean;
5
+ }
6
+ export declare const TabPanel: ({ id, children, hidden }: TabItemProps) => import("react").JSX.Element;
7
+ //# sourceMappingURL=tabPanel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tabPanel.d.ts","sourceRoot":"","sources":["../../../../src/components/Tabs/TabPanel/tabPanel.tsx"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,MAAM,EAAE,OAAO,CAAC;CACjB;AAED,eAAO,MAAM,QAAQ,GAAI,0BAA0B,YAAY,gCAY9D,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { default as React } from 'react';
2
+ export interface TabsProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ handleTabChange: (index: number) => void;
4
+ isNested?: boolean;
5
+ activeTabIndex: number;
6
+ children: React.ReactNode;
7
+ className?: string;
8
+ }
9
+ declare const Tabs: ({ children, handleTabChange, activeTabIndex, isNested, className, ...props }: TabsProps) => React.JSX.Element;
10
+ export default Tabs;
11
+ //# sourceMappingURL=tabs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tabs.d.ts","sourceRoot":"","sources":["../../../../src/components/Tabs/Tabs/tabs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuB,MAAM,OAAO,CAAC;AAK5C,MAAM,WAAW,SAAU,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IACrE,eAAe,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IACvB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,QAAA,MAAM,IAAI,GAAI,8EAOX,SAAS,sBA6CX,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { FC, ReactNode } from 'react';
2
+ export interface TexFooterProps {
3
+ /** The controls to centre in the footer — typically the step's advance button. */
4
+ children?: ReactNode;
5
+ }
6
+ /**
7
+ * The fixed action bar at the bottom of the TEX assessment shell.
8
+ *
9
+ * Its rounded bottom corners are deliberate: it sits inside a rounded card and is
10
+ * shaped to match, so it does not read as a standalone page footer.
11
+ */
12
+ export declare const TexFooter: FC<TexFooterProps>;
13
+ export default TexFooter;
14
+ //# sourceMappingURL=TexFooter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TexFooter.d.ts","sourceRoot":"","sources":["../../../src/components/TexFooter/TexFooter.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAItC,MAAM,WAAW,cAAc;IAC7B,kFAAkF;IAClF,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED;;;;;GAKG;AACH,eAAO,MAAM,SAAS,EAAE,EAAE,CAAC,cAAc,CA6BxC,CAAC;AAEF,eAAe,SAAS,CAAC"}