@epilot/base-elements 2.7.16 → 2.7.23

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 (376) hide show
  1. package/CHANGELOG.md +1006 -0
  2. package/dist/Accordion/Accordion.d.ts +3 -3
  3. package/dist/Accordion/Accordion.js +11 -11
  4. package/dist/Accordion/AccordionActions.d.ts +3 -3
  5. package/dist/Accordion/AccordionActions.js +11 -11
  6. package/dist/Accordion/AccordionDetails.d.ts +3 -3
  7. package/dist/Accordion/AccordionDetails.js +11 -11
  8. package/dist/Accordion/AccordionSummary.d.ts +3 -3
  9. package/dist/Accordion/AccordionSummary.js +12 -12
  10. package/dist/Accordion/index.d.ts +5 -5
  11. package/dist/Accordion/index.js +8 -8
  12. package/dist/Accordion/types.d.ts +57 -57
  13. package/dist/Accordion/types.js +2 -2
  14. package/dist/AppBar/AppBar.d.ts +4 -4
  15. package/dist/AppBar/AppBar.js +16 -16
  16. package/dist/AppBar/index.d.ts +2 -2
  17. package/dist/AppBar/index.js +5 -5
  18. package/dist/AppBar/types.d.ts +3 -3
  19. package/dist/AppBar/types.js +2 -2
  20. package/dist/Autocomplete/Autocomplete.d.ts +3 -3
  21. package/dist/Autocomplete/Autocomplete.js +48 -48
  22. package/dist/Autocomplete/index.d.ts +2 -2
  23. package/dist/Autocomplete/index.js +7 -7
  24. package/dist/Autocomplete/styles.d.ts +1 -1
  25. package/dist/Autocomplete/styles.js +14 -14
  26. package/dist/Autocomplete/types.d.ts +65 -65
  27. package/dist/Autocomplete/types.js +2 -2
  28. package/dist/AutocompleteX/AutocompleteX.d.ts +2 -2
  29. package/dist/AutocompleteX/AutocompleteX.js +5 -5
  30. package/dist/AutocompleteX/index.d.ts +2 -2
  31. package/dist/AutocompleteX/index.js +7 -7
  32. package/dist/AutocompleteX/types.d.ts +6 -6
  33. package/dist/AutocompleteX/types.js +2 -2
  34. package/dist/Avatar/Avatar.d.ts +3 -3
  35. package/dist/Avatar/Avatar.js +27 -27
  36. package/dist/Avatar/AvatarGroup.d.ts +3 -3
  37. package/dist/Avatar/AvatarGroup.js +21 -21
  38. package/dist/Avatar/index.d.ts +3 -3
  39. package/dist/Avatar/index.js +9 -9
  40. package/dist/Avatar/types.d.ts +48 -48
  41. package/dist/Avatar/types.js +2 -2
  42. package/dist/Badge/Badge.d.ts +3 -3
  43. package/dist/Badge/Badge.js +11 -11
  44. package/dist/Badge/index.d.ts +2 -2
  45. package/dist/Badge/index.js +5 -5
  46. package/dist/Badge/types.d.ts +2 -2
  47. package/dist/Badge/types.js +2 -2
  48. package/dist/Box/Box.d.ts +3 -3
  49. package/dist/Box/Box.js +11 -11
  50. package/dist/Box/index.d.ts +2 -2
  51. package/dist/Box/index.js +5 -5
  52. package/dist/Box/types.d.ts +2 -2
  53. package/dist/Box/types.js +2 -2
  54. package/dist/Breadcrumbs/Breadcrumbs.d.ts +3 -3
  55. package/dist/Breadcrumbs/Breadcrumbs.js +10 -10
  56. package/dist/Breadcrumbs/index.d.ts +2 -2
  57. package/dist/Breadcrumbs/index.js +7 -7
  58. package/dist/Breadcrumbs/types.d.ts +2 -2
  59. package/dist/Breadcrumbs/types.js +2 -2
  60. package/dist/Button/Button.d.ts +8 -8
  61. package/dist/Button/Button.js +125 -125
  62. package/dist/Button/index.d.ts +2 -2
  63. package/dist/Button/index.js +5 -5
  64. package/dist/Button/types.d.ts +21 -21
  65. package/dist/Button/types.js +2 -2
  66. package/dist/ButtonGroup/ButtonGroup.d.ts +3 -3
  67. package/dist/ButtonGroup/ButtonGroup.js +11 -11
  68. package/dist/ButtonGroup/index.d.ts +2 -2
  69. package/dist/ButtonGroup/index.js +5 -5
  70. package/dist/ButtonGroup/types.d.ts +37 -37
  71. package/dist/ButtonGroup/types.js +2 -2
  72. package/dist/Card/Card.d.ts +8 -8
  73. package/dist/Card/Card.js +36 -36
  74. package/dist/Card/index.d.ts +2 -2
  75. package/dist/Card/index.js +5 -5
  76. package/dist/Card/types.d.ts +7 -7
  77. package/dist/Card/types.js +2 -2
  78. package/dist/Checkbox/Checkbox.d.ts +3 -3
  79. package/dist/Checkbox/Checkbox.js +27 -27
  80. package/dist/Checkbox/index.d.ts +2 -2
  81. package/dist/Checkbox/index.js +5 -5
  82. package/dist/Checkbox/types.d.ts +84 -84
  83. package/dist/Checkbox/types.js +2 -2
  84. package/dist/Chip/Chip.d.ts +3 -3
  85. package/dist/Chip/Chip.js +16 -16
  86. package/dist/Chip/RandomColoredChip.d.ts +3 -3
  87. package/dist/Chip/RandomColoredChip.js +33 -33
  88. package/dist/Chip/index.d.ts +2 -2
  89. package/dist/Chip/index.js +5 -5
  90. package/dist/Chip/types.d.ts +13 -13
  91. package/dist/Chip/types.js +2 -2
  92. package/dist/Collapse/Collapse.d.ts +3 -3
  93. package/dist/Collapse/Collapse.js +11 -11
  94. package/dist/Collapse/index.d.ts +2 -2
  95. package/dist/Collapse/index.js +5 -5
  96. package/dist/Collapse/types.d.ts +2 -2
  97. package/dist/Collapse/types.js +2 -2
  98. package/dist/Dialog/Dialog.d.ts +7 -7
  99. package/dist/Dialog/Dialog.js +31 -31
  100. package/dist/Dialog/index.d.ts +2 -2
  101. package/dist/Dialog/index.js +5 -5
  102. package/dist/Dialog/types.d.ts +157 -157
  103. package/dist/Dialog/types.js +2 -2
  104. package/dist/Divider/Divider.d.ts +3 -3
  105. package/dist/Divider/Divider.js +10 -10
  106. package/dist/Divider/index.d.ts +2 -2
  107. package/dist/Divider/index.js +5 -5
  108. package/dist/Divider/types.d.ts +2 -2
  109. package/dist/Divider/types.js +2 -2
  110. package/dist/Drawer/Drawer.d.ts +3 -3
  111. package/dist/Drawer/Drawer.js +11 -11
  112. package/dist/Drawer/index.d.ts +2 -2
  113. package/dist/Drawer/index.js +5 -5
  114. package/dist/Drawer/types.d.ts +2 -2
  115. package/dist/Drawer/types.js +2 -2
  116. package/dist/Drawer360/ActionFooter.d.ts +13 -13
  117. package/dist/Drawer360/ActionFooter.js +108 -108
  118. package/dist/Drawer360/DiscardDialog.d.ts +10 -10
  119. package/dist/Drawer360/DiscardDialog.js +48 -48
  120. package/dist/Drawer360/Drawer360.d.ts +3 -3
  121. package/dist/Drawer360/Drawer360.js +95 -95
  122. package/dist/Drawer360/helpers.d.ts +3 -3
  123. package/dist/Drawer360/helpers.js +61 -61
  124. package/dist/Drawer360/index.d.ts +2 -2
  125. package/dist/Drawer360/index.js +5 -5
  126. package/dist/Drawer360/types.d.ts +30 -30
  127. package/dist/Drawer360/types.js +2 -2
  128. package/dist/Form/FormControl.d.ts +2 -2
  129. package/dist/Form/FormControl.js +4 -4
  130. package/dist/Form/FormControlLabel.d.ts +2 -2
  131. package/dist/Form/FormControlLabel.js +4 -4
  132. package/dist/Form/FormGroup.d.ts +2 -2
  133. package/dist/Form/FormGroup.js +5 -5
  134. package/dist/Form/FormHelperText.d.ts +2 -2
  135. package/dist/Form/FormHelperText.js +4 -4
  136. package/dist/Form/FormLabel.d.ts +2 -2
  137. package/dist/Form/FormLabel.js +4 -4
  138. package/dist/Form/InputAdornment.d.ts +2 -2
  139. package/dist/Form/InputAdornment.js +4 -4
  140. package/dist/Form/InputLabel.d.ts +2 -2
  141. package/dist/Form/InputLabel.js +4 -4
  142. package/dist/Form/index.d.ts +8 -8
  143. package/dist/Form/index.js +19 -19
  144. package/dist/Form/types.d.ts +9 -9
  145. package/dist/Form/types.js +2 -2
  146. package/dist/Grid/Grid.d.ts +3 -3
  147. package/dist/Grid/Grid.js +10 -10
  148. package/dist/Grid/index.d.ts +2 -2
  149. package/dist/Grid/index.js +5 -5
  150. package/dist/Grid/types.d.ts +2 -2
  151. package/dist/Grid/types.js +2 -2
  152. package/dist/Hidden/Hidden.d.ts +3 -3
  153. package/dist/Hidden/Hidden.js +11 -11
  154. package/dist/Hidden/index.d.ts +2 -2
  155. package/dist/Hidden/index.js +5 -5
  156. package/dist/Hidden/types.d.ts +8 -8
  157. package/dist/Hidden/types.js +2 -2
  158. package/dist/Icon/Icon.d.ts +5 -5
  159. package/dist/Icon/Icon.js +57 -57
  160. package/dist/Icon/index.d.ts +2 -2
  161. package/dist/Icon/index.js +9 -9
  162. package/dist/Icon/types.d.ts +46 -46
  163. package/dist/Icon/types.js +2 -2
  164. package/dist/Image/Image.d.ts +3 -3
  165. package/dist/Image/Image.js +22 -22
  166. package/dist/Image/index.d.ts +2 -2
  167. package/dist/Image/index.js +7 -7
  168. package/dist/Image/types.d.ts +21 -21
  169. package/dist/Image/types.js +2 -2
  170. package/dist/Link/Link.d.ts +3 -3
  171. package/dist/Link/Link.js +10 -10
  172. package/dist/Link/index.d.ts +2 -2
  173. package/dist/Link/index.js +7 -7
  174. package/dist/Link/types.d.ts +41 -41
  175. package/dist/Link/types.js +2 -2
  176. package/dist/List/List.d.ts +8 -8
  177. package/dist/List/List.js +36 -36
  178. package/dist/List/index.d.ts +2 -2
  179. package/dist/List/index.js +5 -5
  180. package/dist/List/types.d.ts +7 -7
  181. package/dist/List/types.js +2 -2
  182. package/dist/Menu/Menu.d.ts +6 -6
  183. package/dist/Menu/Menu.js +9 -9
  184. package/dist/Menu/index.d.ts +2 -2
  185. package/dist/Menu/index.js +5 -5
  186. package/dist/Menu/types.d.ts +71 -71
  187. package/dist/Menu/types.js +2 -2
  188. package/dist/Notification/Notification.d.ts +5 -5
  189. package/dist/Notification/Notification.js +51 -51
  190. package/dist/Notification/index.d.ts +2 -2
  191. package/dist/Notification/index.js +9 -9
  192. package/dist/Notification/types.d.ts +7 -7
  193. package/dist/Notification/types.js +2 -2
  194. package/dist/Pagination/Pagination.d.ts +4 -4
  195. package/dist/Pagination/Pagination.js +193 -193
  196. package/dist/Pagination/PaginationHelper.d.ts +6 -6
  197. package/dist/Pagination/PaginationHelper.js +123 -123
  198. package/dist/Pagination/index.d.ts +2 -2
  199. package/dist/Pagination/index.js +7 -7
  200. package/dist/Pagination/types.d.ts +29 -29
  201. package/dist/Pagination/types.js +8 -8
  202. package/dist/Paper/Paper.d.ts +2 -2
  203. package/dist/Paper/Paper.js +5 -5
  204. package/dist/Paper/index.d.ts +2 -2
  205. package/dist/Paper/index.js +5 -5
  206. package/dist/Paper/types.d.ts +2 -2
  207. package/dist/Paper/types.js +2 -2
  208. package/dist/Pickers/DatePicker.d.ts +10 -10
  209. package/dist/Pickers/DatePicker.js +29 -29
  210. package/dist/Pickers/DateTimePicker.d.ts +3 -3
  211. package/dist/Pickers/DateTimePicker.js +24 -24
  212. package/dist/Pickers/TimePicker.d.ts +3 -3
  213. package/dist/Pickers/TimePicker.js +24 -24
  214. package/dist/Pickers/index.d.ts +4 -4
  215. package/dist/Pickers/index.js +7 -7
  216. package/dist/Pickers/types.d.ts +80 -80
  217. package/dist/Pickers/types.js +2 -2
  218. package/dist/Popover/Popover.d.ts +2 -2
  219. package/dist/Popover/Popover.js +5 -5
  220. package/dist/Popover/index.d.ts +3 -3
  221. package/dist/Popover/index.js +7 -7
  222. package/dist/Popover/types.d.ts +2 -2
  223. package/dist/Popover/types.js +2 -2
  224. package/dist/Progress/Progress.d.ts +5 -5
  225. package/dist/Progress/Progress.js +12 -12
  226. package/dist/Progress/index.d.ts +2 -2
  227. package/dist/Progress/index.js +5 -5
  228. package/dist/Progress/types.d.ts +3 -3
  229. package/dist/Progress/types.js +2 -2
  230. package/dist/Radio/Radio.d.ts +3 -3
  231. package/dist/Radio/Radio.js +26 -26
  232. package/dist/Radio/RadioGroup.d.ts +3 -3
  233. package/dist/Radio/RadioGroup.js +9 -9
  234. package/dist/Radio/index.d.ts +3 -3
  235. package/dist/Radio/index.js +9 -9
  236. package/dist/Radio/types.d.ts +46 -46
  237. package/dist/Radio/types.js +2 -2
  238. package/dist/Rating/Rating.d.ts +3 -3
  239. package/dist/Rating/Rating.js +71 -71
  240. package/dist/Rating/index.d.ts +2 -2
  241. package/dist/Rating/index.js +5 -5
  242. package/dist/Rating/types.d.ts +49 -49
  243. package/dist/Rating/types.js +2 -2
  244. package/dist/Select/Select.d.ts +3 -3
  245. package/dist/Select/Select.js +38 -38
  246. package/dist/Select/index.d.ts +2 -2
  247. package/dist/Select/index.js +7 -7
  248. package/dist/Select/types.d.ts +76 -76
  249. package/dist/Select/types.js +2 -2
  250. package/dist/Slide/Slide.d.ts +3 -3
  251. package/dist/Slide/Slide.js +11 -11
  252. package/dist/Slide/index.d.ts +2 -2
  253. package/dist/Slide/index.js +7 -7
  254. package/dist/Slide/types.d.ts +2 -2
  255. package/dist/Slide/types.js +2 -2
  256. package/dist/Snackbar/Snackbar.d.ts +3 -3
  257. package/dist/Snackbar/Snackbar.js +11 -11
  258. package/dist/Snackbar/index.d.ts +2 -2
  259. package/dist/Snackbar/index.js +7 -7
  260. package/dist/Snackbar/types.d.ts +2 -2
  261. package/dist/Snackbar/types.js +2 -2
  262. package/dist/Spacing/Spacing.d.ts +7 -7
  263. package/dist/Spacing/Spacing.js +71 -71
  264. package/dist/Spacing/index.d.ts +2 -2
  265. package/dist/Spacing/index.js +5 -5
  266. package/dist/Spacing/types.d.ts +15 -15
  267. package/dist/Spacing/types.js +2 -2
  268. package/dist/Stepper/MobileStepper.d.ts +3 -3
  269. package/dist/Stepper/MobileStepper.js +10 -10
  270. package/dist/Stepper/Stepper.d.ts +7 -7
  271. package/dist/Stepper/Stepper.js +27 -27
  272. package/dist/Stepper/index.d.ts +3 -3
  273. package/dist/Stepper/index.js +6 -6
  274. package/dist/Stepper/types.d.ts +14 -14
  275. package/dist/Stepper/types.js +2 -2
  276. package/dist/Switch/Switch.d.ts +3 -3
  277. package/dist/Switch/Switch.js +10 -10
  278. package/dist/Switch/index.d.ts +2 -2
  279. package/dist/Switch/index.js +7 -7
  280. package/dist/Switch/types.d.ts +12 -12
  281. package/dist/Switch/types.js +2 -2
  282. package/dist/Table/ResizeTableCell/ResizeTableCell.d.ts +11 -11
  283. package/dist/Table/ResizeTableCell/ResizeTableCell.js +94 -94
  284. package/dist/Table/ResizeTableCell/ResizeTableCellStyles.d.ts +2 -2
  285. package/dist/Table/ResizeTableCell/ResizeTableCellStyles.js +60 -60
  286. package/dist/Table/ResizeTableCell/ResizeTableContext.d.ts +15 -15
  287. package/dist/Table/ResizeTableCell/ResizeTableContext.js +16 -16
  288. package/dist/Table/Table.d.ts +8 -8
  289. package/dist/Table/Table.js +11 -11
  290. package/dist/Table/index.d.ts +4 -4
  291. package/dist/Table/index.js +7 -7
  292. package/dist/Table/types.d.ts +7 -7
  293. package/dist/Table/types.js +2 -2
  294. package/dist/TableColumnSettings/TableColumnSettings.d.ts +4 -4
  295. package/dist/TableColumnSettings/TableColumnSettings.js +131 -131
  296. package/dist/TableColumnSettings/TableColumnSettingsStyles.d.ts +1 -1
  297. package/dist/TableColumnSettings/TableColumnSettingsStyles.js +83 -83
  298. package/dist/TableColumnSettings/index.d.ts +3 -3
  299. package/dist/TableColumnSettings/index.js +7 -7
  300. package/dist/TableColumnSettings/types.d.ts +14 -14
  301. package/dist/TableColumnSettings/types.js +2 -2
  302. package/dist/Tabs/Tabs.d.ts +10 -10
  303. package/dist/Tabs/Tabs.js +135 -135
  304. package/dist/Tabs/index.d.ts +2 -2
  305. package/dist/Tabs/index.js +5 -5
  306. package/dist/Tabs/types.d.ts +13 -13
  307. package/dist/Tabs/types.js +2 -2
  308. package/dist/TextField/CurrencyTextField.d.ts +3 -3
  309. package/dist/TextField/CurrencyTextField.js +22 -22
  310. package/dist/TextField/InlineTextField.d.ts +3 -3
  311. package/dist/TextField/InlineTextField.js +142 -142
  312. package/dist/TextField/InlineTextField.js.map +1 -1
  313. package/dist/TextField/MaskedTextField.d.ts +3 -3
  314. package/dist/TextField/MaskedTextField.js +13 -13
  315. package/dist/TextField/TextField.d.ts +3 -3
  316. package/dist/TextField/TextField.js +13 -13
  317. package/dist/TextField/ValidatedTextField.d.ts +3 -3
  318. package/dist/TextField/ValidatedTextField.js +35 -35
  319. package/dist/TextField/index.d.ts +6 -6
  320. package/dist/TextField/index.js +9 -9
  321. package/dist/TextField/styles.d.ts +2 -2
  322. package/dist/TextField/styles.js +13 -13
  323. package/dist/TextField/types.d.ts +63 -63
  324. package/dist/TextField/types.js +2 -2
  325. package/dist/ThemeProvider/DefaultEpilotTheme.d.ts +2 -2
  326. package/dist/ThemeProvider/DefaultEpilotTheme.js +312 -312
  327. package/dist/ThemeProvider/ThemeProvider.d.ts +3 -3
  328. package/dist/ThemeProvider/ThemeProvider.js +30 -30
  329. package/dist/ThemeProvider/fonts.d.ts +14 -8
  330. package/dist/ThemeProvider/fonts.js +19 -13
  331. package/dist/ThemeProvider/fonts.js.map +1 -1
  332. package/dist/ThemeProvider/index.d.ts +3 -3
  333. package/dist/ThemeProvider/index.js +8 -8
  334. package/dist/ThemeProvider/mapping.d.ts +10 -10
  335. package/dist/ThemeProvider/mapping.js +846 -846
  336. package/dist/ThemeProvider/types.d.ts +136 -136
  337. package/dist/ThemeProvider/types.js +2 -2
  338. package/dist/ToggleButton/ToggleButton.d.ts +3 -3
  339. package/dist/ToggleButton/ToggleButton.js +12 -12
  340. package/dist/ToggleButton/index.d.ts +2 -2
  341. package/dist/ToggleButton/index.js +5 -5
  342. package/dist/ToggleButton/types.d.ts +27 -27
  343. package/dist/ToggleButton/types.js +2 -2
  344. package/dist/ToggleButtonGroup/ToggleButtonGroup.d.ts +3 -3
  345. package/dist/ToggleButtonGroup/ToggleButtonGroup.js +12 -12
  346. package/dist/ToggleButtonGroup/index.d.ts +2 -2
  347. package/dist/ToggleButtonGroup/index.js +5 -5
  348. package/dist/ToggleButtonGroup/types.d.ts +2 -2
  349. package/dist/ToggleButtonGroup/types.js +2 -2
  350. package/dist/Tooltip/Tooltip.d.ts +3 -3
  351. package/dist/Tooltip/Tooltip.js +22 -22
  352. package/dist/Tooltip/index.d.ts +2 -2
  353. package/dist/Tooltip/index.js +5 -5
  354. package/dist/Tooltip/types.d.ts +8 -8
  355. package/dist/Tooltip/types.js +2 -2
  356. package/dist/Typography/Typography.d.ts +13 -13
  357. package/dist/Typography/Typography.js +60 -60
  358. package/dist/Typography/index.d.ts +3 -3
  359. package/dist/Typography/index.js +22 -22
  360. package/dist/Typography/types.d.ts +7 -7
  361. package/dist/Typography/types.js +2 -2
  362. package/dist/bundle.js +55 -55
  363. package/dist/bundle.js.map +1 -1
  364. package/dist/config.d.ts +1 -1
  365. package/dist/config.js +6 -6
  366. package/dist/context/ClassPrefixContext.d.ts +9 -9
  367. package/dist/context/ClassPrefixContext.js +14 -14
  368. package/dist/index.d.ts +51 -51
  369. package/dist/index.js +54 -54
  370. package/dist/styles/index.d.ts +1 -1
  371. package/dist/styles/index.js +4 -4
  372. package/dist/styles/styles.d.ts +3 -3
  373. package/dist/styles/styles.js +18 -18
  374. package/dist/utils.d.ts +7 -7
  375. package/dist/utils.js +27 -27
  376. package/package.json +3 -1
