codeforlife 2.9.0 → 2.9.2

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 (191) hide show
  1. package/dist/{Countdown-zY3nMzmi.cjs → Countdown-CTNMDtaU.cjs} +2 -2
  2. package/dist/{Countdown-zY3nMzmi.cjs.map → Countdown-CTNMDtaU.cjs.map} +1 -1
  3. package/dist/{Countdown-DFI1RljW.js → Countdown-D4s4yfhB.js} +3 -3
  4. package/dist/{Countdown-DFI1RljW.js.map → Countdown-D4s4yfhB.js.map} +1 -1
  5. package/dist/{LinkButton-BYFkvL_O.cjs → LinkButton-C9y6XyQV.cjs} +2 -2
  6. package/dist/{LinkButton-BYFkvL_O.cjs.map → LinkButton-C9y6XyQV.cjs.map} +1 -1
  7. package/dist/{LinkButton-oK0RThqn.js → LinkButton-COnDB_KU.js} +3 -3
  8. package/dist/{LinkButton-oK0RThqn.js.map → LinkButton-COnDB_KU.js.map} +1 -1
  9. package/dist/{Navigate-Dq47aqC8.js → Navigate-Baeudg5V.js} +3 -3
  10. package/dist/{Navigate-Dq47aqC8.js.map → Navigate-Baeudg5V.js.map} +1 -1
  11. package/dist/{Navigate-dQocLhzN.cjs → Navigate-D8_ubqaT.cjs} +2 -2
  12. package/dist/{Navigate-dQocLhzN.cjs.map → Navigate-D8_ubqaT.cjs.map} +1 -1
  13. package/dist/api/createApi.d.ts +7 -0
  14. package/dist/api/endpoints/authFactor.d.ts +11 -0
  15. package/dist/api/endpoints/index.d.ts +0 -72
  16. package/dist/api/endpoints/klass.d.ts +26 -0
  17. package/dist/api/endpoints/school.d.ts +11 -0
  18. package/dist/api/endpoints/session.d.ts +9 -0
  19. package/dist/api/endpoints/user.d.ts +19 -0
  20. package/dist/api/index.d.ts +0 -72
  21. package/dist/api/models.d.ts +92 -0
  22. package/dist/api/schemas.d.ts +20 -0
  23. package/dist/api/tagTypes.d.ts +3 -0
  24. package/dist/api/urls.d.ts +31 -0
  25. package/dist/{auth-BPfUPjmM.js → auth-C9qgLRQ4.js} +2 -2
  26. package/dist/{auth-BPfUPjmM.js.map → auth-C9qgLRQ4.js.map} +1 -1
  27. package/dist/{auth-Vf1MgMci.cjs → auth-DjC4nR_8.cjs} +2 -2
  28. package/dist/{auth-Vf1MgMci.cjs.map → auth-DjC4nR_8.cjs.map} +1 -1
  29. package/dist/components/App.d.ts +18 -0
  30. package/dist/components/ClickableTooltip.d.ts +6 -0
  31. package/dist/components/CopyIconButton.d.ts +7 -0
  32. package/dist/components/CopyIconButton.test.d.ts +1 -0
  33. package/dist/components/Countdown.d.ts +9 -0
  34. package/dist/components/DownloadFileButton.d.ts +13 -0
  35. package/dist/components/ElevatedAppBar.d.ts +8 -0
  36. package/dist/components/Image.d.ts +10 -0
  37. package/dist/components/InputFileButton.d.ts +7 -0
  38. package/dist/components/ItemizedList.d.ts +11 -0
  39. package/dist/components/OrderedGrid.d.ts +21 -0
  40. package/dist/components/ScrollIntoViewLink.d.ts +8 -0
  41. package/dist/components/SyncError.d.ts +5 -0
  42. package/dist/components/TablePagination.d.ts +20 -0
  43. package/dist/components/YouTubeVideo.d.ts +7 -0
  44. package/dist/components/form/ApiAutocompleteField.d.ts +14 -0
  45. package/dist/components/form/AutocompleteField.d.ts +11 -0
  46. package/dist/components/form/CheckboxField.d.ts +11 -0
  47. package/dist/components/form/CountryField.d.ts +10 -0
  48. package/dist/components/form/DatePickerField.d.ts +10 -0
  49. package/dist/components/form/EmailField.d.ts +5 -0
  50. package/dist/components/form/FirstNameField.d.ts +5 -0
  51. package/dist/components/form/Form.d.ts +36 -0
  52. package/dist/components/form/OtpField.d.ts +5 -0
  53. package/dist/components/form/PasswordField.d.ts +9 -0
  54. package/dist/components/form/RepeatField.d.ts +9 -0
  55. package/dist/components/form/SubmitButton.d.ts +6 -0
  56. package/dist/components/form/TextField.d.ts +14 -0
  57. package/dist/components/form/UkCountyField.d.ts +10 -0
  58. package/dist/components/form/index.d.ts +0 -72
  59. package/dist/components/index.cjs.js +1 -1
  60. package/dist/components/index.d.ts +0 -72
  61. package/dist/components/index.es.js +5 -5
  62. package/dist/components/page/Banner.d.ts +13 -0
  63. package/dist/components/page/Notification.d.ts +10 -0
  64. package/dist/components/page/Page.d.ts +19 -0
  65. package/dist/components/page/Section.d.ts +7 -0
  66. package/dist/components/page/TabBar.d.ts +13 -0
  67. package/dist/components/page/index.cjs.js +1 -1
  68. package/dist/components/page/index.d.ts +0 -72
  69. package/dist/components/page/index.es.js +1 -1
  70. package/dist/components/router/Link.d.ts +9 -0
  71. package/dist/components/router/LinkButton.d.ts +9 -0
  72. package/dist/components/router/LinkIconButton.d.ts +9 -0
  73. package/dist/components/router/LinkListItem.d.ts +9 -0
  74. package/dist/components/router/LinkTab.d.ts +9 -0
  75. package/dist/components/router/Navigate.d.ts +15 -0
  76. package/dist/components/router/index.cjs.js +1 -1
  77. package/dist/components/router/index.d.ts +0 -72
  78. package/dist/components/router/index.es.js +2 -2
  79. package/dist/components/table/CellStack.d.ts +7 -0
  80. package/dist/components/table/Table.d.ts +12 -0
  81. package/dist/components/table/index.d.ts +0 -72
  82. package/dist/features/InactiveDialog.d.ts +7 -0
  83. package/dist/features/ScreenTimeDialog.d.ts +7 -0
  84. package/dist/features/index.cjs.js +1 -1
  85. package/dist/features/index.d.ts +0 -72
  86. package/dist/features/index.es.js +3 -3
  87. package/dist/hooks/api.d.ts +15 -0
  88. package/dist/hooks/auth.d.ts +46 -0
  89. package/dist/hooks/form.d.ts +8 -0
  90. package/dist/hooks/general.d.ts +13 -0
  91. package/dist/hooks/index.cjs.js +1 -1
  92. package/dist/hooks/index.d.ts +0 -72
  93. package/dist/hooks/index.es.js +1 -1
  94. package/dist/hooks/router.d.ts +29 -0
  95. package/dist/{index-BgsynEGX.cjs → index-CiWln8tI.cjs} +2 -2
  96. package/dist/{index-BgsynEGX.cjs.map → index-CiWln8tI.cjs.map} +1 -1
  97. package/dist/{index-CNtOlJ49.js → index-CkM7p7f8.js} +2 -2
  98. package/dist/{index-CNtOlJ49.js.map → index-CkM7p7f8.js.map} +1 -1
  99. package/dist/{index-DkM_cG3a.js → index-DALohJdb.js} +4 -4
  100. package/dist/{index-DkM_cG3a.js.map → index-DALohJdb.js.map} +1 -1
  101. package/dist/{index-B_Zy_zwA.cjs → index-DZ7ETsOg.cjs} +2 -2
  102. package/dist/{index-B_Zy_zwA.cjs.map → index-DZ7ETsOg.cjs.map} +1 -1
  103. package/dist/index.cjs.js +1 -1
  104. package/dist/index.d.ts +2 -78
  105. package/dist/index.es.js +6 -4
  106. package/dist/index.es.js.map +1 -1
  107. package/dist/middlewares/index.d.ts +0 -72
  108. package/dist/middlewares/session.d.ts +2 -0
  109. package/dist/palette-BnIdHKDE.cjs +2 -0
  110. package/dist/{palette-CE2mKYse.cjs.map → palette-BnIdHKDE.cjs.map} +1 -1
  111. package/dist/palette-CYwuLBW7.js +77 -0
  112. package/dist/{palette-C_L0akN_.js.map → palette-CYwuLBW7.js.map} +1 -1
  113. package/dist/scripts/index.d.ts +0 -0
  114. package/dist/server.d.ts +43 -128
  115. package/dist/settings/custom.d.ts +11 -0
  116. package/dist/settings/index.d.ts +0 -72
  117. package/dist/settings/vite.d.ts +10 -0
  118. package/dist/setupTests.d.ts +0 -0
  119. package/dist/slices/createSlice.d.ts +3 -0
  120. package/dist/slices/index.d.ts +0 -72
  121. package/dist/slices/session.d.ts +28 -0
  122. package/dist/theme/ThemedBox.d.ts +10 -0
  123. package/dist/theme/colors.d.ts +18 -0
  124. package/dist/theme/components/MuiAccordion.d.ts +3 -0
  125. package/dist/theme/components/MuiAutocomplete.d.ts +3 -0
  126. package/dist/theme/components/MuiButton.d.ts +3 -0
  127. package/dist/theme/components/MuiCardActions.d.ts +3 -0
  128. package/dist/theme/components/MuiCheckbox.d.ts +3 -0
  129. package/dist/theme/components/MuiContainer.d.ts +3 -0
  130. package/dist/theme/components/MuiDialog.d.ts +3 -0
  131. package/dist/theme/components/MuiFormControlLabel.d.ts +3 -0
  132. package/dist/theme/components/MuiFormHelperText.d.ts +3 -0
  133. package/dist/theme/components/MuiGrid2.d.ts +3 -0
  134. package/dist/theme/components/MuiInputBase.d.ts +3 -0
  135. package/dist/theme/components/MuiLink.d.ts +3 -0
  136. package/dist/theme/components/MuiList.d.ts +3 -0
  137. package/dist/theme/components/MuiListItemText.d.ts +3 -0
  138. package/dist/theme/components/MuiMenu.d.ts +3 -0
  139. package/dist/theme/components/MuiMenuItem.d.ts +3 -0
  140. package/dist/theme/components/MuiSelect.d.ts +3 -0
  141. package/dist/theme/components/MuiTab.d.ts +3 -0
  142. package/dist/theme/components/MuiTable.d.ts +3 -0
  143. package/dist/theme/components/MuiTableBody.d.ts +3 -0
  144. package/dist/theme/components/MuiTableHead.d.ts +3 -0
  145. package/dist/theme/components/MuiTabs.d.ts +3 -0
  146. package/dist/theme/components/MuiTextField.d.ts +3 -0
  147. package/dist/theme/components/MuiToolbar.d.ts +3 -0
  148. package/dist/theme/components/MuiTypography.d.ts +3 -0
  149. package/dist/theme/components/_components.d.ts +11 -0
  150. package/dist/theme/components/index.cjs.js +1 -1
  151. package/dist/theme/components/index.d.ts +0 -72
  152. package/dist/theme/components/index.es.js +1 -1
  153. package/dist/theme/index.cjs.js +1 -1
  154. package/dist/theme/index.cjs.js.map +1 -1
  155. package/dist/theme/index.d.ts +1 -72
  156. package/dist/theme/index.es.js +26 -24
  157. package/dist/theme/index.es.js.map +1 -1
  158. package/dist/theme/palette.d.ts +79 -0
  159. package/dist/theme/spacing.d.ts +1 -0
  160. package/dist/theme/typography.d.ts +4 -0
  161. package/dist/utils/api.d.ts +0 -72
  162. package/dist/utils/api.test.d.ts +1 -0
  163. package/dist/utils/auth.d.ts +0 -72
  164. package/dist/utils/form.d.ts +0 -72
  165. package/dist/utils/form.test.d.ts +1 -0
  166. package/dist/utils/general.d.ts +0 -72
  167. package/dist/utils/general.test.d.ts +1 -0
  168. package/dist/utils/router.cjs.js +1 -1
  169. package/dist/utils/router.d.ts +0 -72
  170. package/dist/utils/router.es.js +2 -2
  171. package/dist/utils/router.test.d.ts +1 -0
  172. package/dist/utils/schema.d.ts +0 -72
  173. package/dist/utils/store.d.ts +0 -72
  174. package/dist/utils/test.d.ts +0 -72
  175. package/dist/utils/theme.cjs.js +1 -1
  176. package/dist/utils/theme.d.ts +0 -72
  177. package/dist/utils/theme.es.js +1 -1
  178. package/dist/utils/window.d.ts +0 -72
  179. package/package.json +1 -1
  180. package/dist/api.d.ts +0 -123
  181. package/dist/auth.d.ts +0 -40
  182. package/dist/form.d.ts +0 -40
  183. package/dist/general.d.ts +0 -53
  184. package/dist/palette-CE2mKYse.cjs +0 -2
  185. package/dist/palette-C_L0akN_.js +0 -43
  186. package/dist/router.d.ts +0 -48
  187. package/dist/schema.d.ts +0 -89
  188. package/dist/store.d.ts +0 -17
  189. package/dist/test.d.ts +0 -75
  190. package/dist/theme.d.ts +0 -19
  191. package/dist/window.d.ts +0 -5
