@oc-digital/react-component-library 7.2.2 → 7.2.3-beta.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 (252) hide show
  1. package/build/Alert/Alert.d.ts +5 -4
  2. package/build/Alert/Alert.types.d.ts +14 -13
  3. package/build/AlphabeticalList/AlphabeticalList.d.ts +5 -4
  4. package/build/AlphabeticalList/AlphabeticalList.types.d.ts +22 -22
  5. package/build/AutoSave/Select/AutoSave.types.d.ts +11 -11
  6. package/build/AutoSave/Select/index.d.ts +4 -3
  7. package/build/AutoSave/Text/AutoSave.types.d.ts +17 -16
  8. package/build/AutoSave/Text/index.d.ts +4 -3
  9. package/build/Breadcrumbs/Breadcrumbs.d.ts +5 -4
  10. package/build/Breadcrumbs/Breadcrumbs.types.d.ts +24 -23
  11. package/build/Button/Button.d.ts +4 -4
  12. package/build/Button/Button.types.d.ts +10 -10
  13. package/build/ButtonWithConfirm/ButtonWithConfirm.d.ts +5 -4
  14. package/build/ButtonWithConfirm/ButtonWithConfirm.types.d.ts +9 -9
  15. package/build/ContentBox/ContentBox.d.ts +5 -4
  16. package/build/ContentBox/ContentBox.types.d.ts +7 -7
  17. package/build/ContentLabel/ContentLabel.d.ts +5 -4
  18. package/build/ContentLabel/ContentLabel.types.d.ts +5 -5
  19. package/build/DatePicker/DatePicker.d.ts +5 -4
  20. package/build/DatePicker/DatePicker.types.d.ts +6 -5
  21. package/build/EditableTable/EditableTable.d.ts +5 -4
  22. package/build/EditableTable/EditableTable.types.d.ts +107 -106
  23. package/build/EditableTable/components/TableCheckbox.d.ts +8 -8
  24. package/build/EditableTable/components/TableDateInput.d.ts +8 -9
  25. package/build/EditableTable/components/TableTextInput.d.ts +21 -20
  26. package/build/EditableTable/components/utils/getTextWidth.d.ts +13 -13
  27. package/build/EditableTable/defaultCells.d.ts +31 -30
  28. package/build/EntityList/EntityList.d.ts +5 -4
  29. package/build/EntityList/EntityList.types.d.ts +15 -14
  30. package/build/ErrorIndicator/ErrorIndicator.d.ts +5 -4
  31. package/build/ErrorIndicator/ErrorIndicator.types.d.ts +5 -4
  32. package/build/ImageDisplayAndUpload/ImageDisplayAndUpload.d.ts +5 -4
  33. package/build/ImageDisplayAndUpload/ImageDisplayAndUpload.types.d.ts +9 -8
  34. package/build/KeyboardDatePicker/KeyboardDatePicker.d.ts +5 -4
  35. package/build/KeyboardDatePicker/KeyboardDatePicker.types.d.ts +6 -5
  36. package/build/LeftNavigation/LeftNavigation.d.ts +5 -4
  37. package/build/LeftNavigation/LeftNavigation.types.d.ts +97 -96
  38. package/build/LeftNavigation/NavListItem.d.ts +5 -4
  39. package/build/LeftNavigation/PrimaryLeftNavigation.d.ts +5 -4
  40. package/build/LeftNavigation/SecondaryLeftNavigation.d.ts +5 -4
  41. package/build/LoadingSpinner/LoadingSpinner.d.ts +5 -4
  42. package/build/LoadingSpinner/LoadingSpinner.types.d.ts +6 -5
  43. package/build/MainLayout/MainLayout.d.ts +5 -4
  44. package/build/MainLayout/MainLayout.types.d.ts +11 -10
  45. package/build/MobileDatePicker/MobileDatePicker.d.ts +5 -4
  46. package/build/MobileDatePicker/MobileDatePicker.types.d.ts +6 -5
  47. package/build/NavbarLayout/Navbar.d.ts +13 -12
  48. package/build/NavbarLayout/NavbarLayout.d.ts +17 -16
  49. package/build/NavbarLayout/index.d.ts +2 -2
  50. package/build/SearchBar/SearchBar.d.ts +5 -4
  51. package/build/SearchBar/SearchBar.types.d.ts +33 -33
  52. package/build/Select/Select.d.ts +5 -4
  53. package/build/Select/Select.types.d.ts +16 -16
  54. package/build/StaticTable/StaticTable.d.ts +5 -4
  55. package/build/StaticTable/StaticTable.types.d.ts +21 -21
  56. package/build/SvgComponents/ContainedPartnersLogo.d.ts +5 -4
  57. package/build/SvgComponents/HomeSvg.d.ts +5 -4
  58. package/build/SvgComponents/NovelLogoSvg.d.ts +5 -4
  59. package/build/SvgComponents/OrganisationList.d.ts +5 -4
  60. package/build/SvgComponents/ProjectsSvg.d.ts +5 -4
  61. package/build/SvgComponents/index.d.ts +5 -5
  62. package/build/SvgComponents/types.d.ts +6 -6
  63. package/build/TextField/TextField.d.ts +16 -15
  64. package/build/TextField/TextField.types.d.ts +8 -7
  65. package/build/Tooltip/OptionalTooltip.d.ts +9 -8
  66. package/build/Tooltip/index.d.ts +1 -1
  67. package/build/globals/index.d.ts +26 -26
  68. package/build/hooks/index.d.ts +3 -3
  69. package/build/hooks/useDebounceEffect.d.ts +2 -2
  70. package/build/hooks/useInterval.d.ts +2 -2
  71. package/build/hooks/useWhyDidYouUpdate.d.ts +1 -1
  72. package/build/index.d.ts +38 -37
  73. package/build/index.js +63000 -1
  74. package/build/index.js.map +1 -1
  75. package/build/stories/Button.d.ts +28 -0
  76. package/build/stories/Button.stories.d.ts +10 -0
  77. package/build/stories/Header.d.ts +12 -0
  78. package/build/stories/Header.stories.d.ts +8 -0
  79. package/build/stories/Page.d.ts +3 -0
  80. package/build/stories/Page.stories.d.ts +8 -0
  81. package/build/style.css +1 -0
  82. package/build/styles/colours.d.ts +3 -3
  83. package/build/styles/font.d.ts +1 -1
  84. package/build/styles/index.d.ts +3 -3
  85. package/build/styles/layout.d.ts +1 -1
  86. package/build/styles/spacing.d.ts +1 -1
  87. package/build/styles/themes.d.ts +2 -2
  88. package/build/utils/index.d.ts +6 -5
  89. package/package.json +21 -19
  90. package/build/Alert/Alert.js +0 -48
  91. package/build/Alert/Alert.js.map +0 -1
  92. package/build/Alert/Alert.types.js +0 -2
  93. package/build/Alert/Alert.types.js.map +0 -1
  94. package/build/AlphabeticalList/AlphabeticalList.js +0 -91
  95. package/build/AlphabeticalList/AlphabeticalList.js.map +0 -1
  96. package/build/AlphabeticalList/AlphabeticalList.types.js +0 -2
  97. package/build/AlphabeticalList/AlphabeticalList.types.js.map +0 -1
  98. package/build/AutoSave/Select/AutoSave.types.js +0 -2
  99. package/build/AutoSave/Select/AutoSave.types.js.map +0 -1
  100. package/build/AutoSave/Select/index.js +0 -31
  101. package/build/AutoSave/Select/index.js.map +0 -1
  102. package/build/AutoSave/Text/AutoSave.types.js +0 -2
  103. package/build/AutoSave/Text/AutoSave.types.js.map +0 -1
  104. package/build/AutoSave/Text/index.js +0 -140
  105. package/build/AutoSave/Text/index.js.map +0 -1
  106. package/build/Breadcrumbs/Breadcrumbs.js +0 -126
  107. package/build/Breadcrumbs/Breadcrumbs.js.map +0 -1
  108. package/build/Breadcrumbs/Breadcrumbs.types.js +0 -2
  109. package/build/Breadcrumbs/Breadcrumbs.types.js.map +0 -1
  110. package/build/Button/Button.js +0 -54
  111. package/build/Button/Button.js.map +0 -1
  112. package/build/Button/Button.types.js +0 -2
  113. package/build/Button/Button.types.js.map +0 -1
  114. package/build/ButtonWithConfirm/ButtonWithConfirm.js +0 -63
  115. package/build/ButtonWithConfirm/ButtonWithConfirm.js.map +0 -1
  116. package/build/ButtonWithConfirm/ButtonWithConfirm.types.js +0 -2
  117. package/build/ButtonWithConfirm/ButtonWithConfirm.types.js.map +0 -1
  118. package/build/ContentBox/ContentBox.js +0 -21
  119. package/build/ContentBox/ContentBox.js.map +0 -1
  120. package/build/ContentBox/ContentBox.types.js +0 -2
  121. package/build/ContentBox/ContentBox.types.js.map +0 -1
  122. package/build/ContentLabel/ContentLabel.js +0 -10
  123. package/build/ContentLabel/ContentLabel.js.map +0 -1
  124. package/build/ContentLabel/ContentLabel.types.js +0 -2
  125. package/build/ContentLabel/ContentLabel.types.js.map +0 -1
  126. package/build/DatePicker/DatePicker.js +0 -38
  127. package/build/DatePicker/DatePicker.js.map +0 -1
  128. package/build/DatePicker/DatePicker.types.js +0 -2
  129. package/build/DatePicker/DatePicker.types.js.map +0 -1
  130. package/build/EditableTable/EditableTable.js +0 -398
  131. package/build/EditableTable/EditableTable.js.map +0 -1
  132. package/build/EditableTable/EditableTable.types.js +0 -2
  133. package/build/EditableTable/EditableTable.types.js.map +0 -1
  134. package/build/EditableTable/components/TableCheckbox.js +0 -8
  135. package/build/EditableTable/components/TableCheckbox.js.map +0 -1
  136. package/build/EditableTable/components/TableDateInput.js +0 -20
  137. package/build/EditableTable/components/TableDateInput.js.map +0 -1
  138. package/build/EditableTable/components/TableTextInput.js +0 -89
  139. package/build/EditableTable/components/TableTextInput.js.map +0 -1
  140. package/build/EditableTable/components/styled/Checkbox.d.ts +0 -5
  141. package/build/EditableTable/components/styled/CheckboxLabel.d.ts +0 -5
  142. package/build/EditableTable/components/styled/Input.d.ts +0 -21
  143. package/build/EditableTable/components/styled/InputAdornmentWrapper.d.ts +0 -5
  144. package/build/EditableTable/components/styled/InputWrapper.d.ts +0 -5
  145. package/build/EditableTable/components/styled/SmallError.d.ts +0 -5
  146. package/build/EditableTable/components/utils/getTextWidth.js +0 -58
  147. package/build/EditableTable/components/utils/getTextWidth.js.map +0 -1
  148. package/build/EditableTable/defaultCells.js +0 -118
  149. package/build/EditableTable/defaultCells.js.map +0 -1
  150. package/build/EntityList/EntityList.js +0 -53
  151. package/build/EntityList/EntityList.js.map +0 -1
  152. package/build/EntityList/EntityList.types.js +0 -2
  153. package/build/EntityList/EntityList.types.js.map +0 -1
  154. package/build/ErrorIndicator/ErrorIndicator.js +0 -22
  155. package/build/ErrorIndicator/ErrorIndicator.js.map +0 -1
  156. package/build/ErrorIndicator/ErrorIndicator.types.js +0 -2
  157. package/build/ErrorIndicator/ErrorIndicator.types.js.map +0 -1
  158. package/build/ImageDisplayAndUpload/ImageDisplayAndUpload.js +0 -293
  159. package/build/ImageDisplayAndUpload/ImageDisplayAndUpload.js.map +0 -1
  160. package/build/ImageDisplayAndUpload/ImageDisplayAndUpload.types.js +0 -2
  161. package/build/ImageDisplayAndUpload/ImageDisplayAndUpload.types.js.map +0 -1
  162. package/build/KeyboardDatePicker/KeyboardDatePicker.js +0 -38
  163. package/build/KeyboardDatePicker/KeyboardDatePicker.js.map +0 -1
  164. package/build/KeyboardDatePicker/KeyboardDatePicker.types.js +0 -2
  165. package/build/KeyboardDatePicker/KeyboardDatePicker.types.js.map +0 -1
  166. package/build/LeftNavigation/LeftNavigation.js +0 -47
  167. package/build/LeftNavigation/LeftNavigation.js.map +0 -1
  168. package/build/LeftNavigation/LeftNavigation.types.js +0 -2
  169. package/build/LeftNavigation/LeftNavigation.types.js.map +0 -1
  170. package/build/LeftNavigation/NavListItem.js +0 -122
  171. package/build/LeftNavigation/NavListItem.js.map +0 -1
  172. package/build/LeftNavigation/PrimaryLeftNavigation.js +0 -108
  173. package/build/LeftNavigation/PrimaryLeftNavigation.js.map +0 -1
  174. package/build/LeftNavigation/SecondaryLeftNavigation.js +0 -88
  175. package/build/LeftNavigation/SecondaryLeftNavigation.js.map +0 -1
  176. package/build/LoadingSpinner/LoadingSpinner.js +0 -21
  177. package/build/LoadingSpinner/LoadingSpinner.js.map +0 -1
  178. package/build/LoadingSpinner/LoadingSpinner.types.js +0 -2
  179. package/build/LoadingSpinner/LoadingSpinner.types.js.map +0 -1
  180. package/build/MainLayout/MainLayout.js +0 -46
  181. package/build/MainLayout/MainLayout.js.map +0 -1
  182. package/build/MainLayout/MainLayout.types.js +0 -2
  183. package/build/MainLayout/MainLayout.types.js.map +0 -1
  184. package/build/MobileDatePicker/MobileDatePicker.js +0 -38
  185. package/build/MobileDatePicker/MobileDatePicker.js.map +0 -1
  186. package/build/MobileDatePicker/MobileDatePicker.types.js +0 -2
  187. package/build/MobileDatePicker/MobileDatePicker.types.js.map +0 -1
  188. package/build/NavbarLayout/Navbar.js +0 -101
  189. package/build/NavbarLayout/Navbar.js.map +0 -1
  190. package/build/NavbarLayout/NavbarLayout.js +0 -52
  191. package/build/NavbarLayout/NavbarLayout.js.map +0 -1
  192. package/build/NavbarLayout/index.js +0 -2
  193. package/build/NavbarLayout/index.js.map +0 -1
  194. package/build/SearchBar/SearchBar.js +0 -75
  195. package/build/SearchBar/SearchBar.js.map +0 -1
  196. package/build/SearchBar/SearchBar.types.js +0 -2
  197. package/build/SearchBar/SearchBar.types.js.map +0 -1
  198. package/build/Select/Select.js +0 -140
  199. package/build/Select/Select.js.map +0 -1
  200. package/build/Select/Select.types.js +0 -2
  201. package/build/Select/Select.types.js.map +0 -1
  202. package/build/StaticTable/StaticTable.js +0 -147
  203. package/build/StaticTable/StaticTable.js.map +0 -1
  204. package/build/StaticTable/StaticTable.types.js +0 -2
  205. package/build/StaticTable/StaticTable.types.js.map +0 -1
  206. package/build/SvgComponents/ContainedPartnersLogo.js +0 -8
  207. package/build/SvgComponents/ContainedPartnersLogo.js.map +0 -1
  208. package/build/SvgComponents/HomeSvg.js +0 -8
  209. package/build/SvgComponents/HomeSvg.js.map +0 -1
  210. package/build/SvgComponents/NovelLogoSvg.js +0 -8
  211. package/build/SvgComponents/NovelLogoSvg.js.map +0 -1
  212. package/build/SvgComponents/OrganisationList.js +0 -8
  213. package/build/SvgComponents/OrganisationList.js.map +0 -1
  214. package/build/SvgComponents/ProjectsSvg.js +0 -8
  215. package/build/SvgComponents/ProjectsSvg.js.map +0 -1
  216. package/build/SvgComponents/index.js +0 -6
  217. package/build/SvgComponents/index.js.map +0 -1
  218. package/build/SvgComponents/types.js +0 -2
  219. package/build/SvgComponents/types.js.map +0 -1
  220. package/build/TextField/TextField.js +0 -67
  221. package/build/TextField/TextField.js.map +0 -1
  222. package/build/TextField/TextField.types.js +0 -2
  223. package/build/TextField/TextField.types.js.map +0 -1
  224. package/build/Tooltip/OptionalTooltip.js +0 -11
  225. package/build/Tooltip/OptionalTooltip.js.map +0 -1
  226. package/build/Tooltip/index.js +0 -2
  227. package/build/Tooltip/index.js.map +0 -1
  228. package/build/assets/index-DCUzKTQq.css +0 -78
  229. package/build/globals/index.js +0 -28
  230. package/build/globals/index.js.map +0 -1
  231. package/build/hooks/index.js +0 -4
  232. package/build/hooks/index.js.map +0 -1
  233. package/build/hooks/useDebounceEffect.js +0 -12
  234. package/build/hooks/useDebounceEffect.js.map +0 -1
  235. package/build/hooks/useInterval.js +0 -19
  236. package/build/hooks/useInterval.js.map +0 -1
  237. package/build/hooks/useWhyDidYouUpdate.js +0 -43
  238. package/build/hooks/useWhyDidYouUpdate.js.map +0 -1
  239. package/build/styles/colours.js +0 -4
  240. package/build/styles/colours.js.map +0 -1
  241. package/build/styles/font.js +0 -19
  242. package/build/styles/font.js.map +0 -1
  243. package/build/styles/index.js +0 -4
  244. package/build/styles/index.js.map +0 -1
  245. package/build/styles/layout.js +0 -85
  246. package/build/styles/layout.js.map +0 -1
  247. package/build/styles/spacing.js +0 -50
  248. package/build/styles/spacing.js.map +0 -1
  249. package/build/styles/themes.js +0 -56
  250. package/build/styles/themes.js.map +0 -1
  251. package/build/utils/index.js +0 -14
  252. package/build/utils/index.js.map +0 -1
