@turnit-ou/shared 0.0.0-stage → 2.18.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 (690) hide show
  1. package/@types/@mui/index.d.ts +125 -0
  2. package/@types/axios/index.d.ts +7 -0
  3. package/@types/openapi-client-axios/index.d.ts +5 -0
  4. package/@types/openapi-typescript/index.d.ts +71 -0
  5. package/@types/react-final-form-arrays/index.d.ts +75 -0
  6. package/@types/react-table/index.d.ts +292 -0
  7. package/components/Alert/AlertTemplate.d.ts +3 -0
  8. package/components/Alert/AlertTemplate.js +66 -0
  9. package/components/Alert/index.d.ts +4 -0
  10. package/components/Alert/index.js +17 -0
  11. package/components/ConfirmButton.d.ts +15 -0
  12. package/components/ConfirmButton.js +47 -0
  13. package/components/Drawer.d.ts +4 -0
  14. package/components/Drawer.js +24 -0
  15. package/components/DrawerForm/DrawerFormCardActions.d.ts +5 -0
  16. package/components/DrawerForm/DrawerFormCardActions.js +21 -0
  17. package/components/DrawerForm/DrawerFormCloseButton.d.ts +3 -0
  18. package/components/DrawerForm/DrawerFormCloseButton.js +5 -0
  19. package/components/DrawerForm/DrawerFormContext.d.ts +7 -0
  20. package/components/DrawerForm/DrawerFormContext.js +4 -0
  21. package/components/DrawerForm.d.ts +10 -0
  22. package/components/DrawerForm.js +89 -0
  23. package/components/Editor/Editor.d.ts +9 -0
  24. package/components/Editor/Editor.js +36 -0
  25. package/components/Editor/Toolbar.d.ts +7 -0
  26. package/components/Editor/Toolbar.js +31 -0
  27. package/components/Editor/buttons/FormatLinkButton.d.ts +5 -0
  28. package/components/Editor/buttons/FormatLinkButton.js +64 -0
  29. package/components/Editor/buttons/InsertImageButton.d.ts +5 -0
  30. package/components/Editor/buttons/InsertImageButton.js +59 -0
  31. package/components/Editor/buttons.d.ts +15 -0
  32. package/components/Editor/buttons.js +70 -0
  33. package/components/Editor/createButton.d.ts +28 -0
  34. package/components/Editor/createButton.js +68 -0
  35. package/components/Editor/editor.scss +45 -0
  36. package/components/Ellipsis.d.ts +9 -0
  37. package/components/Ellipsis.js +22 -0
  38. package/components/EllipsisText.d.ts +8 -0
  39. package/components/EllipsisText.js +25 -0
  40. package/components/EnvironmentBanner.d.ts +8 -0
  41. package/components/EnvironmentBanner.js +25 -0
  42. package/components/Header/AccessibilityModal.d.ts +5 -0
  43. package/components/Header/AccessibilityModal.js +28 -0
  44. package/components/Header/AllowedBusinessEntityModal.d.ts +9 -0
  45. package/components/Header/AllowedBusinessEntityModal.js +24 -0
  46. package/components/Header/LanguageSelect.d.ts +2 -0
  47. package/components/Header/LanguageSelect.js +80 -0
  48. package/components/Header/MenuItems.d.ts +9 -0
  49. package/components/Header/MenuItems.js +55 -0
  50. package/components/Header/ModuleIcon.d.ts +7 -0
  51. package/components/Header/ModuleIcon.js +119 -0
  52. package/components/Header/index.d.ts +44 -0
  53. package/components/Header/index.js +89 -0
  54. package/components/Layout/LayoutCol.d.ts +8 -0
  55. package/components/Layout/LayoutCol.js +26 -0
  56. package/components/Layout/index.d.ts +32 -0
  57. package/components/Layout/index.js +56 -0
  58. package/components/Loadable.d.ts +11 -0
  59. package/components/Loadable.js +3 -0
  60. package/components/SearchCard.d.ts +8 -0
  61. package/components/SearchCard.js +81 -0
  62. package/components/SearchForm.d.ts +14 -0
  63. package/components/SearchForm.js +51 -0
  64. package/components/SearchFormTable.d.ts +8 -0
  65. package/components/SearchFormTable.js +32 -0
  66. package/components/SearchResult.d.ts +13 -0
  67. package/components/SearchResult.js +67 -0
  68. package/components/Table/TableCaption.d.ts +6 -0
  69. package/components/Table/TableCaption.js +25 -0
  70. package/components/Table/TableCell.d.ts +17 -0
  71. package/components/Table/TableCell.js +45 -0
  72. package/components/Table/TableCellEditable.d.ts +28 -0
  73. package/components/Table/TableCellEditable.js +151 -0
  74. package/components/Table/TableCellEditableAction.d.ts +13 -0
  75. package/components/Table/TableCellEditableAction.js +70 -0
  76. package/components/Table/TableCellEditableField.d.ts +17 -0
  77. package/components/Table/TableCellEditableField.js +1 -0
  78. package/components/Table/TableCellEditableTimeDuration.d.ts +13 -0
  79. package/components/Table/TableCellEditableTimeDuration.js +12 -0
  80. package/components/Table/TableContext.d.ts +11 -0
  81. package/components/Table/TableContext.js +4 -0
  82. package/components/Table/TablePagination.d.ts +5 -0
  83. package/components/Table/TablePagination.js +84 -0
  84. package/components/Table.d.ts +53 -0
  85. package/components/Table.js +389 -0
  86. package/components/Version.d.ts +5 -0
  87. package/components/Version.js +23 -0
  88. package/dto/businessEntity.d.ts +15 -0
  89. package/dto/businessEntity.js +1 -0
  90. package/dto/classification.d.ts +9 -0
  91. package/dto/classification.js +1 -0
  92. package/dto/classifier.d.ts +13 -0
  93. package/dto/classifier.js +4 -0
  94. package/dto/common.d.ts +5 -0
  95. package/dto/common.js +1 -0
  96. package/dto/fare.d.ts +11 -0
  97. package/dto/fare.js +1 -0
  98. package/dto/line-network.d.ts +23 -0
  99. package/dto/line-network.js +1 -0
  100. package/dto/option.d.ts +7 -0
  101. package/dto/option.js +1 -0
  102. package/dto/pagination.d.ts +10 -0
  103. package/dto/pagination.js +1 -0
  104. package/fields/FormCheckbox.d.ts +11 -0
  105. package/fields/FormCheckbox.js +5 -0
  106. package/fields/FormCheckboxGroup.d.ts +6 -0
  107. package/fields/FormCheckboxGroup.js +20 -0
  108. package/fields/FormController.d.ts +7 -0
  109. package/fields/FormController.js +16 -0
  110. package/fields/FormDatepicker.d.ts +8 -0
  111. package/fields/FormDatepicker.js +7 -0
  112. package/fields/FormInput.d.ts +8 -0
  113. package/fields/FormInput.js +4 -0
  114. package/fields/FormRadioGroup.d.ts +10 -0
  115. package/fields/FormRadioGroup.js +6 -0
  116. package/fields/FormSelect.d.ts +11 -0
  117. package/fields/FormSelect.js +9 -0
  118. package/fields/FormSwitch.d.ts +11 -0
  119. package/fields/FormSwitch.js +5 -0
  120. package/fields/FormTimeZoneSelect.d.ts +4 -0
  121. package/fields/FormTimeZoneSelect.js +8 -0
  122. package/fields/index.d.ts +9 -0
  123. package/fields/index.js +9 -0
  124. package/form/ArrayField.d.ts +27 -0
  125. package/form/ArrayField.js +69 -0
  126. package/form/CheckboxField.d.ts +8 -0
  127. package/form/CheckboxField.js +14 -0
  128. package/form/CheckboxGroupField.d.ts +6 -0
  129. package/form/CheckboxGroupField.js +15 -0
  130. package/form/ConditionField.d.ts +7 -0
  131. package/form/ConditionField.js +20 -0
  132. package/form/ContentField.d.ts +7 -0
  133. package/form/ContentField.js +15 -0
  134. package/form/CounterField.d.ts +5 -0
  135. package/form/CounterField.js +7 -0
  136. package/form/DateField.d.ts +8 -0
  137. package/form/DateField.js +52 -0
  138. package/form/DatesArrayField.d.ts +8 -0
  139. package/form/DatesArrayField.js +79 -0
  140. package/form/DependSelectField.d.ts +8 -0
  141. package/form/DependSelectField.js +12 -0
  142. package/form/EditorField.d.ts +5 -0
  143. package/form/EditorField.js +7 -0
  144. package/form/FileField.d.ts +12 -0
  145. package/form/FileField.js +9 -0
  146. package/form/FormField.d.ts +15 -0
  147. package/form/FormField.js +22 -0
  148. package/form/ModalFieldArray.d.ts +13 -0
  149. package/form/ModalFieldArray.js +62 -0
  150. package/form/PeriodField.d.ts +24 -0
  151. package/form/PeriodField.js +111 -0
  152. package/form/RadioGroupField.d.ts +10 -0
  153. package/form/RadioGroupField.js +21 -0
  154. package/form/SearchField.d.ts +19 -0
  155. package/form/SearchField.js +51 -0
  156. package/form/SelectField.d.ts +8 -0
  157. package/form/SelectField.js +13 -0
  158. package/form/SelectOwnerField.d.ts +11 -0
  159. package/form/SelectOwnerField.js +11 -0
  160. package/form/StopsSelect/StopSelectWithSearch.d.ts +28 -0
  161. package/form/StopsSelect/StopSelectWithSearch.js +181 -0
  162. package/form/StopsSelect/StopsSelect.d.ts +19 -0
  163. package/form/StopsSelect/StopsSelect.js +65 -0
  164. package/form/StopsSelect/StopsSelectModal.d.ts +26 -0
  165. package/form/StopsSelect/StopsSelectModal.js +280 -0
  166. package/form/StopsSelect/StopsSelectSearchForm.d.ts +22 -0
  167. package/form/StopsSelect/StopsSelectSearchForm.js +43 -0
  168. package/form/SwitchField.d.ts +9 -0
  169. package/form/SwitchField.js +16 -0
  170. package/form/TextField.d.ts +6 -0
  171. package/form/TextField.js +21 -0
  172. package/form/TimeDurationField.d.ts +6 -0
  173. package/form/TimeDurationField.js +54 -0
  174. package/form/TimeZoneField.d.ts +6 -0
  175. package/form/TimeZoneField.js +8 -0
  176. package/form/ToggleButtonGroupField.d.ts +12 -0
  177. package/form/ToggleButtonGroupField.js +16 -0
  178. package/form/hooks/addLazyFieldMetaState.d.ts +3 -0
  179. package/form/hooks/addLazyFieldMetaState.js +55 -0
  180. package/form/hooks/getValue.d.ts +3 -0
  181. package/form/hooks/getValue.js +60 -0
  182. package/form/hooks/useConstant.d.ts +13 -0
  183. package/form/hooks/useConstant.js +20 -0
  184. package/form/hooks/useConstantCallback.d.ts +7 -0
  185. package/form/hooks/useConstantCallback.js +14 -0
  186. package/form/hooks/useField.d.ts +3 -0
  187. package/form/hooks/useField.js +175 -0
  188. package/form/hooks/useFieldArray.d.ts +6 -0
  189. package/form/hooks/useFieldArray.js +87 -0
  190. package/form/hooks/useLatest.d.ts +3 -0
  191. package/form/hooks/useLatest.js +8 -0
  192. package/form/hooks/useModalTableSelectedRows.d.ts +12 -0
  193. package/form/hooks/useModalTableSelectedRows.js +66 -0
  194. package/form/hooks/useWatch.d.ts +12 -0
  195. package/form/hooks/useWatch.js +16 -0
  196. package/form/index.d.ts +45 -0
  197. package/form/index.js +58 -0
  198. package/form/mutators/change.d.ts +2 -0
  199. package/form/mutators/change.js +9 -0
  200. package/form/validate.d.ts +14 -0
  201. package/form/validate.js +39 -0
  202. package/helpers/capitalize.d.ts +1 -0
  203. package/helpers/capitalize.js +1 -0
  204. package/helpers/filter.d.ts +4 -0
  205. package/helpers/filter.js +21 -0
  206. package/helpers/formSubmit.d.ts +5 -0
  207. package/helpers/formSubmit.js +21 -0
  208. package/helpers/index.d.ts +7 -0
  209. package/helpers/index.js +7 -0
  210. package/helpers/makeClassificationOptions.d.ts +30 -0
  211. package/helpers/makeClassificationOptions.js +29 -0
  212. package/helpers/map.d.ts +1 -0
  213. package/helpers/map.js +1 -0
  214. package/helpers/openapi.d.ts +10 -0
  215. package/helpers/openapi.js +10 -0
  216. package/helpers/renderRangeError.d.ts +1 -0
  217. package/helpers/renderRangeError.js +20 -0
  218. package/helpers/sentry/assertEnvVariable.d.ts +1 -0
  219. package/helpers/sentry/assertEnvVariable.js +7 -0
  220. package/helpers/sentry/sentryConfig.d.ts +2 -0
  221. package/helpers/sentry/sentryConfig.js +18 -0
  222. package/helpers/serializeErrors.d.ts +2 -0
  223. package/helpers/serializeErrors.js +13 -0
  224. package/hooks/index.d.ts +26 -0
  225. package/hooks/index.js +26 -0
  226. package/hooks/useAllowedBusinessEntities.d.ts +4 -0
  227. package/hooks/useAllowedBusinessEntities.js +9 -0
  228. package/hooks/useBusinessEntitiesByType.d.ts +8 -0
  229. package/hooks/useBusinessEntitiesByType.js +17 -0
  230. package/hooks/useChangePassword.d.ts +14 -0
  231. package/hooks/useChangePassword.js +48 -0
  232. package/hooks/useClassification.d.ts +9 -0
  233. package/hooks/useClassification.js +16 -0
  234. package/hooks/useDraggable.d.ts +5 -0
  235. package/hooks/useDraggable.js +11 -0
  236. package/hooks/useEllipsis.d.ts +10 -0
  237. package/hooks/useEllipsis.js +79 -0
  238. package/hooks/useFavicon.d.ts +1 -0
  239. package/hooks/useFavicon.js +13 -0
  240. package/hooks/useFormTable.d.ts +24 -0
  241. package/hooks/useFormTable.js +105 -0
  242. package/hooks/useFormTableControls.d.ts +31 -0
  243. package/hooks/useFormTableControls.js +34 -0
  244. package/hooks/useInertBackground.d.ts +20 -0
  245. package/hooks/useInertBackground.js +57 -0
  246. package/hooks/useIsMounted.d.ts +2 -0
  247. package/hooks/useIsMounted.js +11 -0
  248. package/hooks/useLanguage.d.ts +1 -0
  249. package/hooks/useLanguage.js +2 -0
  250. package/hooks/useLoaded.d.ts +1 -0
  251. package/hooks/useLoaded.js +19 -0
  252. package/hooks/useLocale.d.ts +1 -0
  253. package/hooks/useLocale.js +7 -0
  254. package/hooks/useModal.d.ts +307 -0
  255. package/hooks/useModal.js +12 -0
  256. package/hooks/useOptions.d.ts +13 -0
  257. package/hooks/useOptions.js +24 -0
  258. package/hooks/usePrevious.d.ts +1 -0
  259. package/hooks/usePrevious.js +12 -0
  260. package/hooks/usePrompt.d.ts +8 -0
  261. package/hooks/usePrompt.js +17 -0
  262. package/hooks/useRowActive.d.ts +6 -0
  263. package/hooks/useRowActive.js +104 -0
  264. package/hooks/useRowEditActions.d.ts +5 -0
  265. package/hooks/useRowEditActions.js +12 -0
  266. package/hooks/useRowExpandToggle.d.ts +5 -0
  267. package/hooks/useRowExpandToggle.js +13 -0
  268. package/hooks/useRowHidden.d.ts +4 -0
  269. package/hooks/useRowHidden.js +6 -0
  270. package/hooks/useRowSelectCheckbox.d.ts +27 -0
  271. package/hooks/useRowSelectCheckbox.js +48 -0
  272. package/hooks/useTable.d.ts +4 -0
  273. package/hooks/useTable.js +38 -0
  274. package/hooks/useTableRowHighlight.d.ts +4 -0
  275. package/hooks/useTableRowHighlight.js +16 -0
  276. package/hooks/useTranslation.d.ts +3 -0
  277. package/hooks/useTranslation.js +3 -0
  278. package/hooks/useWeekdayOptions.d.ts +40 -0
  279. package/hooks/useWeekdayOptions.js +66 -0
  280. package/i18n/index.d.ts +13 -0
  281. package/i18n/index.js +82 -0
  282. package/i18n/resources/de.json +115 -0
  283. package/i18n/resources/el.json +116 -0
  284. package/i18n/resources/en-AE.json +115 -0
  285. package/i18n/resources/en.json +118 -0
  286. package/i18n/resources/es.json +115 -0
  287. package/i18n/resources/fr.json +115 -0
  288. package/i18n/resources/index.d.ts +1295 -0
  289. package/i18n/resources/index.js +24 -0
  290. package/i18n/resources/it.json +115 -0
  291. package/i18n/resources/lt.json +115 -0
  292. package/i18n/resources/pt.json +115 -0
  293. package/i18n/resources/sk.json +115 -0
  294. package/i18n/resources/sv.json +116 -0
  295. package/i18n/trans/alert.d.ts +8 -0
  296. package/i18n/trans/alert.js +10 -0
  297. package/i18n/trans/button.d.ts +24 -0
  298. package/i18n/trans/button.js +26 -0
  299. package/i18n/trans/error.d.ts +10 -0
  300. package/i18n/trans/error.js +12 -0
  301. package/i18n/trans/field.d.ts +19 -0
  302. package/i18n/trans/field.js +21 -0
  303. package/i18n/trans/index.d.ts +13 -0
  304. package/i18n/trans/index.js +20 -0
  305. package/i18n/trans/label.d.ts +18 -0
  306. package/i18n/trans/label.js +20 -0
  307. package/i18n/trans/option.d.ts +6 -0
  308. package/i18n/trans/option.js +8 -0
  309. package/i18n/trans/qty.d.ts +5 -0
  310. package/i18n/trans/qty.js +7 -0
  311. package/i18n/trans/table.d.ts +8 -0
  312. package/i18n/trans/table.js +10 -0
  313. package/i18n/trans/title.d.ts +6 -0
  314. package/i18n/trans/title.js +8 -0
  315. package/i18n/trans/tooltip.d.ts +8 -0
  316. package/i18n/trans/tooltip.js +10 -0
  317. package/icons/1-class.svg +4 -0
  318. package/icons/2-class-calm.svg +5 -0
  319. package/icons/2-class-crossed.svg +5 -0
  320. package/icons/2-class.svg +4 -0
  321. package/icons/3-class.svg +4 -0
  322. package/icons/4-class.svg +4 -0
  323. package/icons/ac-crossed.svg +6 -0
  324. package/icons/ac.svg +9 -0
  325. package/icons/accessibility.svg +5 -0
  326. package/icons/add-journey-segment.svg +9 -0
  327. package/icons/add-person.svg +6 -0
  328. package/icons/add.svg +4 -0
  329. package/icons/air-condition.svg +11 -0
  330. package/icons/airport.svg +4 -0
  331. package/icons/alert-circle.svg +5 -0
  332. package/icons/arrow-down.svg +4 -0
  333. package/icons/arrow-left-circle.svg +5 -0
  334. package/icons/arrow-left.svg +4 -0
  335. package/icons/arrow-right.svg +4 -0
  336. package/icons/arrow-up.svg +4 -0
  337. package/icons/baby-care.svg +7 -0
  338. package/icons/bar.svg +6 -0
  339. package/icons/bed.svg +3 -0
  340. package/icons/bicycle-crossed.svg +6 -0
  341. package/icons/bicycle.svg +8 -0
  342. package/icons/bin.svg +6 -0
  343. package/icons/break.svg +5 -0
  344. package/icons/breakfast-1-class.svg +5 -0
  345. package/icons/breakfast-2-class.svg +5 -0
  346. package/icons/breakfast.svg +3 -0
  347. package/icons/bus.svg +7 -0
  348. package/icons/business-area.svg +6 -0
  349. package/icons/by-aisle.svg +8 -0
  350. package/icons/by-window.svg +6 -0
  351. package/icons/cafe-1-class.svg +5 -0
  352. package/icons/calendar.svg +6 -0
  353. package/icons/cancel.svg +5 -0
  354. package/icons/cargo.svg +4 -0
  355. package/icons/carriage-bot.svg +6 -0
  356. package/icons/carriage-mid.svg +4 -0
  357. package/icons/carriage-top.svg +12 -0
  358. package/icons/carriage.svg +3 -0
  359. package/icons/cart.svg +3 -0
  360. package/icons/cd.svg +4 -0
  361. package/icons/check-circle.svg +4 -0
  362. package/icons/check.svg +3 -0
  363. package/icons/checkbox-checked.svg +4 -0
  364. package/icons/checkbox-indeterminate.svg +5 -0
  365. package/icons/checkbox-mark.svg +3 -0
  366. package/icons/checkbox.svg +3 -0
  367. package/icons/chevron-down.svg +3 -0
  368. package/icons/chevron-left.svg +3 -0
  369. package/icons/chevron-right.svg +3 -0
  370. package/icons/chevron-up.svg +3 -0
  371. package/icons/circle.svg +3 -0
  372. package/icons/clock.svg +5 -0
  373. package/icons/clone.svg +4 -0
  374. package/icons/close-bold.svg +4 -0
  375. package/icons/close.svg +4 -0
  376. package/icons/coffee-machine-crossed.svg +6 -0
  377. package/icons/coffee-machine.svg +7 -0
  378. package/icons/coin.svg +4 -0
  379. package/icons/comment.svg +3 -0
  380. package/icons/compartment.svg +6 -0
  381. package/icons/couchette.svg +6 -0
  382. package/icons/cube.svg +1 -0
  383. package/icons/currency.svg +4 -0
  384. package/icons/deactivate.svg +4 -0
  385. package/icons/delete.svg +4 -0
  386. package/icons/dining.svg +7 -0
  387. package/icons/direction-bottom.svg +4 -0
  388. package/icons/direction-forward-v.svg +4 -0
  389. package/icons/direction-forward.svg +4 -0
  390. package/icons/direction-left.svg +4 -0
  391. package/icons/direction-reverse-v.svg +4 -0
  392. package/icons/direction-reverse.svg +4 -0
  393. package/icons/direction-right.svg +4 -0
  394. package/icons/direction-top.svg +4 -0
  395. package/icons/dots.svg +5 -0
  396. package/icons/download.svg +5 -0
  397. package/icons/drag-n-drop.svg +3 -0
  398. package/icons/draggable.svg +5 -0
  399. package/icons/duplicate.svg +4 -0
  400. package/icons/dvd.svg +5 -0
  401. package/icons/edit.svg +3 -0
  402. package/icons/empty-search.svg +9 -0
  403. package/icons/empty-state.svg +13 -0
  404. package/icons/empty.svg +9 -0
  405. package/icons/empty_search_purple.svg +6 -0
  406. package/icons/error-circle.svg +4 -0
  407. package/icons/eu-law.svg +5 -0
  408. package/icons/external_link.svg +5 -0
  409. package/icons/family-area.svg +7 -0
  410. package/icons/file-settings.svg +3 -0
  411. package/icons/file.svg +11 -0
  412. package/icons/filter.svg +3 -0
  413. package/icons/flip.svg +11 -0
  414. package/icons/food-1-class.svg +5 -0
  415. package/icons/food-plus.svg +5 -0
  416. package/icons/food.svg +7 -0
  417. package/icons/grid-cell.svg +1 -0
  418. package/icons/grid.svg +6 -0
  419. package/icons/headphones.svg +5 -0
  420. package/icons/helping-hand-crossed.svg +12 -0
  421. package/icons/helping-hand.svg +3 -0
  422. package/icons/hide.svg +4 -0
  423. package/icons/home.svg +4 -0
  424. package/icons/index.json +228 -0
  425. package/icons/info-circle.svg +5 -0
  426. package/icons/insurance.svg +6 -0
  427. package/icons/journey-changeover.svg +5 -0
  428. package/icons/journey-light.svg +5 -0
  429. package/icons/journey.svg +5 -0
  430. package/icons/key.svg +4 -0
  431. package/icons/language.svg +3 -0
  432. package/icons/link.svg +4 -0
  433. package/icons/list.svg +8 -0
  434. package/icons/locker.svg +8 -0
  435. package/icons/logout.svg +5 -0
  436. package/icons/luggage.svg +9 -0
  437. package/icons/mail.svg +4 -0
  438. package/icons/meeting-lounge.svg +10 -0
  439. package/icons/metro.svg +3 -0
  440. package/icons/middle-seat.svg +7 -0
  441. package/icons/minus.svg +3 -0
  442. package/icons/minus24.svg +3 -0
  443. package/icons/mobile-crossed.svg +7 -0
  444. package/icons/mobile.svg +6 -0
  445. package/icons/movingo.svg +3 -0
  446. package/icons/multimedia.svg +9 -0
  447. package/icons/near-bicycle.svg +5 -0
  448. package/icons/near-pet.svg +5 -0
  449. package/icons/near-wheelchair.svg +8 -0
  450. package/icons/night-train.svg +4 -0
  451. package/icons/nonstop.svg +3 -0
  452. package/icons/occupancy-seat-hover.svg +11 -0
  453. package/icons/occupancy-seat-selected.svg +11 -0
  454. package/icons/occupancy-seat.svg +4 -0
  455. package/icons/oneway.svg +4 -0
  456. package/icons/pet-crossed.svg +5 -0
  457. package/icons/pet.svg +7 -0
  458. package/icons/pic.svg +5 -0
  459. package/icons/playground.svg +7 -0
  460. package/icons/plus.svg +4 -0
  461. package/icons/plus24.svg +4 -0
  462. package/icons/popup-controls.svg +15 -0
  463. package/icons/power-socket.svg +6 -0
  464. package/icons/preview.svg +3 -0
  465. package/icons/print.svg +5 -0
  466. package/icons/priority-seat-elderly.svg +6 -0
  467. package/icons/priority-seat-pregnant.svg +5 -0
  468. package/icons/profile.svg +4 -0
  469. package/icons/question.svg +5 -0
  470. package/icons/radio-filled.svg +4 -0
  471. package/icons/radio.svg +3 -0
  472. package/icons/reclining-seat.svg +9 -0
  473. package/icons/refresh.svg +6 -0
  474. package/icons/reload.svg +4 -0
  475. package/icons/remove-circle.svg +3 -0
  476. package/icons/replace.svg +6 -0
  477. package/icons/reservation-crossed.svg +4 -0
  478. package/icons/reservation-mandatory.svg +4 -0
  479. package/icons/reservation-optional.svg +5 -0
  480. package/icons/resplus-horizontal.svg +1 -0
  481. package/icons/resplus.svg +3 -0
  482. package/icons/restaurant.svg +3 -0
  483. package/icons/roundtrip.svg +6 -0
  484. package/icons/save.svg +5 -0
  485. package/icons/search.svg +4 -0
  486. package/icons/seat-compartment.svg +8 -0
  487. package/icons/seat-selected.svg +3 -0
  488. package/icons/seat.svg +5 -0
  489. package/icons/sent.svg +34 -0
  490. package/icons/service-dog.svg +4 -0
  491. package/icons/settings.svg +4 -0
  492. package/icons/shift.svg +3 -0
  493. package/icons/ship.svg +3 -0
  494. package/icons/show.svg +4 -0
  495. package/icons/shower.svg +9 -0
  496. package/icons/silence.svg +6 -0
  497. package/icons/sink.svg +5 -0
  498. package/icons/skis.svg +8 -0
  499. package/icons/sleeper-car-bedding.svg +6 -0
  500. package/icons/sleeper-car.svg +5 -0
  501. package/icons/smoking-crossed.svg +6 -0
  502. package/icons/sort.svg +6 -0
  503. package/icons/stairs-down.svg +5 -0
  504. package/icons/stairs-up.svg +5 -0
  505. package/icons/star-filled.svg +3 -0
  506. package/icons/star.svg +3 -0
  507. package/icons/stroller.svg +6 -0
  508. package/icons/sw-law.svg +5 -0
  509. package/icons/switch.svg +3 -0
  510. package/icons/table.svg +6 -0
  511. package/icons/tag.svg +4 -0
  512. package/icons/taxi.svg +3 -0
  513. package/icons/tick.svg +3 -0
  514. package/icons/ticket-cancel.svg +8 -0
  515. package/icons/ticket-change.svg +3 -0
  516. package/icons/ticket-manage.svg +7 -0
  517. package/icons/ticket-refund.svg +8 -0
  518. package/icons/ticket-travel-pass.svg +4 -0
  519. package/icons/ticket.svg +6 -0
  520. package/icons/tickets.svg +4 -0
  521. package/icons/train.svg +3 -0
  522. package/icons/transfer.svg +3 -0
  523. package/icons/trash.svg +6 -0
  524. package/icons/triange.svg +17 -0
  525. package/icons/tv.svg +5 -0
  526. package/icons/unaccompanied-minor.svg +8 -0
  527. package/icons/upload.svg +5 -0
  528. package/icons/usb.svg +9 -0
  529. package/icons/visibility-off.svg +4 -0
  530. package/icons/visibility-on.svg +4 -0
  531. package/icons/voucher.svg +5 -0
  532. package/icons/wardrobe.svg +4 -0
  533. package/icons/warning.svg +3 -0
  534. package/icons/water.svg +5 -0
  535. package/icons/wc.svg +4 -0
  536. package/icons/wheelchair-lift-reservation.svg +8 -0
  537. package/icons/wheelchair-lift.svg +6 -0
  538. package/icons/wheelchair-ramp.svg +8 -0
  539. package/icons/wheelchair-space-reservation.svg +13 -0
  540. package/icons/wheelchair-space.svg +4 -0
  541. package/icons/wheelchair.svg +5 -0
  542. package/icons/wifi-crossed.svg +9 -0
  543. package/icons/wifi.svg +6 -0
  544. package/index.css +327 -0
  545. package/index.d.ts +31 -0
  546. package/index.js +32 -0
  547. package/mui/Accordion.d.ts +17 -0
  548. package/mui/Accordion.js +46 -0
  549. package/mui/Button/index.d.ts +16 -0
  550. package/mui/Button/index.js +35 -0
  551. package/mui/Card/CardHeader.d.ts +7 -0
  552. package/mui/Card/CardHeader.js +43 -0
  553. package/mui/Card/index.d.ts +4 -0
  554. package/mui/Card/index.js +4 -0
  555. package/mui/Checkbox/CheckboxGroup.d.ts +26 -0
  556. package/mui/Checkbox/CheckboxGroup.js +81 -0
  557. package/mui/Checkbox/index.d.ts +18 -0
  558. package/mui/Checkbox/index.js +40 -0
  559. package/mui/Chip/ChipSecondarySmall.d.ts +10 -0
  560. package/mui/Chip/ChipSecondarySmall.js +40 -0
  561. package/mui/CircularProgress/index.d.ts +3 -0
  562. package/mui/CircularProgress/index.js +36 -0
  563. package/mui/Collapsible/index.d.ts +9 -0
  564. package/mui/Collapsible/index.js +66 -0
  565. package/mui/Counter/index.d.ts +9 -0
  566. package/mui/Counter/index.js +37 -0
  567. package/mui/DatePicker/DatePicker.scss +276 -0
  568. package/mui/DatePicker/DatePickerContext.d.ts +8 -0
  569. package/mui/DatePicker/DatePickerContext.js +2 -0
  570. package/mui/DatePicker/DatePickerHeader.d.ts +3 -0
  571. package/mui/DatePicker/DatePickerHeader.js +63 -0
  572. package/mui/DatePicker/DatePickerHeaderSelect.d.ts +10 -0
  573. package/mui/DatePicker/DatePickerHeaderSelect.js +72 -0
  574. package/mui/DatePicker/DatePickerInput.d.ts +6 -0
  575. package/mui/DatePicker/DatePickerInput.js +28 -0
  576. package/mui/DatePicker/TimeInput.d.ts +10 -0
  577. package/mui/DatePicker/TimeInput.js +63 -0
  578. package/mui/DatePicker/index.d.ts +52 -0
  579. package/mui/DatePicker/index.js +187 -0
  580. package/mui/Dropdown/index.d.ts +22 -0
  581. package/mui/Dropdown/index.js +90 -0
  582. package/mui/EditableLabel/index.d.ts +7 -0
  583. package/mui/EditableLabel/index.js +81 -0
  584. package/mui/ExternalLink/index.d.ts +8 -0
  585. package/mui/ExternalLink/index.js +11 -0
  586. package/mui/FileInput/index.d.ts +27 -0
  587. package/mui/FileInput/index.js +66 -0
  588. package/mui/FormControl/index.d.ts +23 -0
  589. package/mui/FormControl/index.js +36 -0
  590. package/mui/FormField/index.d.ts +8 -0
  591. package/mui/FormField/index.js +12 -0
  592. package/mui/Icon/index.d.ts +21 -0
  593. package/mui/Icon/index.js +47 -0
  594. package/mui/Input/index.d.ts +28 -0
  595. package/mui/Input/index.js +102 -0
  596. package/mui/Loader/index.d.ts +9 -0
  597. package/mui/Loader/index.js +47 -0
  598. package/mui/Modal/index.d.ts +16 -0
  599. package/mui/Modal/index.js +64 -0
  600. package/mui/Pagination/index.d.ts +6 -0
  601. package/mui/Pagination/index.js +23 -0
  602. package/mui/Paper/index.d.ts +4 -0
  603. package/mui/Paper/index.js +3 -0
  604. package/mui/Popper/index.d.ts +13 -0
  605. package/mui/Popper/index.js +139 -0
  606. package/mui/RadioGroup/index.d.ts +26 -0
  607. package/mui/RadioGroup/index.js +41 -0
  608. package/mui/ReadOnlyField/index.d.ts +8 -0
  609. package/mui/ReadOnlyField/index.js +35 -0
  610. package/mui/Select/index.d.ts +47 -0
  611. package/mui/Select/index.js +164 -0
  612. package/mui/Stepper/StepIconComponent.d.ts +6 -0
  613. package/mui/Stepper/StepIconComponent.js +93 -0
  614. package/mui/Stepper/index.d.ts +6 -0
  615. package/mui/Stepper/index.js +13 -0
  616. package/mui/Switch/index.d.ts +3 -0
  617. package/mui/Switch/index.js +2 -0
  618. package/mui/Tab/index.d.ts +60 -0
  619. package/mui/Tab/index.js +12 -0
  620. package/mui/Tabs/index.d.ts +22 -0
  621. package/mui/Tabs/index.js +70 -0
  622. package/mui/TimeDurationLabel/index.d.ts +7 -0
  623. package/mui/TimeDurationLabel/index.js +13 -0
  624. package/mui/ToggleButton/index.d.ts +4 -0
  625. package/mui/ToggleButton/index.js +57 -0
  626. package/mui/ToggleButtonGroup/index.d.ts +25 -0
  627. package/mui/ToggleButtonGroup/index.js +61 -0
  628. package/mui/ToggleList/index.d.ts +11 -0
  629. package/mui/ToggleList/index.js +54 -0
  630. package/mui/Tooltip/index.d.ts +11 -0
  631. package/mui/Tooltip/index.js +36 -0
  632. package/mui/index.d.ts +36 -0
  633. package/mui/index.js +36 -0
  634. package/mui/provider.d.ts +9 -0
  635. package/mui/provider.js +22 -0
  636. package/mui/theme.d.ts +17 -0
  637. package/mui/theme.js +1228 -0
  638. package/package.json +197 -4
  639. package/services/api.d.ts +28 -0
  640. package/services/api.js +141 -0
  641. package/services/index.d.ts +2 -0
  642. package/services/index.js +2 -0
  643. package/services/openapi.d.ts +6 -0
  644. package/services/openapi.js +112 -0
  645. package/store/index.d.ts +6 -0
  646. package/store/index.js +1 -0
  647. package/store/useClassificationOptions.d.ts +3 -0
  648. package/store/useClassificationOptions.js +2 -0
  649. package/types.d.ts +2423 -0
  650. package/utils/array.d.ts +2 -0
  651. package/utils/array.js +21 -0
  652. package/utils/auth.d.ts +2 -0
  653. package/utils/auth.js +31 -0
  654. package/utils/color.d.ts +29 -0
  655. package/utils/color.js +132 -0
  656. package/utils/date.d.ts +40 -0
  657. package/utils/date.js +51 -0
  658. package/utils/filter.d.ts +3 -0
  659. package/utils/filter.js +11 -0
  660. package/utils/getScrollbarSize.d.ts +1 -0
  661. package/utils/getScrollbarSize.js +8 -0
  662. package/utils/index.d.ts +12 -0
  663. package/utils/index.js +12 -0
  664. package/utils/input.d.ts +2 -0
  665. package/utils/input.js +2 -0
  666. package/utils/knowledge-owl-script.d.ts +64 -0
  667. package/utils/knowledge-owl-script.js +226 -0
  668. package/utils/locales.d.ts +3 -0
  669. package/utils/locales.js +24 -0
  670. package/utils/noop.d.ts +1 -0
  671. package/utils/noop.js +1 -0
  672. package/utils/percentage.d.ts +6 -0
  673. package/utils/percentage.js +43 -0
  674. package/utils/redirect.d.ts +1 -0
  675. package/utils/redirect.js +6 -0
  676. package/utils/sort.d.ts +21 -0
  677. package/utils/sort.js +32 -0
  678. package/utils/storage.d.ts +2 -0
  679. package/utils/storage.js +2 -0
  680. package/utils/timeDuration.d.ts +26 -0
  681. package/utils/timeDuration.js +78 -0
  682. package/utils/wallClock.d.ts +17 -0
  683. package/utils/wallClock.js +178 -0
  684. package/wrappers/ApiInitializer.d.ts +9 -0
  685. package/wrappers/ApiInitializer.js +21 -0
  686. package/wrappers/AuthWrapper.d.ts +6 -0
  687. package/wrappers/AuthWrapper.js +38 -0
  688. package/wrappers/AxiosErrorsInterceptorWrapper.d.ts +2 -0
  689. package/wrappers/AxiosErrorsInterceptorWrapper.js +30 -0
  690. package/README.md +0 -3