@@ -1,847 +1,847 @@
1
- "use strict";
2
- exports.__esModule = true;
3
- exports.parseMuiTheme = exports.parseThemeTemplate = void 0;
4
- var tslib_1 = require("tslib");
5
- var styles_1 = require("@material-ui/core/styles");
6
- var fp_1 = tslib_1.__importDefault(require("lodash/fp"));
7
- var DefaultEpilotTheme_1 = require("./DefaultEpilotTheme");
8
- var fonts_1 = tslib_1.__importDefault(require("./fonts"));
9
- function parseThemeTemplate(params) {
10
- var _a, _b, _c, _d;
11
- return {
12
- contentMaxWidth: (((_a = params.props) === null || _a === void 0 ? void 0 : _a.content_max_width) || ((_b = DefaultEpilotTheme_1.DefaultEpilotTheme.props) === null || _b === void 0 ? void 0 : _b.content_max_width)) + "px",
13
- clientLogoUrl: ((_c = params.props) === null || _c === void 0 ? void 0 : _c.client_logo_url) || ((_d = DefaultEpilotTheme_1.DefaultEpilotTheme.props) === null || _d === void 0 ? void 0 : _d.client_logo_url),
14
- clientLogoStyle: {
15
- height: '32px'
16
- }
17
- };
18
- }
19
- exports.parseThemeTemplate = parseThemeTemplate;
20
- function parseMuiTheme(params, classPrefix) {
21
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
22
- var _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32, _33, _34, _35, _36, _37, _38, _39, _40, _41, _42, _43, _44, _45, _46, _47, _48, _49, _50, _51, _52, _53, _54, _55, _56, _57, _58, _59, _60, _61, _62, _63, _64, _65, _66, _67, _68, _69, _70, _71, _72, _73, _74, _75, _76, _77, _78, _79, _80, _81, _82, _83, _84, _85, _86, _87, _88, _89, _90, _91, _92, _93, _94, _95, _96, _97, _98, _99, _100, _101, _102, _103, _104, _105, _106, _107, _108, _109, _110, _111, _112, _113, _114, _115, _116, _117, _118, _119, _120, _121, _122, _123, _124, _125, _126, _127, _128, _129, _130, _131, _132, _133, _134, _135, _136, _137, _138, _139, _140, _141, _142, _143, _144, _145, _146, _147, _148, _149, _150, _151, _152, _153, _154, _155, _156, _157, _158, _159, _160, _161, _162, _163, _164, _165, _166, _167, _168, _169, _170, _171, _172, _173, _174, _175, _176, _177, _178, _179, _180, _181, _182, _183, _184, _185, _186, _187, _188, _189, _190, _191, _192, _193, _194, _195, _196, _197, _198, _199, _200, _201, _202, _203, _204, _205, _206, _207, _208, _209, _210;
23
- if (classPrefix === void 0) { classPrefix = ''; }
24
- var prefix = classPrefix ? classPrefix + "-" : '';
25
- var disableRipple = typeof ((_t = params.props) === null || _t === void 0 ? void 0 : _t.enable_ripple) === 'boolean'
26
- ? !((_u = params.props) === null || _u === void 0 ? void 0 : _u.enable_ripple)
27
- : !((_v = DefaultEpilotTheme_1.DefaultEpilotTheme.props) === null || _v === void 0 ? void 0 : _v.enable_ripple);
28
- var borderRadius = ((_w = params.shape) === null || _w === void 0 ? void 0 : _w.borderRadius) || ((_x = DefaultEpilotTheme_1.DefaultEpilotTheme.shape) === null || _x === void 0 ? void 0 : _x.borderRadius);
29
- var primaryColor = ((_y = params.palette) === null || _y === void 0 ? void 0 : _y.primary) || ((_z = DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _z === void 0 ? void 0 : _z.primary);
30
- var secondaryColor = ((_0 = params.palette) === null || _0 === void 0 ? void 0 : _0.secondary) || ((_1 = DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _1 === void 0 ? void 0 : _1.secondary);
31
- var successColor = ((_2 = params.palette) === null || _2 === void 0 ? void 0 : _2.success) || ((_3 = DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _3 === void 0 ? void 0 : _3.success);
32
- var infoColor = ((_4 = params.palette) === null || _4 === void 0 ? void 0 : _4.info) || ((_5 = DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _5 === void 0 ? void 0 : _5.info);
33
- var defaultBackground = ((_7 = (_6 = params.palette) === null || _6 === void 0 ? void 0 : _6.background) === null || _7 === void 0 ? void 0 : _7["default"]) || ((_9 = (_8 = DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _8 === void 0 ? void 0 : _8.background) === null || _9 === void 0 ? void 0 : _9["default"]);
34
- var warningColor = ((_10 = params.palette) === null || _10 === void 0 ? void 0 : _10.warning) || ((_11 = DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _11 === void 0 ? void 0 : _11.warning);
35
- var primaryDark = (primaryColor === null || primaryColor === void 0 ? void 0 : primaryColor.dark) ? primaryColor === null || primaryColor === void 0 ? void 0 : primaryColor.dark : (primaryColor === null || primaryColor === void 0 ? void 0 : primaryColor.main) ? styles_1.darken(primaryColor === null || primaryColor === void 0 ? void 0 : primaryColor.main, 0.1)
36
- : null;
37
- var secondaryDark = (secondaryColor === null || secondaryColor === void 0 ? void 0 : secondaryColor.dark) ? secondaryColor === null || secondaryColor === void 0 ? void 0 : secondaryColor.dark : (secondaryColor === null || secondaryColor === void 0 ? void 0 : secondaryColor.main) ? styles_1.darken(secondaryColor === null || secondaryColor === void 0 ? void 0 : secondaryColor.main, 0.1)
38
- : null;
39
- var primaryLight = (primaryColor === null || primaryColor === void 0 ? void 0 : primaryColor.light) ? primaryColor === null || primaryColor === void 0 ? void 0 : primaryColor.light : (primaryColor === null || primaryColor === void 0 ? void 0 : primaryColor.main) ? styles_1.lighten(primaryColor === null || primaryColor === void 0 ? void 0 : primaryColor.main, 0.1)
40
- : null;
41
- var secondaryLight = (secondaryColor === null || secondaryColor === void 0 ? void 0 : secondaryColor.light) ? secondaryColor === null || secondaryColor === void 0 ? void 0 : secondaryColor.light : (secondaryColor === null || secondaryColor === void 0 ? void 0 : secondaryColor.main) ? styles_1.lighten(secondaryColor === null || secondaryColor === void 0 ? void 0 : secondaryColor.main, 0.1)
42
- : null;
43
- var errorColor = ((_12 = params.palette) === null || _12 === void 0 ? void 0 : _12.error) || ((_13 = DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _13 === void 0 ? void 0 : _13.error);
44
- var accent1Color = ((_14 = params.palette) === null || _14 === void 0 ? void 0 : _14.accent1) || ((_15 = DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _15 === void 0 ? void 0 : _15.accent1);
45
- var accent2Color = ((_16 = params.palette) === null || _16 === void 0 ? void 0 : _16.accent2) || ((_17 = DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _17 === void 0 ? void 0 : _17.accent2);
46
- var tertiaryColor = ((_18 = params.palette) === null || _18 === void 0 ? void 0 : _18.tertiary) || ((_19 = DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _19 === void 0 ? void 0 : _19.tertiary);
47
- var defaultColor = ((_20 = params.palette) === null || _20 === void 0 ? void 0 : _20["default"]) || ((_21 = DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _21 === void 0 ? void 0 : _21["default"]);
48
- var grey20 = ((_23 = (_22 = params.palette) === null || _22 === void 0 ? void 0 : _22.grey) === null || _23 === void 0 ? void 0 : _23[20]) || ((_25 = (_24 = DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _24 === void 0 ? void 0 : _24.grey) === null || _25 === void 0 ? void 0 : _25[20]);
49
- var grey30 = ((_27 = (_26 = params.palette) === null || _26 === void 0 ? void 0 : _26.grey) === null || _27 === void 0 ? void 0 : _27[30]) || ((_29 = (_28 = DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _28 === void 0 ? void 0 : _28.grey) === null || _29 === void 0 ? void 0 : _29[30]);
50
- var grey40 = ((_31 = (_30 = params.palette) === null || _30 === void 0 ? void 0 : _30.grey) === null || _31 === void 0 ? void 0 : _31[40]) || ((_33 = (_32 = DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _32 === void 0 ? void 0 : _32.grey) === null || _33 === void 0 ? void 0 : _33[40]);
51
- var grey50 = ((_35 = (_34 = params.palette) === null || _34 === void 0 ? void 0 : _34.grey) === null || _35 === void 0 ? void 0 : _35[50]) || ((_37 = (_36 = DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _36 === void 0 ? void 0 : _36.grey) === null || _37 === void 0 ? void 0 : _37[50]);
52
- var grey60 = ((_39 = (_38 = params.palette) === null || _38 === void 0 ? void 0 : _38.grey) === null || _39 === void 0 ? void 0 : _39[60]) || ((_41 = (_40 = DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _40 === void 0 ? void 0 : _40.grey) === null || _41 === void 0 ? void 0 : _41[60]);
53
- var grey70 = ((_43 = (_42 = params.palette) === null || _42 === void 0 ? void 0 : _42.grey) === null || _43 === void 0 ? void 0 : _43[70]) || ((_45 = (_44 = DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _44 === void 0 ? void 0 : _44.grey) === null || _45 === void 0 ? void 0 : _45[70]);
54
- var grey100 = ((_47 = (_46 = params.palette) === null || _46 === void 0 ? void 0 : _46.grey) === null || _47 === void 0 ? void 0 : _47[100]) || ((_49 = (_48 = DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _48 === void 0 ? void 0 : _48.grey) === null || _49 === void 0 ? void 0 : _49[100]);
55
- var grey200 = ((_51 = (_50 = params.palette) === null || _50 === void 0 ? void 0 : _50.grey) === null || _51 === void 0 ? void 0 : _51[200]) || ((_53 = (_52 = DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _52 === void 0 ? void 0 : _52.grey) === null || _53 === void 0 ? void 0 : _53[200]);
56
- var grey500 = ((_55 = (_54 = params.palette) === null || _54 === void 0 ? void 0 : _54.grey) === null || _55 === void 0 ? void 0 : _55[500]) || ((_57 = (_56 = DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _56 === void 0 ? void 0 : _56.grey) === null || _57 === void 0 ? void 0 : _57[500]);
57
- var textPalette = ((_58 = params.palette) === null || _58 === void 0 ? void 0 : _58.text) || ((_59 = DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _59 === void 0 ? void 0 : _59.text);
58
- var actionHoverColor = ((_61 = (_60 = params.palette) === null || _60 === void 0 ? void 0 : _60.action) === null || _61 === void 0 ? void 0 : _61.hover) || ((_63 = (_62 = DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _62 === void 0 ? void 0 : _62.action) === null || _63 === void 0 ? void 0 : _63.hover);
59
- var dividerColor = ((_64 = params.palette) === null || _64 === void 0 ? void 0 : _64.divider) || ((_65 = DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _65 === void 0 ? void 0 : _65.divider);
60
- var extFonts = ((_66 = params.typography) === null || _66 === void 0 ? void 0 : _66.fontSource) ? fonts_1["default"].concat((_67 = params.typography) === null || _67 === void 0 ? void 0 : _67.fontSource)
61
- : fonts_1["default"];
62
- var elevation1 = ((_68 = params.shadows) === null || _68 === void 0 ? void 0 : _68[1]) || ((_69 = DefaultEpilotTheme_1.DefaultEpilotTheme.shadows) === null || _69 === void 0 ? void 0 : _69[1]);
63
- var elevation2 = ((_70 = params.shadows) === null || _70 === void 0 ? void 0 : _70[2]) || ((_71 = DefaultEpilotTheme_1.DefaultEpilotTheme.shadows) === null || _71 === void 0 ? void 0 : _71[2]);
64
- var elevation3 = ((_72 = params.shadows) === null || _72 === void 0 ? void 0 : _72[3]) || ((_73 = DefaultEpilotTheme_1.DefaultEpilotTheme.shadows) === null || _73 === void 0 ? void 0 : _73[3]);
65
- var elevation8 = ((_74 = params.shadows) === null || _74 === void 0 ? void 0 : _74[8]) || ((_75 = DefaultEpilotTheme_1.DefaultEpilotTheme.shadows) === null || _75 === void 0 ? void 0 : _75[8]);
66
- var overrides = fp_1["default"].merge({
67
- MuiTypography: {
68
- root: {
69
- textTransform: 'none'
70
- }
71
- },
72
- MuiInputBase: {
73
- input: {
74
- height: 'auto',
75
- '&::placeholder': {
76
- color: grey200,
77
- opacity: 1
78
- },
79
- '&$disabled': {
80
- '&::placeholder': {
81
- color: grey100
82
- }
83
- }
84
- }
85
- },
86
- MuiInputAdornment: {
87
- root: (_a = {},
88
- _a["& ." + prefix + "MuiIconButton-root"] = {
89
- padding: 0
90
- },
91
- _a)
92
- },
93
- MuiInput: {
94
- underline: {
95
- '&:before': {
96
- borderBottom: "1px solid " + grey60
97
- },
98
- '&:after': {
99
- borderBottom: "1px solid " + (primaryColor === null || primaryColor === void 0 ? void 0 : primaryColor[400])
100
- },
101
- '&:hover:not(.Mui-disabled)': {
102
- '&:before': {
103
- borderBottom: "1px solid " + grey60
104
- }
105
- },
106
- '&$disabled': {
107
- '&:before': {
108
- borderBottomStyle: 'solid'
109
- }
110
- }
111
- }
112
- },
113
- MuiSelect: {
114
- root: {
115
- textAlign: 'start'
116
- },
117
- icon: {
118
- color: secondaryColor === null || secondaryColor === void 0 ? void 0 : secondaryColor.main
119
- }
120
- },
121
- MuiFormHelperText: {
122
- contained: {
123
- marginLeft: '1px'
124
- }
125
- },
126
- MuiInputLabel: {
127
- root: {
128
- color: grey500 + " !important",
129
- '&$disabled': {
130
- color: grey100 + " !important"
131
- }
132
- },
133
- outlined: {
134
- display: 'none'
135
- }
136
- },
137
- MuiPaper: {
138
- elevation1: {
139
- boxShadow: elevation1
140
- },
141
- elevation2: {
142
- boxShadow: elevation2
143
- },
144
- elevation3: {
145
- boxShadow: elevation3
146
- },
147
- // Elevation8 affects Popover default boxShadow
148
- elevation8: {
149
- boxShadow: elevation8
150
- }
151
- },
152
- MuiChip: {
153
- root: {
154
- borderRadius: 2,
155
- fontSize: 12,
156
- fontWeight: 600,
157
- height: 24,
158
- backgroundColor: grey50,
159
- lineHeight: 'normal'
160
- },
161
- outlined: (_b = {
162
- backgroundColor: 'transparent',
163
- '&:hover': {
164
- border: "1px solid " + (primaryColor === null || primaryColor === void 0 ? void 0 : primaryColor.main)
165
- }
166
- },
167
- _b["& ." + prefix + "MuiIcon-root, ." + prefix + "MuiSvgIcon-root"] = {
168
- color: secondaryColor === null || secondaryColor === void 0 ? void 0 : secondaryColor.main
169
- },
170
- _b),
171
- label: {
172
- color: textPalette === null || textPalette === void 0 ? void 0 : textPalette.primary
173
- },
174
- icon: {
175
- fontSize: '1.2rem !important'
176
- },
177
- deleteIcon: {
178
- fontSize: '1.2rem !important'
179
- }
180
- },
181
- MuiAccordionDetails: {
182
- root: {
183
- backgroundColor: grey20,
184
- borderTop: "1px solid " + grey50
185
- }
186
- },
187
- MuiAccordionSummary: {
188
- root: {
189
- color: textPalette === null || textPalette === void 0 ? void 0 : textPalette.primary,
190
- fontSize: 14,
191
- fontWeight: 600,
192
- minHeight: 48,
193
- '&$expanded': {
194
- minHeight: 48
195
- }
196
- },
197
- content: {
198
- '&$expanded': {
199
- margin: 'auto'
200
- }
201
- },
202
- expanded: {}
203
- },
204
- MuiAccordion: {
205
- root: {
206
- marginTop: '-1px !important',
207
- '&$expanded': {
208
- margin: 'auto',
209
- '&:before': {
210
- top: -1,
211
- left: 0,
212
- right: 0,
213
- height: 1,
214
- content: '',
215
- opacity: 1,
216
- position: 'absolute',
217
- transition: 'opacity 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,background-color 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms',
218
- backgroundColor: grey50
219
- }
220
- },
221
- '&.Mui-disabled': {
222
- backgroundColor: grey40
223
- }
224
- }
225
- },
226
- MuiRadio: {
227
- colorPrimary: {
228
- '&:hover': {
229
- color: primaryColor === null || primaryColor === void 0 ? void 0 : primaryColor.main,
230
- backgroundColor: 'transparent'
231
- }
232
- },
233
- colorSecondary: {
234
- '&:hover': {
235
- color: accent1Color === null || accent1Color === void 0 ? void 0 : accent1Color.main,
236
- backgroundColor: 'transparent'
237
- }
238
- }
239
- },
240
- MuiCheckbox: {
241
- colorPrimary: {
242
- '&:hover': {
243
- color: primaryColor === null || primaryColor === void 0 ? void 0 : primaryColor.main,
244
- backgroundColor: 'transparent'
245
- }
246
- },
247
- colorSecondary: {
248
- '&:hover': {
249
- color: accent1Color === null || accent1Color === void 0 ? void 0 : accent1Color.main,
250
- backgroundColor: 'transparent'
251
- }
252
- }
253
- },
254
- MuiTabPanel: {
255
- root: (_c = {
256
- padding: 0
257
- },
258
- _c["& ." + prefix + "MuiPaper-root"] = {
259
- borderRadius: "0px " + borderRadius + "px " + borderRadius + "px " + borderRadius + "px"
260
- },
261
- _c)
262
- },
263
- MuiTabs: {
264
- root: {
265
- minHeight: 40,
266
- overflow: 'visible'
267
- }
268
- },
269
- MuiTableCell: {
270
- root: {
271
- borderBottom: "1px solid " + grey60,
272
- whiteSpace: 'pre',
273
- height: 48
274
- },
275
- head: {
276
- fontWeight: 600,
277
- height: 56,
278
- border: 0
279
- },
280
- stickyHeader: {
281
- fontWeight: 600,
282
- backgroundColor: grey30,
283
- left: 'unset'
284
- }
285
- },
286
- MuiTableSortLabel: {
287
- root: {
288
- '&:hover': {
289
- color: 'inherit'
290
- }
291
- }
292
- },
293
- MuiTableRow: {
294
- root: {
295
- '&$selected': {
296
- backgroundColor: grey20 + " !important"
297
- }
298
- },
299
- hover: {
300
- '&:hover': {
301
- backgroundColor: grey20 + " !important"
302
- }
303
- }
304
- },
305
- MuiTableHead: {
306
- root: {
307
- backgroundColor: grey30
308
- }
309
- },
310
- MuiButton: {
311
- root: {
312
- fontWeight: 600,
313
- '&$disabled': {
314
- color: grey100
315
- },
316
- height: 32,
317
- fontSize: 14
318
- },
319
- sizeSmall: {
320
- height: 24,
321
- fontSize: 12
322
- },
323
- sizeLarge: {
324
- height: 48,
325
- fontSize: 16
326
- },
327
- contained: {
328
- '&$disabled': {
329
- color: grey100,
330
- backgroundColor: grey40
331
- }
332
- },
333
- text: {
334
- color: textPalette === null || textPalette === void 0 ? void 0 : textPalette.primary,
335
- '&:hover': {
336
- backgroundColor: 'transparent'
337
- }
338
- },
339
- textPrimary: (_d = {
340
- '&:hover': {
341
- backgroundColor: 'transparent',
342
- color: primaryColor === null || primaryColor === void 0 ? void 0 : primaryColor[600]
343
- },
344
- '&:active': {
345
- color: primaryColor === null || primaryColor === void 0 ? void 0 : primaryColor[700]
346
- }
347
- },
348
- _d["&." + classPrefix + "Mui-focusVisible"] = {
349
- border: "1px solid white",
350
- boxShadow: "0 0 0 2px " + ((primaryColor === null || primaryColor === void 0 ? void 0 : primaryColor[400]) || primaryLight) + " !important"
351
- },
352
- _d["&." + classPrefix + "Mui-focusVisible." + classPrefix + "MuiButton-textSizeSmall"] = {
353
- boxShadow: "0 0 0 1px " + ((primaryColor === null || primaryColor === void 0 ? void 0 : primaryColor[400]) || primaryLight) + " !important"
354
- },
355
- _d),
356
- textSecondary: {
357
- '&:hover': {
358
- backgroundColor: 'transparent'
359
- }
360
- },
361
- outlined: (_e = {
362
- color: textPalette === null || textPalette === void 0 ? void 0 : textPalette.primary,
363
- backgroundColor: defaultBackground,
364
- borderColor: grey70,
365
- '&:hover': {
366
- backgroundColor: defaultBackground
367
- },
368
- '&:active': {
369
- borderColor: primaryColor === null || primaryColor === void 0 ? void 0 : primaryColor[400],
370
- boxShadow: "0px 0px 0px 1px " + (primaryColor === null || primaryColor === void 0 ? void 0 : primaryColor[400]) + " !important"
371
- }
372
- },
373
- _e["& ." + prefix + "MuiButton-startIcon"] = {
374
- color: accent1Color === null || accent1Color === void 0 ? void 0 : accent1Color.main
375
- },
376
- _e["& ." + prefix + "MuiButton-endIcon"] = {
377
- color: accent1Color === null || accent1Color === void 0 ? void 0 : accent1Color.main
378
- },
379
- _e["&." + classPrefix + "Mui-focusVisible"] = {
380
- border: "1px solid white",
381
- boxShadow: "0 0 0 2px " + ((primaryColor === null || primaryColor === void 0 ? void 0 : primaryColor[400]) || primaryLight) + " !important"
382
- },
383
- _e["&." + classPrefix + "Mui-focusVisible." + classPrefix + "MuiButton-outlinedSizeSmall"] = {
384
- boxShadow: "0 0 0 1px " + ((primaryColor === null || primaryColor === void 0 ? void 0 : primaryColor[400]) || primaryLight) + " !important"
385
- },
386
- _e),
387
- outlinedPrimary: (_f = {
388
- color: textPalette === null || textPalette === void 0 ? void 0 : textPalette.primary,
389
- '&:hover': {
390
- border: "1px solid " + primaryDark,
391
- backgroundColor: defaultBackground
392
- },
393
- '&:active': {
394
- borderColor: primaryColor === null || primaryColor === void 0 ? void 0 : primaryColor[400],
395
- boxShadow: "0px 0px 0px 1px " + (primaryColor === null || primaryColor === void 0 ? void 0 : primaryColor[400]) + " !important"
396
- }
397
- },
398
- _f["& ." + prefix + "MuiButton-startIcon"] = {
399
- color: textPalette === null || textPalette === void 0 ? void 0 : textPalette.primary
400
- },
401
- _f["& ." + prefix + "MuiButton-endIcon"] = {
402
- color: textPalette === null || textPalette === void 0 ? void 0 : textPalette.primary
403
- },
404
- _f),
405
- outlinedSecondary: {
406
- color: textPalette === null || textPalette === void 0 ? void 0 : textPalette.primary,
407
- '&:hover': {
408
- border: "1px solid " + secondaryDark,
409
- backgroundColor: defaultBackground
410
- }
411
- },
412
- containedPrimary: (_g = {},
413
- _g["&." + classPrefix + "Mui-focusVisible"] = {
414
- backgroundColor: (primaryColor === null || primaryColor === void 0 ? void 0 : primaryColor[400]) + " !important",
415
- border: "1px solid white",
416
- boxShadow: "0 0 0 2px " + ((primaryColor === null || primaryColor === void 0 ? void 0 : primaryColor[400]) || primaryLight) + " !important"
417
- },
418
- _g["&." + classPrefix + "Mui-focusVisible." + classPrefix + "MuiButton-containedSizeSmall"] = {
419
- boxShadow: "0 0 0 1px " + ((primaryColor === null || primaryColor === void 0 ? void 0 : primaryColor[400]) || primaryLight) + " !important"
420
- },
421
- _g),
422
- containedSecondary: (_h = {},
423
- _h["&." + classPrefix + "Mui-focusVisible"] = {
424
- backgroundColor: (secondaryColor === null || secondaryColor === void 0 ? void 0 : secondaryColor.main) + " !important",
425
- border: "1px solid white",
426
- boxShadow: "0 0 0 2px " + ((secondaryColor === null || secondaryColor === void 0 ? void 0 : secondaryColor[400]) || secondaryLight) + " !important"
427
- },
428
- _h["&." + classPrefix + "Mui-focusVisible." + classPrefix + "MuiButton-containedSizeSmall"] = {
429
- boxShadow: "0 0 0 1px " + ((secondaryColor === null || secondaryColor === void 0 ? void 0 : secondaryColor[400]) || secondaryLight) + " !important"
430
- },
431
- _h)
432
- },
433
- MuiButtonGroup: {
434
- groupedContainedPrimary: {
435
- '&:not(:last-child)': {
436
- borderColor: defaultBackground
437
- }
438
- },
439
- groupedOutlined: {
440
- '&:active': {
441
- zIndex: 1,
442
- borderColor: (primaryColor === null || primaryColor === void 0 ? void 0 : primaryColor[400]) + " !important"
443
- }
444
- },
445
- groupedTextPrimary: {
446
- border: "1px solid " + ((_76 = DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _76 === void 0 ? void 0 : _76.grey[70]) + " !important",
447
- '&:not(:last-child)': {
448
- marginRight: -1
449
- }
450
- }
451
- },
452
- MuiDialogContentText: {
453
- root: {
454
- color: textPalette === null || textPalette === void 0 ? void 0 : textPalette.primary
455
- }
456
- },
457
- MuiDialogTitle: {
458
- root: (_j = {
459
- padding: 24,
460
- paddingBottom: 4
461
- },
462
- _j["& ." + prefix + "MuiTypography-root"] = {
463
- fontWeight: 600
464
- },
465
- _j)
466
- },
467
- MuiDialogActions: {
468
- root: {
469
- padding: 24,
470
- paddingTop: 16
471
- }
472
- },
473
- MuiDialog: {
474
- paper: {
475
- boxShadow: '0px 3px 5px rgba(9, 30, 66, 0.2), 0px 0px 1px rgba(9, 30, 66, 0.31)'
476
- }
477
- },
478
- MuiBackdrop: {
479
- root: {
480
- backgroundColor: 'rgba(23, 43, 77 ,0.3)'
481
- }
482
- },
483
- MuiToggleButton: {
484
- root: {
485
- fontWeight: 600,
486
- backgroundColor: defaultBackground,
487
- color: textPalette === null || textPalette === void 0 ? void 0 : textPalette.primary,
488
- borderColor: grey70 + " !important",
489
- '&:hover': {
490
- backgroundColor: defaultBackground
491
- },
492
- '&$selected': (_k = {
493
- backgroundColor: (primaryColor === null || primaryColor === void 0 ? void 0 : primaryColor.main) + " !important",
494
- borderColor: (primaryColor === null || primaryColor === void 0 ? void 0 : primaryColor.main) + " !important",
495
- borderRight: "1px solid " + (primaryColor === null || primaryColor === void 0 ? void 0 : primaryColor.main) + " !important",
496
- '&:hover': {
497
- backgroundColor: primaryColor === null || primaryColor === void 0 ? void 0 : primaryColor.main
498
- }
499
- },
500
- _k["& ." + prefix + "MuiToggleButton-label"] = {
501
- color: defaultBackground
502
- },
503
- _k),
504
- '&$disabled': (_l = {
505
- backgroundColor: grey40
506
- },
507
- _l["& ." + prefix + "MuiToggleButton-label"] = {
508
- color: grey100
509
- },
510
- _l),
511
- height: 32,
512
- fontSize: 14
513
- },
514
- sizeSmall: {
515
- height: 24,
516
- fontSize: 12
517
- },
518
- sizeLarge: {
519
- height: 40,
520
- fontSize: 16
521
- }
522
- },
523
- MuiFormControlLabel: {
524
- root: {
525
- marginLeft: 0,
526
- marginRight: 0
527
- }
528
- },
529
- MuiSwitch: {
530
- root: {
531
- width: 48,
532
- height: 24,
533
- padding: 0,
534
- display: 'flex',
535
- margin: 8
536
- },
537
- switchBase: {
538
- padding: 2,
539
- color: (_77 = DefaultEpilotTheme_1.DefaultEpilotTheme === null || DefaultEpilotTheme_1.DefaultEpilotTheme === void 0 ? void 0 : DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _77 === void 0 ? void 0 : _77.background["default"],
540
- '&:hover': {
541
- backgroundColor: 'inherit'
542
- },
543
- '&$checked': {
544
- transform: 'translateX(24px)',
545
- color: ((_78 = DefaultEpilotTheme_1.DefaultEpilotTheme === null || DefaultEpilotTheme_1.DefaultEpilotTheme === void 0 ? void 0 : DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _78 === void 0 ? void 0 : _78.background["default"]) + " !important",
546
- '& + $track': {
547
- opacity: 1,
548
- borderColor: (_79 = DefaultEpilotTheme_1.DefaultEpilotTheme === null || DefaultEpilotTheme_1.DefaultEpilotTheme === void 0 ? void 0 : DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _79 === void 0 ? void 0 : _79.action.disabled,
549
- backgroundColor: (_80 = DefaultEpilotTheme_1.DefaultEpilotTheme === null || DefaultEpilotTheme_1.DefaultEpilotTheme === void 0 ? void 0 : DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _80 === void 0 ? void 0 : _80.action.disabled
550
- }
551
- }
552
- },
553
- colorPrimary: {
554
- '&$disabled': {
555
- color: ((_81 = DefaultEpilotTheme_1.DefaultEpilotTheme === null || DefaultEpilotTheme_1.DefaultEpilotTheme === void 0 ? void 0 : DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _81 === void 0 ? void 0 : _81.background["default"]) + " !important",
556
- '& + $track': {
557
- opacity: 0.8,
558
- borderColor: (_82 = DefaultEpilotTheme_1.DefaultEpilotTheme === null || DefaultEpilotTheme_1.DefaultEpilotTheme === void 0 ? void 0 : DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _82 === void 0 ? void 0 : _82.action.disabled,
559
- backgroundColor: (_83 = DefaultEpilotTheme_1.DefaultEpilotTheme === null || DefaultEpilotTheme_1.DefaultEpilotTheme === void 0 ? void 0 : DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _83 === void 0 ? void 0 : _83.action.disabled
560
- },
561
- '&$checked': {
562
- '& + $track': {
563
- opacity: 0.5,
564
- borderColor: (_84 = DefaultEpilotTheme_1.DefaultEpilotTheme === null || DefaultEpilotTheme_1.DefaultEpilotTheme === void 0 ? void 0 : DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _84 === void 0 ? void 0 : _84.primary.main,
565
- backgroundColor: (_85 = DefaultEpilotTheme_1.DefaultEpilotTheme === null || DefaultEpilotTheme_1.DefaultEpilotTheme === void 0 ? void 0 : DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _85 === void 0 ? void 0 : _85.primary.main
566
- }
567
- }
568
- },
569
- '&$checked': {
570
- '& + $track': {
571
- borderColor: (_86 = DefaultEpilotTheme_1.DefaultEpilotTheme === null || DefaultEpilotTheme_1.DefaultEpilotTheme === void 0 ? void 0 : DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _86 === void 0 ? void 0 : _86.primary.main
572
- }
573
- }
574
- },
575
- colorSecondary: {
576
- '&$disabled': {
577
- color: ((_87 = DefaultEpilotTheme_1.DefaultEpilotTheme === null || DefaultEpilotTheme_1.DefaultEpilotTheme === void 0 ? void 0 : DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _87 === void 0 ? void 0 : _87.background["default"]) + " !important",
578
- '& + $track': {
579
- opacity: 0.8,
580
- borderColor: (_88 = DefaultEpilotTheme_1.DefaultEpilotTheme === null || DefaultEpilotTheme_1.DefaultEpilotTheme === void 0 ? void 0 : DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _88 === void 0 ? void 0 : _88.action.disabled,
581
- backgroundColor: (_89 = DefaultEpilotTheme_1.DefaultEpilotTheme === null || DefaultEpilotTheme_1.DefaultEpilotTheme === void 0 ? void 0 : DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _89 === void 0 ? void 0 : _89.action.disabled
582
- },
583
- '&$checked': {
584
- '& + $track': {
585
- opacity: 0.5,
586
- borderColor: (_90 = DefaultEpilotTheme_1.DefaultEpilotTheme === null || DefaultEpilotTheme_1.DefaultEpilotTheme === void 0 ? void 0 : DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _90 === void 0 ? void 0 : _90.secondary.main,
587
- backgroundColor: (_91 = DefaultEpilotTheme_1.DefaultEpilotTheme === null || DefaultEpilotTheme_1.DefaultEpilotTheme === void 0 ? void 0 : DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _91 === void 0 ? void 0 : _91.secondary.main
588
- }
589
- }
590
- },
591
- '&$checked': {
592
- '& + $track': {
593
- borderColor: (_92 = DefaultEpilotTheme_1.DefaultEpilotTheme === null || DefaultEpilotTheme_1.DefaultEpilotTheme === void 0 ? void 0 : DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _92 === void 0 ? void 0 : _92.secondary.main
594
- }
595
- }
596
- },
597
- thumb: {
598
- width: 20,
599
- height: 20,
600
- boxShadow: 'none'
601
- },
602
- track: {
603
- border: "1px solid " + ((_93 = DefaultEpilotTheme_1.DefaultEpilotTheme === null || DefaultEpilotTheme_1.DefaultEpilotTheme === void 0 ? void 0 : DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _93 === void 0 ? void 0 : _93.action.disabled),
604
- borderRadius: 12,
605
- opacity: 1,
606
- backgroundColor: (_94 = DefaultEpilotTheme_1.DefaultEpilotTheme === null || DefaultEpilotTheme_1.DefaultEpilotTheme === void 0 ? void 0 : DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _94 === void 0 ? void 0 : _94.action.disabled
607
- },
608
- sizeSmall: (_m = {
609
- width: 28,
610
- height: 16,
611
- padding: 0
612
- },
613
- _m["& ." + prefix + "MuiSwitch-switchBase"] = (_o = {
614
- padding: '2px !important',
615
- '&$checked': {
616
- transform: 'translateX(12px) !important'
617
- }
618
- },
619
- _o["& ." + prefix + "MuiSwitch-thumb"] = {
620
- width: 12,
621
- height: 12
622
- },
623
- _o),
624
- _m)
625
- },
626
- MuiTooltip: {
627
- tooltip: {
628
- backgroundColor: primaryColor === null || primaryColor === void 0 ? void 0 : primaryColor[800],
629
- padding: 8,
630
- fontSize: 14,
631
- lineHeight: '18px'
632
- },
633
- arrow: {
634
- color: primaryColor === null || primaryColor === void 0 ? void 0 : primaryColor[800]
635
- }
636
- },
637
- MuiFilledInput: {
638
- root: {
639
- border: "1px solid " + grey70,
640
- backgroundColor: grey20,
641
- borderRadius: borderRadius,
642
- '&:hover': {
643
- backgroundColor: grey20
644
- },
645
- '&$focused': {
646
- backgroundColor: grey20,
647
- border: "1px solid " + (primaryColor === null || primaryColor === void 0 ? void 0 : primaryColor[400])
648
- },
649
- '&.Mui-error': {
650
- borderColor: errorColor === null || errorColor === void 0 ? void 0 : errorColor.main
651
- },
652
- '&$disabled': {
653
- backgroundColor: grey40
654
- }
655
- }
656
- },
657
- MuiOutlinedInput: {
658
- root: (_p = {
659
- backgroundColor: defaultBackground,
660
- '& input': {
661
- paddingTop: 10.5,
662
- paddingBottom: 10.5
663
- }
664
- },
665
- _p["& ." + prefix + "MuiOutlinedInput-notchedOutline"] = {
666
- borderColor: grey70
667
- },
668
- _p['&:hover'] = (_q = {
669
- backgroundColor: grey20
670
- },
671
- _q["& ." + prefix + "MuiOutlinedInput-notchedOutline"] = {
672
- borderColor: grey70
673
- },
674
- _q),
675
- _p['&$focused'] = (_r = {
676
- backgroundColor: '#ffffff'
677
- },
678
- _r["& ." + prefix + "MuiOutlinedInput-notchedOutline"] = {
679
- borderColor: (primaryColor === null || primaryColor === void 0 ? void 0 : primaryColor[400]) + " !important",
680
- borderWidth: 1
681
- },
682
- _r),
683
- _p['&$disabled'] = (_s = {
684
- backgroundColor: grey40
685
- },
686
- _s["& ." + prefix + "MuiOutlinedInput-notchedOutline"] = {
687
- borderColor: grey70
688
- },
689
- _s),
690
- _p),
691
- inputMarginDense: {
692
- '&$input': {
693
- paddingTop: 6.5,
694
- paddingBottom: 6.5
695
- }
696
- },
697
- notchedOutline: {
698
- '& legend': {
699
- maxWidth: 0
700
- }
701
- }
702
- },
703
- MuiAutocomplete: {
704
- inputRoot: {
705
- minHeight: 32
706
- },
707
- option: {
708
- '&:hover': {
709
- backgroundColor: actionHoverColor
710
- },
711
- "&[aria-selected='true']": {
712
- backgroundColor: actionHoverColor,
713
- color: (primaryColor === null || primaryColor === void 0 ? void 0 : primaryColor.main) + " !important"
714
- }
715
- },
716
- paper: {
717
- boxShadow: elevation8
718
- }
719
- },
720
- MuiCssBaseline: tslib_1.__assign({ '@global': {
721
- '@font-face': extFonts,
722
- '.Mui-selected': {
723
- color: primaryColor === null || primaryColor === void 0 ? void 0 : primaryColor.main,
724
- backgroundColor: actionHoverColor + " !important"
725
- },
726
- '.Mui-focusVisible': {
727
- backgroundColor: defaultBackground + " !important"
728
- },
729
- input: {
730
- '&::-webkit-inner-spin-button': {
731
- '-webkit-appearance': 'none',
732
- margin: 0
733
- }
734
- }
735
- } }, (_95 = params.muiOverrides) === null || _95 === void 0 ? void 0 : _95.MuiCssBaseline)
736
- }, params.muiOverrides);
737
- return {
738
- typography: {
739
- fontWeightRegular: ((_96 = params.typography) === null || _96 === void 0 ? void 0 : _96.fontWeightRegular) || ((_97 = DefaultEpilotTheme_1.DefaultEpilotTheme.typography) === null || _97 === void 0 ? void 0 : _97.fontWeightRegular),
740
- fontWeightBold: ((_98 = params.typography) === null || _98 === void 0 ? void 0 : _98.fontWeightBold) || ((_99 = DefaultEpilotTheme_1.DefaultEpilotTheme.typography) === null || _99 === void 0 ? void 0 : _99.fontWeightBold),
741
- fontSize: ((_100 = params.typography) === null || _100 === void 0 ? void 0 : _100.fontSize) || ((_101 = DefaultEpilotTheme_1.DefaultEpilotTheme.typography) === null || _101 === void 0 ? void 0 : _101.fontSize),
742
- body1: ((_102 = params.typography) === null || _102 === void 0 ? void 0 : _102.body1) || ((_103 = DefaultEpilotTheme_1.DefaultEpilotTheme.typography) === null || _103 === void 0 ? void 0 : _103.body1),
743
- body2: ((_104 = params.typography) === null || _104 === void 0 ? void 0 : _104.body2) || ((_105 = DefaultEpilotTheme_1.DefaultEpilotTheme.typography) === null || _105 === void 0 ? void 0 : _105.body2),
744
- caption: ((_106 = params.typography) === null || _106 === void 0 ? void 0 : _106.caption) || ((_107 = DefaultEpilotTheme_1.DefaultEpilotTheme.typography) === null || _107 === void 0 ? void 0 : _107.caption),
745
- subtitle1: ((_108 = params.typography) === null || _108 === void 0 ? void 0 : _108.subtitle1) || ((_109 = DefaultEpilotTheme_1.DefaultEpilotTheme.typography) === null || _109 === void 0 ? void 0 : _109.subtitle1),
746
- subtitle2: ((_110 = params.typography) === null || _110 === void 0 ? void 0 : _110.subtitle2) || ((_111 = DefaultEpilotTheme_1.DefaultEpilotTheme.typography) === null || _111 === void 0 ? void 0 : _111.subtitle2),
747
- fontFamily: (((_112 = params.typography) === null || _112 === void 0 ? void 0 : _112.fontFamily) || ((_113 = DefaultEpilotTheme_1.DefaultEpilotTheme.typography) === null || _113 === void 0 ? void 0 : _113.fontFamily)) + " !important",
748
- button: ((_114 = params.typography) === null || _114 === void 0 ? void 0 : _114.button) || ((_115 = DefaultEpilotTheme_1.DefaultEpilotTheme.typography) === null || _115 === void 0 ? void 0 : _115.button),
749
- h1: ((_116 = params.typography) === null || _116 === void 0 ? void 0 : _116.h1) || ((_117 = DefaultEpilotTheme_1.DefaultEpilotTheme.typography) === null || _117 === void 0 ? void 0 : _117.h1),
750
- h2: ((_118 = params.typography) === null || _118 === void 0 ? void 0 : _118.h2) || ((_119 = DefaultEpilotTheme_1.DefaultEpilotTheme.typography) === null || _119 === void 0 ? void 0 : _119.h2),
751
- h3: ((_120 = params.typography) === null || _120 === void 0 ? void 0 : _120.h3) || ((_121 = DefaultEpilotTheme_1.DefaultEpilotTheme.typography) === null || _121 === void 0 ? void 0 : _121.h3),
752
- h4: ((_122 = params.typography) === null || _122 === void 0 ? void 0 : _122.h4) || ((_123 = DefaultEpilotTheme_1.DefaultEpilotTheme.typography) === null || _123 === void 0 ? void 0 : _123.h4),
753
- h5: ((_124 = params.typography) === null || _124 === void 0 ? void 0 : _124.h5) || ((_125 = DefaultEpilotTheme_1.DefaultEpilotTheme.typography) === null || _125 === void 0 ? void 0 : _125.h5),
754
- h6: ((_126 = params.typography) === null || _126 === void 0 ? void 0 : _126.h6) || ((_127 = DefaultEpilotTheme_1.DefaultEpilotTheme.typography) === null || _127 === void 0 ? void 0 : _127.h6)
755
- },
756
- shadows: DefaultEpilotTheme_1.DefaultEpilotTheme.shadows,
757
- palette: {
758
- primary: tslib_1.__assign(tslib_1.__assign({}, primaryColor), { dark: primaryDark }),
759
- secondary: tslib_1.__assign(tslib_1.__assign({}, secondaryColor), { dark: secondaryDark }),
760
- success: tslib_1.__assign(tslib_1.__assign({}, successColor), { dark: (successColor === null || successColor === void 0 ? void 0 : successColor.dark) ? successColor === null || successColor === void 0 ? void 0 : successColor.dark : (successColor === null || successColor === void 0 ? void 0 : successColor.main) ? styles_1.darken(successColor === null || successColor === void 0 ? void 0 : successColor.main, 0.1)
761
- : null }),
762
- "default": tslib_1.__assign(tslib_1.__assign({}, defaultColor), { dark: (defaultColor === null || defaultColor === void 0 ? void 0 : defaultColor.dark) ? defaultColor === null || defaultColor === void 0 ? void 0 : defaultColor.dark : (defaultColor === null || defaultColor === void 0 ? void 0 : defaultColor.main) ? styles_1.darken(defaultColor === null || defaultColor === void 0 ? void 0 : defaultColor.main, 0.1)
763
- : null }),
764
- info: tslib_1.__assign(tslib_1.__assign({}, infoColor), { dark: (infoColor === null || infoColor === void 0 ? void 0 : infoColor.dark) ? infoColor === null || infoColor === void 0 ? void 0 : infoColor.dark : (infoColor === null || infoColor === void 0 ? void 0 : infoColor.main) ? styles_1.darken(infoColor === null || infoColor === void 0 ? void 0 : infoColor.main, 0.1)
765
- : null }),
766
- warning: tslib_1.__assign(tslib_1.__assign({}, warningColor), { dark: (warningColor === null || warningColor === void 0 ? void 0 : warningColor.dark) ? warningColor === null || warningColor === void 0 ? void 0 : warningColor.dark : (warningColor === null || warningColor === void 0 ? void 0 : warningColor.main) ? styles_1.darken(warningColor === null || warningColor === void 0 ? void 0 : warningColor.main, 0.1)
767
- : null }),
768
- error: tslib_1.__assign(tslib_1.__assign({}, errorColor), { dark: (errorColor === null || errorColor === void 0 ? void 0 : errorColor.dark) ? errorColor === null || errorColor === void 0 ? void 0 : errorColor.dark : (errorColor === null || errorColor === void 0 ? void 0 : errorColor.main) ? styles_1.darken(errorColor === null || errorColor === void 0 ? void 0 : errorColor.main, 0.1)
769
- : null }),
770
- accent1: tslib_1.__assign(tslib_1.__assign({}, accent1Color), { dark: (accent1Color === null || accent1Color === void 0 ? void 0 : accent1Color.dark) ? accent1Color === null || accent1Color === void 0 ? void 0 : accent1Color.dark : (accent1Color === null || accent1Color === void 0 ? void 0 : accent1Color.main) ? styles_1.darken(accent1Color === null || accent1Color === void 0 ? void 0 : accent1Color.main, 0.1)
771
- : null }),
772
- accent2: tslib_1.__assign(tslib_1.__assign({}, accent2Color), { dark: (accent2Color === null || accent2Color === void 0 ? void 0 : accent2Color.dark) ? accent2Color === null || accent2Color === void 0 ? void 0 : accent2Color.dark : (accent2Color === null || accent2Color === void 0 ? void 0 : accent2Color.main) ? styles_1.darken(accent2Color === null || accent2Color === void 0 ? void 0 : accent2Color.main, 0.1)
773
- : null }),
774
- tertiary: tslib_1.__assign(tslib_1.__assign({}, tertiaryColor), { dark: (tertiaryColor === null || tertiaryColor === void 0 ? void 0 : tertiaryColor.dark) ? tertiaryColor === null || tertiaryColor === void 0 ? void 0 : tertiaryColor.dark : (tertiaryColor === null || tertiaryColor === void 0 ? void 0 : tertiaryColor.main) ? styles_1.darken(tertiaryColor === null || tertiaryColor === void 0 ? void 0 : tertiaryColor.main, 0.1)
775
- : null }),
776
- grey: {
777
- '10': ((_129 = (_128 = params.palette) === null || _128 === void 0 ? void 0 : _128.grey) === null || _129 === void 0 ? void 0 : _129[10]) || ((_131 = (_130 = DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _130 === void 0 ? void 0 : _130.grey) === null || _131 === void 0 ? void 0 : _131[10]),
778
- '20': grey20,
779
- '30': grey30,
780
- '40': ((_133 = (_132 = params.palette) === null || _132 === void 0 ? void 0 : _132.grey) === null || _133 === void 0 ? void 0 : _133[40]) || ((_135 = (_134 = DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _134 === void 0 ? void 0 : _134.grey) === null || _135 === void 0 ? void 0 : _135[40]),
781
- '50': grey50,
782
- '70': grey70,
783
- '100': ((_137 = (_136 = params.palette) === null || _136 === void 0 ? void 0 : _136.grey) === null || _137 === void 0 ? void 0 : _137[100]) || ((_139 = (_138 = DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _138 === void 0 ? void 0 : _138.grey) === null || _139 === void 0 ? void 0 : _139[100]),
784
- '200': ((_141 = (_140 = params.palette) === null || _140 === void 0 ? void 0 : _140.grey) === null || _141 === void 0 ? void 0 : _141[200]) || ((_143 = (_142 = DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _142 === void 0 ? void 0 : _142.grey) === null || _143 === void 0 ? void 0 : _143[200]),
785
- '300': ((_145 = (_144 = params.palette) === null || _144 === void 0 ? void 0 : _144.grey) === null || _145 === void 0 ? void 0 : _145[300]) || ((_147 = (_146 = DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _146 === void 0 ? void 0 : _146.grey) === null || _147 === void 0 ? void 0 : _147[300]),
786
- '400': ((_149 = (_148 = params.palette) === null || _148 === void 0 ? void 0 : _148.grey) === null || _149 === void 0 ? void 0 : _149[400]) || ((_151 = (_150 = DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _150 === void 0 ? void 0 : _150.grey) === null || _151 === void 0 ? void 0 : _151[400]),
787
- '500': ((_153 = (_152 = params.palette) === null || _152 === void 0 ? void 0 : _152.grey) === null || _153 === void 0 ? void 0 : _153[500]) || ((_155 = (_154 = DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _154 === void 0 ? void 0 : _154.grey) === null || _155 === void 0 ? void 0 : _155[500]),
788
- '600': ((_157 = (_156 = params.palette) === null || _156 === void 0 ? void 0 : _156.grey) === null || _157 === void 0 ? void 0 : _157[600]) || ((_159 = (_158 = DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _158 === void 0 ? void 0 : _158.grey) === null || _159 === void 0 ? void 0 : _159[600]),
789
- '700': ((_161 = (_160 = params.palette) === null || _160 === void 0 ? void 0 : _160.grey) === null || _161 === void 0 ? void 0 : _161[700]) || ((_163 = (_162 = DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _162 === void 0 ? void 0 : _162.grey) === null || _163 === void 0 ? void 0 : _163[700]),
790
- '800': ((_165 = (_164 = params.palette) === null || _164 === void 0 ? void 0 : _164.grey) === null || _165 === void 0 ? void 0 : _165[800]) || ((_167 = (_166 = DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _166 === void 0 ? void 0 : _166.grey) === null || _167 === void 0 ? void 0 : _167[800]),
791
- '900': ((_169 = (_168 = params.palette) === null || _168 === void 0 ? void 0 : _168.grey) === null || _169 === void 0 ? void 0 : _169[900]) || ((_171 = (_170 = DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _170 === void 0 ? void 0 : _170.grey) === null || _171 === void 0 ? void 0 : _171[900]),
792
- A100: ((_173 = (_172 = params.palette) === null || _172 === void 0 ? void 0 : _172.grey) === null || _173 === void 0 ? void 0 : _173.A100) || ((_175 = (_174 = DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _174 === void 0 ? void 0 : _174.grey) === null || _175 === void 0 ? void 0 : _175.A100),
793
- A200: ((_177 = (_176 = params.palette) === null || _176 === void 0 ? void 0 : _176.grey) === null || _177 === void 0 ? void 0 : _177.A200) || ((_179 = (_178 = DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _178 === void 0 ? void 0 : _178.grey) === null || _179 === void 0 ? void 0 : _179.A200),
794
- A400: ((_181 = (_180 = params.palette) === null || _180 === void 0 ? void 0 : _180.grey) === null || _181 === void 0 ? void 0 : _181.A400) || ((_183 = (_182 = DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _182 === void 0 ? void 0 : _182.grey) === null || _183 === void 0 ? void 0 : _183.A400),
795
- A700: ((_185 = (_184 = params.palette) === null || _184 === void 0 ? void 0 : _184.grey) === null || _185 === void 0 ? void 0 : _185.A700) || ((_187 = (_186 = DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _186 === void 0 ? void 0 : _186.grey) === null || _187 === void 0 ? void 0 : _187.A700)
796
- },
797
- action: {
798
- hover: actionHoverColor,
799
- selected: ((_189 = (_188 = params.palette) === null || _188 === void 0 ? void 0 : _188.action) === null || _189 === void 0 ? void 0 : _189.selected) || ((_191 = (_190 = DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _190 === void 0 ? void 0 : _190.action) === null || _191 === void 0 ? void 0 : _191.selected),
800
- disabled: ((_193 = (_192 = params.palette) === null || _192 === void 0 ? void 0 : _192.action) === null || _193 === void 0 ? void 0 : _193.disabled) || ((_195 = (_194 = DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _194 === void 0 ? void 0 : _194.action) === null || _195 === void 0 ? void 0 : _195.disabled),
801
- active: ((_197 = (_196 = params.palette) === null || _196 === void 0 ? void 0 : _196.action) === null || _197 === void 0 ? void 0 : _197.active) || ((_199 = (_198 = DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _198 === void 0 ? void 0 : _198.action) === null || _199 === void 0 ? void 0 : _199.active),
802
- focus: ((_201 = (_200 = params.palette) === null || _200 === void 0 ? void 0 : _200.action) === null || _201 === void 0 ? void 0 : _201.focus) || ((_203 = (_202 = DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _202 === void 0 ? void 0 : _202.action) === null || _203 === void 0 ? void 0 : _203.focus)
803
- },
804
- background: ((_204 = params.palette) === null || _204 === void 0 ? void 0 : _204.background) || ((_205 = DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _205 === void 0 ? void 0 : _205.background),
805
- text: tslib_1.__assign({}, textPalette),
806
- divider: dividerColor
807
- },
808
- overrides: overrides,
809
- shape: {
810
- borderRadius: borderRadius
811
- },
812
- // DEFAULT PROPS
813
- props: tslib_1.__assign({ MuiInputLabel: {
814
- shrink: true
815
- }, MuiButtonGroup: tslib_1.__assign({ disableRipple: disableRipple }, (_206 = params.muiProps) === null || _206 === void 0 ? void 0 : _206.MuiButtonGroup), MuiButton: {
816
- disableElevation: true
817
- }, MuiSwitch: {
818
- color: 'primary'
819
- }, MuiButtonBase: {
820
- disableRipple: disableRipple
821
- }, MuiRadio: tslib_1.__assign({ disableRipple: disableRipple }, (_207 = params.muiProps) === null || _207 === void 0 ? void 0 : _207.MuiRadio), MuiIconButton: tslib_1.__assign({ disableRipple: disableRipple }, (_208 = params.muiProps) === null || _208 === void 0 ? void 0 : _208.MuiIconButton), MuiList: tslib_1.__assign({ disablePadding: true }, (_209 = params.muiProps) === null || _209 === void 0 ? void 0 : _209.MuiList), MuiTooltip: tslib_1.__assign({ arrow: true }, (_210 = params.muiProps) === null || _210 === void 0 ? void 0 : _210.MuiTooltip), MuiFilledInput: {
822
- disableUnderline: true
823
- }, MuiTextField: {
824
- variant: 'filled',
825
- InputLabelProps: {
826
- shrink: true
827
- }
828
- }, MuiSelect: {
829
- MenuProps: {
830
- anchorOrigin: {
831
- vertical: 'bottom',
832
- horizontal: 'left'
833
- },
834
- getContentAnchorEl: null,
835
- style: {
836
- marginTop: 4
837
- }
838
- }
839
- }, MuiAppBar: {
840
- color: 'primary'
841
- } }, params.muiProps),
842
- spacing: params.spacing || DefaultEpilotTheme_1.DefaultEpilotTheme.spacing,
843
- breakpoints: tslib_1.__assign({}, params === null || params === void 0 ? void 0 : params.breakpoints)
844
- };
845
- }
846
- exports.parseMuiTheme = parseMuiTheme;
1
+ "use strict";
2
+ exports.__esModule = true;
3
+ exports.parseMuiTheme = exports.parseThemeTemplate = void 0;
4
+ var tslib_1 = require("tslib");
5
+ var styles_1 = require("@material-ui/core/styles");
6
+ var fp_1 = tslib_1.__importDefault(require("lodash/fp"));
7
+ var DefaultEpilotTheme_1 = require("./DefaultEpilotTheme");
8
+ var fonts_1 = tslib_1.__importDefault(require("./fonts"));
9
+ function parseThemeTemplate(params) {
10
+ var _a, _b, _c, _d;
11
+ return {
12
+ contentMaxWidth: (((_a = params.props) === null || _a === void 0 ? void 0 : _a.content_max_width) || ((_b = DefaultEpilotTheme_1.DefaultEpilotTheme.props) === null || _b === void 0 ? void 0 : _b.content_max_width)) + "px",
13
+ clientLogoUrl: ((_c = params.props) === null || _c === void 0 ? void 0 : _c.client_logo_url) || ((_d = DefaultEpilotTheme_1.DefaultEpilotTheme.props) === null || _d === void 0 ? void 0 : _d.client_logo_url),
14
+ clientLogoStyle: {
15
+ height: '32px'
16
+ }
17
+ };
18
+ }
19
+ exports.parseThemeTemplate = parseThemeTemplate;
20
+ function parseMuiTheme(params, classPrefix) {
21
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
22
+ var _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32, _33, _34, _35, _36, _37, _38, _39, _40, _41, _42, _43, _44, _45, _46, _47, _48, _49, _50, _51, _52, _53, _54, _55, _56, _57, _58, _59, _60, _61, _62, _63, _64, _65, _66, _67, _68, _69, _70, _71, _72, _73, _74, _75, _76, _77, _78, _79, _80, _81, _82, _83, _84, _85, _86, _87, _88, _89, _90, _91, _92, _93, _94, _95, _96, _97, _98, _99, _100, _101, _102, _103, _104, _105, _106, _107, _108, _109, _110, _111, _112, _113, _114, _115, _116, _117, _118, _119, _120, _121, _122, _123, _124, _125, _126, _127, _128, _129, _130, _131, _132, _133, _134, _135, _136, _137, _138, _139, _140, _141, _142, _143, _144, _145, _146, _147, _148, _149, _150, _151, _152, _153, _154, _155, _156, _157, _158, _159, _160, _161, _162, _163, _164, _165, _166, _167, _168, _169, _170, _171, _172, _173, _174, _175, _176, _177, _178, _179, _180, _181, _182, _183, _184, _185, _186, _187, _188, _189, _190, _191, _192, _193, _194, _195, _196, _197, _198, _199, _200, _201, _202, _203, _204, _205, _206, _207, _208, _209, _210;
23
+ if (classPrefix === void 0) { classPrefix = ''; }
24
+ var prefix = classPrefix ? classPrefix + "-" : '';
25
+ var disableRipple = typeof ((_t = params.props) === null || _t === void 0 ? void 0 : _t.enable_ripple) === 'boolean'
26
+ ? !((_u = params.props) === null || _u === void 0 ? void 0 : _u.enable_ripple)
27
+ : !((_v = DefaultEpilotTheme_1.DefaultEpilotTheme.props) === null || _v === void 0 ? void 0 : _v.enable_ripple);
28
+ var borderRadius = ((_w = params.shape) === null || _w === void 0 ? void 0 : _w.borderRadius) || ((_x = DefaultEpilotTheme_1.DefaultEpilotTheme.shape) === null || _x === void 0 ? void 0 : _x.borderRadius);
29
+ var primaryColor = ((_y = params.palette) === null || _y === void 0 ? void 0 : _y.primary) || ((_z = DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _z === void 0 ? void 0 : _z.primary);
30
+ var secondaryColor = ((_0 = params.palette) === null || _0 === void 0 ? void 0 : _0.secondary) || ((_1 = DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _1 === void 0 ? void 0 : _1.secondary);
31
+ var successColor = ((_2 = params.palette) === null || _2 === void 0 ? void 0 : _2.success) || ((_3 = DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _3 === void 0 ? void 0 : _3.success);
32
+ var infoColor = ((_4 = params.palette) === null || _4 === void 0 ? void 0 : _4.info) || ((_5 = DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _5 === void 0 ? void 0 : _5.info);
33
+ var defaultBackground = ((_7 = (_6 = params.palette) === null || _6 === void 0 ? void 0 : _6.background) === null || _7 === void 0 ? void 0 : _7["default"]) || ((_9 = (_8 = DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _8 === void 0 ? void 0 : _8.background) === null || _9 === void 0 ? void 0 : _9["default"]);
34
+ var warningColor = ((_10 = params.palette) === null || _10 === void 0 ? void 0 : _10.warning) || ((_11 = DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _11 === void 0 ? void 0 : _11.warning);
35
+ var primaryDark = (primaryColor === null || primaryColor === void 0 ? void 0 : primaryColor.dark) ? primaryColor === null || primaryColor === void 0 ? void 0 : primaryColor.dark : (primaryColor === null || primaryColor === void 0 ? void 0 : primaryColor.main) ? styles_1.darken(primaryColor === null || primaryColor === void 0 ? void 0 : primaryColor.main, 0.1)
36
+ : null;
37
+ var secondaryDark = (secondaryColor === null || secondaryColor === void 0 ? void 0 : secondaryColor.dark) ? secondaryColor === null || secondaryColor === void 0 ? void 0 : secondaryColor.dark : (secondaryColor === null || secondaryColor === void 0 ? void 0 : secondaryColor.main) ? styles_1.darken(secondaryColor === null || secondaryColor === void 0 ? void 0 : secondaryColor.main, 0.1)
38
+ : null;
39
+ var primaryLight = (primaryColor === null || primaryColor === void 0 ? void 0 : primaryColor.light) ? primaryColor === null || primaryColor === void 0 ? void 0 : primaryColor.light : (primaryColor === null || primaryColor === void 0 ? void 0 : primaryColor.main) ? styles_1.lighten(primaryColor === null || primaryColor === void 0 ? void 0 : primaryColor.main, 0.1)
40
+ : null;
41
+ var secondaryLight = (secondaryColor === null || secondaryColor === void 0 ? void 0 : secondaryColor.light) ? secondaryColor === null || secondaryColor === void 0 ? void 0 : secondaryColor.light : (secondaryColor === null || secondaryColor === void 0 ? void 0 : secondaryColor.main) ? styles_1.lighten(secondaryColor === null || secondaryColor === void 0 ? void 0 : secondaryColor.main, 0.1)
42
+ : null;
43
+ var errorColor = ((_12 = params.palette) === null || _12 === void 0 ? void 0 : _12.error) || ((_13 = DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _13 === void 0 ? void 0 : _13.error);
44
+ var accent1Color = ((_14 = params.palette) === null || _14 === void 0 ? void 0 : _14.accent1) || ((_15 = DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _15 === void 0 ? void 0 : _15.accent1);
45
+ var accent2Color = ((_16 = params.palette) === null || _16 === void 0 ? void 0 : _16.accent2) || ((_17 = DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _17 === void 0 ? void 0 : _17.accent2);
46
+ var tertiaryColor = ((_18 = params.palette) === null || _18 === void 0 ? void 0 : _18.tertiary) || ((_19 = DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _19 === void 0 ? void 0 : _19.tertiary);
47
+ var defaultColor = ((_20 = params.palette) === null || _20 === void 0 ? void 0 : _20["default"]) || ((_21 = DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _21 === void 0 ? void 0 : _21["default"]);
48
+ var grey20 = ((_23 = (_22 = params.palette) === null || _22 === void 0 ? void 0 : _22.grey) === null || _23 === void 0 ? void 0 : _23[20]) || ((_25 = (_24 = DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _24 === void 0 ? void 0 : _24.grey) === null || _25 === void 0 ? void 0 : _25[20]);
49
+ var grey30 = ((_27 = (_26 = params.palette) === null || _26 === void 0 ? void 0 : _26.grey) === null || _27 === void 0 ? void 0 : _27[30]) || ((_29 = (_28 = DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _28 === void 0 ? void 0 : _28.grey) === null || _29 === void 0 ? void 0 : _29[30]);
50
+ var grey40 = ((_31 = (_30 = params.palette) === null || _30 === void 0 ? void 0 : _30.grey) === null || _31 === void 0 ? void 0 : _31[40]) || ((_33 = (_32 = DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _32 === void 0 ? void 0 : _32.grey) === null || _33 === void 0 ? void 0 : _33[40]);
51
+ var grey50 = ((_35 = (_34 = params.palette) === null || _34 === void 0 ? void 0 : _34.grey) === null || _35 === void 0 ? void 0 : _35[50]) || ((_37 = (_36 = DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _36 === void 0 ? void 0 : _36.grey) === null || _37 === void 0 ? void 0 : _37[50]);
52
+ var grey60 = ((_39 = (_38 = params.palette) === null || _38 === void 0 ? void 0 : _38.grey) === null || _39 === void 0 ? void 0 : _39[60]) || ((_41 = (_40 = DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _40 === void 0 ? void 0 : _40.grey) === null || _41 === void 0 ? void 0 : _41[60]);
53
+ var grey70 = ((_43 = (_42 = params.palette) === null || _42 === void 0 ? void 0 : _42.grey) === null || _43 === void 0 ? void 0 : _43[70]) || ((_45 = (_44 = DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _44 === void 0 ? void 0 : _44.grey) === null || _45 === void 0 ? void 0 : _45[70]);
54
+ var grey100 = ((_47 = (_46 = params.palette) === null || _46 === void 0 ? void 0 : _46.grey) === null || _47 === void 0 ? void 0 : _47[100]) || ((_49 = (_48 = DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _48 === void 0 ? void 0 : _48.grey) === null || _49 === void 0 ? void 0 : _49[100]);
55
+ var grey200 = ((_51 = (_50 = params.palette) === null || _50 === void 0 ? void 0 : _50.grey) === null || _51 === void 0 ? void 0 : _51[200]) || ((_53 = (_52 = DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _52 === void 0 ? void 0 : _52.grey) === null || _53 === void 0 ? void 0 : _53[200]);
56
+ var grey500 = ((_55 = (_54 = params.palette) === null || _54 === void 0 ? void 0 : _54.grey) === null || _55 === void 0 ? void 0 : _55[500]) || ((_57 = (_56 = DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _56 === void 0 ? void 0 : _56.grey) === null || _57 === void 0 ? void 0 : _57[500]);
57
+ var textPalette = ((_58 = params.palette) === null || _58 === void 0 ? void 0 : _58.text) || ((_59 = DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _59 === void 0 ? void 0 : _59.text);
58
+ var actionHoverColor = ((_61 = (_60 = params.palette) === null || _60 === void 0 ? void 0 : _60.action) === null || _61 === void 0 ? void 0 : _61.hover) || ((_63 = (_62 = DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _62 === void 0 ? void 0 : _62.action) === null || _63 === void 0 ? void 0 : _63.hover);
59
+ var dividerColor = ((_64 = params.palette) === null || _64 === void 0 ? void 0 : _64.divider) || ((_65 = DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _65 === void 0 ? void 0 : _65.divider);
60
+ var extFonts = ((_66 = params.typography) === null || _66 === void 0 ? void 0 : _66.fontSource) ? fonts_1["default"].concat((_67 = params.typography) === null || _67 === void 0 ? void 0 : _67.fontSource)
61
+ : fonts_1["default"];
62
+ var elevation1 = ((_68 = params.shadows) === null || _68 === void 0 ? void 0 : _68[1]) || ((_69 = DefaultEpilotTheme_1.DefaultEpilotTheme.shadows) === null || _69 === void 0 ? void 0 : _69[1]);
63
+ var elevation2 = ((_70 = params.shadows) === null || _70 === void 0 ? void 0 : _70[2]) || ((_71 = DefaultEpilotTheme_1.DefaultEpilotTheme.shadows) === null || _71 === void 0 ? void 0 : _71[2]);
64
+ var elevation3 = ((_72 = params.shadows) === null || _72 === void 0 ? void 0 : _72[3]) || ((_73 = DefaultEpilotTheme_1.DefaultEpilotTheme.shadows) === null || _73 === void 0 ? void 0 : _73[3]);
65
+ var elevation8 = ((_74 = params.shadows) === null || _74 === void 0 ? void 0 : _74[8]) || ((_75 = DefaultEpilotTheme_1.DefaultEpilotTheme.shadows) === null || _75 === void 0 ? void 0 : _75[8]);
66
+ var overrides = fp_1["default"].merge({
67
+ MuiTypography: {
68
+ root: {
69
+ textTransform: 'none'
70
+ }
71
+ },
72
+ MuiInputBase: {
73
+ input: {
74
+ height: 'auto',
75
+ '&::placeholder': {
76
+ color: grey200,
77
+ opacity: 1
78
+ },
79
+ '&$disabled': {
80
+ '&::placeholder': {
81
+ color: grey100
82
+ }
83
+ }
84
+ }
85
+ },
86
+ MuiInputAdornment: {
87
+ root: (_a = {},
88
+ _a["& ." + prefix + "MuiIconButton-root"] = {
89
+ padding: 0
90
+ },
91
+ _a)
92
+ },
93
+ MuiInput: {
94
+ underline: {
95
+ '&:before': {
96
+ borderBottom: "1px solid " + grey60
97
+ },
98
+ '&:after': {
99
+ borderBottom: "1px solid " + (primaryColor === null || primaryColor === void 0 ? void 0 : primaryColor[400])
100
+ },
101
+ '&:hover:not(.Mui-disabled)': {
102
+ '&:before': {
103
+ borderBottom: "1px solid " + grey60
104
+ }
105
+ },
106
+ '&$disabled': {
107
+ '&:before': {
108
+ borderBottomStyle: 'solid'
109
+ }
110
+ }
111
+ }
112
+ },
113
+ MuiSelect: {
114
+ root: {
115
+ textAlign: 'start'
116
+ },
117
+ icon: {
118
+ color: secondaryColor === null || secondaryColor === void 0 ? void 0 : secondaryColor.main
119
+ }
120
+ },
121
+ MuiFormHelperText: {
122
+ contained: {
123
+ marginLeft: '1px'
124
+ }
125
+ },
126
+ MuiInputLabel: {
127
+ root: {
128
+ color: grey500 + " !important",
129
+ '&$disabled': {
130
+ color: grey100 + " !important"
131
+ }
132
+ },
133
+ outlined: {
134
+ display: 'none'
135
+ }
136
+ },
137
+ MuiPaper: {
138
+ elevation1: {
139
+ boxShadow: elevation1
140
+ },
141
+ elevation2: {
142
+ boxShadow: elevation2
143
+ },
144
+ elevation3: {
145
+ boxShadow: elevation3
146
+ },
147
+ // Elevation8 affects Popover default boxShadow
148
+ elevation8: {
149
+ boxShadow: elevation8
150
+ }
151
+ },
152
+ MuiChip: {
153
+ root: {
154
+ borderRadius: 2,
155
+ fontSize: 12,
156
+ fontWeight: 600,
157
+ height: 24,
158
+ backgroundColor: grey50,
159
+ lineHeight: 'normal'
160
+ },
161
+ outlined: (_b = {
162
+ backgroundColor: 'transparent',
163
+ '&:hover': {
164
+ border: "1px solid " + (primaryColor === null || primaryColor === void 0 ? void 0 : primaryColor.main)
165
+ }
166
+ },
167
+ _b["& ." + prefix + "MuiIcon-root, ." + prefix + "MuiSvgIcon-root"] = {
168
+ color: secondaryColor === null || secondaryColor === void 0 ? void 0 : secondaryColor.main
169
+ },
170
+ _b),
171
+ label: {
172
+ color: textPalette === null || textPalette === void 0 ? void 0 : textPalette.primary
173
+ },
174
+ icon: {
175
+ fontSize: '1.2rem !important'
176
+ },
177
+ deleteIcon: {
178
+ fontSize: '1.2rem !important'
179
+ }
180
+ },
181
+ MuiAccordionDetails: {
182
+ root: {
183
+ backgroundColor: grey20,
184
+ borderTop: "1px solid " + grey50
185
+ }
186
+ },
187
+ MuiAccordionSummary: {
188
+ root: {
189
+ color: textPalette === null || textPalette === void 0 ? void 0 : textPalette.primary,
190
+ fontSize: 14,
191
+ fontWeight: 600,
192
+ minHeight: 48,
193
+ '&$expanded': {
194
+ minHeight: 48
195
+ }
196
+ },
197
+ content: {
198
+ '&$expanded': {
199
+ margin: 'auto'
200
+ }
201
+ },
202
+ expanded: {}
203
+ },
204
+ MuiAccordion: {
205
+ root: {
206
+ marginTop: '-1px !important',
207
+ '&$expanded': {
208
+ margin: 'auto',
209
+ '&:before': {
210
+ top: -1,
211
+ left: 0,
212
+ right: 0,
213
+ height: 1,
214
+ content: '',
215
+ opacity: 1,
216
+ position: 'absolute',
217
+ transition: 'opacity 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,background-color 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms',
218
+ backgroundColor: grey50
219
+ }
220
+ },
221
+ '&.Mui-disabled': {
222
+ backgroundColor: grey40
223
+ }
224
+ }
225
+ },
226
+ MuiRadio: {
227
+ colorPrimary: {
228
+ '&:hover': {
229
+ color: primaryColor === null || primaryColor === void 0 ? void 0 : primaryColor.main,
230
+ backgroundColor: 'transparent'
231
+ }
232
+ },
233
+ colorSecondary: {
234
+ '&:hover': {
235
+ color: accent1Color === null || accent1Color === void 0 ? void 0 : accent1Color.main,
236
+ backgroundColor: 'transparent'
237
+ }
238
+ }
239
+ },
240
+ MuiCheckbox: {
241
+ colorPrimary: {
242
+ '&:hover': {
243
+ color: primaryColor === null || primaryColor === void 0 ? void 0 : primaryColor.main,
244
+ backgroundColor: 'transparent'
245
+ }
246
+ },
247
+ colorSecondary: {
248
+ '&:hover': {
249
+ color: accent1Color === null || accent1Color === void 0 ? void 0 : accent1Color.main,
250
+ backgroundColor: 'transparent'
251
+ }
252
+ }
253
+ },
254
+ MuiTabPanel: {
255
+ root: (_c = {
256
+ padding: 0
257
+ },
258
+ _c["& ." + prefix + "MuiPaper-root"] = {
259
+ borderRadius: "0px " + borderRadius + "px " + borderRadius + "px " + borderRadius + "px"
260
+ },
261
+ _c)
262
+ },
263
+ MuiTabs: {
264
+ root: {
265
+ minHeight: 40,
266
+ overflow: 'visible'
267
+ }
268
+ },
269
+ MuiTableCell: {
270
+ root: {
271
+ borderBottom: "1px solid " + grey60,
272
+ whiteSpace: 'pre',
273
+ height: 48
274
+ },
275
+ head: {
276
+ fontWeight: 600,
277
+ height: 56,
278
+ border: 0
279
+ },
280
+ stickyHeader: {
281
+ fontWeight: 600,
282
+ backgroundColor: grey30,
283
+ left: 'unset'
284
+ }
285
+ },
286
+ MuiTableSortLabel: {
287
+ root: {
288
+ '&:hover': {
289
+ color: 'inherit'
290
+ }
291
+ }
292
+ },
293
+ MuiTableRow: {
294
+ root: {
295
+ '&$selected': {
296
+ backgroundColor: grey20 + " !important"
297
+ }
298
+ },
299
+ hover: {
300
+ '&:hover': {
301
+ backgroundColor: grey20 + " !important"
302
+ }
303
+ }
304
+ },
305
+ MuiTableHead: {
306
+ root: {
307
+ backgroundColor: grey30
308
+ }
309
+ },
310
+ MuiButton: {
311
+ root: {
312
+ fontWeight: 600,
313
+ '&$disabled': {
314
+ color: grey100
315
+ },
316
+ height: 32,
317
+ fontSize: 14
318
+ },
319
+ sizeSmall: {
320
+ height: 24,
321
+ fontSize: 12
322
+ },
323
+ sizeLarge: {
324
+ height: 48,
325
+ fontSize: 16
326
+ },
327
+ contained: {
328
+ '&$disabled': {
329
+ color: grey100,
330
+ backgroundColor: grey40
331
+ }
332
+ },
333
+ text: {
334
+ color: textPalette === null || textPalette === void 0 ? void 0 : textPalette.primary,
335
+ '&:hover': {
336
+ backgroundColor: 'transparent'
337
+ }
338
+ },
339
+ textPrimary: (_d = {
340
+ '&:hover': {
341
+ backgroundColor: 'transparent',
342
+ color: primaryColor === null || primaryColor === void 0 ? void 0 : primaryColor[600]
343
+ },
344
+ '&:active': {
345
+ color: primaryColor === null || primaryColor === void 0 ? void 0 : primaryColor[700]
346
+ }
347
+ },
348
+ _d["&." + classPrefix + "Mui-focusVisible"] = {
349
+ border: "1px solid white",
350
+ boxShadow: "0 0 0 2px " + ((primaryColor === null || primaryColor === void 0 ? void 0 : primaryColor[400]) || primaryLight) + " !important"
351
+ },
352
+ _d["&." + classPrefix + "Mui-focusVisible." + classPrefix + "MuiButton-textSizeSmall"] = {
353
+ boxShadow: "0 0 0 1px " + ((primaryColor === null || primaryColor === void 0 ? void 0 : primaryColor[400]) || primaryLight) + " !important"
354
+ },
355
+ _d),
356
+ textSecondary: {
357
+ '&:hover': {
358
+ backgroundColor: 'transparent'
359
+ }
360
+ },
361
+ outlined: (_e = {
362
+ color: textPalette === null || textPalette === void 0 ? void 0 : textPalette.primary,
363
+ backgroundColor: defaultBackground,
364
+ borderColor: grey70,
365
+ '&:hover': {
366
+ backgroundColor: defaultBackground
367
+ },
368
+ '&:active': {
369
+ borderColor: primaryColor === null || primaryColor === void 0 ? void 0 : primaryColor[400],
370
+ boxShadow: "0px 0px 0px 1px " + (primaryColor === null || primaryColor === void 0 ? void 0 : primaryColor[400]) + " !important"
371
+ }
372
+ },
373
+ _e["& ." + prefix + "MuiButton-startIcon"] = {
374
+ color: accent1Color === null || accent1Color === void 0 ? void 0 : accent1Color.main
375
+ },
376
+ _e["& ." + prefix + "MuiButton-endIcon"] = {
377
+ color: accent1Color === null || accent1Color === void 0 ? void 0 : accent1Color.main
378
+ },
379
+ _e["&." + classPrefix + "Mui-focusVisible"] = {
380
+ border: "1px solid white",
381
+ boxShadow: "0 0 0 2px " + ((primaryColor === null || primaryColor === void 0 ? void 0 : primaryColor[400]) || primaryLight) + " !important"
382
+ },
383
+ _e["&." + classPrefix + "Mui-focusVisible." + classPrefix + "MuiButton-outlinedSizeSmall"] = {
384
+ boxShadow: "0 0 0 1px " + ((primaryColor === null || primaryColor === void 0 ? void 0 : primaryColor[400]) || primaryLight) + " !important"
385
+ },
386
+ _e),
387
+ outlinedPrimary: (_f = {
388
+ color: textPalette === null || textPalette === void 0 ? void 0 : textPalette.primary,
389
+ '&:hover': {
390
+ border: "1px solid " + primaryDark,
391
+ backgroundColor: defaultBackground
392
+ },
393
+ '&:active': {
394
+ borderColor: primaryColor === null || primaryColor === void 0 ? void 0 : primaryColor[400],
395
+ boxShadow: "0px 0px 0px 1px " + (primaryColor === null || primaryColor === void 0 ? void 0 : primaryColor[400]) + " !important"
396
+ }
397
+ },
398
+ _f["& ." + prefix + "MuiButton-startIcon"] = {
399
+ color: textPalette === null || textPalette === void 0 ? void 0 : textPalette.primary
400
+ },
401
+ _f["& ." + prefix + "MuiButton-endIcon"] = {
402
+ color: textPalette === null || textPalette === void 0 ? void 0 : textPalette.primary
403
+ },
404
+ _f),
405
+ outlinedSecondary: {
406
+ color: textPalette === null || textPalette === void 0 ? void 0 : textPalette.primary,
407
+ '&:hover': {
408
+ border: "1px solid " + secondaryDark,
409
+ backgroundColor: defaultBackground
410
+ }
411
+ },
412
+ containedPrimary: (_g = {},
413
+ _g["&." + classPrefix + "Mui-focusVisible"] = {
414
+ backgroundColor: (primaryColor === null || primaryColor === void 0 ? void 0 : primaryColor[400]) + " !important",
415
+ border: "1px solid white",
416
+ boxShadow: "0 0 0 2px " + ((primaryColor === null || primaryColor === void 0 ? void 0 : primaryColor[400]) || primaryLight) + " !important"
417
+ },
418
+ _g["&." + classPrefix + "Mui-focusVisible." + classPrefix + "MuiButton-containedSizeSmall"] = {
419
+ boxShadow: "0 0 0 1px " + ((primaryColor === null || primaryColor === void 0 ? void 0 : primaryColor[400]) || primaryLight) + " !important"
420
+ },
421
+ _g),
422
+ containedSecondary: (_h = {},
423
+ _h["&." + classPrefix + "Mui-focusVisible"] = {
424
+ backgroundColor: (secondaryColor === null || secondaryColor === void 0 ? void 0 : secondaryColor.main) + " !important",
425
+ border: "1px solid white",
426
+ boxShadow: "0 0 0 2px " + ((secondaryColor === null || secondaryColor === void 0 ? void 0 : secondaryColor[400]) || secondaryLight) + " !important"
427
+ },
428
+ _h["&." + classPrefix + "Mui-focusVisible." + classPrefix + "MuiButton-containedSizeSmall"] = {
429
+ boxShadow: "0 0 0 1px " + ((secondaryColor === null || secondaryColor === void 0 ? void 0 : secondaryColor[400]) || secondaryLight) + " !important"
430
+ },
431
+ _h)
432
+ },
433
+ MuiButtonGroup: {
434
+ groupedContainedPrimary: {
435
+ '&:not(:last-child)': {
436
+ borderColor: defaultBackground
437
+ }
438
+ },
439
+ groupedOutlined: {
440
+ '&:active': {
441
+ zIndex: 1,
442
+ borderColor: (primaryColor === null || primaryColor === void 0 ? void 0 : primaryColor[400]) + " !important"
443
+ }
444
+ },
445
+ groupedTextPrimary: {
446
+ border: "1px solid " + ((_76 = DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _76 === void 0 ? void 0 : _76.grey[70]) + " !important",
447
+ '&:not(:last-child)': {
448
+ marginRight: -1
449
+ }
450
+ }
451
+ },
452
+ MuiDialogContentText: {
453
+ root: {
454
+ color: textPalette === null || textPalette === void 0 ? void 0 : textPalette.primary
455
+ }
456
+ },
457
+ MuiDialogTitle: {
458
+ root: (_j = {
459
+ padding: 24,
460
+ paddingBottom: 4
461
+ },
462
+ _j["& ." + prefix + "MuiTypography-root"] = {
463
+ fontWeight: 600
464
+ },
465
+ _j)
466
+ },
467
+ MuiDialogActions: {
468
+ root: {
469
+ padding: 24,
470
+ paddingTop: 16
471
+ }
472
+ },
473
+ MuiDialog: {
474
+ paper: {
475
+ boxShadow: '0px 3px 5px rgba(9, 30, 66, 0.2), 0px 0px 1px rgba(9, 30, 66, 0.31)'
476
+ }
477
+ },
478
+ MuiBackdrop: {
479
+ root: {
480
+ backgroundColor: 'rgba(23, 43, 77 ,0.3)'
481
+ }
482
+ },
483
+ MuiToggleButton: {
484
+ root: {
485
+ fontWeight: 600,
486
+ backgroundColor: defaultBackground,
487
+ color: textPalette === null || textPalette === void 0 ? void 0 : textPalette.primary,
488
+ borderColor: grey70 + " !important",
489
+ '&:hover': {
490
+ backgroundColor: defaultBackground
491
+ },
492
+ '&$selected': (_k = {
493
+ backgroundColor: (primaryColor === null || primaryColor === void 0 ? void 0 : primaryColor.main) + " !important",
494
+ borderColor: (primaryColor === null || primaryColor === void 0 ? void 0 : primaryColor.main) + " !important",
495
+ borderRight: "1px solid " + (primaryColor === null || primaryColor === void 0 ? void 0 : primaryColor.main) + " !important",
496
+ '&:hover': {
497
+ backgroundColor: primaryColor === null || primaryColor === void 0 ? void 0 : primaryColor.main
498
+ }
499
+ },
500
+ _k["& ." + prefix + "MuiToggleButton-label"] = {
501
+ color: defaultBackground
502
+ },
503
+ _k),
504
+ '&$disabled': (_l = {
505
+ backgroundColor: grey40
506
+ },
507
+ _l["& ." + prefix + "MuiToggleButton-label"] = {
508
+ color: grey100
509
+ },
510
+ _l),
511
+ height: 32,
512
+ fontSize: 14
513
+ },
514
+ sizeSmall: {
515
+ height: 24,
516
+ fontSize: 12
517
+ },
518
+ sizeLarge: {
519
+ height: 40,
520
+ fontSize: 16
521
+ }
522
+ },
523
+ MuiFormControlLabel: {
524
+ root: {
525
+ marginLeft: 0,
526
+ marginRight: 0
527
+ }
528
+ },
529
+ MuiSwitch: {
530
+ root: {
531
+ width: 48,
532
+ height: 24,
533
+ padding: 0,
534
+ display: 'flex',
535
+ margin: 8
536
+ },
537
+ switchBase: {
538
+ padding: 2,
539
+ color: (_77 = DefaultEpilotTheme_1.DefaultEpilotTheme === null || DefaultEpilotTheme_1.DefaultEpilotTheme === void 0 ? void 0 : DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _77 === void 0 ? void 0 : _77.background["default"],
540
+ '&:hover': {
541
+ backgroundColor: 'inherit'
542
+ },
543
+ '&$checked': {
544
+ transform: 'translateX(24px)',
545
+ color: ((_78 = DefaultEpilotTheme_1.DefaultEpilotTheme === null || DefaultEpilotTheme_1.DefaultEpilotTheme === void 0 ? void 0 : DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _78 === void 0 ? void 0 : _78.background["default"]) + " !important",
546
+ '& + $track': {
547
+ opacity: 1,
548
+ borderColor: (_79 = DefaultEpilotTheme_1.DefaultEpilotTheme === null || DefaultEpilotTheme_1.DefaultEpilotTheme === void 0 ? void 0 : DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _79 === void 0 ? void 0 : _79.action.disabled,
549
+ backgroundColor: (_80 = DefaultEpilotTheme_1.DefaultEpilotTheme === null || DefaultEpilotTheme_1.DefaultEpilotTheme === void 0 ? void 0 : DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _80 === void 0 ? void 0 : _80.action.disabled
550
+ }
551
+ }
552
+ },
553
+ colorPrimary: {
554
+ '&$disabled': {
555
+ color: ((_81 = DefaultEpilotTheme_1.DefaultEpilotTheme === null || DefaultEpilotTheme_1.DefaultEpilotTheme === void 0 ? void 0 : DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _81 === void 0 ? void 0 : _81.background["default"]) + " !important",
556
+ '& + $track': {
557
+ opacity: 0.8,
558
+ borderColor: (_82 = DefaultEpilotTheme_1.DefaultEpilotTheme === null || DefaultEpilotTheme_1.DefaultEpilotTheme === void 0 ? void 0 : DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _82 === void 0 ? void 0 : _82.action.disabled,
559
+ backgroundColor: (_83 = DefaultEpilotTheme_1.DefaultEpilotTheme === null || DefaultEpilotTheme_1.DefaultEpilotTheme === void 0 ? void 0 : DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _83 === void 0 ? void 0 : _83.action.disabled
560
+ },
561
+ '&$checked': {
562
+ '& + $track': {
563
+ opacity: 0.5,
564
+ borderColor: (_84 = DefaultEpilotTheme_1.DefaultEpilotTheme === null || DefaultEpilotTheme_1.DefaultEpilotTheme === void 0 ? void 0 : DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _84 === void 0 ? void 0 : _84.primary.main,
565
+ backgroundColor: (_85 = DefaultEpilotTheme_1.DefaultEpilotTheme === null || DefaultEpilotTheme_1.DefaultEpilotTheme === void 0 ? void 0 : DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _85 === void 0 ? void 0 : _85.primary.main
566
+ }
567
+ }
568
+ },
569
+ '&$checked': {
570
+ '& + $track': {
571
+ borderColor: (_86 = DefaultEpilotTheme_1.DefaultEpilotTheme === null || DefaultEpilotTheme_1.DefaultEpilotTheme === void 0 ? void 0 : DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _86 === void 0 ? void 0 : _86.primary.main
572
+ }
573
+ }
574
+ },
575
+ colorSecondary: {
576
+ '&$disabled': {
577
+ color: ((_87 = DefaultEpilotTheme_1.DefaultEpilotTheme === null || DefaultEpilotTheme_1.DefaultEpilotTheme === void 0 ? void 0 : DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _87 === void 0 ? void 0 : _87.background["default"]) + " !important",
578
+ '& + $track': {
579
+ opacity: 0.8,
580
+ borderColor: (_88 = DefaultEpilotTheme_1.DefaultEpilotTheme === null || DefaultEpilotTheme_1.DefaultEpilotTheme === void 0 ? void 0 : DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _88 === void 0 ? void 0 : _88.action.disabled,
581
+ backgroundColor: (_89 = DefaultEpilotTheme_1.DefaultEpilotTheme === null || DefaultEpilotTheme_1.DefaultEpilotTheme === void 0 ? void 0 : DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _89 === void 0 ? void 0 : _89.action.disabled
582
+ },
583
+ '&$checked': {
584
+ '& + $track': {
585
+ opacity: 0.5,
586
+ borderColor: (_90 = DefaultEpilotTheme_1.DefaultEpilotTheme === null || DefaultEpilotTheme_1.DefaultEpilotTheme === void 0 ? void 0 : DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _90 === void 0 ? void 0 : _90.secondary.main,
587
+ backgroundColor: (_91 = DefaultEpilotTheme_1.DefaultEpilotTheme === null || DefaultEpilotTheme_1.DefaultEpilotTheme === void 0 ? void 0 : DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _91 === void 0 ? void 0 : _91.secondary.main
588
+ }
589
+ }
590
+ },
591
+ '&$checked': {
592
+ '& + $track': {
593
+ borderColor: (_92 = DefaultEpilotTheme_1.DefaultEpilotTheme === null || DefaultEpilotTheme_1.DefaultEpilotTheme === void 0 ? void 0 : DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _92 === void 0 ? void 0 : _92.secondary.main
594
+ }
595
+ }
596
+ },
597
+ thumb: {
598
+ width: 20,
599
+ height: 20,
600
+ boxShadow: 'none'
601
+ },
602
+ track: {
603
+ border: "1px solid " + ((_93 = DefaultEpilotTheme_1.DefaultEpilotTheme === null || DefaultEpilotTheme_1.DefaultEpilotTheme === void 0 ? void 0 : DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _93 === void 0 ? void 0 : _93.action.disabled),
604
+ borderRadius: 12,
605
+ opacity: 1,
606
+ backgroundColor: (_94 = DefaultEpilotTheme_1.DefaultEpilotTheme === null || DefaultEpilotTheme_1.DefaultEpilotTheme === void 0 ? void 0 : DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _94 === void 0 ? void 0 : _94.action.disabled
607
+ },
608
+ sizeSmall: (_m = {
609
+ width: 28,
610
+ height: 16,
611
+ padding: 0
612
+ },
613
+ _m["& ." + prefix + "MuiSwitch-switchBase"] = (_o = {
614
+ padding: '2px !important',
615
+ '&$checked': {
616
+ transform: 'translateX(12px) !important'
617
+ }
618
+ },
619
+ _o["& ." + prefix + "MuiSwitch-thumb"] = {
620
+ width: 12,
621
+ height: 12
622
+ },
623
+ _o),
624
+ _m)
625
+ },
626
+ MuiTooltip: {
627
+ tooltip: {
628
+ backgroundColor: primaryColor === null || primaryColor === void 0 ? void 0 : primaryColor[800],
629
+ padding: 8,
630
+ fontSize: 14,
631
+ lineHeight: '18px'
632
+ },
633
+ arrow: {
634
+ color: primaryColor === null || primaryColor === void 0 ? void 0 : primaryColor[800]
635
+ }
636
+ },
637
+ MuiFilledInput: {
638
+ root: {
639
+ border: "1px solid " + grey70,
640
+ backgroundColor: grey20,
641
+ borderRadius: borderRadius,
642
+ '&:hover': {
643
+ backgroundColor: grey20
644
+ },
645
+ '&$focused': {
646
+ backgroundColor: grey20,
647
+ border: "1px solid " + (primaryColor === null || primaryColor === void 0 ? void 0 : primaryColor[400])
648
+ },
649
+ '&.Mui-error': {
650
+ borderColor: errorColor === null || errorColor === void 0 ? void 0 : errorColor.main
651
+ },
652
+ '&$disabled': {
653
+ backgroundColor: grey40
654
+ }
655
+ }
656
+ },
657
+ MuiOutlinedInput: {
658
+ root: (_p = {
659
+ backgroundColor: defaultBackground,
660
+ '& input': {
661
+ paddingTop: 10.5,
662
+ paddingBottom: 10.5
663
+ }
664
+ },
665
+ _p["& ." + prefix + "MuiOutlinedInput-notchedOutline"] = {
666
+ borderColor: grey70
667
+ },
668
+ _p['&:hover'] = (_q = {
669
+ backgroundColor: grey20
670
+ },
671
+ _q["& ." + prefix + "MuiOutlinedInput-notchedOutline"] = {
672
+ borderColor: grey70
673
+ },
674
+ _q),
675
+ _p['&$focused'] = (_r = {
676
+ backgroundColor: '#ffffff'
677
+ },
678
+ _r["& ." + prefix + "MuiOutlinedInput-notchedOutline"] = {
679
+ borderColor: (primaryColor === null || primaryColor === void 0 ? void 0 : primaryColor[400]) + " !important",
680
+ borderWidth: 1
681
+ },
682
+ _r),
683
+ _p['&$disabled'] = (_s = {
684
+ backgroundColor: grey40
685
+ },
686
+ _s["& ." + prefix + "MuiOutlinedInput-notchedOutline"] = {
687
+ borderColor: grey70
688
+ },
689
+ _s),
690
+ _p),
691
+ inputMarginDense: {
692
+ '&$input': {
693
+ paddingTop: 6.5,
694
+ paddingBottom: 6.5
695
+ }
696
+ },
697
+ notchedOutline: {
698
+ '& legend': {
699
+ maxWidth: 0
700
+ }
701
+ }
702
+ },
703
+ MuiAutocomplete: {
704
+ inputRoot: {
705
+ minHeight: 32
706
+ },
707
+ option: {
708
+ '&:hover': {
709
+ backgroundColor: actionHoverColor
710
+ },
711
+ "&[aria-selected='true']": {
712
+ backgroundColor: actionHoverColor,
713
+ color: (primaryColor === null || primaryColor === void 0 ? void 0 : primaryColor.main) + " !important"
714
+ }
715
+ },
716
+ paper: {
717
+ boxShadow: elevation8
718
+ }
719
+ },
720
+ MuiCssBaseline: tslib_1.__assign({ '@global': {
721
+ '@font-face': extFonts,
722
+ '.Mui-selected': {
723
+ color: primaryColor === null || primaryColor === void 0 ? void 0 : primaryColor.main,
724
+ backgroundColor: actionHoverColor + " !important"
725
+ },
726
+ '.Mui-focusVisible': {
727
+ backgroundColor: defaultBackground + " !important"
728
+ },
729
+ input: {
730
+ '&::-webkit-inner-spin-button': {
731
+ '-webkit-appearance': 'none',
732
+ margin: 0
733
+ }
734
+ }
735
+ } }, (_95 = params.muiOverrides) === null || _95 === void 0 ? void 0 : _95.MuiCssBaseline)
736
+ }, params.muiOverrides);
737
+ return {
738
+ typography: {
739
+ fontWeightRegular: ((_96 = params.typography) === null || _96 === void 0 ? void 0 : _96.fontWeightRegular) || ((_97 = DefaultEpilotTheme_1.DefaultEpilotTheme.typography) === null || _97 === void 0 ? void 0 : _97.fontWeightRegular),
740
+ fontWeightBold: ((_98 = params.typography) === null || _98 === void 0 ? void 0 : _98.fontWeightBold) || ((_99 = DefaultEpilotTheme_1.DefaultEpilotTheme.typography) === null || _99 === void 0 ? void 0 : _99.fontWeightBold),
741
+ fontSize: ((_100 = params.typography) === null || _100 === void 0 ? void 0 : _100.fontSize) || ((_101 = DefaultEpilotTheme_1.DefaultEpilotTheme.typography) === null || _101 === void 0 ? void 0 : _101.fontSize),
742
+ body1: ((_102 = params.typography) === null || _102 === void 0 ? void 0 : _102.body1) || ((_103 = DefaultEpilotTheme_1.DefaultEpilotTheme.typography) === null || _103 === void 0 ? void 0 : _103.body1),
743
+ body2: ((_104 = params.typography) === null || _104 === void 0 ? void 0 : _104.body2) || ((_105 = DefaultEpilotTheme_1.DefaultEpilotTheme.typography) === null || _105 === void 0 ? void 0 : _105.body2),
744
+ caption: ((_106 = params.typography) === null || _106 === void 0 ? void 0 : _106.caption) || ((_107 = DefaultEpilotTheme_1.DefaultEpilotTheme.typography) === null || _107 === void 0 ? void 0 : _107.caption),
745
+ subtitle1: ((_108 = params.typography) === null || _108 === void 0 ? void 0 : _108.subtitle1) || ((_109 = DefaultEpilotTheme_1.DefaultEpilotTheme.typography) === null || _109 === void 0 ? void 0 : _109.subtitle1),
746
+ subtitle2: ((_110 = params.typography) === null || _110 === void 0 ? void 0 : _110.subtitle2) || ((_111 = DefaultEpilotTheme_1.DefaultEpilotTheme.typography) === null || _111 === void 0 ? void 0 : _111.subtitle2),
747
+ fontFamily: (((_112 = params.typography) === null || _112 === void 0 ? void 0 : _112.fontFamily) || ((_113 = DefaultEpilotTheme_1.DefaultEpilotTheme.typography) === null || _113 === void 0 ? void 0 : _113.fontFamily)) + " !important",
748
+ button: ((_114 = params.typography) === null || _114 === void 0 ? void 0 : _114.button) || ((_115 = DefaultEpilotTheme_1.DefaultEpilotTheme.typography) === null || _115 === void 0 ? void 0 : _115.button),
749
+ h1: ((_116 = params.typography) === null || _116 === void 0 ? void 0 : _116.h1) || ((_117 = DefaultEpilotTheme_1.DefaultEpilotTheme.typography) === null || _117 === void 0 ? void 0 : _117.h1),
750
+ h2: ((_118 = params.typography) === null || _118 === void 0 ? void 0 : _118.h2) || ((_119 = DefaultEpilotTheme_1.DefaultEpilotTheme.typography) === null || _119 === void 0 ? void 0 : _119.h2),
751
+ h3: ((_120 = params.typography) === null || _120 === void 0 ? void 0 : _120.h3) || ((_121 = DefaultEpilotTheme_1.DefaultEpilotTheme.typography) === null || _121 === void 0 ? void 0 : _121.h3),
752
+ h4: ((_122 = params.typography) === null || _122 === void 0 ? void 0 : _122.h4) || ((_123 = DefaultEpilotTheme_1.DefaultEpilotTheme.typography) === null || _123 === void 0 ? void 0 : _123.h4),
753
+ h5: ((_124 = params.typography) === null || _124 === void 0 ? void 0 : _124.h5) || ((_125 = DefaultEpilotTheme_1.DefaultEpilotTheme.typography) === null || _125 === void 0 ? void 0 : _125.h5),
754
+ h6: ((_126 = params.typography) === null || _126 === void 0 ? void 0 : _126.h6) || ((_127 = DefaultEpilotTheme_1.DefaultEpilotTheme.typography) === null || _127 === void 0 ? void 0 : _127.h6)
755
+ },
756
+ shadows: DefaultEpilotTheme_1.DefaultEpilotTheme.shadows,
757
+ palette: {
758
+ primary: tslib_1.__assign(tslib_1.__assign({}, primaryColor), { dark: primaryDark }),
759
+ secondary: tslib_1.__assign(tslib_1.__assign({}, secondaryColor), { dark: secondaryDark }),
760
+ success: tslib_1.__assign(tslib_1.__assign({}, successColor), { dark: (successColor === null || successColor === void 0 ? void 0 : successColor.dark) ? successColor === null || successColor === void 0 ? void 0 : successColor.dark : (successColor === null || successColor === void 0 ? void 0 : successColor.main) ? styles_1.darken(successColor === null || successColor === void 0 ? void 0 : successColor.main, 0.1)
761
+ : null }),
762
+ "default": tslib_1.__assign(tslib_1.__assign({}, defaultColor), { dark: (defaultColor === null || defaultColor === void 0 ? void 0 : defaultColor.dark) ? defaultColor === null || defaultColor === void 0 ? void 0 : defaultColor.dark : (defaultColor === null || defaultColor === void 0 ? void 0 : defaultColor.main) ? styles_1.darken(defaultColor === null || defaultColor === void 0 ? void 0 : defaultColor.main, 0.1)
763
+ : null }),
764
+ info: tslib_1.__assign(tslib_1.__assign({}, infoColor), { dark: (infoColor === null || infoColor === void 0 ? void 0 : infoColor.dark) ? infoColor === null || infoColor === void 0 ? void 0 : infoColor.dark : (infoColor === null || infoColor === void 0 ? void 0 : infoColor.main) ? styles_1.darken(infoColor === null || infoColor === void 0 ? void 0 : infoColor.main, 0.1)
765
+ : null }),
766
+ warning: tslib_1.__assign(tslib_1.__assign({}, warningColor), { dark: (warningColor === null || warningColor === void 0 ? void 0 : warningColor.dark) ? warningColor === null || warningColor === void 0 ? void 0 : warningColor.dark : (warningColor === null || warningColor === void 0 ? void 0 : warningColor.main) ? styles_1.darken(warningColor === null || warningColor === void 0 ? void 0 : warningColor.main, 0.1)
767
+ : null }),
768
+ error: tslib_1.__assign(tslib_1.__assign({}, errorColor), { dark: (errorColor === null || errorColor === void 0 ? void 0 : errorColor.dark) ? errorColor === null || errorColor === void 0 ? void 0 : errorColor.dark : (errorColor === null || errorColor === void 0 ? void 0 : errorColor.main) ? styles_1.darken(errorColor === null || errorColor === void 0 ? void 0 : errorColor.main, 0.1)
769
+ : null }),
770
+ accent1: tslib_1.__assign(tslib_1.__assign({}, accent1Color), { dark: (accent1Color === null || accent1Color === void 0 ? void 0 : accent1Color.dark) ? accent1Color === null || accent1Color === void 0 ? void 0 : accent1Color.dark : (accent1Color === null || accent1Color === void 0 ? void 0 : accent1Color.main) ? styles_1.darken(accent1Color === null || accent1Color === void 0 ? void 0 : accent1Color.main, 0.1)
771
+ : null }),
772
+ accent2: tslib_1.__assign(tslib_1.__assign({}, accent2Color), { dark: (accent2Color === null || accent2Color === void 0 ? void 0 : accent2Color.dark) ? accent2Color === null || accent2Color === void 0 ? void 0 : accent2Color.dark : (accent2Color === null || accent2Color === void 0 ? void 0 : accent2Color.main) ? styles_1.darken(accent2Color === null || accent2Color === void 0 ? void 0 : accent2Color.main, 0.1)
773
+ : null }),
774
+ tertiary: tslib_1.__assign(tslib_1.__assign({}, tertiaryColor), { dark: (tertiaryColor === null || tertiaryColor === void 0 ? void 0 : tertiaryColor.dark) ? tertiaryColor === null || tertiaryColor === void 0 ? void 0 : tertiaryColor.dark : (tertiaryColor === null || tertiaryColor === void 0 ? void 0 : tertiaryColor.main) ? styles_1.darken(tertiaryColor === null || tertiaryColor === void 0 ? void 0 : tertiaryColor.main, 0.1)
775
+ : null }),
776
+ grey: {
777
+ '10': ((_129 = (_128 = params.palette) === null || _128 === void 0 ? void 0 : _128.grey) === null || _129 === void 0 ? void 0 : _129[10]) || ((_131 = (_130 = DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _130 === void 0 ? void 0 : _130.grey) === null || _131 === void 0 ? void 0 : _131[10]),
778
+ '20': grey20,
779
+ '30': grey30,
780
+ '40': ((_133 = (_132 = params.palette) === null || _132 === void 0 ? void 0 : _132.grey) === null || _133 === void 0 ? void 0 : _133[40]) || ((_135 = (_134 = DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _134 === void 0 ? void 0 : _134.grey) === null || _135 === void 0 ? void 0 : _135[40]),
781
+ '50': grey50,
782
+ '70': grey70,
783
+ '100': ((_137 = (_136 = params.palette) === null || _136 === void 0 ? void 0 : _136.grey) === null || _137 === void 0 ? void 0 : _137[100]) || ((_139 = (_138 = DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _138 === void 0 ? void 0 : _138.grey) === null || _139 === void 0 ? void 0 : _139[100]),
784
+ '200': ((_141 = (_140 = params.palette) === null || _140 === void 0 ? void 0 : _140.grey) === null || _141 === void 0 ? void 0 : _141[200]) || ((_143 = (_142 = DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _142 === void 0 ? void 0 : _142.grey) === null || _143 === void 0 ? void 0 : _143[200]),
785
+ '300': ((_145 = (_144 = params.palette) === null || _144 === void 0 ? void 0 : _144.grey) === null || _145 === void 0 ? void 0 : _145[300]) || ((_147 = (_146 = DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _146 === void 0 ? void 0 : _146.grey) === null || _147 === void 0 ? void 0 : _147[300]),
786
+ '400': ((_149 = (_148 = params.palette) === null || _148 === void 0 ? void 0 : _148.grey) === null || _149 === void 0 ? void 0 : _149[400]) || ((_151 = (_150 = DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _150 === void 0 ? void 0 : _150.grey) === null || _151 === void 0 ? void 0 : _151[400]),
787
+ '500': ((_153 = (_152 = params.palette) === null || _152 === void 0 ? void 0 : _152.grey) === null || _153 === void 0 ? void 0 : _153[500]) || ((_155 = (_154 = DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _154 === void 0 ? void 0 : _154.grey) === null || _155 === void 0 ? void 0 : _155[500]),
788
+ '600': ((_157 = (_156 = params.palette) === null || _156 === void 0 ? void 0 : _156.grey) === null || _157 === void 0 ? void 0 : _157[600]) || ((_159 = (_158 = DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _158 === void 0 ? void 0 : _158.grey) === null || _159 === void 0 ? void 0 : _159[600]),
789
+ '700': ((_161 = (_160 = params.palette) === null || _160 === void 0 ? void 0 : _160.grey) === null || _161 === void 0 ? void 0 : _161[700]) || ((_163 = (_162 = DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _162 === void 0 ? void 0 : _162.grey) === null || _163 === void 0 ? void 0 : _163[700]),
790
+ '800': ((_165 = (_164 = params.palette) === null || _164 === void 0 ? void 0 : _164.grey) === null || _165 === void 0 ? void 0 : _165[800]) || ((_167 = (_166 = DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _166 === void 0 ? void 0 : _166.grey) === null || _167 === void 0 ? void 0 : _167[800]),
791
+ '900': ((_169 = (_168 = params.palette) === null || _168 === void 0 ? void 0 : _168.grey) === null || _169 === void 0 ? void 0 : _169[900]) || ((_171 = (_170 = DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _170 === void 0 ? void 0 : _170.grey) === null || _171 === void 0 ? void 0 : _171[900]),
792
+ A100: ((_173 = (_172 = params.palette) === null || _172 === void 0 ? void 0 : _172.grey) === null || _173 === void 0 ? void 0 : _173.A100) || ((_175 = (_174 = DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _174 === void 0 ? void 0 : _174.grey) === null || _175 === void 0 ? void 0 : _175.A100),
793
+ A200: ((_177 = (_176 = params.palette) === null || _176 === void 0 ? void 0 : _176.grey) === null || _177 === void 0 ? void 0 : _177.A200) || ((_179 = (_178 = DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _178 === void 0 ? void 0 : _178.grey) === null || _179 === void 0 ? void 0 : _179.A200),
794
+ A400: ((_181 = (_180 = params.palette) === null || _180 === void 0 ? void 0 : _180.grey) === null || _181 === void 0 ? void 0 : _181.A400) || ((_183 = (_182 = DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _182 === void 0 ? void 0 : _182.grey) === null || _183 === void 0 ? void 0 : _183.A400),
795
+ A700: ((_185 = (_184 = params.palette) === null || _184 === void 0 ? void 0 : _184.grey) === null || _185 === void 0 ? void 0 : _185.A700) || ((_187 = (_186 = DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _186 === void 0 ? void 0 : _186.grey) === null || _187 === void 0 ? void 0 : _187.A700)
796
+ },
797
+ action: {
798
+ hover: actionHoverColor,
799
+ selected: ((_189 = (_188 = params.palette) === null || _188 === void 0 ? void 0 : _188.action) === null || _189 === void 0 ? void 0 : _189.selected) || ((_191 = (_190 = DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _190 === void 0 ? void 0 : _190.action) === null || _191 === void 0 ? void 0 : _191.selected),
800
+ disabled: ((_193 = (_192 = params.palette) === null || _192 === void 0 ? void 0 : _192.action) === null || _193 === void 0 ? void 0 : _193.disabled) || ((_195 = (_194 = DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _194 === void 0 ? void 0 : _194.action) === null || _195 === void 0 ? void 0 : _195.disabled),
801
+ active: ((_197 = (_196 = params.palette) === null || _196 === void 0 ? void 0 : _196.action) === null || _197 === void 0 ? void 0 : _197.active) || ((_199 = (_198 = DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _198 === void 0 ? void 0 : _198.action) === null || _199 === void 0 ? void 0 : _199.active),
802
+ focus: ((_201 = (_200 = params.palette) === null || _200 === void 0 ? void 0 : _200.action) === null || _201 === void 0 ? void 0 : _201.focus) || ((_203 = (_202 = DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _202 === void 0 ? void 0 : _202.action) === null || _203 === void 0 ? void 0 : _203.focus)
803
+ },
804
+ background: ((_204 = params.palette) === null || _204 === void 0 ? void 0 : _204.background) || ((_205 = DefaultEpilotTheme_1.DefaultEpilotTheme.palette) === null || _205 === void 0 ? void 0 : _205.background),
805
+ text: tslib_1.__assign({}, textPalette),
806
+ divider: dividerColor
807
+ },
808
+ overrides: overrides,
809
+ shape: {
810
+ borderRadius: borderRadius
811
+ },
812
+ // DEFAULT PROPS
813
+ props: tslib_1.__assign({ MuiInputLabel: {
814
+ shrink: true
815
+ }, MuiButtonGroup: tslib_1.__assign({ disableRipple: disableRipple }, (_206 = params.muiProps) === null || _206 === void 0 ? void 0 : _206.MuiButtonGroup), MuiButton: {
816
+ disableElevation: true
817
+ }, MuiSwitch: {
818
+ color: 'primary'
819
+ }, MuiButtonBase: {
820
+ disableRipple: disableRipple
821
+ }, MuiRadio: tslib_1.__assign({ disableRipple: disableRipple }, (_207 = params.muiProps) === null || _207 === void 0 ? void 0 : _207.MuiRadio), MuiIconButton: tslib_1.__assign({ disableRipple: disableRipple }, (_208 = params.muiProps) === null || _208 === void 0 ? void 0 : _208.MuiIconButton), MuiList: tslib_1.__assign({ disablePadding: true }, (_209 = params.muiProps) === null || _209 === void 0 ? void 0 : _209.MuiList), MuiTooltip: tslib_1.__assign({ arrow: true }, (_210 = params.muiProps) === null || _210 === void 0 ? void 0 : _210.MuiTooltip), MuiFilledInput: {
822
+ disableUnderline: true
823
+ }, MuiTextField: {
824
+ variant: 'filled',
825
+ InputLabelProps: {
826
+ shrink: true
827
+ }
828
+ }, MuiSelect: {
829
+ MenuProps: {
830
+ anchorOrigin: {
831
+ vertical: 'bottom',
832
+ horizontal: 'left'
833
+ },
834
+ getContentAnchorEl: null,
835
+ style: {
836
+ marginTop: 4
837
+ }
838
+ }
839
+ }, MuiAppBar: {
840
+ color: 'primary'
841
+ } }, params.muiProps),
842
+ spacing: params.spacing || DefaultEpilotTheme_1.DefaultEpilotTheme.spacing,
843
+ breakpoints: tslib_1.__assign({}, params === null || params === void 0 ? void 0 : params.breakpoints)
844
+ };
845
+ }
846
+ exports.parseMuiTheme = parseMuiTheme;
847
847
  //# sourceMappingURL=mapping.js.map