@@ -1,9 +1,8 @@
1
- /// <reference types="react" />
2
- interface ITableDateInputProps {
3
- disabled: boolean;
4
- value: Date | string | null | undefined;
5
- error: string | false;
6
- onChange: (value: Date | string) => void;
7
- }
8
- export declare const TableDateInput: ({ disabled, value, error, onChange, }: ITableDateInputProps) => JSX.Element;
9
- export {};
1
+ interface ITableDateInputProps {
2
+ disabled: boolean;
3
+ value: Date | string | null | undefined;
4
+ error: string | false;
5
+ onChange: (value: Date | string) => void;
6
+ }
7
+ export declare const TableDateInput: ({ disabled, value, error, onChange, }: ITableDateInputProps) => JSX.Element;
8
+ export {};
@@ -1,20 +1,21 @@
1
- import { PureComponent } from "react";
2
- export interface ITableTextInputProps {
3
- name?: string;
4
- value: string | number | null | undefined;
5
- onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
6
- onBlur?: (e: React.FocusEvent<HTMLInputElement>) => void;
7
- prefix?: string | React.ReactElement | JSX.Element | null;
8
- suffix?: string | React.ReactElement | JSX.Element | null;
9
- textAlign?: "start" | "end" | "left" | "right" | "center" | "justify" | "match-parent" | "inherit";
10
- numberField?: boolean;
11
- fixedDecimalScale?: boolean;
12
- error?: string | false;
13
- disabled?: boolean;
14
- fullWidth?: boolean;
15
- wrapperStyling?: string;
16
- styling?: string;
17
- }
18
- export declare class TableTextInput extends PureComponent<ITableTextInputProps> {
19
- render(): JSX.Element;
20
- }
1
+ import { PureComponent } from 'react';
2
+
3
+ export interface ITableTextInputProps {
4
+ name?: string;
5
+ value: string | number | null | undefined;
6
+ onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
7
+ onBlur?: (e: React.FocusEvent<HTMLInputElement>) => void;
8
+ prefix?: string | React.ReactElement | JSX.Element | null;
9
+ suffix?: string | React.ReactElement | JSX.Element | null;
10
+ textAlign?: "start" | "end" | "left" | "right" | "center" | "justify" | "match-parent" | "inherit";
11
+ numberField?: boolean;
12
+ fixedDecimalScale?: boolean;
13
+ error?: string | false;
14
+ disabled?: boolean;
15
+ fullWidth?: boolean;
16
+ wrapperStyling?: string;
17
+ styling?: string;
18
+ }
19
+ export declare class TableTextInput extends PureComponent<ITableTextInputProps> {
20
+ render(): JSX.Element;
21
+ }
@@ -1,13 +1,13 @@
1
- /**
2
- * Optimised for TableTextField.
3
- *
4
- * Instead of accepting a HTMLElement, which would require a re-render to get the correct width,
5
- * this function is oprimised to accept only the text and max width.
6
- */
7
- export declare function getTableTextInputTextWidth(text: string, minWidth?: number, maxWidth?: number): string;
8
- /**
9
- * Calculates the width of a given string in pixels (perfect result)
10
- *
11
- * When using this to size inputs, the input must have CSS box-sizing: content-box
12
- */
13
- export declare function getTextWidth(text: string, element: HTMLElement, minWidth?: number, maxWidth?: number): string;
1
+ /**
2
+ * Optimised for TableTextField.
3
+ *
4
+ * Instead of accepting a HTMLElement, which would require a re-render to get the correct width,
5
+ * this function is oprimised to accept only the text and max width.
6
+ */
7
+ export declare function getTableTextInputTextWidth(text: string, minWidth?: number, maxWidth?: number): string;
8
+ /**
9
+ * Calculates the width of a given string in pixels (perfect result)
10
+ *
11
+ * When using this to size inputs, the input must have CSS box-sizing: content-box
12
+ */
13
+ export declare function getTextWidth(text: string, element: HTMLElement, minWidth?: number, maxWidth?: number): string;
@@ -1,30 +1,31 @@
1
- import React, { ReactChild, ReactNode } from "react";
2
- import { ICustomRenderFnProps, IEssentialRenderFnProps } from "./EditableTable.types";
3
- export declare const tableTextField: (tableProps: ICustomRenderFnProps) => JSX.Element;
4
- export declare const tableNumericStringField: (tableProps: ICustomRenderFnProps) => JSX.Element;
5
- export declare const tableNumericStringFixedDecimalField: (tableProps: ICustomRenderFnProps) => JSX.Element;
6
- export declare const tableDateField: ({ value, onChange, disabled, error, }: ICustomRenderFnProps) => JSX.Element;
7
- export declare const tableCheckbox: (tableProps: ICustomRenderFnProps) => JSX.Element;
8
- interface INonEditableField extends Pick<IEssentialRenderFnProps, "numberField" | "prefix" | "suffix" | "textAlign" | "fixedDecimalScale"> {
9
- text: React.ReactText;
10
- styling?: string;
11
- inputStyling?: string;
12
- widthOverride?: string | undefined;
13
- fullWidth?: boolean;
14
- }
15
- export declare const NonEditableField: React.FC<INonEditableField>;
16
- interface ITableSelect extends IEssentialRenderFnProps {
17
- selectOptions: {
18
- [key: string]: ReactChild;
19
- };
20
- }
21
- export declare const TableSelect: React.FC<ITableSelect>;
22
- interface IMultipleTableSelect extends Omit<IEssentialRenderFnProps, "value"> {
23
- selectOptions: {
24
- [key: string]: ReactChild;
25
- };
26
- value: string[];
27
- renderValue?: (value: any) => ReactNode;
28
- }
29
- export declare const TableMultipleSelect: React.FC<IMultipleTableSelect>;
30
- export {};
1
+ import { default as React, ReactChild, ReactNode } from 'react';
2
+ import { ICustomRenderFnProps, IEssentialRenderFnProps } from './EditableTable.types';
3
+
4
+ export declare const tableTextField: (tableProps: ICustomRenderFnProps) => JSX.Element;
5
+ export declare const tableNumericStringField: (tableProps: ICustomRenderFnProps) => JSX.Element;
6
+ export declare const tableNumericStringFixedDecimalField: (tableProps: ICustomRenderFnProps) => JSX.Element;
7
+ export declare const tableDateField: ({ value, onChange, disabled, error, }: ICustomRenderFnProps) => JSX.Element;
8
+ export declare const tableCheckbox: (tableProps: ICustomRenderFnProps) => JSX.Element;
9
+ interface INonEditableField extends Pick<IEssentialRenderFnProps, "numberField" | "prefix" | "suffix" | "textAlign" | "fixedDecimalScale"> {
10
+ text: React.ReactText;
11
+ styling?: string;
12
+ inputStyling?: string;
13
+ widthOverride?: string | undefined;
14
+ fullWidth?: boolean;
15
+ }
16
+ export declare const NonEditableField: React.FC<INonEditableField>;
17
+ interface ITableSelect extends IEssentialRenderFnProps {
18
+ selectOptions: {
19
+ [key: string]: ReactChild;
20
+ };
21
+ }
22
+ export declare const TableSelect: React.FC<ITableSelect>;
23
+ interface IMultipleTableSelect extends Omit<IEssentialRenderFnProps, "value"> {
24
+ selectOptions: {
25
+ [key: string]: ReactChild;
26
+ };
27
+ value: string[];
28
+ renderValue?: (value: any) => ReactNode;
29
+ }
30
+ export declare const TableMultipleSelect: React.FC<IMultipleTableSelect>;
31
+ export {};
@@ -1,4 +1,5 @@
1
- import React from "react";
2
- import { IEntityListProps } from "./EntityList.types";
3
- declare const EntityList: React.FC<IEntityListProps>;
4
- export default EntityList;
1
+ import { default as React } from 'react';
2
+ import { IEntityListProps } from './EntityList.types';
3
+
4
+ declare const EntityList: React.FC<IEntityListProps>;
5
+ export default EntityList;
@@ -1,14 +1,15 @@
1
- import { ReactNode } from "react";
2
- export interface IEntity {
3
- id: string;
4
- name: string;
5
- link: string;
6
- [key: string]: any;
7
- }
8
- export interface IEntityListProps {
9
- entities: IEntity[] | undefined;
10
- icon: (entity?: IEntity) => ReactNode;
11
- loadingMessage?: string;
12
- emptyMessage?: string;
13
- onClick?: (org: IEntity) => void;
14
- }
1
+ import { ReactNode } from 'react';
2
+
3
+ export interface IEntity {
4
+ id: string;
5
+ name: string;
6
+ link: string;
7
+ [key: string]: any;
8
+ }
9
+ export interface IEntityListProps {
10
+ entities: IEntity[] | undefined;
11
+ icon: (entity?: IEntity) => ReactNode;
12
+ loadingMessage?: string;
13
+ emptyMessage?: string;
14
+ onClick?: (org: IEntity) => void;
15
+ }
@@ -1,4 +1,5 @@
1
- import React from "react";
2
- import { IErrorIndicatorProps } from "./ErrorIndicator.types";
3
- declare const ErrorIndicator: React.FC<IErrorIndicatorProps>;
4
- export default ErrorIndicator;
1
+ import { default as React } from 'react';
2
+ import { IErrorIndicatorProps } from './ErrorIndicator.types';
3
+
4
+ declare const ErrorIndicator: React.FC<IErrorIndicatorProps>;
5
+ export default ErrorIndicator;
@@ -1,4 +1,5 @@
1
- import { ReactNode } from "react";
2
- export interface IErrorIndicatorProps {
3
- text?: ReactNode;
4
- }
1
+ import { ReactNode } from 'react';
2
+
3
+ export interface IErrorIndicatorProps {
4
+ text?: ReactNode;
5
+ }
@@ -1,4 +1,5 @@
1
- import React from "react";
2
- import { IImageDisplayAndUploadProps } from "./ImageDisplayAndUpload.types";
3
- declare const ImageDisplayAndUpload: React.FC<IImageDisplayAndUploadProps>;
4
- export default ImageDisplayAndUpload;
1
+ import { default as React } from 'react';
2
+ import { IImageDisplayAndUploadProps } from './ImageDisplayAndUpload.types';
3
+
4
+ declare const ImageDisplayAndUpload: React.FC<IImageDisplayAndUploadProps>;
5
+ export default ImageDisplayAndUpload;
@@ -1,8 +1,9 @@
1
- import { IAuthoriserProp } from "../globals";
2
- export interface IImageDisplayAndUploadProps extends IAuthoriserProp {
3
- id?: string;
4
- url: string | null;
5
- handleSaveImage: (format: string, buffer: ArrayBuffer, file: File) => Promise<void>;
6
- roundedAvatar?: boolean;
7
- alt?: string;
8
- }
1
+ import { IAuthoriserProp } from '../globals';
2
+
3
+ export interface IImageDisplayAndUploadProps extends IAuthoriserProp {
4
+ id?: string;
5
+ url: string | null;
6
+ handleSaveImage: (format: string, buffer: ArrayBuffer, file: File) => Promise<void>;
7
+ roundedAvatar?: boolean;
8
+ alt?: string;
9
+ }
@@ -1,4 +1,5 @@
1
- import React from "react";
2
- import { IDatePickerProps } from "./KeyboardDatePicker.types";
3
- declare const KeyboardDatePicker: React.FC<IDatePickerProps>;
4
- export default KeyboardDatePicker;
1
+ import { default as React } from 'react';
2
+ import { IDatePickerProps } from './KeyboardDatePicker.types';
3
+
4
+ declare const KeyboardDatePicker: React.FC<IDatePickerProps>;
5
+ export default KeyboardDatePicker;
@@ -1,5 +1,6 @@
1
- import { DatePickerProps } from "@mui/x-date-pickers/DatePicker";
2
- import { IAuthoriserProp } from "../globals";
3
- export interface IDatePickerProps extends IAuthoriserProp, DatePickerProps<Date> {
4
- styling?: string;
5
- }
1
+ import { DatePickerProps } from '@mui/x-date-pickers/DatePicker';
2
+ import { IAuthoriserProp } from '../globals';
3
+
4
+ export interface IDatePickerProps extends IAuthoriserProp, DatePickerProps<Date> {
5
+ styling?: string;
6
+ }
@@ -1,4 +1,5 @@
1
- import React from "react";
2
- import { ILeftNavigationProps } from "./LeftNavigation.types";
3
- declare const LeftNavigation: React.FC<ILeftNavigationProps>;
4
- export default LeftNavigation;
1
+ import { default as React } from 'react';
2
+ import { ILeftNavigationProps } from './LeftNavigation.types';
3
+
4
+ declare const LeftNavigation: React.FC<ILeftNavigationProps>;
5
+ export default LeftNavigation;
@@ -1,96 +1,97 @@
1
- import React, { ReactNode, ReactChild } from "react";
2
- import { ISvgComponentProps } from "../SvgComponents/types";
3
- export interface INavigationLink {
4
- field: string;
5
- path: string;
6
- Icon: React.FC<ISvgComponentProps>;
7
- hasSecondary?: boolean;
8
- }
9
- export type IExpandedOptions = {
10
- view: string;
11
- expanded: boolean;
12
- };
13
- export interface IMainNavigationItem {
14
- id: string;
15
- name: ReactChild;
16
- route: string;
17
- archived?: boolean;
18
- }
19
- export interface ISecondaryNavigationSubItem {
20
- id: string;
21
- name: ReactChild;
22
- route: string;
23
- }
24
- export interface ISecondaryNavigationItem {
25
- mainItem: IMainNavigationItem;
26
- subItems?: ISecondaryNavigationSubItem[];
27
- startDate: string;
28
- }
29
- export interface ISecondaryNavigationElement {
30
- items: ISecondaryNavigationItem[];
31
- archivedItems?: ISecondaryNavigationItem[];
32
- button?: {
33
- url: string;
34
- text: string;
35
- };
36
- }
37
- export interface ISecondaryNavigationElements {
38
- [key: string]: ISecondaryNavigationElement;
39
- }
40
- export interface IPrimaryConfig {
41
- background?: string;
42
- text?: string;
43
- activeText?: string;
44
- moveLastItemToBottom?: boolean;
45
- activeBorderColor?: string;
46
- }
47
- export interface ISecondaryMainConfig {
48
- mainBackground?: string;
49
- mainText?: string;
50
- mainHover?: string;
51
- mainIcon?: string;
52
- mainActiveText?: string;
53
- }
54
- export interface ISecondarySubConfig {
55
- subItemBackground?: string;
56
- subItemText?: string;
57
- subItemHover?: string;
58
- subItemActiveBackground?: string;
59
- subItemActiveHover?: string;
60
- subItemActiveText?: string;
61
- }
62
- export interface ISideNavConfig {
63
- rootRouteName: string;
64
- primary?: IPrimaryConfig;
65
- secondary?: {
66
- mainItemColors?: ISecondaryMainConfig;
67
- subItemColors?: ISecondarySubConfig;
68
- closeButtonSvg?: ReactNode;
69
- titleColor?: string;
70
- titleIconColor?: string;
71
- };
72
- }
73
- export interface ILeftNavigationProps {
74
- primaryNavItems: INavigationLink[];
75
- secondaryNavItems: ISecondaryNavigationElements;
76
- config: ISideNavConfig;
77
- }
78
- export interface IListItemProps extends ISecondaryNavigationItem {
79
- config: ISideNavConfig;
80
- Icon: React.FC<ISvgComponentProps>;
81
- }
82
- export interface INavListItemStyleProps extends ISecondaryMainConfig, ISecondarySubConfig {
83
- }
84
- export interface IPrimaryLeftNavContainerProps {
85
- expandedOptions: IExpandedOptions;
86
- navigationLinks: INavigationLink[];
87
- setExpandedOptions: React.Dispatch<React.SetStateAction<IExpandedOptions>>;
88
- config: ISideNavConfig;
89
- }
90
- export interface ISecondaryLeftNavContainerProps {
91
- secondaryNavItems: ISecondaryNavigationElements;
92
- primaryNavItems: INavigationLink[];
93
- expandedOptions: IExpandedOptions;
94
- setExpandedOptions: React.Dispatch<React.SetStateAction<IExpandedOptions>>;
95
- config: ISideNavConfig;
96
- }
1
+ import { default as React, ReactNode, ReactChild } from 'react';
2
+ import { ISvgComponentProps } from '../SvgComponents/types';
3
+
4
+ export interface INavigationLink {
5
+ field: string;
6
+ path: string;
7
+ Icon: React.FC<ISvgComponentProps>;
8
+ hasSecondary?: boolean;
9
+ }
10
+ export type IExpandedOptions = {
11
+ view: string;
12
+ expanded: boolean;
13
+ };
14
+ export interface IMainNavigationItem {
15
+ id: string;
16
+ name: ReactChild;
17
+ route: string;
18
+ archived?: boolean;
19
+ }
20
+ export interface ISecondaryNavigationSubItem {
21
+ id: string;
22
+ name: ReactChild;
23
+ route: string;
24
+ }
25
+ export interface ISecondaryNavigationItem {
26
+ mainItem: IMainNavigationItem;
27
+ subItems?: ISecondaryNavigationSubItem[];
28
+ startDate: string;
29
+ }
30
+ export interface ISecondaryNavigationElement {
31
+ items: ISecondaryNavigationItem[];
32
+ archivedItems?: ISecondaryNavigationItem[];
33
+ button?: {
34
+ url: string;
35
+ text: string;
36
+ };
37
+ }
38
+ export interface ISecondaryNavigationElements {
39
+ [key: string]: ISecondaryNavigationElement;
40
+ }
41
+ export interface IPrimaryConfig {
42
+ background?: string;
43
+ text?: string;
44
+ activeText?: string;
45
+ moveLastItemToBottom?: boolean;
46
+ activeBorderColor?: string;
47
+ }
48
+ export interface ISecondaryMainConfig {
49
+ mainBackground?: string;
50
+ mainText?: string;
51
+ mainHover?: string;
52
+ mainIcon?: string;
53
+ mainActiveText?: string;
54
+ }
55
+ export interface ISecondarySubConfig {
56
+ subItemBackground?: string;
57
+ subItemText?: string;
58
+ subItemHover?: string;
59
+ subItemActiveBackground?: string;
60
+ subItemActiveHover?: string;
61
+ subItemActiveText?: string;
62
+ }
63
+ export interface ISideNavConfig {
64
+ rootRouteName: string;
65
+ primary?: IPrimaryConfig;
66
+ secondary?: {
67
+ mainItemColors?: ISecondaryMainConfig;
68
+ subItemColors?: ISecondarySubConfig;
69
+ closeButtonSvg?: ReactNode;
70
+ titleColor?: string;
71
+ titleIconColor?: string;
72
+ };
73
+ }
74
+ export interface ILeftNavigationProps {
75
+ primaryNavItems: INavigationLink[];
76
+ secondaryNavItems: ISecondaryNavigationElements;
77
+ config: ISideNavConfig;
78
+ }
79
+ export interface IListItemProps extends ISecondaryNavigationItem {
80
+ config: ISideNavConfig;
81
+ Icon: React.FC<ISvgComponentProps>;
82
+ }
83
+ export interface INavListItemStyleProps extends ISecondaryMainConfig, ISecondarySubConfig {
84
+ }
85
+ export interface IPrimaryLeftNavContainerProps {
86
+ expandedOptions: IExpandedOptions;
87
+ navigationLinks: INavigationLink[];
88
+ setExpandedOptions: React.Dispatch<React.SetStateAction<IExpandedOptions>>;
89
+ config: ISideNavConfig;
90
+ }
91
+ export interface ISecondaryLeftNavContainerProps {
92
+ secondaryNavItems: ISecondaryNavigationElements;
93
+ primaryNavItems: INavigationLink[];
94
+ expandedOptions: IExpandedOptions;
95
+ setExpandedOptions: React.Dispatch<React.SetStateAction<IExpandedOptions>>;
96
+ config: ISideNavConfig;
97
+ }
@@ -1,4 +1,5 @@
1
- import React from "react";
2
- import { IListItemProps } from "./LeftNavigation.types";
3
- declare const NavListItem: React.FC<IListItemProps>;
4
- export default NavListItem;
1
+ import { default as React } from 'react';
2
+ import { IListItemProps } from './LeftNavigation.types';
3
+
4
+ declare const NavListItem: React.FC<IListItemProps>;
5
+ export default NavListItem;
@@ -1,4 +1,5 @@
1
- import React from "react";
2
- import { IPrimaryLeftNavContainerProps } from "./LeftNavigation.types";
3
- declare const PrimaryLeftNavContainer: React.FC<IPrimaryLeftNavContainerProps>;
4
- export default PrimaryLeftNavContainer;
1
+ import { default as React } from 'react';
2
+ import { IPrimaryLeftNavContainerProps } from './LeftNavigation.types';
3
+
4
+ declare const PrimaryLeftNavContainer: React.FC<IPrimaryLeftNavContainerProps>;
5
+ export default PrimaryLeftNavContainer;
@@ -1,4 +1,5 @@
1
- import React from "react";
2
- import { ISecondaryLeftNavContainerProps } from "./LeftNavigation.types";
3
- declare const SecondaryLeftNavContainer: React.FC<ISecondaryLeftNavContainerProps>;
4
- export default SecondaryLeftNavContainer;
1
+ import { default as React } from 'react';
2
+ import { ISecondaryLeftNavContainerProps } from './LeftNavigation.types';
3
+
4
+ declare const SecondaryLeftNavContainer: React.FC<ISecondaryLeftNavContainerProps>;
5
+ export default SecondaryLeftNavContainer;
@@ -1,4 +1,5 @@
1
- import React from "react";
2
- import { ILoadingSpinnerProps } from "./LoadingSpinner.types";
3
- declare const LoadingSpinner: React.FC<ILoadingSpinnerProps>;
4
- export default LoadingSpinner;
1
+ import { default as React } from 'react';
2
+ import { ILoadingSpinnerProps } from './LoadingSpinner.types';
3
+
4
+ declare const LoadingSpinner: React.FC<ILoadingSpinnerProps>;
5
+ export default LoadingSpinner;
@@ -1,5 +1,6 @@
1
- import { ReactNode } from "react";
2
- export interface ILoadingSpinnerProps {
3
- text?: ReactNode;
4
- styling?: string;
5
- }
1
+ import { ReactNode } from 'react';
2
+
3
+ export interface ILoadingSpinnerProps {
4
+ text?: ReactNode;
5
+ styling?: string;
6
+ }
@@ -1,4 +1,5 @@
1
- import React from "react";
2
- import { IMainLayoutProps } from "./MainLayout.types";
3
- declare const MainLayout: React.FC<IMainLayoutProps>;
4
- export default MainLayout;
1
+ import { default as React } from 'react';
2
+ import { IMainLayoutProps } from './MainLayout.types';
3
+
4
+ declare const MainLayout: React.FC<IMainLayoutProps>;
5
+ export default MainLayout;
@@ -1,10 +1,11 @@
1
- import { ReactElement } from "react";
2
- export interface IMainLayoutProps {
3
- id?: string;
4
- sideNavigation?: ReactElement;
5
- desktopWidth?: boolean | string;
6
- children: ReactElement;
7
- topOffset?: number | string;
8
- }
9
- export interface IMainLayoutStyleProps extends Pick<IMainLayoutProps, "topOffset"> {
10
- }
1
+ import { ReactElement } from 'react';
2
+
3
+ export interface IMainLayoutProps {
4
+ id?: string;
5
+ sideNavigation?: ReactElement;
6
+ desktopWidth?: boolean | string;
7
+ children: ReactElement;
8
+ topOffset?: number | string;
9
+ }
10
+ export interface IMainLayoutStyleProps extends Pick<IMainLayoutProps, "topOffset"> {
11
+ }
@@ -1,4 +1,5 @@
1
- import React from "react";
2
- import { IMobileDatePickerProps } from "./MobileDatePicker.types";
3
- declare const MobileDatePicker: React.FC<IMobileDatePickerProps>;
4
- export default MobileDatePicker;
1
+ import { default as React } from 'react';
2
+ import { IMobileDatePickerProps } from './MobileDatePicker.types';
3
+
4
+ declare const MobileDatePicker: React.FC<IMobileDatePickerProps>;
5
+ export default MobileDatePicker;
@@ -1,5 +1,6 @@
1
- import { MobileDatePickerProps } from "@mui/x-date-pickers/MobileDatePicker";
2
- import { IAuthoriserProp } from "../globals";
3
- export type IMobileDatePickerProps = MobileDatePickerProps<Date> & IAuthoriserProp & {
4
- styling?: string;
5
- };
1
+ import { MobileDatePickerProps } from '@mui/x-date-pickers/MobileDatePicker';
2
+ import { IAuthoriserProp } from '../globals';
3
+
4
+ export type IMobileDatePickerProps = MobileDatePickerProps<Date> & IAuthoriserProp & {
5
+ styling?: string;
6
+ };
@@ -1,12 +1,13 @@
1
- import { FC } from "react";
2
- import { ISvgComponentProps } from "../SvgComponents/types";
3
- export type NavbarProps = {
4
- tabs: Array<{
5
- Icon: FC<ISvgComponentProps>;
6
- field: string;
7
- path: string;
8
- separate?: boolean;
9
- }>;
10
- };
11
- declare const Navbar: ({ tabs }: NavbarProps) => JSX.Element;
12
- export default Navbar;
1
+ import { FC } from 'react';
2
+ import { ISvgComponentProps } from '../SvgComponents/types';
3
+
4
+ export type NavbarProps = {
5
+ tabs: Array<{
6
+ Icon: FC<ISvgComponentProps>;
7
+ field: string;
8
+ path: string;
9
+ separate?: boolean;
10
+ }>;
11
+ };
12
+ declare const Navbar: ({ tabs }: NavbarProps) => JSX.Element;
13
+ export default Navbar;