package/mui/theme.js ADDED
@@ -0,0 +1,1228 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { createTheme as createMuiTheme, lighten, } from '@mui/material/styles';
3
+ import { alpha } from '@mui/material/styles';
4
+ import { Icon } from "./Icon";
5
+ import { darken } from '@mui/system/colorManipulator';
6
+ import { StepIconComponent } from "./Stepper/StepIconComponent";
7
+ import merge from 'lodash/merge';
8
+ import mapKeys from 'lodash/mapKeys';
9
+ import { generateColorsList, getAccessabilityValue } from "../utils";
10
+ const baseTheme = createMuiTheme({
11
+ palette: {
12
+ common: { black: '#000', white: '#FFF' },
13
+ primary: {
14
+ light: 'rgba(0, 63, 191, 0.1)',
15
+ main: '#003FBF',
16
+ },
17
+ secondary: {
18
+ main: '#010845',
19
+ light: '#EEDFFF',
20
+ },
21
+ error: {
22
+ main: '#9B0105',
23
+ },
24
+ warning: {
25
+ main: '#E47A04',
26
+ },
27
+ background: {
28
+ default: '#F9F9F9',
29
+ },
30
+ grey: {
31
+ 100: '#E9ECF3',
32
+ 400: '#C2C8D6',
33
+ 700: '#838895',
34
+ 800: '#50586D',
35
+ 900: '#2A3246',
36
+ },
37
+ yellow: { main: '#FFF250' },
38
+ divider: '#E1E1E1',
39
+ success: {
40
+ main: '#125202',
41
+ },
42
+ text: {
43
+ primary: '#010845',
44
+ secondary: '#67789A',
45
+ disabled: '#8A929F',
46
+ warning: '#FFF250',
47
+ },
48
+ icons: {
49
+ main: '#010845',
50
+ hover: '#003FBF',
51
+ },
52
+ action: {
53
+ selected: 'rgba(0, 63, 191, 0.1)',
54
+ hover: '#E7EFFF',
55
+ hoverText: '#7616E3',
56
+ focus: '#003FBF',
57
+ focusOpacity: 0.2,
58
+ disabled: '#8A929F',
59
+ hoverOpacity: 0.2,
60
+ },
61
+ },
62
+ shadows: {
63
+ 0: 'none',
64
+ 1: '0px 1px 1px 0px rgba(0, 0, 0, 0.1)',
65
+ 2: '0px 2px 8px 0px rgba(0, 0, 0, 0.1)',
66
+ 3: '0px 4px 16px 0px rgba(0, 0, 0, 0.1)',
67
+ 4: '0px 20px 32px 0px rgba(0, 0, 0, 0.1)',
68
+ 24: '0px 1px 4px 0px #0000001A',
69
+ },
70
+ });
71
+ export const createTheme = (theme = baseTheme, ...overwriteThemes) => createMuiTheme({
72
+ ...theme,
73
+ ...merge({}, {
74
+ typography: {
75
+ fontFamily: '"Lato", "Helvetica", "Arial", sans-serif',
76
+ fontSize: 14,
77
+ title: {
78
+ fontSize: 32,
79
+ fontWeight: 600,
80
+ lineHeight: '48px',
81
+ },
82
+ h1: {
83
+ fontSize: 24,
84
+ fontWeight: 600,
85
+ lineHeight: '40px',
86
+ },
87
+ h2: {
88
+ fontSize: 20,
89
+ fontWeight: 600,
90
+ lineHeight: '32px',
91
+ },
92
+ subtitle: {
93
+ fontSize: 16,
94
+ fontWeight: 600,
95
+ lineHeight: '24px',
96
+ },
97
+ paragraph: {
98
+ fontSize: 16,
99
+ fontWeight: 400,
100
+ lineHeight: '24px',
101
+ },
102
+ body1: {
103
+ fontSize: 14,
104
+ lineHeight: '20px',
105
+ },
106
+ body2: {
107
+ fontSize: 12,
108
+ lineHeight: '16px',
109
+ },
110
+ caption: {
111
+ fontSize: 10,
112
+ lineHeight: '16px',
113
+ textTransform: 'uppercase',
114
+ },
115
+ },
116
+ components: {
117
+ MuiCssBaseline: {
118
+ styleOverrides: {
119
+ body: {},
120
+ '#root': {
121
+ minWidth: 1180,
122
+ },
123
+ ':any-link': {
124
+ color: theme.palette.primary.main,
125
+ '&:hover': {
126
+ color: theme.palette.action.hoverText,
127
+ },
128
+ },
129
+ },
130
+ },
131
+ MuiAutocomplete: {
132
+ defaultProps: {
133
+ popupIcon: _jsx(Icon, { name: "chevron-down", size: 16 }),
134
+ },
135
+ styleOverrides: {
136
+ inputRoot: {
137
+ gap: 4,
138
+ '&.MuiInputBase-sizeSmall': {
139
+ paddingTop: 6,
140
+ paddingBottom: 6,
141
+ '.MuiAutocomplete-input': {
142
+ padding: 0,
143
+ paddingRight: 32,
144
+ },
145
+ },
146
+ },
147
+ endAdornment: {
148
+ top: '50%',
149
+ transform: 'translateY(-50%)',
150
+ },
151
+ listbox: {
152
+ padding: 0,
153
+ '& .MuiAutocomplete-option': {
154
+ padding: '6px 8px',
155
+ '&.Mui-focused': {
156
+ backgroundColor: theme.palette.primary.light,
157
+ },
158
+ '&[aria-selected=true], &[aria-selected=true].Mui-focused': {
159
+ backgroundColor: theme.palette.secondary.main,
160
+ color: theme.palette.common.white,
161
+ },
162
+ },
163
+ },
164
+ tag: {
165
+ margin: 0,
166
+ },
167
+ },
168
+ },
169
+ MuiAccordionSummary: {
170
+ styleOverrides: {
171
+ root: {
172
+ '&.Mui-expanded': {
173
+ minHeight: 48,
174
+ },
175
+ '&.Mui-focusVisible': {
176
+ background: 'transparent',
177
+ },
178
+ },
179
+ content: {
180
+ '&.Mui-expanded': {
181
+ margin: '12px 0',
182
+ },
183
+ },
184
+ },
185
+ },
186
+ MuiBackdrop: {
187
+ styleOverrides: {
188
+ root: {
189
+ background: alpha(theme.palette.common.black, 0.1),
190
+ },
191
+ },
192
+ },
193
+ MuiButton: {
194
+ styleOverrides: {
195
+ root: {
196
+ textTransform: 'none',
197
+ borderRadius: 3,
198
+ // maxHeight: 32,
199
+ position: 'relative',
200
+ '&&': {
201
+ boxShadow: 'none',
202
+ },
203
+ '&:disabled': {
204
+ pointerEvents: 'all',
205
+ cursor: 'not-allowed',
206
+ },
207
+ },
208
+ sizeMedium: {
209
+ lineHeight: '20px',
210
+ padding: '6px 16px',
211
+ },
212
+ startIcon: {
213
+ marginLeft: 0,
214
+ marginRight: '8px',
215
+ '& .Icon-root:hover': {
216
+ color: 'unset',
217
+ },
218
+ },
219
+ endIcon: {
220
+ marginRight: 0,
221
+ marginLeft: '8px',
222
+ },
223
+ text: {
224
+ padding: '6px 8px',
225
+ '& .MuiCircularProgress-root': {
226
+ color: theme.palette.primary.main,
227
+ },
228
+ '&:hover': {
229
+ background: 'transparent',
230
+ color: theme.palette.action.hoverText,
231
+ '& .MuiButton-startIcon > *, & .MuiButton-endIcon > *': {
232
+ borderColor: theme.palette.action.hoverText,
233
+ },
234
+ },
235
+ '&:disabled': {
236
+ color: theme.palette.action.disabled,
237
+ },
238
+ },
239
+ contained: {
240
+ '&&:not(.MuiLoadingButton-loading):disabled': {
241
+ color: theme.palette.common.white,
242
+ background: theme.palette.action.disabled,
243
+ },
244
+ '.MuiCircularProgress-root': {
245
+ color: theme.palette.common.white,
246
+ },
247
+ },
248
+ outlined: {
249
+ '& .MuiCircularProgress-root': {
250
+ color: theme.palette.primary.main,
251
+ },
252
+ '&:hover, &:active': {
253
+ background: alpha(theme.palette.primary.main, theme.palette.action.hoverOpacity),
254
+ },
255
+ '&:disabled': {
256
+ borderColor: theme.palette.action.disabled,
257
+ color: theme.palette.action.disabled,
258
+ background: 'transparent',
259
+ },
260
+ },
261
+ textYellow: {
262
+ '&:any-link': {
263
+ color: theme.palette.yellow.main,
264
+ '&:disabled, &.Mui-disabled': {
265
+ color: theme.palette.text.disabled,
266
+ },
267
+ },
268
+ '&:hover, &:active': {
269
+ color: darken(theme.palette.yellow.main, theme.palette.action.hoverOpacity),
270
+ '&:disabled, &.Mui-disabled': {
271
+ color: theme.palette.text.disabled,
272
+ },
273
+ },
274
+ },
275
+ },
276
+ },
277
+ MuiCardHeader: {
278
+ styleOverrides: {
279
+ root: {
280
+ padding: '16px 24px',
281
+ },
282
+ action: {
283
+ alignSelf: 'center',
284
+ '& > .MuiButton-root': {
285
+ paddingTop: 0,
286
+ paddingBottom: 0,
287
+ },
288
+ },
289
+ },
290
+ },
291
+ MuiCardContent: {
292
+ styleOverrides: {
293
+ root: {
294
+ padding: '16px 24px',
295
+ },
296
+ },
297
+ },
298
+ MuiCheckbox: {
299
+ defaultProps: {
300
+ disableRipple: true,
301
+ color: 'secondary',
302
+ icon: _jsx(Icon, { name: "checkbox" }),
303
+ checkedIcon: _jsx(Icon, { name: "checkbox-checked" }),
304
+ indeterminateIcon: _jsx(Icon, { name: "checkbox-indeterminate" }),
305
+ },
306
+ styleOverrides: {
307
+ root: {
308
+ padding: 8,
309
+ margin: -4,
310
+ marginLeft: -8,
311
+ '& .Icon-root': {
312
+ borderRadius: 4,
313
+ },
314
+ '&:hover': {
315
+ '&:not(.Mui-disabled)': {
316
+ backgroundColor: 'unset',
317
+ color: theme.palette.primary.main,
318
+ // color: theme.palette.common.black,
319
+ '&.Mui-checked': {
320
+ color: theme.palette.common.black,
321
+ },
322
+ },
323
+ },
324
+ '&.MuiCheckbox-colorError:not(.Mui-disabled)': {
325
+ color: theme.palette.error.main,
326
+ '& .Icon-root': {
327
+ backgroundColor: alpha(theme.palette.error.main, 0.1),
328
+ },
329
+ },
330
+ '&.Mui-disabled': {
331
+ color: theme.palette.divider,
332
+ '& .Icon-root': {
333
+ backgroundColor: alpha(theme.palette.divider, 0.1),
334
+ },
335
+ },
336
+ },
337
+ },
338
+ },
339
+ MuiDialog: {
340
+ defaultProps: {
341
+ PaperProps: {
342
+ elevation: 4,
343
+ },
344
+ },
345
+ },
346
+ MuiDialogActions: {
347
+ styleOverrides: {
348
+ root: {
349
+ '&:empty': {
350
+ display: 'none',
351
+ },
352
+ padding: theme.spacing(3),
353
+ paddingTop: 0,
354
+ },
355
+ },
356
+ },
357
+ MuiDialogContent: {
358
+ styleOverrides: {
359
+ root: {
360
+ padding: theme.spacing(3),
361
+ paddingTop: 0,
362
+ paddingBottom: theme.spacing(3),
363
+ },
364
+ },
365
+ },
366
+ MuiDialogTitle: {
367
+ styleOverrides: {
368
+ root: {
369
+ padding: theme.spacing(3),
370
+ },
371
+ },
372
+ },
373
+ MuiDivider: {
374
+ variants: [
375
+ {
376
+ props: { variant: 'transparent' },
377
+ style: {
378
+ borderColor: 'transparent',
379
+ },
380
+ },
381
+ ],
382
+ },
383
+ MuiInputLabel: {
384
+ styleOverrides: {
385
+ root: {
386
+ color: theme.palette.text.primary,
387
+ },
388
+ },
389
+ },
390
+ MuiFormLabel: {
391
+ styleOverrides: {
392
+ root: {
393
+ color: theme.palette.text.primary,
394
+ },
395
+ },
396
+ },
397
+ MuiFormControl: {
398
+ styleOverrides: {
399
+ root: {
400
+ minWidth: 'unset',
401
+ },
402
+ },
403
+ },
404
+ MuiFormControlLabel: {
405
+ styleOverrides: {
406
+ root: {
407
+ margin: 0,
408
+ '&.Mui-disabled': {
409
+ cursor: 'not-allowed',
410
+ },
411
+ '& .MuiTypography-root': {
412
+ color: theme.palette.text.primary,
413
+ },
414
+ },
415
+ },
416
+ },
417
+ MuiButtonBase: {
418
+ defaultProps: {
419
+ // The properties to apply
420
+ disableRipple: true, // No more ripple, on the whole application 💣!
421
+ },
422
+ styleOverrides: {
423
+ root: {
424
+ lineHeight: 1,
425
+ },
426
+ },
427
+ },
428
+ MuiButtonGroup: {
429
+ defaultProps: {
430
+ // The properties to apply
431
+ disableRipple: true, // No more ripple, on the whole application 💣!
432
+ },
433
+ },
434
+ MuiInputBase: {
435
+ defaultProps: { size: 'small' },
436
+ styleOverrides: {
437
+ root: {
438
+ color: 'currentColor',
439
+ '&.Mui-disabled': {
440
+ color: 'currentColor',
441
+ '& .MuiInputBase-input': {
442
+ textFillColor: 'currentColor',
443
+ },
444
+ },
445
+ '&.Mui-error': {
446
+ borderColor: theme.palette.error.main,
447
+ },
448
+ '&.MuiInputBase-multiline': {
449
+ padding: '6px 8px',
450
+ },
451
+ },
452
+ sizeSmall: {
453
+ padding: `6px 8px`,
454
+ '& .MuiInputBase-input': {
455
+ height: 20,
456
+ },
457
+ },
458
+ input: {
459
+ webkitTextFillColor: 'currentColor',
460
+ },
461
+ },
462
+ },
463
+ MuiFilledInput: {
464
+ defaultProps: { size: 'small', fullWidth: true },
465
+ styleOverrides: {
466
+ root: {
467
+ background: theme.palette.common.white,
468
+ borderColor: theme.palette.divider,
469
+ color: theme.palette.text.primary,
470
+ borderStyle: 'solid',
471
+ borderWidth: 1,
472
+ borderRadius: 4,
473
+ '&:before, &:after': {
474
+ display: 'none',
475
+ },
476
+ '&:hover:not(.Mui-disabled), &.Mui-focused': {
477
+ background: theme.palette.common.white,
478
+ borderColor: theme.palette.primary.main,
479
+ },
480
+ '&.Mui-focused': {
481
+ boxShadow: `${theme.palette.primary.main} 0 0 3px`,
482
+ },
483
+ '&.Mui-disabled': {
484
+ background: theme.palette.common.white,
485
+ color: theme.palette.text.secondary,
486
+ },
487
+ },
488
+ inputSizeSmall: {
489
+ padding: 0,
490
+ },
491
+ },
492
+ },
493
+ MuiFormHelperText: {
494
+ styleOverrides: {
495
+ root: {
496
+ fontSize: 12,
497
+ lineHeight: '16px',
498
+ margin: '4px 0 0 0',
499
+ textTransform: 'none',
500
+ },
501
+ },
502
+ },
503
+ MuiMenu: {
504
+ defaultProps: {
505
+ elevation: 4,
506
+ },
507
+ },
508
+ MuiOutlinedInput: {
509
+ defaultProps: { size: 'small', fullWidth: true },
510
+ styleOverrides: {
511
+ root: {
512
+ padding: 0,
513
+ '&.Mui-focused .MuiOutlinedInput-notchedOutline': {
514
+ borderWidth: 1,
515
+ boxShadow: `${theme.palette.primary.main} 0 0 3px`,
516
+ },
517
+ '&:hover:not(.Mui-disabled) .MuiOutlinedInput-notchedOutline': {
518
+ borderColor: theme.palette.primary.main,
519
+ },
520
+ '&.MuiInputBase-adornedStart': {
521
+ paddingLeft: 12,
522
+ },
523
+ '&.MuiInputBase-adornedEnd': {
524
+ paddingRight: 12,
525
+ },
526
+ },
527
+ inputSizeSmall: {
528
+ padding: `6px 8px`,
529
+ },
530
+ notchedOutline: {
531
+ borderColor: theme.palette.divider,
532
+ },
533
+ },
534
+ },
535
+ MuiListItem: {
536
+ styleOverrides: {
537
+ root: {
538
+ '&:hover': {
539
+ // TODO, check when is needs and make custom variant instead global
540
+ // color: theme.palette.common.white,
541
+ },
542
+ },
543
+ },
544
+ },
545
+ MuiPaper: {
546
+ styleOverrides: {
547
+ outlined: {
548
+ borderColor: '#E9ECEF',
549
+ },
550
+ surface: {
551
+ background: theme.palette.background.default,
552
+ },
553
+ },
554
+ },
555
+ MuiRadio: {
556
+ defaultProps: {
557
+ disableRipple: true,
558
+ icon: _jsx(Icon, { name: "radio" }),
559
+ checkedIcon: _jsx(Icon, { name: "radio-filled" }),
560
+ },
561
+ styleOverrides: {
562
+ root: {
563
+ padding: 4,
564
+ stroke: theme.palette.text.secondary,
565
+ '& .Icon-root': {
566
+ borderRadius: '50%',
567
+ },
568
+ '&:hover': {
569
+ backgroundColor: 'unset',
570
+ '&:not(.Mui-disabled):not(.MuiRadio-colorError)': {
571
+ backgroundColor: 'unset',
572
+ color: theme.palette.primary.main,
573
+ // color: theme.palette.common.black,
574
+ '&.Mui-checked': {
575
+ color: theme.palette.common.black,
576
+ },
577
+ },
578
+ },
579
+ '&.MuiRadio-colorError:not(.Mui-disabled)': {
580
+ stroke: theme.palette.error.main,
581
+ color: theme.palette.error.main,
582
+ '& .Icon-root': {
583
+ backgroundColor: alpha(theme.palette.error.main, 0.1),
584
+ },
585
+ },
586
+ '&.Mui-disabled': {
587
+ color: theme.palette.divider,
588
+ stroke: theme.palette.divider,
589
+ '& .Icon-root': {
590
+ backgroundColor: alpha(theme.palette.divider, 0.1),
591
+ },
592
+ },
593
+ },
594
+ },
595
+ },
596
+ MuiTabs: {
597
+ styleOverrides: {
598
+ root: {
599
+ minHeight: 40,
600
+ },
601
+ },
602
+ },
603
+ MuiTab: {
604
+ defaultProps: {
605
+ // The properties to apply
606
+ disableRipple: true, // No more ripple, on the whole application 💣!
607
+ },
608
+ styleOverrides: {
609
+ root: {
610
+ minWidth: theme.spacing(8),
611
+ minHeight: 40,
612
+ padding: '8px 16px',
613
+ textTransform: 'none',
614
+ color: theme.palette.text.primary,
615
+ fontSize: 16,
616
+ fontWeight: 400,
617
+ lineHeight: '24px',
618
+ '&:hover': {
619
+ color: theme.palette.primary.main,
620
+ },
621
+ '&.Mui-selected': {
622
+ fontWeight: 700,
623
+ },
624
+ },
625
+ },
626
+ },
627
+ MuiTableRow: {
628
+ styleOverrides: {
629
+ root: {
630
+ '&::before': {
631
+ content: '""',
632
+ display: 'table-cell',
633
+ width: 1,
634
+ height: 40,
635
+ padding: 0,
636
+ border: 0,
637
+ verticalAlign: 'middle',
638
+ },
639
+ },
640
+ head: { backgroundColor: theme.palette.grey[100] },
641
+ },
642
+ },
643
+ MuiTableCell: {
644
+ styleOverrides: {
645
+ root: {
646
+ paddingLeft: 8,
647
+ paddingRight: 8,
648
+ border: 0,
649
+ '&:first-of-type': {
650
+ paddingLeft: 16,
651
+ },
652
+ '&:last-of-type': {
653
+ paddingRight: 16,
654
+ },
655
+ },
656
+ head: {
657
+ background: 'inherit',
658
+ paddingTop: 12,
659
+ paddingBottom: 12,
660
+ },
661
+ },
662
+ },
663
+ MuiTablePagination: {
664
+ styleOverrides: {
665
+ select: {
666
+ padding: 0,
667
+ paddingRight: 24,
668
+ },
669
+ toolbar: {
670
+ minHeight: 48,
671
+ [theme.breakpoints.up('sm')]: {
672
+ minHeight: 48,
673
+ },
674
+ },
675
+ },
676
+ },
677
+ MuiTypography: {
678
+ styleOverrides: {
679
+ gutterBottom: {
680
+ marginBottom: '.5rem',
681
+ },
682
+ },
683
+ },
684
+ MuiToggleButtonGroup: {
685
+ styleOverrides: {
686
+ root: {
687
+ height: 34,
688
+ },
689
+ },
690
+ },
691
+ MuiTooltip: {
692
+ styleOverrides: {
693
+ tooltip: {
694
+ fontSize: 14,
695
+ },
696
+ },
697
+ },
698
+ MuiStepper: {
699
+ styleOverrides: {
700
+ root: {
701
+ padding: `${theme.spacing(2)} 0`,
702
+ },
703
+ },
704
+ },
705
+ MuiStepLabel: {
706
+ defaultProps: {
707
+ StepIconComponent,
708
+ },
709
+ styleOverrides: {
710
+ root: {
711
+ position: 'relative',
712
+ zIndex: 1,
713
+ },
714
+ label: {
715
+ color: theme.palette.primary.main,
716
+ fontSize: 14,
717
+ '&.MuiStepLabel-alternativeLabel': {
718
+ marginTop: 8,
719
+ },
720
+ '&.Mui-disabled': {
721
+ color: theme.palette.text.disabled,
722
+ },
723
+ '&.Mui-active': {
724
+ color: theme.palette.primary.main,
725
+ },
726
+ '&.Mui-error': {
727
+ color: theme.palette.error.main,
728
+ },
729
+ },
730
+ },
731
+ },
732
+ MuiStepButton: {
733
+ styleOverrides: {
734
+ root: {
735
+ padding: 0,
736
+ margin: 0,
737
+ },
738
+ },
739
+ },
740
+ MuiStepConnector: {
741
+ styleOverrides: {
742
+ root: {
743
+ left: '-50%',
744
+ right: '50%',
745
+ '&:last-of-type': {
746
+ right: 0,
747
+ },
748
+ },
749
+ line: {
750
+ borderColor: theme.palette.grey[100],
751
+ },
752
+ },
753
+ },
754
+ MuiSwitch: {
755
+ styleOverrides: {
756
+ root: {
757
+ width: 42,
758
+ height: 24,
759
+ padding: 0,
760
+ margin: '8px 0',
761
+ },
762
+ switchBase: {
763
+ margin: 0,
764
+ padding: 4,
765
+ transitionDuration: '300ms',
766
+ '&.Mui-checked': {
767
+ transform: 'translateX(18px)',
768
+ color: '#fff',
769
+ '& + .MuiSwitch-track': {
770
+ opacity: 1,
771
+ border: 0,
772
+ },
773
+ '&.Mui-disabled + .MuiSwitch-track': {
774
+ opacity: 0.5,
775
+ },
776
+ },
777
+ '&.Mui-disabled .MuiSwitch-thumb': {
778
+ color: theme.palette.grey[100],
779
+ },
780
+ '&.Mui-disabled + .MuiSwitch-track': {
781
+ opacity: 1,
782
+ background: theme.palette.action.disabled,
783
+ cursor: 'not-allowed',
784
+ },
785
+ },
786
+ thumb: {
787
+ boxShadow: 'none',
788
+ width: 16,
789
+ height: 16,
790
+ },
791
+ track: {
792
+ borderRadius: 12,
793
+ backgroundColor: theme.palette.secondary.light,
794
+ opacity: 1,
795
+ transition: theme.transitions.create(['background-color'], {
796
+ duration: 500,
797
+ }),
798
+ },
799
+ },
800
+ },
801
+ MuiLink: {
802
+ styleOverrides: {
803
+ root: { textDecoration: 'none', cursor: 'pointer' },
804
+ },
805
+ },
806
+ },
807
+ }, ...(overwriteThemes ?? [])),
808
+ });
809
+ export const theme = createTheme();
810
+ export const listBottomBorder = {
811
+ content: '""',
812
+ position: 'absolute',
813
+ bottom: 0,
814
+ left: 8,
815
+ width: 'calc(100% - 16px)',
816
+ borderBottomColor: `${theme.palette.grey[500]} !important`,
817
+ borderBottomStyle: 'solid',
818
+ borderBottomWidth: 1,
819
+ };
820
+ const accessibilityBaseTheme = merge({}, baseTheme, {
821
+ palette: {
822
+ divider: theme.palette.grey[500],
823
+ text: {
824
+ secondary: '#48587F',
825
+ },
826
+ },
827
+ });
828
+ const accessibilitySwitchOptions = {
829
+ MuiSwitch: {
830
+ styleOverrides: {
831
+ switchBase: {
832
+ '&.Mui-checked': {
833
+ color: theme.palette.common.white,
834
+ '& + .MuiSwitch-track': {
835
+ opacity: 1,
836
+ },
837
+ '&.Mui-disabled + .MuiSwitch-track': {
838
+ opacity: 1,
839
+ },
840
+ },
841
+ '&.Mui-disabled .MuiSwitch-thumb': {
842
+ color: theme.palette.common.white,
843
+ },
844
+ '&.Mui-disabled + .MuiSwitch-track': {
845
+ opacity: 1,
846
+ },
847
+ },
848
+ thumb: { boxShadow: alpha(theme.palette.common.black, 0.1) },
849
+ track: {
850
+ background: '#48587F !important',
851
+ '&:after, &:before': {
852
+ color: theme.palette.common.white,
853
+ fontSize: 12,
854
+ position: 'absolute',
855
+ top: '50%',
856
+ transform: 'translateY(-50%)',
857
+ },
858
+ '&:after': {
859
+ content: '"✓"',
860
+ left: 8,
861
+ },
862
+ '&:before': {
863
+ content: '"✕"',
864
+ right: 8,
865
+ },
866
+ },
867
+ },
868
+ },
869
+ };
870
+ export const accessibilityTheme = createTheme(accessibilityBaseTheme, {
871
+ components: {
872
+ ...accessibilitySwitchOptions,
873
+ MuiFilledInput: {
874
+ styleOverrides: {
875
+ root: {
876
+ borderColor: theme.palette.grey[500],
877
+ '&.Mui-focused': {
878
+ boxShadow: `${theme.palette.primary.main} 0 0 4px`,
879
+ },
880
+ '&.Mui-disabled': {
881
+ backgroundColor: theme.palette.grey[200],
882
+ borderColor: theme.palette.grey[400],
883
+ color: theme.palette.grey[900],
884
+ },
885
+ '&.Mui-error': {
886
+ backgroundColor: alpha(theme.palette.error.main, 0.1),
887
+ },
888
+ },
889
+ },
890
+ },
891
+ MuiAutocomplete: {
892
+ styleOverrides: {
893
+ listbox: {
894
+ borderColor: theme.palette.grey[500],
895
+ borderStyle: 'solid',
896
+ borderWidth: 1,
897
+ borderRadius: 3,
898
+ '& .MuiAutocomplete-option:not(:last-child)': {
899
+ position: 'relative',
900
+ '&:before': listBottomBorder,
901
+ },
902
+ "& .MuiAutocomplete-option[aria-disabled='true']": {
903
+ opacity: 1,
904
+ color: theme.palette.grey[800],
905
+ },
906
+ },
907
+ noOptions: {
908
+ borderColor: theme.palette.grey[500],
909
+ borderStyle: 'solid',
910
+ borderWidth: 1,
911
+ borderRadius: 3,
912
+ },
913
+ },
914
+ },
915
+ MuiLink: {
916
+ styleOverrides: {
917
+ root: {
918
+ textDecoration: 'underline',
919
+ },
920
+ },
921
+ },
922
+ MuiTableRow: {
923
+ styleOverrides: {
924
+ root: {
925
+ borderBottom: `1px solid ${theme.palette.common.black}`,
926
+ },
927
+ },
928
+ },
929
+ MuiDrawer: {
930
+ styleOverrides: {
931
+ root: {
932
+ '& .drawer-button': {
933
+ backgroundColor: theme.palette.secondary.main,
934
+ '&:hover': {
935
+ backgroundColor: theme.palette.secondary.main,
936
+ '& .Icon-root': {
937
+ color: theme.palette.common.white,
938
+ },
939
+ },
940
+ '& .Icon-root': {
941
+ color: theme.palette.common.white,
942
+ },
943
+ },
944
+ },
945
+ paper: { border: '1px solid currentColor !important' },
946
+ },
947
+ },
948
+ MuiButton: {
949
+ styleOverrides: {
950
+ text: {
951
+ border: '1px solid currentColor !important',
952
+ paddingLeft: '4px !important',
953
+ paddingRight: '4px !important',
954
+ },
955
+ root: {
956
+ marginLeft: '2px',
957
+ marginRight: '2px',
958
+ '&.MuiButton-outlined:disabled': {
959
+ color: `${theme.palette.grey[800]} !important`,
960
+ },
961
+ },
962
+ },
963
+ },
964
+ MuiTabs: {
965
+ styleOverrides: {
966
+ flexContainer: {
967
+ gap: 4,
968
+ '& .MuiTab-root.Mui-selected': {
969
+ border: `1px solid ${theme.palette.grey[500]}`,
970
+ borderBottom: 'none',
971
+ borderTopLeftRadius: 4,
972
+ borderTopRightRadius: 4,
973
+ },
974
+ },
975
+ flexContainerVertical: {
976
+ '& .MuiTab-root:not(:last-child)': {
977
+ position: 'relative',
978
+ '&:before': listBottomBorder,
979
+ },
980
+ },
981
+ },
982
+ },
983
+ MuiList: {
984
+ styleOverrides: {
985
+ root: {
986
+ '& .MuiListItem-root:not(:last-child)': {
987
+ position: 'relative',
988
+ '&:before': listBottomBorder,
989
+ },
990
+ '& .MuiMenuItem-root:not(:last-child)': {
991
+ position: 'relative',
992
+ '&:before': listBottomBorder,
993
+ },
994
+ },
995
+ },
996
+ },
997
+ MuiCard: {
998
+ styleOverrides: {
999
+ root: { border: `1px solid ${theme.palette.grey[500]}` },
1000
+ },
1001
+ },
1002
+ MuiStepLabel: {
1003
+ styleOverrides: {
1004
+ label: {
1005
+ '&.Mui-disabled': {
1006
+ color: theme.palette.grey[800],
1007
+ },
1008
+ },
1009
+ },
1010
+ },
1011
+ MuiStepConnector: {
1012
+ styleOverrides: { line: { borderColor: theme.palette.grey[500] } },
1013
+ },
1014
+ },
1015
+ });
1016
+ export function prepareTheme(colorMap) {
1017
+ const accessibility = getAccessabilityValue();
1018
+ const colors = generateColorsList(colorMap);
1019
+ const overrideTheme = {
1020
+ palette: {
1021
+ common: { black: '#000', white: '#FFF' },
1022
+ primary: {
1023
+ light: colors['primary-light'],
1024
+ main: colors['primary'],
1025
+ dark: colors['tint'],
1026
+ },
1027
+ secondary: {
1028
+ main: colors['dark'],
1029
+ },
1030
+ error: {
1031
+ main: colors['error-text'],
1032
+ },
1033
+ warning: {
1034
+ main: colors['warning-border'],
1035
+ },
1036
+ background: {
1037
+ default: '#F9F9F9',
1038
+ },
1039
+ grey: {
1040
+ 100: '#E9ECF3',
1041
+ 400: '#C2C8D6',
1042
+ 700: '#838895',
1043
+ 800: '#50586D',
1044
+ 900: '#2A3246',
1045
+ },
1046
+ yellow: { main: colors['accent'] },
1047
+ divider: accessibility ? theme.palette.grey[500] : '#E9EAEC',
1048
+ success: {
1049
+ main: colors['success-text'],
1050
+ },
1051
+ text: {
1052
+ primary: colors['dark'],
1053
+ secondary: colors['neutral'],
1054
+ disabled: colors['neutral-medium'],
1055
+ warning: colors['warning-border'],
1056
+ },
1057
+ icons: {
1058
+ main: colors['dark'],
1059
+ hover: colors['primary'],
1060
+ },
1061
+ action: {
1062
+ active: colors['accent'],
1063
+ selected: colors['primary-light'],
1064
+ hover: colors['primary-light'],
1065
+ hoverText: colors['tint'],
1066
+ focus: colors['primary'],
1067
+ focusOpacity: 0.2,
1068
+ disabled: colors['neutral-medium'],
1069
+ hoverOpacity: 0.2,
1070
+ },
1071
+ },
1072
+ components: {
1073
+ MuiCssBaseline: {
1074
+ styleOverrides: {
1075
+ html: {
1076
+ ':root': mapKeys(colors, (_, name) => `--color-${name}`),
1077
+ },
1078
+ body: {
1079
+ color: colors['dark'],
1080
+ '::-moz-selection': {
1081
+ background: colors['primary-light'],
1082
+ },
1083
+ '::selection': {
1084
+ background: colors['primary-light'],
1085
+ },
1086
+ '.datepicker-wrapper, .react-datepicker__portal,.react-datepicker-popper': {
1087
+ '& .react-datepicker__day': {
1088
+ '&--selected, &--in-range': {
1089
+ backgroundColor: colors['primary-dark'],
1090
+ },
1091
+ '&--keyboard-selected, &--highlighted': {
1092
+ backgroundColor: lighten(colors['primary'], 0.05),
1093
+ },
1094
+ '&--in-selecting-range, &:hover': {
1095
+ backgroundColor: colors['primary'] + '1a',
1096
+ },
1097
+ },
1098
+ },
1099
+ 'a:any-link': {
1100
+ color: colors['primary'],
1101
+ '&:hover': {
1102
+ color: colors['primary-dark'],
1103
+ },
1104
+ },
1105
+ },
1106
+ },
1107
+ },
1108
+ ...(accessibility
1109
+ ? accessibilitySwitchOptions
1110
+ : {
1111
+ MuiSwitch: {
1112
+ styleOverrides: {
1113
+ track: {
1114
+ background: colors['primary-light'],
1115
+ },
1116
+ },
1117
+ },
1118
+ }),
1119
+ MuiInputBase: {
1120
+ styleOverrides: {
1121
+ root: {
1122
+ color: colors['dark'],
1123
+ '&:hover': {
1124
+ borderColor: colors['primary'] + '!important',
1125
+ },
1126
+ '&.Mui-focused': {
1127
+ boxShadow: `${colors['primary-light']} 0 0 3px` + '!important',
1128
+ },
1129
+ },
1130
+ },
1131
+ },
1132
+ MuiRadio: {
1133
+ styleOverrides: {
1134
+ root: {
1135
+ '&:hover': {
1136
+ color: colors['primary'] + '!important',
1137
+ },
1138
+ },
1139
+ },
1140
+ },
1141
+ MuiButtonBase: {
1142
+ styleOverrides: {
1143
+ root: {
1144
+ '&& .MuiCircularProgress-root': {
1145
+ color: colors['primary'],
1146
+ },
1147
+ '&.MuiButton-outlinedPrimary': {
1148
+ '&:hover': {
1149
+ background: colors['primary-light'],
1150
+ },
1151
+ },
1152
+ '&.MuiButton-text': {
1153
+ '&:hover': {
1154
+ color: colors['primary-dark'],
1155
+ },
1156
+ },
1157
+ },
1158
+ },
1159
+ },
1160
+ MuiInputLabel: {
1161
+ styleOverrides: {
1162
+ root: {
1163
+ color: colors['dark'],
1164
+ },
1165
+ },
1166
+ },
1167
+ MuiFormControl: {
1168
+ styleOverrides: {
1169
+ root: {
1170
+ '& p.MuiTypography-root': {
1171
+ color: colors['dark'],
1172
+ },
1173
+ },
1174
+ },
1175
+ },
1176
+ MuiAutocomplete: {
1177
+ styleOverrides: {
1178
+ option: {
1179
+ '&[aria-selected="true"]': {
1180
+ background: colors['primary'] + '!important',
1181
+ },
1182
+ '&:not([aria-selected="true"])': {
1183
+ '&:hover, &.Mui-focused': {
1184
+ background: colors['primary-light'] + '!important',
1185
+ },
1186
+ },
1187
+ },
1188
+ },
1189
+ },
1190
+ MuiTab: {
1191
+ styleOverrides: {
1192
+ root: {
1193
+ color: colors['dark'],
1194
+ '&:hover': {
1195
+ color: colors['tint'],
1196
+ },
1197
+ },
1198
+ },
1199
+ },
1200
+ MuiIconButton: {
1201
+ styleOverrides: {
1202
+ root: {
1203
+ color: colors['neutral'],
1204
+ },
1205
+ },
1206
+ },
1207
+ MuiLink: {
1208
+ styleOverrides: {
1209
+ root: {
1210
+ '&:hover': {
1211
+ color: colors['primary-dark'],
1212
+ },
1213
+ },
1214
+ },
1215
+ },
1216
+ MuiCheckbox: {
1217
+ styleOverrides: {
1218
+ root: {
1219
+ '&:hover svg': {
1220
+ color: colors['primary'],
1221
+ },
1222
+ },
1223
+ },
1224
+ },
1225
+ },
1226
+ };
1227
+ return createTheme(undefined, accessibility ? accessibilityTheme : theme, overrideTheme);
1228
+ }