package/dist/form.d.ts DELETED
@@ -1,40 +0,0 @@
1
- import { FieldValidator } from 'formik';
2
- import { FormikHelpers } from 'formik';
3
- import { Schema } from 'yup';
4
- import { TypedMutationTrigger } from '@reduxjs/toolkit/query/react';
5
- import { ValidateOptions } from 'yup';
6
-
7
- export declare type FormValues = Record<string, any>;
8
-
9
- export declare function getCleanNames<Values extends FormValues>(values: Values, initialValues: Values, names?: string[]): string[];
10
-
11
- export declare function getDirty<Values extends FormValues>(values: Values, initialValues: Values, names?: string[]): Record<string, boolean>;
12
-
13
- export declare function isDirty<Values extends FormValues>(values: Values, initialValues: Values, name: string): boolean;
14
-
15
- export declare function isFormError(error: unknown): boolean;
16
-
17
- export declare function schemaToFieldValidator(schema: Schema, options?: ValidateOptions): FieldValidator;
18
-
19
- export declare function setFormErrors(error: unknown, setErrors: (errors: object) => void): void;
20
-
21
- export declare function submitForm<Values extends QueryArg, QueryArg extends FormValues, ResultType>(trigger: TypedMutationTrigger<ResultType, QueryArg, any>, initialValues: Values, options?: SubmitFormOptions<Values, QueryArg, ResultType>): SubmitFormHandler<Values>;
22
-
23
- export declare function submitForm<Values extends FormValues, QueryArg extends FormValues, ResultType>(trigger: TypedMutationTrigger<ResultType, QueryArg, any>, initialValues: Values, options: SubmitFormOptions<Values, QueryArg, ResultType>): SubmitFormHandler<Values>;
24
-
25
- export declare type SubmitFormHandler<Values extends FormValues> = (values: Values, helpers: FormikHelpers<Values>) => void | Promise<any>;
26
-
27
- export declare type SubmitFormOptions<Values extends FormValues, QueryArg extends FormValues, ResultType> = Partial<{
28
- exclude: string[];
29
- include: string[];
30
- onlyDirtyValues: boolean;
31
- then: (result: ResultType, values: Values, helpers: FormikHelpers<Values>) => void;
32
- catch: (error: unknown, values: Values, helpers: FormikHelpers<Values>) => void;
33
- finally: (values: Values, helpers: FormikHelpers<Values>) => void;
34
- }> & (Values extends QueryArg ? {
35
- clean?: (values: Values) => QueryArg;
36
- } : {
37
- clean: (values: Values) => QueryArg;
38
- });
39
-
40
- export { }
package/dist/general.d.ts DELETED
@@ -1,53 +0,0 @@
1
- export declare function camelCaseToSnakeCase(obj: Record<string, any>): void;
2
-
3
- export declare const COUNTRIES: readonly ["Andorra", "United Arab Emirates (the)", "Afghanistan", "Antigua and Barbuda", "Anguilla", "Albania", "Armenia", "Angola", "Antarctica", "Argentina", "American Samoa", "Austria", "Australia", "Aruba", "Åland Islands", "Azerbaijan", "Bosnia and Herzegovina", "Barbados", "Bangladesh", "Belgium", "Burkina Faso", "Bulgaria", "Bahrain", "Burundi", "Benin", "Saint Barthélemy", "Bermuda", "Brunei Darussalam", "Bolivia (Plurinational State of)", "Bonaire, Sint Eustatius and Saba", "Brazil", "Bahamas (the)", "Bhutan", "Bouvet Island", "Botswana", "Belarus", "Belize", "Canada", "Cocos (Keeling) Islands (the)", "Congo (the Democratic Republic of the)", "Central African Republic (the)", "Congo (the)", "Switzerland", "Côte d'Ivoire", "Cook Islands (the)", "Chile", "Cameroon", "China", "Colombia", "Costa Rica", "Cuba", "Cabo Verde", "Curaçao", "Christmas Island", "Cyprus", "Czechia", "Germany", "Djibouti", "Denmark", "Dominica", "Dominican Republic (the", "Algeria", "Ecuador", "Estonia", "Egypt", "Western Sahara", "Eritrea", "Spain", "Ethiopia", "Finland", "Fiji", "Falkland Islands (the) [Malvinas]", "Micronesia (Federated States of)", "Faroe Islands (the)", "France", "Gabon", "United Kingdom of Great Britain and Northern Ireland (the)", "Grenada", "Georgia", "French Guiana", "Guernsey", "Ghana", "Gibraltar", "Greenland", "Gambia (the)", "Guinea", "Guadeloupe", "Equatorial Guinea", "Greece", "South Georgia and the South Sandwich Islands", "Guatemala", "Guam", "Guinea-Bissau", "Guyana", "Hong Kong", "Heard Island and McDonald Islands", "Honduras", "Croatia", "Haiti", "Hungary", "Indonesia", "Ireland", "Israel", "Isle of Man", "India", "British Indian Ocean Territory (the)", "Iraq", "Iran (Islamic Republic of)", "Iceland", "Italy", "Jersey", "Jamaica", "Jordan", "Japan", "Kenya", "Kyrgyzstan", "Cambodia", "Kiribati", "Comoros (the)", "Saint Kitts and Nevis", "Korea (the Democratic People's Republic of)", "Korea (the Republic of)", "Kuwait", "Cayman Islands (the)", "Kazakhstan", "Lao People's Democratic Republic (the)", "Lebanon", "Saint Lucia", "Liechtenstein", "Sri Lanka", "Liberia", "Lesotho", "Lithuania", "Luxembourg", "Latvia", "Libya", "Morocco", "Monaco", "Moldova (the Republic of)", "Montenegro", "Saint Martin (French part)", "Madagascar", "Marshall Islands (the)", "Republic of North Macedonia", "Mali", "Myanmar", "Mongolia", "Macao", "Northern Mariana Islands (the)", "Martinique", "Mauritania", "Montserrat", "Malta", "Mauritius", "Maldives", "Malawi", "Mexico", "Malaysia", "Mozambique", "Namibia", "New Caledonia", "Niger (the)", "Norfolk Island", "Nigeria", "Nicaragua", "Netherlands (the)", "Norway", "Nepal", "Nauru", "Niue", "New Zealand", "Oman", "Panama", "Peru", "French Polynesia", "Papua New Guinea", "Philippines (the)", "Pakistan", "Poland", "Saint Pierre and Miquelon", "Pitcairn", "Puerto Rico", "Palestine, State of", "Portugal", "Palau", "Paraguay", "Qatar", "Réunion", "Romania", "Serbia", "Russian Federation (the)", "Rwanda", "Saudi Arabia", "Solomon Islands", "Seychelles", "Sudan (the)", "Sweden", "Singapore", "Saint Helena, Ascension and Tristan da Cunha", "Slovenia", "Svalbard and Jan Mayen", "Slovakia", "Sierra Leone", "San Marino", "Senegal", "Somalia", "Suriname", "South Sudan", "Sao Tome and Principe", "El Salvador", "Sint Maarten (Dutch part)", "Syrian Arab Republic", "Eswatini", "Turks and Caicos Islands (the)", "Chad", "French Southern Territories (the)", "Togo", "Thailand", "Tajikistan", "Tokelau", "Timor-Leste", "Turkmenistan", "Tunisia", "Tonga", "Turkey", "Trinidad and Tobago", "Tuvalu", "Taiwan (Province of China)", "Tanzania, United Republic of", "Ukraine", "Uganda", "United States Minor Outlying Islands (the)", "United States of America (the)", "Uruguay", "Uzbekistan", "Holy See (the)", "Saint Vincent and the Grenadines", "Venezuela (Bolivarian Republic of)", "Virgin Islands (British)", "Virgin Islands (U.S.)", "Viet Nam", "Vanuatu", "Wallis and Futuna", "Samoa", "Yemen", "Mayotte", "South Africa", "Zambia", "Zimbabwe"];
4
-
5
- export declare type Countries = (typeof COUNTRIES)[number];
6
-
7
- export declare const COUNTRY_ISO_CODE_MAPPING: Record<CountryIsoCodes, Countries>;
8
-
9
- export declare const COUNTRY_ISO_CODES: readonly ["AD", "AE", "AF", "AG", "AI", "AL", "AM", "AO", "AQ", "AR", "AS", "AT", "AU", "AW", "AX", "AZ", "BA", "BB", "BD", "BE", "BF", "BG", "BH", "BI", "BJ", "BL", "BM", "BN", "BO", "BQ", "BR", "BS", "BT", "BV", "BW", "BY", "BZ", "CA", "CC", "CD", "CF", "CG", "CH", "CI", "CK", "CL", "CM", "CN", "CO", "CR", "CU", "CV", "CW", "CX", "CY", "CZ", "DE", "DJ", "DK", "DM", "DO", "DZ", "EC", "EE", "EG", "EH", "ER", "ES", "ET", "FI", "FJ", "FK", "FM", "FO", "FR", "GA", "GB", "GD", "GE", "GF", "GG", "GH", "GI", "GL", "GM", "GN", "GP", "GQ", "GR", "GS", "GT", "GU", "GW", "GY", "HK", "HM", "HN", "HR", "HT", "HU", "ID", "IE", "IL", "IM", "IN", "IO", "IQ", "IR", "IS", "IT", "JE", "JM", "JO", "JP", "KE", "KG", "KH", "KI", "KM", "KN", "KP", "KR", "KW", "KY", "KZ", "LA", "LB", "LC", "LI", "LK", "LR", "LS", "LT", "LU", "LV", "LY", "MA", "MC", "MD", "ME", "MF", "MG", "MH", "MK", "ML", "MM", "MN", "MO", "MP", "MQ", "MR", "MS", "MT", "MU", "MV", "MW", "MX", "MY", "MZ", "NA", "NC", "NE", "NF", "NG", "NI", "NL", "NO", "NP", "NR", "NU", "NZ", "OM", "PA", "PE", "PF", "PG", "PH", "PK", "PL", "PM", "PN", "PR", "PS", "PT", "PW", "PY", "QA", "RE", "RO", "RS", "RU", "RW", "SA", "SB", "SC", "SD", "SE", "SG", "SH", "SI", "SJ", "SK", "SL", "SM", "SN", "SO", "SR", "SS", "ST", "SV", "SX", "SY", "SZ", "TC", "TD", "TF", "TG", "TH", "TJ", "TK", "TL", "TM", "TN", "TO", "TR", "TT", "TV", "TW", "TZ", "UA", "UG", "UM", "US", "UY", "UZ", "VA", "VC", "VE", "VG", "VI", "VN", "VU", "WF", "WS", "YE", "YT", "ZA", "ZM", "ZW"];
10
-
11
- export declare type CountryIsoCodes = (typeof COUNTRY_ISO_CODES)[number];
12
-
13
- export declare function excludeKeyPaths(obj: object, exclude: string[], delimiter?: string): any;
14
-
15
- export declare function generateSecureRandomString(length: number, charSet?: string): string;
16
-
17
- export declare function getKeyPaths(obj: object, delimiter?: string): string[];
18
-
19
- export declare function getNestedProperty(obj: Record<string, any>, dotPath: string | string[]): any;
20
-
21
- export declare type IsOptional<T, K extends keyof T> = K extends OptionalPropertyNames<T> ? true : false;
22
-
23
- export declare const MIN_DATE: Date;
24
-
25
- export declare function openInNewTab(url: string, target?: string): void;
26
-
27
- export declare type Optional<T, K extends keyof T> = Partial<Pick<T, K>>;
28
-
29
- export declare type OptionalPropertyNames<T> = {
30
- [K in keyof T]-?: {} extends {
31
- [P in K]: T[K];
32
- } ? K : never;
33
- }[keyof T];
34
-
35
- declare type Required_2<T, K extends keyof T> = {
36
- [P in K]-?: T[P];
37
- };
38
- export { Required_2 as Required }
39
-
40
- export declare function snakeCaseToCamelCase(obj: Record<string, any>): void;
41
-
42
- export declare const UK_COUNTIES: readonly ["Aberdeen City", "Aberdeenshire", "Angus", "Argyll and Bute", "Bedfordshire", "Belfast", "Belfast Greater", "Berkshire", "Blaenau Gwent", "Bridgend", "Buckinghamshire", "Caerphilly", "Cambridgeshire", "Cardiff", "Carmarthenshire", "Ceredigion", "Channel Islands", "Cheshire", "City of Edinburgh", "Clackmannanshire", "Conwy", "Cornwall", "County Antrim", "County Armagh", "County Down", "County Fermanagh", "County Londonderry", "County Tyrone", "County of Bristol", "Cumbria", "Denbighshire", "Derbyshire", "Devon", "Dorset", "Dumfries and Galloway", "Dunbartonshire", "Dundee City", "Durham", "East Ayrshire", "East Dunbartonshire", "East Lothian", "East Renfrewshire", "East Riding of Yorkshire", "East Sussex", "Essex", "Falkirk", "Fife", "Flintshire", "Glasgow City", "Gloucestershire", "Greater London", "Greater Manchester", "Guernsey Channel Islands", "Gwynedd", "Hampshire", "Hereford and Worcester", "Herefordshire", "Hertfordshire", "Highland", "Inverclyde", "Inverness", "Isle of Anglesey", "Isle of Barra", "Isle of Man", "Isle of Wight", "Jersey Channel Islands", "Kent", "Lancashire", "Leicestershire", "Lincolnshire", "Merseyside", "Merthyr Tydfil", "Midlothian", "Monmouthshire", "Moray", "Neath Port Talbot", "Newport", "Norfolk", "North Ayrshire", "North Lanarkshire", "North Yorkshire", "Northamptonshire", "Northumberland", "Nottinghamshire", "Orkney", "Orkney Islands", "Oxfordshire", "Pembrokeshire", "Perth and Kinross", "Powys", "Renfrewshire", "Rhondda Cynon Taff", "Rutland", "Scottish Borders", "Shetland Islands", "Shropshire", "Somerset", "South Ayrshire", "South Lanarkshire", "South Yorkshire", "Staffordshire", "Stirling", "Suffolk", "Surrey", "Swansea", "Torfaen", "Tyne and Wear", "Vale of Glamorgan", "Warwickshire", "West Dunbart", "West Lothian", "West Midlands", "West Sussex", "West Yorkshire", "Western Isles", "Wiltshire", "Worcestershire", "Wrexham"];
43
-
44
- export declare type UkCounties = (typeof UK_COUNTIES)[number];
45
-
46
- export declare function withKeyPaths(obj: object, delimiter?: string): object;
47
-
48
- export declare function wrap(newFn: {
49
- before?: (...args: any[]) => void;
50
- after?: (...args: any[]) => void;
51
- }, fn?: (...args: any[]) => any): (...args: any[]) => any;
52
-
53
- export { }
@@ -1,2 +0,0 @@
1
- "use strict";const i=require("@mui/material"),a={500:"#E0004D",400:"#EE0857",300:"#FA1664"},c={500:"#F6BE00"},n={500:"#00A3E0"},{palette:{augmentColor:t}}=i.createTheme(),r={main:a[500],contrastText:"#fff"},e={main:n[500],contrastText:"#fff"},o={main:c[500],contrastText:"#000"},s={primary:r,teacher:t({color:r}),secondary:o,indy:t({color:o}),tertiary:t({color:e}),student:t({color:e}),white:t({color:{main:"#fff"}}),black:t({color:{main:"#000"}}),info:{main:"#f1ecec"},error:{main:"#d50000"}};exports.palette=s;exports.primary=a;exports.secondary=c;exports.tertiary=n;
2
- //# sourceMappingURL=palette-CE2mKYse.cjs.map
@@ -1,43 +0,0 @@
1
- import { createTheme as e } from "@mui/material";
2
- const n = {
3
- 500: "#E0004D",
4
- 400: "#EE0857",
5
- 300: "#FA1664"
6
- }, c = {
7
- 500: "#F6BE00"
8
- }, s = {
9
- 500: "#00A3E0"
10
- }, {
11
- palette: { augmentColor: t }
12
- } = e(), o = {
13
- main: n[500],
14
- contrastText: "#fff"
15
- }, r = {
16
- main: s[500],
17
- contrastText: "#fff"
18
- }, a = {
19
- main: c[500],
20
- contrastText: "#000"
21
- }, m = {
22
- // primary / teacher
23
- primary: o,
24
- teacher: t({ color: o }),
25
- // secondary / indy
26
- secondary: a,
27
- indy: t({ color: a }),
28
- // tertiary / student
29
- tertiary: t({ color: r }),
30
- student: t({ color: r }),
31
- // other
32
- white: t({ color: { main: "#fff" } }),
33
- black: t({ color: { main: "#000" } }),
34
- info: { main: "#f1ecec" },
35
- error: { main: "#d50000" }
36
- };
37
- export {
38
- n as a,
39
- m as p,
40
- c as s,
41
- s as t
42
- };
43
- //# sourceMappingURL=palette-C_L0akN_.js.map
package/dist/router.d.ts DELETED
@@ -1,48 +0,0 @@
1
- import { LinkProps as LinkProps_2 } from 'react-router-dom';
2
- import { ReactNode } from 'react';
3
- import { To } from 'react-router-dom';
4
-
5
- export declare function getParam(path: Path, key: string): string;
6
-
7
- export declare type LinkProps<Override extends "delta" | "to", State extends Record<string, any> = Record<string, any>> = Omit<LinkProps_2, "to" | "state"> & (Override extends "delta" ? {
8
- to: number;
9
- } : {
10
- to: To;
11
- state?: State & Partial<PageState>;
12
- });
13
-
14
- declare interface NotificationProps {
15
- open?: boolean;
16
- error?: boolean;
17
- onClose?: () => void;
18
- children: ReactNode;
19
- bgcolor?: "secondary" | "tertiary";
20
- }
21
-
22
- declare type PageState = {
23
- notifications: Array<{
24
- index?: number;
25
- props: NotificationProps;
26
- }>;
27
- scroll: {
28
- x: number;
29
- y: number;
30
- };
31
- };
32
-
33
- declare type Parameters_2 = Record<string, string>;
34
- export { Parameters_2 as Parameters }
35
-
36
- export declare interface Path {
37
- _: string;
38
- __: string | Parameters_2;
39
- [subpath: string]: string | Path | Parameters_2;
40
- }
41
-
42
- export declare function path<Subpaths extends Record<string, Path>>(_: string | Parameters_2, subpaths?: Subpaths): Path & Subpaths;
43
-
44
- export declare type ReadOnly<T> = {
45
- readonly [P in keyof T]: T[P];
46
- };
47
-
48
- export { }
package/dist/schema.d.ts DELETED
@@ -1,89 +0,0 @@
1
- import { AnyObject } from 'yup';
2
- import { BooleanSchema } from 'yup';
3
- import { DateSchema } from 'yup';
4
- import { DefaultFromShape } from 'yup';
5
- import { Flags } from 'yup';
6
- import { InferType } from 'yup';
7
- import { MakePartial } from 'yup';
8
- import { NumberSchema } from 'yup';
9
- import { ObjectSchema } from 'yup';
10
- import { ObjectShape } from 'yup';
11
- import { Schema } from 'yup';
12
- import { StringSchema } from 'yup';
13
- import { TypeFromShape } from 'yup';
14
- import { ValidateOptions } from 'yup';
15
- import { ValidationError } from 'yup';
16
-
17
- export declare type _<T> = T extends {} ? {
18
- [k in keyof T]: T[k];
19
- } : T;
20
-
21
- export declare function asciiAlphanumericString(options?: BuildCharSetOptions): StringSchema<string | undefined, AnyObject, undefined, "">;
22
-
23
- export declare function asciiAlphaString(options?: BuildCharSetOptions): StringSchema<string | undefined, AnyObject, undefined, "">;
24
-
25
- export declare function asciiNumericString(options?: BuildCharSetOptions): StringSchema<string | undefined, AnyObject, undefined, "">;
26
-
27
- export declare function buildCharSet(charSet: string, description: string, options?: BuildCharSetOptions): StringSchema<string | undefined, AnyObject, undefined, "">;
28
-
29
- export declare type BuildCharSetOptions = MatchesCharSetOptions & Partial<{
30
- spaces: boolean;
31
- specialChars: string;
32
- }>;
33
-
34
- export declare function buildUnicodeCharSet(charSet: string, description: string, options?: BuildCharSetOptions): StringSchema<string | undefined, AnyObject, undefined, "">;
35
-
36
- export declare function lowercaseAsciiAlphanumericString(options?: BuildCharSetOptions): StringSchema<string | undefined, AnyObject, undefined, "">;
37
-
38
- export declare function lowercaseAsciiAlphaString(options?: BuildCharSetOptions): StringSchema<string | undefined, AnyObject, undefined, "">;
39
-
40
- export declare function lowercaseUnicodeAlphanumericString(options?: BuildCharSetOptions): StringSchema<string | undefined, AnyObject, undefined, "">;
41
-
42
- export declare function lowercaseUnicodeAlphaString(options?: BuildCharSetOptions): StringSchema<string | undefined, AnyObject, undefined, "">;
43
-
44
- export declare type MakeKeysOptional<T> = T extends AnyObject ? _<MakePartial<T>> : T;
45
-
46
- export declare function matchesCharSet(charSet: string, message: string, options?: MatchesCharSetOptions): StringSchema<string | undefined, AnyObject, undefined, "">;
47
-
48
- export declare type MatchesCharSetOptions = Partial<{
49
- schema: StringSchema;
50
- flags: string;
51
- }>;
52
-
53
- export declare function numericId(schema?: NumberSchema): NumberSchema<number | undefined, AnyObject, undefined, "">;
54
-
55
- export declare type ObjectFromShape<Shape extends ObjectShape> = MakeKeysOptional<_<TypeFromShape<Shape, AnyObject>>>;
56
-
57
- export declare type ObjectSchemaFromShape<Shape extends ObjectShape> = ObjectSchema<_<TypeFromShape<Shape, AnyObject>>, AnyObject, _<DefaultFromShape<Shape>>, "">;
58
-
59
- export declare type SchemaMap<TType, TContext = AnyObject, TDefault = any, TFlags extends Flags = ""> = NonNullable<TType> extends string ? StringSchema<TType extends undefined ? TType | undefined : TType, TContext, TDefault, TFlags> : NonNullable<TType> extends number ? NumberSchema<TType extends undefined ? TType | undefined : TType, TContext, TDefault, TFlags> : NonNullable<TType> extends boolean ? BooleanSchema<TType extends undefined ? TType | undefined : TType, TContext, TDefault, TFlags> : NonNullable<TType> extends Date ? DateSchema<TType extends undefined ? TType | undefined : TType, TContext, TDefault, TFlags> : NonNullable<TType> extends object ? ObjectSchema<TType extends undefined ? TType | undefined : TType, TContext, TDefault, TFlags> : Schema<TType, TContext, TDefault, TFlags>;
60
-
61
- export declare function tryValidateSync<S extends Schema>(value: any, schema: S, options?: ValidateOptions): InferType<S> | undefined;
62
-
63
- export declare function tryValidateSync<S extends Schema, OnErrorRT extends TryValidateSyncOnErrorRT<S>>(value: any, schema: S, options?: ValidateOptions & {
64
- onError: (error: ValidationError) => OnErrorRT;
65
- }): TryValidateSyncRT<S, OnErrorRT>;
66
-
67
- export declare type TryValidateSyncOnErrorRT<S extends Schema> = InferType<S> | void;
68
-
69
- export declare type TryValidateSyncOptions<S extends Schema, OnErrorRT extends TryValidateSyncOnErrorRT<S>> = ValidateOptions & {
70
- onError?: (error: ValidationError) => OnErrorRT;
71
- };
72
-
73
- export declare type TryValidateSyncRT<S extends Schema, OnErrorRT extends TryValidateSyncOnErrorRT<S>> = OnErrorRT extends InferType<S> ? InferType<S> : InferType<S> | undefined;
74
-
75
- export declare function unicodeAlphanumericString(options?: BuildCharSetOptions): StringSchema<string | undefined, AnyObject, undefined, "">;
76
-
77
- export declare function unicodeAlphaString(options?: BuildCharSetOptions): StringSchema<string | undefined, AnyObject, undefined, "">;
78
-
79
- export declare function unicodeNumericString(options?: BuildCharSetOptions): StringSchema<string | undefined, AnyObject, undefined, "">;
80
-
81
- export declare function uppercaseAsciiAlphanumericString(options?: BuildCharSetOptions): StringSchema<string | undefined, AnyObject, undefined, "">;
82
-
83
- export declare function uppercaseAsciiAlphaString(options?: BuildCharSetOptions): StringSchema<string | undefined, AnyObject, undefined, "">;
84
-
85
- export declare function uppercaseUnicodeAlphanumericString(options?: BuildCharSetOptions): StringSchema<string | undefined, AnyObject, undefined, "">;
86
-
87
- export declare function uppercaseUnicodeAlphaString(options?: BuildCharSetOptions): StringSchema<string | undefined, AnyObject, undefined, "">;
88
-
89
- export { }
package/dist/store.d.ts DELETED
@@ -1,17 +0,0 @@
1
- import { EnhancedStore } from '@reduxjs/toolkit';
2
- import { Middleware } from '@reduxjs/toolkit';
3
- import { Reducer } from '@reduxjs/toolkit';
4
- import { StoreEnhancer } from 'redux';
5
- import { ThunkDispatch } from 'redux-thunk';
6
- import { Tuple } from '@reduxjs/toolkit';
7
- import { UnknownAction } from 'redux';
8
-
9
- export declare function makeStore<R extends Reducer>({ reducer, middlewares, preloadedState, }: {
10
- reducer: R;
11
- middlewares?: Middleware[];
12
- preloadedState?: Partial<ReturnType<R>>;
13
- }): EnhancedStore<any, UnknownAction, Tuple<[ StoreEnhancer<{
14
- dispatch: ThunkDispatch<any, undefined, UnknownAction>;
15
- }>, StoreEnhancer]>>;
16
-
17
- export { }
package/dist/test.d.ts DELETED
@@ -1,75 +0,0 @@
1
- import { Container } from 'react-dom/client';
2
- import { EnhancedStore } from '@reduxjs/toolkit';
3
- import { hydrateRoot } from 'react-dom/client';
4
- import { Middleware } from '@reduxjs/toolkit';
5
- import { Queries } from '@testing-library/dom';
6
- import { queries } from '@testing-library/dom';
7
- import { ReactElement } from 'react';
8
- import { Reducer } from '@reduxjs/toolkit';
9
- import { RenderOptions } from '@testing-library/react';
10
- import { RenderResult } from '@testing-library/react';
11
- import { Store } from '@reduxjs/toolkit';
12
- import { StoreEnhancer } from 'redux';
13
- import { ThunkDispatch } from 'redux-thunk';
14
- import { Tuple } from '@reduxjs/toolkit';
15
- import { UnknownAction } from 'redux';
16
- import { UserEvent } from '@testing-library/user-event';
17
-
18
- declare type HydrateableContainer = Parameters<typeof hydrateRoot>[0];
19
-
20
- declare function makeStore<R extends Reducer>({ reducer, middlewares, preloadedState, }: {
21
- reducer: R;
22
- middlewares?: Middleware[];
23
- preloadedState?: Partial<ReturnType<R>>;
24
- }): EnhancedStore<any, UnknownAction, Tuple<[ StoreEnhancer<{
25
- dispatch: ThunkDispatch<any, undefined, UnknownAction>;
26
- }>, StoreEnhancer]>>;
27
-
28
- /**
29
- * Renders the given React element with Redux Provider and custom store.
30
- * This function is useful for testing components that are connected to the
31
- * Redux store.
32
- *
33
- * @param ui - The React component or element to render.
34
- * @param reducer - The root reducer to use for the store.
35
- * @param extendedRenderOptions - Optional configuration options for rendering.
36
- * This includes `preloadedState` for initial Redux state and `store` for a
37
- * specific Redux store instance. Any additional properties are passed to React
38
- * Testing Library's render function.
39
- * @returns An object containing the Redux store used in the render, User event
40
- * API for simulating user interactions in tests, and all of React Testing
41
- * Library's query functions for testing the component.
42
- */
43
- export declare function renderWithStore<R extends Reducer, Q extends Queries = typeof queries, Container extends Container | HydrateableContainer = HTMLElement, BaseElement extends Container | HydrateableContainer = Container>(ui: ReactElement, reducer: R, extendedRenderOptions?: RenderOptions<Q, Container, BaseElement> & {
44
- /**
45
- * The middlewares used to create the Redux store.
46
- */
47
- middlewares?: Middleware[];
48
- /**
49
- * Defines a specific portion or the entire initial state for the Redux store.
50
- * This is particularly useful for initializing the state in a
51
- * controlled manner during testing, allowing components to be rendered
52
- * with predetermined state conditions.
53
- */
54
- preloadedState?: Partial<ReturnType<R>>;
55
- /**
56
- * Allows the use of a specific Redux store instance instead of a
57
- * default or global store. This flexibility is beneficial when
58
- * testing components with unique store requirements or when isolating
59
- * tests from a global store state. The custom store should be configured
60
- * to match the structure and middleware of the store used by the application.
61
- *
62
- * @default makeStore({reducer,middlewares,preloadedState})
63
- */
64
- store?: Store;
65
- }): RenderWithUserResult<Q, Container, BaseElement> & {
66
- store: ReturnType<typeof makeStore<R>>;
67
- };
68
-
69
- export declare function renderWithUser<Q extends Queries = typeof queries, Container extends Container | HydrateableContainer = HTMLElement, BaseElement extends Container | HydrateableContainer = Container>(ui: ReactElement, renderOptions?: RenderOptions<Q, Container, BaseElement>): RenderWithUserResult<Q, Container, BaseElement>;
70
-
71
- declare type RenderWithUserResult<Q extends Queries = typeof queries, Container extends Container | HydrateableContainer = HTMLElement, BaseElement extends Container | HydrateableContainer = Container> = RenderResult<Q, Container, BaseElement> & {
72
- user: UserEvent;
73
- };
74
-
75
- export { }
package/dist/theme.d.ts DELETED
@@ -1,19 +0,0 @@
1
- import { CommonProps } from '@mui/material/OverridableComponent';
2
- import { DividerProps } from '@mui/material';
3
- import { ReactElement } from 'react';
4
- import { ThemeOptions } from '@mui/material';
5
-
6
- export declare function getClassNames(props: CommonProps): string[];
7
-
8
- export declare function getStyleOverrides(ownerState: CommonProps, componentKey: keyof NonNullable<ThemeOptions["components"]>, muiClassName?: string, components?: ThemeOptions["components"]): object;
9
-
10
- export declare function includesClassNames(propsOrClassNames: CommonProps | string[], includes: string[]): boolean;
11
-
12
- export declare function insertDividerBetweenElements({ elements, dividerProps, }: {
13
- elements: ReactElement[];
14
- dividerProps?: DividerProps;
15
- }): ReactElement[];
16
-
17
- export declare function matchClassNames(propsOrClassNames: CommonProps | string[], pattern: string | RegExp): RegExpMatchArray[];
18
-
19
- export { }
package/dist/window.d.ts DELETED
@@ -1,5 +0,0 @@
1
- export declare function configureFreshworksWidget(display: "open" | "hide"): void;
2
-
3
- export declare function toggleOneTrustInfoDisplay(): void;
4
-
5
- export { }