@okta/odyssey-react-mui 1.13.3 → 1.13.5

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 (142) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/Accordion.js +11 -12
  3. package/dist/Accordion.js.map +1 -1
  4. package/dist/Autocomplete.js +63 -70
  5. package/dist/Autocomplete.js.map +1 -1
  6. package/dist/Badge.js +7 -8
  7. package/dist/Badge.js.map +1 -1
  8. package/dist/Banner.js +10 -11
  9. package/dist/Banner.js.map +1 -1
  10. package/dist/Box.js +16 -19
  11. package/dist/Box.js.map +1 -1
  12. package/dist/Breadcrumbs.js +12 -14
  13. package/dist/Breadcrumbs.js.map +1 -1
  14. package/dist/Button.js +20 -21
  15. package/dist/Button.js.map +1 -1
  16. package/dist/Callout.js +11 -12
  17. package/dist/Callout.js.map +1 -1
  18. package/dist/Checkbox.js +20 -21
  19. package/dist/Checkbox.js.map +1 -1
  20. package/dist/CheckboxGroup.js +27 -31
  21. package/dist/CheckboxGroup.js.map +1 -1
  22. package/dist/CircularProgress.js +10 -13
  23. package/dist/CircularProgress.js.map +1 -1
  24. package/dist/Dialog.js +11 -12
  25. package/dist/Dialog.js.map +1 -1
  26. package/dist/ErrorMessageList.js +3 -4
  27. package/dist/ErrorMessageList.js.map +1 -1
  28. package/dist/Field.js +16 -17
  29. package/dist/Field.js.map +1 -1
  30. package/dist/FieldError.js +7 -8
  31. package/dist/FieldError.js.map +1 -1
  32. package/dist/FieldHint.js +7 -8
  33. package/dist/FieldHint.js.map +1 -1
  34. package/dist/FieldLabel.js +9 -10
  35. package/dist/FieldLabel.js.map +1 -1
  36. package/dist/Fieldset.js +11 -12
  37. package/dist/Fieldset.js.map +1 -1
  38. package/dist/Form.js +16 -17
  39. package/dist/Form.js.map +1 -1
  40. package/dist/Link.js +13 -14
  41. package/dist/Link.js.map +1 -1
  42. package/dist/MenuButton.js +18 -19
  43. package/dist/MenuButton.js.map +1 -1
  44. package/dist/MenuItem.js +10 -11
  45. package/dist/MenuItem.js.map +1 -1
  46. package/dist/MuiPropsChild.js +4 -5
  47. package/dist/MuiPropsChild.js.map +1 -1
  48. package/dist/NativeSelect.js +49 -53
  49. package/dist/NativeSelect.js.map +1 -1
  50. package/dist/OdysseyCacheProvider.js +6 -7
  51. package/dist/OdysseyCacheProvider.js.map +1 -1
  52. package/dist/OdysseyProvider.js +26 -29
  53. package/dist/OdysseyProvider.js.map +1 -1
  54. package/dist/OdysseyThemeProvider.js +8 -9
  55. package/dist/OdysseyThemeProvider.js.map +1 -1
  56. package/dist/OdysseyTranslationProvider.js +5 -6
  57. package/dist/OdysseyTranslationProvider.js.map +1 -1
  58. package/dist/PasswordField.js +64 -68
  59. package/dist/PasswordField.js.map +1 -1
  60. package/dist/Radio.js +13 -14
  61. package/dist/Radio.js.map +1 -1
  62. package/dist/RadioGroup.js +34 -38
  63. package/dist/RadioGroup.js.map +1 -1
  64. package/dist/ScreenReaderText.js +9 -12
  65. package/dist/ScreenReaderText.js.map +1 -1
  66. package/dist/SearchField.js +56 -60
  67. package/dist/SearchField.js.map +1 -1
  68. package/dist/Select.js +50 -54
  69. package/dist/Select.js.map +1 -1
  70. package/dist/Status.js +6 -7
  71. package/dist/Status.js.map +1 -1
  72. package/dist/Tabs.js +14 -16
  73. package/dist/Tabs.js.map +1 -1
  74. package/dist/Tag.js +9 -10
  75. package/dist/Tag.js.map +1 -1
  76. package/dist/TagList.js +4 -5
  77. package/dist/TagList.js.map +1 -1
  78. package/dist/TextField.js +70 -74
  79. package/dist/TextField.js.map +1 -1
  80. package/dist/Toast.js +13 -14
  81. package/dist/Toast.js.map +1 -1
  82. package/dist/ToastStack.js +3 -4
  83. package/dist/ToastStack.js.map +1 -1
  84. package/dist/Tooltip.js +17 -20
  85. package/dist/Tooltip.js.map +1 -1
  86. package/dist/Typography.js +212 -243
  87. package/dist/Typography.js.map +1 -1
  88. package/dist/i18n.js +1 -2
  89. package/dist/i18n.js.map +1 -1
  90. package/dist/inputUtils.js +9 -11
  91. package/dist/inputUtils.js.map +1 -1
  92. package/dist/labs/DataFilters.js +18 -22
  93. package/dist/labs/DataFilters.js.map +1 -1
  94. package/dist/labs/DataTable.js +78 -92
  95. package/dist/labs/DataTable.js.map +1 -1
  96. package/dist/labs/DataTablePagination.js +9 -10
  97. package/dist/labs/DataTablePagination.js.map +1 -1
  98. package/dist/labs/DatePicker.js +10 -12
  99. package/dist/labs/DatePicker.js.map +1 -1
  100. package/dist/labs/GroupPicker.js +37 -44
  101. package/dist/labs/GroupPicker.js.map +1 -1
  102. package/dist/labs/PaginatedTable.js +23 -27
  103. package/dist/labs/PaginatedTable.js.map +1 -1
  104. package/dist/labs/StaticTable.js +17 -21
  105. package/dist/labs/StaticTable.js.map +1 -1
  106. package/dist/labs/Switch.js +25 -23
  107. package/dist/labs/Switch.js.map +1 -1
  108. package/dist/labs/VirtualizedAutocomplete.js +61 -68
  109. package/dist/labs/VirtualizedAutocomplete.js.map +1 -1
  110. package/dist/labs/datePickerTheme.js +266 -350
  111. package/dist/labs/datePickerTheme.js.map +1 -1
  112. package/dist/properties/ts/odyssey-react-mui.js +2 -0
  113. package/dist/properties/ts/odyssey-react-mui.js.map +1 -1
  114. package/dist/src/OdysseyTranslationProvider.d.ts +1 -1
  115. package/dist/src/OdysseyTranslationProvider.d.ts.map +1 -1
  116. package/dist/src/i18n.d.ts +1 -1
  117. package/dist/src/i18n.d.ts.map +1 -1
  118. package/dist/src/labs/Switch.d.ts.map +1 -1
  119. package/dist/src/properties/ts/odyssey-react-mui.d.ts +2 -0
  120. package/dist/src/properties/ts/odyssey-react-mui.d.ts.map +1 -1
  121. package/dist/theme/components.js +1104 -1198
  122. package/dist/theme/components.js.map +1 -1
  123. package/dist/theme/createOdysseyMuiTheme.js +22 -25
  124. package/dist/theme/createOdysseyMuiTheme.js.map +1 -1
  125. package/dist/theme/mixins.js +3 -4
  126. package/dist/theme/mixins.js.map +1 -1
  127. package/dist/theme/palette.js +3 -4
  128. package/dist/theme/palette.js.map +1 -1
  129. package/dist/theme/shape.js +3 -4
  130. package/dist/theme/shape.js.map +1 -1
  131. package/dist/theme/spacing.js +3 -4
  132. package/dist/theme/spacing.js.map +1 -1
  133. package/dist/theme/typography.js +3 -4
  134. package/dist/theme/typography.js.map +1 -1
  135. package/dist/tsconfig.production.tsbuildinfo +1 -1
  136. package/dist/useNormalizedKey.js +1 -4
  137. package/dist/useNormalizedKey.js.map +1 -1
  138. package/package.json +3 -3
  139. package/src/i18n.ts +1 -1
  140. package/src/labs/Switch.tsx +3 -1
  141. package/src/properties/odyssey-react-mui.properties +2 -0
  142. package/src/properties/ts/odyssey-react-mui.ts +1 -1
@@ -36,11 +36,10 @@ import { typographyClasses } from "@mui/material/Typography";
36
36
  import { CheckCircleFilledIcon, CheckIcon, ChevronDownIcon, CloseCircleFilledIcon, CloseIcon, DangerDiamondFilledIcon, InformationCircleFilledIcon, SubtractIcon, WarningFilledIcon } from "../icons.generated/index.js";
37
37
  import { jsx as _jsx } from "react/jsx-runtime";
38
38
  import { Fragment as _Fragment } from "react/jsx-runtime";
39
- export const components = _ref => {
40
- let {
41
- odysseyTokens,
42
- shadowDomElement
43
- } = _ref;
39
+ export const components = ({
40
+ odysseyTokens,
41
+ shadowDomElement
42
+ }) => {
44
43
  return {
45
44
  MuiAccordion: {
46
45
  styleOverrides: {
@@ -132,203 +131,188 @@ export const components = _ref => {
132
131
  }
133
132
  },
134
133
  styleOverrides: {
135
- root: _ref2 => {
136
- let {
137
- ownerState
138
- } = _ref2;
139
- return {
140
- padding: odysseyTokens.Spacing4,
141
- gap: odysseyTokens.Spacing4,
142
- color: odysseyTokens.TypographyColorBody,
143
- border: 0,
134
+ root: ({
135
+ ownerState
136
+ }) => ({
137
+ padding: odysseyTokens.Spacing4,
138
+ gap: odysseyTokens.Spacing4,
139
+ color: odysseyTokens.TypographyColorBody,
140
+ border: 0,
141
+ ...(ownerState.severity === "success" && {
142
+ backgroundColor: odysseyTokens.HueGreen100,
143
+ ...(ownerState.variant === "toast" && {
144
+ backgroundColor: odysseyTokens.HueGreen100.concat(odysseyTokens.PaletteAlphaSemi)
145
+ })
146
+ }),
147
+ ...(ownerState.severity === "info" && {
148
+ backgroundColor: odysseyTokens.HueBlue100,
149
+ ...(ownerState.variant === "toast" && {
150
+ backgroundColor: odysseyTokens.HueBlue100.concat(odysseyTokens.PaletteAlphaSemi)
151
+ })
152
+ }),
153
+ ...(ownerState.severity === "error" && {
154
+ backgroundColor: odysseyTokens.HueRed100,
155
+ ...(ownerState.variant === "toast" && {
156
+ backgroundColor: odysseyTokens.HueRed100.concat(odysseyTokens.PaletteAlphaSemi)
157
+ })
158
+ }),
159
+ ...(ownerState.severity === "warning" && {
160
+ backgroundColor: odysseyTokens.HueYellow100,
161
+ ...(ownerState.variant === "toast" && {
162
+ backgroundColor: odysseyTokens.HueYellow100.concat(odysseyTokens.PaletteAlphaSemi)
163
+ })
164
+ }),
165
+ [`& .${alertTitleClasses.root}`]: {
144
166
  ...(ownerState.severity === "success" && {
145
- backgroundColor: odysseyTokens.HueGreen100,
146
- ...(ownerState.variant === "toast" && {
147
- backgroundColor: odysseyTokens.HueGreen100.concat(odysseyTokens.PaletteAlphaSemi)
148
- })
167
+ color: odysseyTokens.PaletteSuccessHeading
149
168
  }),
150
169
  ...(ownerState.severity === "info" && {
151
- backgroundColor: odysseyTokens.HueBlue100,
152
- ...(ownerState.variant === "toast" && {
153
- backgroundColor: odysseyTokens.HueBlue100.concat(odysseyTokens.PaletteAlphaSemi)
154
- })
170
+ color: odysseyTokens.PalettePrimaryHeading
155
171
  }),
156
172
  ...(ownerState.severity === "error" && {
157
- backgroundColor: odysseyTokens.HueRed100,
158
- ...(ownerState.variant === "toast" && {
159
- backgroundColor: odysseyTokens.HueRed100.concat(odysseyTokens.PaletteAlphaSemi)
160
- })
173
+ color: odysseyTokens.PaletteDangerHeading
161
174
  }),
162
175
  ...(ownerState.severity === "warning" && {
163
- backgroundColor: odysseyTokens.HueYellow100,
164
- ...(ownerState.variant === "toast" && {
165
- backgroundColor: odysseyTokens.HueYellow100.concat(odysseyTokens.PaletteAlphaSemi)
166
- })
176
+ color: odysseyTokens.PaletteWarningHeading
167
177
  }),
168
- [`& .${alertTitleClasses.root}`]: {
169
- ...(ownerState.severity === "success" && {
170
- color: odysseyTokens.PaletteSuccessHeading
171
- }),
172
- ...(ownerState.severity === "info" && {
173
- color: odysseyTokens.PalettePrimaryHeading
174
- }),
175
- ...(ownerState.severity === "error" && {
176
- color: odysseyTokens.PaletteDangerHeading
177
- }),
178
- ...(ownerState.severity === "warning" && {
179
- color: odysseyTokens.PaletteWarningHeading
180
- }),
181
- ...(ownerState.variant === "banner" && {
182
- marginBlockEnd: 0
183
- }),
184
- ...(ownerState.variant === "callout" && {
185
- fontSize: odysseyTokens.TypographySizeHeading5,
186
- lineHeight: odysseyTokens.TypographyLineHeightHeading5
187
- })
188
- },
189
178
  ...(ownerState.variant === "banner" && {
190
- position: "relative",
191
- justifyContent: "center",
192
- alignItems: "center",
193
- borderRadius: 0,
194
- ...(ownerState.onClose !== undefined && {
195
- paddingInline: odysseyTokens.Spacing6
196
- })
179
+ marginBlockEnd: 0
197
180
  }),
198
181
  ...(ownerState.variant === "callout" && {
199
- borderRadius: odysseyTokens.BorderRadiusMain,
200
- padding: odysseyTokens.Spacing5,
201
- "&:not(:last-child)": {
202
- marginBottom: odysseyTokens.Spacing6
203
- }
204
- }),
205
- ...(ownerState.variant === "toast" && {
206
- maxWidth: odysseyTokens.TypographyLineLengthMax,
207
- borderRadius: odysseyTokens.BorderRadiusOuter,
208
- position: "relative",
209
- paddingInlineStart: odysseyTokens.Spacing5,
210
- paddingInlineEnd: odysseyTokens.Spacing4,
211
- paddingBlock: odysseyTokens.Spacing3,
212
- alignItems: "flex-start",
213
- backdropFilter: "blur(10px)"
182
+ fontSize: odysseyTokens.TypographySizeHeading5,
183
+ lineHeight: odysseyTokens.TypographyLineHeightHeading5
214
184
  })
215
- };
216
- },
217
- action: _ref3 => {
218
- let {
219
- ownerState
220
- } = _ref3;
221
- return {
222
- ...(ownerState.variant === "banner" && {
223
- padding: 0,
224
- marginInlineEnd: 0,
225
- insetBlockStart: "50%",
226
- insetInlineEnd: odysseyTokens.Spacing2,
227
- position: "absolute",
228
- transform: "translateY(-50%)"
229
- }),
230
- ...(ownerState.variant === "toast" && {
231
- padding: 0,
232
- marginInline: 0,
233
- marginBlock: 1,
234
- [`& .${buttonClasses.root}`]: {
235
- "&:hover, &:focus": {
236
- backgroundColor: odysseyTokens.PaletteNeutralDark.concat("11")
237
- },
238
- "&:active": {
239
- backgroundColor: odysseyTokens.PaletteNeutralDark.concat("22")
240
- }
241
- }
185
+ },
186
+ ...(ownerState.variant === "banner" && {
187
+ position: "relative",
188
+ justifyContent: "center",
189
+ alignItems: "center",
190
+ borderRadius: 0,
191
+ ...(ownerState.onClose !== undefined && {
192
+ paddingInline: odysseyTokens.Spacing6
242
193
  })
243
- };
244
- },
245
- icon: _ref4 => {
246
- let {
247
- ownerState
248
- } = _ref4;
249
- return {
250
- marginInlineEnd: 0,
251
- padding: 0,
252
- height: `calc(${odysseyTokens.TypographySizeHeading6} * ${odysseyTokens.TypographyLineHeightHeading6})`,
253
- opacity: 1,
254
- ...(ownerState.severity === "info" && {
255
- color: odysseyTokens.PalettePrimaryMain
256
- }),
257
- ...(ownerState.severity === "error" && {
258
- color: odysseyTokens.PaletteDangerMain
259
- }),
260
- ...(ownerState.severity === "success" && {
261
- color: odysseyTokens.PaletteSuccessMain
262
- }),
263
- ...(ownerState.severity === "warning" && {
264
- color: odysseyTokens.HueYellow400
265
- }),
266
- ...(ownerState.variant === "toast" && {
267
- marginBlock: odysseyTokens.Spacing2
268
- }),
269
- ...(ownerState.variant === "callout" && {
270
- marginBlock: 1.5
271
- }),
272
- [`& .${svgIconClasses.root}`]: {
273
- alignSelf: "center",
274
- fontSize: odysseyTokens.TypographySizeHeading6
194
+ }),
195
+ ...(ownerState.variant === "callout" && {
196
+ borderRadius: odysseyTokens.BorderRadiusMain,
197
+ padding: odysseyTokens.Spacing5,
198
+ "&:not(:last-child)": {
199
+ marginBottom: odysseyTokens.Spacing6
275
200
  }
276
- };
277
- },
278
- message: _ref5 => {
279
- let {
280
- ownerState
281
- } = _ref5;
282
- return {
201
+ }),
202
+ ...(ownerState.variant === "toast" && {
203
+ maxWidth: odysseyTokens.TypographyLineLengthMax,
204
+ borderRadius: odysseyTokens.BorderRadiusOuter,
205
+ position: "relative",
206
+ paddingInlineStart: odysseyTokens.Spacing5,
207
+ paddingInlineEnd: odysseyTokens.Spacing4,
208
+ paddingBlock: odysseyTokens.Spacing3,
209
+ alignItems: "flex-start",
210
+ backdropFilter: "blur(10px)"
211
+ })
212
+ }),
213
+ action: ({
214
+ ownerState
215
+ }) => ({
216
+ ...(ownerState.variant === "banner" && {
283
217
  padding: 0,
284
- overflow: "visible",
285
- ...(ownerState.variant === "banner" && {
286
- display: "flex",
287
- justifyContent: "space-between",
288
- gap: odysseyTokens.Spacing4
289
- }),
290
- ...(ownerState.variant === "toast" && {
291
- flexGrow: 1,
292
- marginBlock: odysseyTokens.Spacing2
293
- }),
294
- [`& .${linkClasses.root}`]: {
295
- display: "inline-block",
296
- marginTop: odysseyTokens.Spacing5
218
+ marginInlineEnd: 0,
219
+ insetBlockStart: "50%",
220
+ insetInlineEnd: odysseyTokens.Spacing2,
221
+ position: "absolute",
222
+ transform: "translateY(-50%)"
223
+ }),
224
+ ...(ownerState.variant === "toast" && {
225
+ padding: 0,
226
+ marginInline: 0,
227
+ marginBlock: 1,
228
+ [`& .${buttonClasses.root}`]: {
229
+ "&:hover, &:focus": {
230
+ backgroundColor: odysseyTokens.PaletteNeutralDark.concat("11")
231
+ },
232
+ "&:active": {
233
+ backgroundColor: odysseyTokens.PaletteNeutralDark.concat("22")
234
+ }
297
235
  }
298
- };
299
- }
236
+ })
237
+ }),
238
+ icon: ({
239
+ ownerState
240
+ }) => ({
241
+ marginInlineEnd: 0,
242
+ padding: 0,
243
+ height: `calc(${odysseyTokens.TypographySizeHeading6} * ${odysseyTokens.TypographyLineHeightHeading6})`,
244
+ opacity: 1,
245
+ ...(ownerState.severity === "info" && {
246
+ color: odysseyTokens.PalettePrimaryMain
247
+ }),
248
+ ...(ownerState.severity === "error" && {
249
+ color: odysseyTokens.PaletteDangerMain
250
+ }),
251
+ ...(ownerState.severity === "success" && {
252
+ color: odysseyTokens.PaletteSuccessMain
253
+ }),
254
+ ...(ownerState.severity === "warning" && {
255
+ color: odysseyTokens.HueYellow400
256
+ }),
257
+ ...(ownerState.variant === "toast" && {
258
+ marginBlock: odysseyTokens.Spacing2
259
+ }),
260
+ ...(ownerState.variant === "callout" && {
261
+ marginBlock: 1.5
262
+ }),
263
+ [`& .${svgIconClasses.root}`]: {
264
+ alignSelf: "center",
265
+ fontSize: odysseyTokens.TypographySizeHeading6
266
+ }
267
+ }),
268
+ message: ({
269
+ ownerState
270
+ }) => ({
271
+ padding: 0,
272
+ overflow: "visible",
273
+ ...(ownerState.variant === "banner" && {
274
+ display: "flex",
275
+ justifyContent: "space-between",
276
+ gap: odysseyTokens.Spacing4
277
+ }),
278
+ ...(ownerState.variant === "toast" && {
279
+ flexGrow: 1,
280
+ marginBlock: odysseyTokens.Spacing2
281
+ }),
282
+ [`& .${linkClasses.root}`]: {
283
+ display: "inline-block",
284
+ marginTop: odysseyTokens.Spacing5
285
+ }
286
+ })
300
287
  }
301
288
  },
302
289
  MuiAlertTitle: {
303
290
  styleOverrides: {
304
- root: _ref6 => {
305
- let {
306
- ownerState
307
- } = _ref6;
308
- return {
309
- marginBlockStart: 0,
310
- marginBlockEnd: odysseyTokens.Spacing2,
311
- lineHeight: odysseyTokens.TypographyLineHeightHeading6,
312
- fontSize: odysseyTokens.TypographySizeHeading6,
313
- fontWeight: odysseyTokens.TypographyWeightHeading,
314
- fontFamily: odysseyTokens.TypographyFamilyHeading,
315
- ...(ownerState.severity === "info" && {
316
- color: odysseyTokens.PalettePrimaryDark
317
- }),
318
- ...(ownerState.severity === "error" && {
319
- color: odysseyTokens.PaletteDangerDarker
320
- }),
321
- ...(ownerState.severity === "success" && {
322
- color: odysseyTokens.PaletteSuccessDarker
323
- }),
324
- ...(ownerState.severity === "warning" && {
325
- color: odysseyTokens.PaletteWarningDarker
326
- }),
327
- [`&:last-child`]: {
328
- marginBlockEnd: 0
329
- }
330
- };
331
- }
291
+ root: ({
292
+ ownerState
293
+ }) => ({
294
+ marginBlockStart: 0,
295
+ marginBlockEnd: odysseyTokens.Spacing2,
296
+ lineHeight: odysseyTokens.TypographyLineHeightHeading6,
297
+ fontSize: odysseyTokens.TypographySizeHeading6,
298
+ fontWeight: odysseyTokens.TypographyWeightHeading,
299
+ fontFamily: odysseyTokens.TypographyFamilyHeading,
300
+ ...(ownerState.severity === "info" && {
301
+ color: odysseyTokens.PalettePrimaryDark
302
+ }),
303
+ ...(ownerState.severity === "error" && {
304
+ color: odysseyTokens.PaletteDangerDarker
305
+ }),
306
+ ...(ownerState.severity === "success" && {
307
+ color: odysseyTokens.PaletteSuccessDarker
308
+ }),
309
+ ...(ownerState.severity === "warning" && {
310
+ color: odysseyTokens.PaletteWarningDarker
311
+ }),
312
+ [`&:last-child`]: {
313
+ marginBlockEnd: 0
314
+ }
315
+ })
332
316
  }
333
317
  },
334
318
  MuiAutocomplete: {
@@ -361,29 +345,26 @@ export const components = _ref => {
361
345
  marginRight: "unset",
362
346
  padding: odysseyTokens.Spacing1
363
347
  },
364
- endAdornment: _ref7 => {
365
- let {
366
- ownerState
367
- } = _ref7;
368
- return {
369
- display: "flex",
370
- gap: odysseyTokens.Spacing1,
371
- top: "unset",
372
- right: "unset",
373
- insetBlockStart: odysseyTokens.Spacing2,
374
- insetInlineEnd: odysseyTokens.Spacing2,
375
- maxHeight: "unset",
376
- alignItems: "center",
377
- whiteSpace: "nowrap",
378
- color: odysseyTokens.TypographyColorSubordinate,
379
- ...(ownerState.disabled === true && {
380
- display: "none"
381
- }),
382
- ...(ownerState.readOnly === true && {
383
- display: "none"
384
- })
385
- };
386
- },
348
+ endAdornment: ({
349
+ ownerState
350
+ }) => ({
351
+ display: "flex",
352
+ gap: odysseyTokens.Spacing1,
353
+ top: "unset",
354
+ right: "unset",
355
+ insetBlockStart: odysseyTokens.Spacing2,
356
+ insetInlineEnd: odysseyTokens.Spacing2,
357
+ maxHeight: "unset",
358
+ alignItems: "center",
359
+ whiteSpace: "nowrap",
360
+ color: odysseyTokens.TypographyColorSubordinate,
361
+ ...(ownerState.disabled === true && {
362
+ display: "none"
363
+ }),
364
+ ...(ownerState.readOnly === true && {
365
+ display: "none"
366
+ })
367
+ }),
387
368
  listbox: {
388
369
  borderWidth: odysseyTokens.BorderWidthMain,
389
370
  borderStyle: odysseyTokens.BorderStyleMain,
@@ -426,34 +407,28 @@ export const components = _ref => {
426
407
  background: "transparent",
427
408
  paddingBlockStart: odysseyTokens.Spacing1
428
409
  },
429
- inputRoot: _ref8 => {
430
- let {
431
- ownerState
432
- } = _ref8;
433
- return {
434
- ...(ownerState.readOnly === true && {
435
- backgroundColor: odysseyTokens.HueNeutral50,
436
- [`&:not(:hover)`]: {
437
- borderColor: "transparent"
438
- }
439
- })
440
- };
441
- }
410
+ inputRoot: ({
411
+ ownerState
412
+ }) => ({
413
+ ...(ownerState.readOnly === true && {
414
+ backgroundColor: odysseyTokens.HueNeutral50,
415
+ [`&:not(:hover)`]: {
416
+ borderColor: "transparent"
417
+ }
418
+ })
419
+ })
442
420
  }
443
421
  },
444
422
  MuiBackdrop: {
445
423
  styleOverrides: {
446
- root: _ref9 => {
447
- let {
448
- ownerState
449
- } = _ref9;
450
- return {
451
- backgroundColor: "rgba(29,29,33,0.75)",
452
- ...(ownerState.invisible === true && {
453
- backgroundColor: "transparent"
454
- })
455
- };
456
- }
424
+ root: ({
425
+ ownerState
426
+ }) => ({
427
+ backgroundColor: "rgba(29,29,33,0.75)",
428
+ ...(ownerState.invisible === true && {
429
+ backgroundColor: "transparent"
430
+ })
431
+ })
457
432
  }
458
433
  },
459
434
  MuiBreadcrumbs: {
@@ -503,181 +478,172 @@ export const components = _ref => {
503
478
  disableElevation: true
504
479
  },
505
480
  styleOverrides: {
506
- root: _ref10 => {
507
- let {
508
- ownerState
509
- } = _ref10;
510
- return {
511
- minWidth: "unset",
512
- paddingBlock: odysseyTokens.Spacing3,
513
- paddingInline: odysseyTokens.Spacing4,
514
- display: "inline-flex",
515
- position: "relative",
516
- marginBlock: "0",
517
- marginInline: "0",
518
- transitionProperty: "color, background-color, border-color, box-shadow",
519
- transitionDuration: "100ms",
520
- transitionTimingFunction: "linear",
521
- borderWidth: odysseyTokens.BorderWidthMain,
522
- borderStyle: odysseyTokens.BorderStyleMain,
523
- borderRadius: odysseyTokens.BorderRadiusMain,
524
- borderColor: "transparent",
525
- fontSize: odysseyTokens.TypographySizeBody,
526
- fontWeight: odysseyTokens.TypographyWeightBodyBold,
527
- fontFamily: odysseyTokens.TypographyFamilyButton,
528
- lineHeight: odysseyTokens.TypographyLineHeightUi,
529
- whiteSpace: "nowrap",
530
- [`.${buttonClasses.root} + &`]: {
531
- marginInlineStart: odysseyTokens.Spacing2
481
+ root: ({
482
+ ownerState
483
+ }) => ({
484
+ minWidth: "unset",
485
+ paddingBlock: odysseyTokens.Spacing3,
486
+ paddingInline: odysseyTokens.Spacing4,
487
+ display: "inline-flex",
488
+ position: "relative",
489
+ marginBlock: "0",
490
+ marginInline: "0",
491
+ transitionProperty: "color, background-color, border-color, box-shadow",
492
+ transitionDuration: "100ms",
493
+ transitionTimingFunction: "linear",
494
+ borderWidth: odysseyTokens.BorderWidthMain,
495
+ borderStyle: odysseyTokens.BorderStyleMain,
496
+ borderRadius: odysseyTokens.BorderRadiusMain,
497
+ borderColor: "transparent",
498
+ fontSize: odysseyTokens.TypographySizeBody,
499
+ fontWeight: odysseyTokens.TypographyWeightBodyBold,
500
+ fontFamily: odysseyTokens.TypographyFamilyButton,
501
+ lineHeight: odysseyTokens.TypographyLineHeightUi,
502
+ whiteSpace: "nowrap",
503
+ [`.${buttonClasses.root} + &`]: {
504
+ marginInlineStart: odysseyTokens.Spacing2
505
+ },
506
+ "&:focus-visible": {
507
+ boxShadow: `0 0 0 2px ${odysseyTokens.HueNeutralWhite}, 0 0 0 4px ${odysseyTokens.PalettePrimaryMain}`,
508
+ outline: "2px solid transparent",
509
+ outlineOffset: "1px"
510
+ },
511
+ "&:disabled": {
512
+ pointerEvents: "none"
513
+ },
514
+ [`.${buttonClasses.startIcon}, .${buttonClasses.endIcon}`]: {
515
+ "& > *:nth-of-type(1)": {
516
+ fontSize: `${odysseyTokens.TypographyLineHeightUi}em`
517
+ }
518
+ },
519
+ ...(ownerState.variant === "primary" && {
520
+ color: odysseyTokens.HueNeutralWhite,
521
+ backgroundColor: odysseyTokens.PalettePrimaryMain,
522
+ "&:hover": {
523
+ backgroundColor: odysseyTokens.PalettePrimaryDark
532
524
  },
533
- "&:focus-visible": {
534
- boxShadow: `0 0 0 2px ${odysseyTokens.HueNeutralWhite}, 0 0 0 4px ${odysseyTokens.PalettePrimaryMain}`,
535
- outline: "2px solid transparent",
536
- outlineOffset: "1px"
525
+ "&:active": {
526
+ backgroundColor: odysseyTokens.PalettePrimaryDarker
537
527
  },
538
528
  "&:disabled": {
539
- pointerEvents: "none"
540
- },
541
- [`.${buttonClasses.startIcon}, .${buttonClasses.endIcon}`]: {
542
- "& > *:nth-of-type(1)": {
543
- fontSize: `${odysseyTokens.TypographyLineHeightUi}em`
544
- }
529
+ color: odysseyTokens.PalettePrimaryLight,
530
+ backgroundColor: odysseyTokens.HueBlue100
531
+ }
532
+ }),
533
+ ...(ownerState.variant === "secondary" && {
534
+ backgroundColor: "transparent",
535
+ borderColor: odysseyTokens.HueNeutral300,
536
+ color: odysseyTokens.TypographyColorBody,
537
+ "&:hover": {
538
+ backgroundColor: odysseyTokens.HueNeutral100
545
539
  },
546
- ...(ownerState.variant === "primary" && {
547
- color: odysseyTokens.HueNeutralWhite,
548
- backgroundColor: odysseyTokens.PalettePrimaryMain,
549
- "&:hover": {
550
- backgroundColor: odysseyTokens.PalettePrimaryDark
551
- },
552
- "&:active": {
553
- backgroundColor: odysseyTokens.PalettePrimaryDarker
554
- },
555
- "&:disabled": {
556
- color: odysseyTokens.PalettePrimaryLight,
557
- backgroundColor: odysseyTokens.HueBlue100
558
- }
559
- }),
560
- ...(ownerState.variant === "secondary" && {
540
+ "&:active": {
561
541
  backgroundColor: "transparent",
562
- borderColor: odysseyTokens.HueNeutral300,
563
- color: odysseyTokens.TypographyColorBody,
564
- "&:hover": {
565
- backgroundColor: odysseyTokens.HueNeutral100
566
- },
567
- "&:active": {
568
- backgroundColor: "transparent",
569
- borderColor: odysseyTokens.BorderColorPrimaryControl,
570
- color: odysseyTokens.TypographyColorAction
571
- },
572
- "&:disabled": {
573
- backgroundColor: odysseyTokens.HueNeutral100,
574
- borderColor: "transparent",
575
- color: odysseyTokens.TypographyColorDisabled
576
- }
577
- }),
578
- ...(ownerState.variant === "tertiary" && {
542
+ borderColor: odysseyTokens.BorderColorPrimaryControl,
543
+ color: odysseyTokens.TypographyColorAction
544
+ },
545
+ "&:disabled": {
579
546
  backgroundColor: odysseyTokens.HueNeutral100,
580
- color: odysseyTokens.HueNeutral700,
581
- "&:hover": {
582
- backgroundColor: odysseyTokens.HueNeutral200,
583
- color: odysseyTokens.HueNeutral800
584
- },
585
- "&:active": {
586
- backgroundColor: odysseyTokens.HueNeutral300,
587
- color: odysseyTokens.HueNeutral800
588
- },
589
- "&:disabled": {
590
- backgroundColor: odysseyTokens.HueNeutral100,
591
- color: odysseyTokens.TypographyColorDisabled
592
- }
593
- }),
594
- ...(ownerState.variant === "danger" && {
595
- backgroundColor: odysseyTokens.PaletteDangerMain,
596
- color: odysseyTokens.HueNeutralWhite,
597
- "&:hover": {
598
- backgroundColor: odysseyTokens.PaletteDangerDark
599
- },
600
- "&:focus-visible": {
601
- boxShadow: `0 0 0 2px ${odysseyTokens.HueNeutralWhite}, 0 0 0 4px ${odysseyTokens.PaletteDangerMain}`
602
- },
603
- "&:active": {
604
- backgroundColor: odysseyTokens.PaletteDangerDarker
605
- },
606
- "&:disabled": {
607
- color: odysseyTokens.PaletteDangerLight,
608
- backgroundColor: odysseyTokens.HueRed100
609
- }
610
- }),
611
- ...(ownerState.variant === "floating" && {
547
+ borderColor: "transparent",
548
+ color: odysseyTokens.TypographyColorDisabled
549
+ }
550
+ }),
551
+ ...(ownerState.variant === "tertiary" && {
552
+ backgroundColor: odysseyTokens.HueNeutral100,
553
+ color: odysseyTokens.HueNeutral700,
554
+ "&:hover": {
555
+ backgroundColor: odysseyTokens.HueNeutral200,
556
+ color: odysseyTokens.HueNeutral800
557
+ },
558
+ "&:active": {
559
+ backgroundColor: odysseyTokens.HueNeutral300,
560
+ color: odysseyTokens.HueNeutral800
561
+ },
562
+ "&:disabled": {
563
+ backgroundColor: odysseyTokens.HueNeutral100,
564
+ color: odysseyTokens.TypographyColorDisabled
565
+ }
566
+ }),
567
+ ...(ownerState.variant === "danger" && {
568
+ backgroundColor: odysseyTokens.PaletteDangerMain,
569
+ color: odysseyTokens.HueNeutralWhite,
570
+ "&:hover": {
571
+ backgroundColor: odysseyTokens.PaletteDangerDark
572
+ },
573
+ "&:focus-visible": {
574
+ boxShadow: `0 0 0 2px ${odysseyTokens.HueNeutralWhite}, 0 0 0 4px ${odysseyTokens.PaletteDangerMain}`
575
+ },
576
+ "&:active": {
577
+ backgroundColor: odysseyTokens.PaletteDangerDarker
578
+ },
579
+ "&:disabled": {
580
+ color: odysseyTokens.PaletteDangerLight,
581
+ backgroundColor: odysseyTokens.HueRed100
582
+ }
583
+ }),
584
+ ...(ownerState.variant === "floating" && {
585
+ backgroundColor: "transparent",
586
+ color: odysseyTokens.TypographyColorBody,
587
+ "&:hover": {
588
+ backgroundColor: odysseyTokens.HueNeutral100
589
+ },
590
+ "&:active": {
591
+ backgroundColor: odysseyTokens.HueNeutral200
592
+ },
593
+ "&:disabled": {
612
594
  backgroundColor: "transparent",
613
- color: odysseyTokens.TypographyColorBody,
614
- "&:hover": {
615
- backgroundColor: odysseyTokens.HueNeutral100
616
- },
617
- "&:active": {
618
- backgroundColor: odysseyTokens.HueNeutral200
619
- },
620
- "&:disabled": {
621
- backgroundColor: "transparent",
622
- color: odysseyTokens.TypographyColorDisabled
623
- }
624
- }),
595
+ color: odysseyTokens.TypographyColorDisabled
596
+ }
597
+ }),
598
+ ...(ownerState.size === "small" && {
599
+ paddingBlock: odysseyTokens.Spacing2,
600
+ paddingInline: odysseyTokens.Spacing3,
601
+ fontSize: odysseyTokens.TypographySizeBody
602
+ }),
603
+ ...(ownerState.size === "large" && {
604
+ paddingBlock: odysseyTokens.Spacing4,
605
+ paddingInline: odysseyTokens.Spacing4
606
+ }),
607
+ ...(ownerState.fullWidth === true && {
608
+ display: "block",
609
+ width: "100%",
610
+ marginBlock: "0",
611
+ marginInline: "0",
612
+ "&:not(:last-child)": {
613
+ marginBlockEnd: odysseyTokens.Spacing4
614
+ }
615
+ }),
616
+ ...(ownerState.children === "" && {
617
+ minWidth: "auto",
618
+ padding: odysseyTokens.Spacing3,
619
+ [`.${buttonClasses.endIcon}, .${buttonClasses.startIcon}`]: {
620
+ margin: "0"
621
+ },
625
622
  ...(ownerState.size === "small" && {
626
- paddingBlock: odysseyTokens.Spacing2,
627
- paddingInline: odysseyTokens.Spacing3,
628
- fontSize: odysseyTokens.TypographySizeBody
629
- }),
630
- ...(ownerState.size === "large" && {
631
- paddingBlock: odysseyTokens.Spacing4,
632
- paddingInline: odysseyTokens.Spacing4
633
- }),
634
- ...(ownerState.fullWidth === true && {
635
- display: "block",
636
- width: "100%",
637
- marginBlock: "0",
638
- marginInline: "0",
639
- "&:not(:last-child)": {
640
- marginBlockEnd: odysseyTokens.Spacing4
641
- }
642
- }),
643
- ...(ownerState.children === "" && {
644
- minWidth: "auto",
645
- padding: odysseyTokens.Spacing3,
646
- [`.${buttonClasses.endIcon}, .${buttonClasses.startIcon}`]: {
647
- margin: "0"
648
- },
649
- ...(ownerState.size === "small" && {
650
- padding: odysseyTokens.Spacing2
651
- })
652
- })
653
- };
654
- },
655
- endIcon: _ref11 => {
656
- let {
657
- ownerState
658
- } = _ref11;
659
- return {
660
- display: "inline-flex",
661
- margin: 0,
662
- marginInlineStart: odysseyTokens.Spacing2,
663
- ...(ownerState.children === undefined && {
664
- marginInlineStart: 0
665
- })
666
- };
667
- },
668
- startIcon: _ref12 => {
669
- let {
670
- ownerState
671
- } = _ref12;
672
- return {
673
- display: "inline-flex",
674
- margin: 0,
675
- marginInlineEnd: odysseyTokens.Spacing2,
676
- ...(ownerState.children === undefined && {
677
- marginInlineEnd: 0
623
+ padding: odysseyTokens.Spacing2
678
624
  })
679
- };
680
- }
625
+ })
626
+ }),
627
+ endIcon: ({
628
+ ownerState
629
+ }) => ({
630
+ display: "inline-flex",
631
+ margin: 0,
632
+ marginInlineStart: odysseyTokens.Spacing2,
633
+ ...(ownerState.children === undefined && {
634
+ marginInlineStart: 0
635
+ })
636
+ }),
637
+ startIcon: ({
638
+ ownerState
639
+ }) => ({
640
+ display: "inline-flex",
641
+ margin: 0,
642
+ marginInlineEnd: odysseyTokens.Spacing2,
643
+ ...(ownerState.children === undefined && {
644
+ marginInlineEnd: 0
645
+ })
646
+ })
681
647
  }
682
648
  },
683
649
  MuiButtonBase: {
@@ -693,77 +659,74 @@ export const components = _ref => {
693
659
  indeterminateIcon: _jsx(SubtractIcon, {})
694
660
  },
695
661
  styleOverrides: {
696
- root: _ref13 => {
697
- let {
698
- theme
699
- } = _ref13;
700
- return {
701
- width: `${odysseyTokens.TypographyLineHeightUi}em`,
702
- minWidth: `${odysseyTokens.TypographyLineHeightUi}em`,
703
- height: `${odysseyTokens.TypographyLineHeightUi}em`,
704
- borderRadius: odysseyTokens.BorderRadiusTight,
705
- borderWidth: odysseyTokens.BorderWidthMain,
706
- borderStyle: odysseyTokens.BorderStyleMain,
707
- borderColor: odysseyTokens.HueNeutral500,
708
- padding: 0,
709
- boxShadow: `0 0 0 0 transparent`,
710
- transition: theme.transitions.create(["border-color", "background-color", "box-shadow"], {
662
+ root: ({
663
+ theme
664
+ }) => ({
665
+ width: `${odysseyTokens.TypographyLineHeightUi}em`,
666
+ minWidth: `${odysseyTokens.TypographyLineHeightUi}em`,
667
+ height: `${odysseyTokens.TypographyLineHeightUi}em`,
668
+ borderRadius: odysseyTokens.BorderRadiusTight,
669
+ borderWidth: odysseyTokens.BorderWidthMain,
670
+ borderStyle: odysseyTokens.BorderStyleMain,
671
+ borderColor: odysseyTokens.HueNeutral500,
672
+ padding: 0,
673
+ boxShadow: `0 0 0 0 transparent`,
674
+ transition: theme.transitions.create(["border-color", "background-color", "box-shadow"], {
675
+ duration: odysseyTokens.TransitionDurationMain
676
+ }),
677
+ [`.${svgIconClasses.root}`]: {
678
+ color: odysseyTokens.HueNeutralWhite,
679
+ transition: theme.transitions.create(["color"], {
711
680
  duration: odysseyTokens.TransitionDurationMain
712
- }),
713
- [`.${svgIconClasses.root}`]: {
714
- color: odysseyTokens.HueNeutralWhite,
715
- transition: theme.transitions.create(["color"], {
716
- duration: odysseyTokens.TransitionDurationMain
717
- })
718
- },
719
- "&.Mui-checked": {
720
- backgroundColor: odysseyTokens.PalettePrimaryMain,
721
- borderColor: odysseyTokens.PalettePrimaryMain,
722
- [`.${formControlLabelClasses.root}:hover > &`]: {
723
- backgroundColor: odysseyTokens.PalettePrimaryDark,
724
- borderColor: odysseyTokens.PalettePrimaryDark
725
- }
726
- },
681
+ })
682
+ },
683
+ "&.Mui-checked": {
684
+ backgroundColor: odysseyTokens.PalettePrimaryMain,
685
+ borderColor: odysseyTokens.PalettePrimaryMain,
727
686
  [`.${formControlLabelClasses.root}:hover > &`]: {
728
- backgroundColor: "transparent",
729
- borderColor: odysseyTokens.HueNeutral900
730
- },
731
- ".Mui-error:not(.Mui-valid):hover > &": {
732
- borderColor: odysseyTokens.BorderColorDangerDark,
733
- "&.Mui-checked": {
734
- backgroundColor: odysseyTokens.PaletteDangerDark,
735
- borderColor: odysseyTokens.BorderColorDangerDark
736
- }
737
- },
738
- ".Mui-error:not(.Mui-valid) > &": {
739
- borderColor: odysseyTokens.BorderColorDangerControl,
740
- "&.Mui-checked": {
741
- backgroundColor: odysseyTokens.PaletteDangerMain,
742
- borderColor: odysseyTokens.BorderColorDangerControl
743
- },
744
- "&.Mui-focusVisible": {
745
- boxShadow: `0 0 0 2px ${odysseyTokens.HueNeutralWhite}, 0 0 0 4px ${odysseyTokens.PaletteDangerMain}`
746
- }
687
+ backgroundColor: odysseyTokens.PalettePrimaryDark,
688
+ borderColor: odysseyTokens.PalettePrimaryDark
689
+ }
690
+ },
691
+ [`.${formControlLabelClasses.root}:hover > &`]: {
692
+ backgroundColor: "transparent",
693
+ borderColor: odysseyTokens.HueNeutral900
694
+ },
695
+ ".Mui-error:not(.Mui-valid):hover > &": {
696
+ borderColor: odysseyTokens.BorderColorDangerDark,
697
+ "&.Mui-checked": {
698
+ backgroundColor: odysseyTokens.PaletteDangerDark,
699
+ borderColor: odysseyTokens.BorderColorDangerDark
700
+ }
701
+ },
702
+ ".Mui-error:not(.Mui-valid) > &": {
703
+ borderColor: odysseyTokens.BorderColorDangerControl,
704
+ "&.Mui-checked": {
705
+ backgroundColor: odysseyTokens.PaletteDangerMain,
706
+ borderColor: odysseyTokens.BorderColorDangerControl
747
707
  },
748
708
  "&.Mui-focusVisible": {
749
- borderColor: odysseyTokens.HueNeutral900,
750
- boxShadow: `0 0 0 2px ${odysseyTokens.HueNeutralWhite}, 0 0 0 4px ${odysseyTokens.PalettePrimaryMain}`,
751
- outline: "2px solid transparent",
752
- outlineOffset: "1px"
753
- },
754
- "&.Mui-disabled": {
709
+ boxShadow: `0 0 0 2px ${odysseyTokens.HueNeutralWhite}, 0 0 0 4px ${odysseyTokens.PaletteDangerMain}`
710
+ }
711
+ },
712
+ "&.Mui-focusVisible": {
713
+ borderColor: odysseyTokens.HueNeutral900,
714
+ boxShadow: `0 0 0 2px ${odysseyTokens.HueNeutralWhite}, 0 0 0 4px ${odysseyTokens.PalettePrimaryMain}`,
715
+ outline: "2px solid transparent",
716
+ outlineOffset: "1px"
717
+ },
718
+ "&.Mui-disabled": {
719
+ backgroundColor: odysseyTokens.HueNeutral50,
720
+ borderColor: odysseyTokens.HueNeutral300,
721
+ ".Mui-error:not(.Mui-valid) > &": {
755
722
  backgroundColor: odysseyTokens.HueNeutral50,
756
- borderColor: odysseyTokens.HueNeutral300,
757
- ".Mui-error:not(.Mui-valid) > &": {
758
- backgroundColor: odysseyTokens.HueNeutral50,
759
- borderColor: odysseyTokens.HueNeutral300
760
- },
761
- [`.${svgIconClasses.root}`]: {
762
- color: odysseyTokens.HueNeutral300
763
- }
723
+ borderColor: odysseyTokens.HueNeutral300
724
+ },
725
+ [`.${svgIconClasses.root}`]: {
726
+ color: odysseyTokens.HueNeutral300
764
727
  }
765
- };
766
- }
728
+ }
729
+ })
767
730
  }
768
731
  },
769
732
  MuiChip: {
@@ -771,100 +734,97 @@ export const components = _ref => {
771
734
  deleteIcon: _jsx(CloseCircleFilledIcon, {})
772
735
  },
773
736
  styleOverrides: {
774
- root: _ref14 => {
775
- let {
776
- ownerState
777
- } = _ref14;
778
- return {
779
- height: "auto",
780
- paddingBlock: `calc(${odysseyTokens.Spacing2} - ${odysseyTokens.BorderWidthMain})`,
781
- paddingInline: odysseyTokens.Spacing3,
782
- fontSize: odysseyTokens.TypographySizeBody,
783
- lineHeight: odysseyTokens.TypographyLineHeightUi,
784
- borderRadius: odysseyTokens.BorderRadiusRound,
785
- backgroundColor: odysseyTokens.HueNeutral100,
786
- borderWidth: odysseyTokens.BorderWidthMain,
787
- borderColor: odysseyTokens.HueNeutral200,
788
- borderStyle: odysseyTokens.BorderStyleMain,
789
- color: odysseyTokens.HueNeutral700,
790
- ...(ownerState.onDelete && {
791
- paddingInlineEnd: odysseyTokens.Spacing2
792
- }),
793
- [`&.${chipClasses.disabled}`]: {
794
- opacity: 1,
795
- pointerEvents: "none",
796
- borderColor: odysseyTokens.BorderColorDisabled,
797
- color: odysseyTokens.TypographyColorDisabled,
798
- [`& .${chipClasses.deleteIcon}`]: {
799
- color: odysseyTokens.HueNeutral300
737
+ root: ({
738
+ ownerState
739
+ }) => ({
740
+ height: "auto",
741
+ paddingBlock: `calc(${odysseyTokens.Spacing2} - ${odysseyTokens.BorderWidthMain})`,
742
+ paddingInline: odysseyTokens.Spacing3,
743
+ fontSize: odysseyTokens.TypographySizeBody,
744
+ lineHeight: odysseyTokens.TypographyLineHeightUi,
745
+ borderRadius: odysseyTokens.BorderRadiusRound,
746
+ backgroundColor: odysseyTokens.HueNeutral100,
747
+ borderWidth: odysseyTokens.BorderWidthMain,
748
+ borderColor: odysseyTokens.HueNeutral200,
749
+ borderStyle: odysseyTokens.BorderStyleMain,
750
+ color: odysseyTokens.HueNeutral700,
751
+ ...(ownerState.onDelete && {
752
+ paddingInlineEnd: odysseyTokens.Spacing2
753
+ }),
754
+ [`&.${chipClasses.disabled}`]: {
755
+ opacity: 1,
756
+ pointerEvents: "none",
757
+ borderColor: odysseyTokens.BorderColorDisabled,
758
+ color: odysseyTokens.TypographyColorDisabled,
759
+ [`& .${chipClasses.deleteIcon}`]: {
760
+ color: odysseyTokens.HueNeutral300
761
+ }
762
+ },
763
+ ...(ownerState.clickable && {
764
+ "&:hover": {
765
+ backgroundColor: odysseyTokens.HueNeutral200
766
+ },
767
+ [`&.${chipClasses.focusVisible}`]: {
768
+ backgroundColor: odysseyTokens.HueNeutral200,
769
+ outlineColor: odysseyTokens.FocusOutlineColorPrimary,
770
+ outlineOffset: odysseyTokens.FocusOutlineOffsetTight,
771
+ outlineStyle: odysseyTokens.FocusOutlineStyle,
772
+ outlineWidth: odysseyTokens.FocusOutlineWidthMain
773
+ },
774
+ "&:active": {
775
+ boxShadow: "none",
776
+ backgroundColor: odysseyTokens.HueNeutral300
777
+ }
778
+ }),
779
+ [`& .${chipClasses.icon}`]: {
780
+ margin: 0,
781
+ marginInlineEnd: odysseyTokens.Spacing1
782
+ },
783
+ ...(ownerState.variant === "pill" && {
784
+ paddingBlock: odysseyTokens.Spacing1,
785
+ paddingInline: odysseyTokens.Spacing2,
786
+ borderRadius: odysseyTokens.BorderRadiusMain,
787
+ border: 0,
788
+ fontWeight: odysseyTokens.TypographyWeightHeadingBold,
789
+ lineHeight: odysseyTokens.TypographyLineHeightOverline,
790
+ backgroundColor: odysseyTokens.HueNeutral50,
791
+ color: odysseyTokens.TypographyColorSubordinate,
792
+ fontSize: "0.71428571rem",
793
+ textTransform: "uppercase",
794
+ "&::before": {
795
+ content: "''",
796
+ width: "0.42857143rem",
797
+ height: "0.42857143rem",
798
+ marginInlineEnd: odysseyTokens.Spacing2,
799
+ borderRadius: "100%",
800
+ backgroundColor: odysseyTokens.HueNeutral400
801
+ },
802
+ [`&.${chipClasses.colorError}`]: {
803
+ backgroundColor: odysseyTokens.PaletteDangerLighter,
804
+ color: odysseyTokens.TypographyColorDanger,
805
+ "&::before": {
806
+ backgroundColor: odysseyTokens.PaletteDangerMain
800
807
  }
801
808
  },
802
- ...(ownerState.clickable && {
803
- "&:hover": {
804
- backgroundColor: odysseyTokens.HueNeutral200
805
- },
806
- [`&.${chipClasses.focusVisible}`]: {
807
- backgroundColor: odysseyTokens.HueNeutral200,
808
- outlineColor: odysseyTokens.FocusOutlineColorPrimary,
809
- outlineOffset: odysseyTokens.FocusOutlineOffsetTight,
810
- outlineStyle: odysseyTokens.FocusOutlineStyle,
811
- outlineWidth: odysseyTokens.FocusOutlineWidthMain
812
- },
813
- "&:active": {
814
- boxShadow: "none",
815
- backgroundColor: odysseyTokens.HueNeutral300
809
+ [`&.${chipClasses.colorSuccess}`]: {
810
+ backgroundColor: odysseyTokens.PaletteSuccessLighter,
811
+ color: odysseyTokens.TypographyColorSuccess,
812
+ "&::before": {
813
+ backgroundColor: odysseyTokens.PaletteSuccessMain
816
814
  }
817
- }),
818
- [`& .${chipClasses.icon}`]: {
819
- margin: 0,
820
- marginInlineEnd: odysseyTokens.Spacing1
821
815
  },
822
- ...(ownerState.variant === "pill" && {
823
- paddingBlock: odysseyTokens.Spacing1,
824
- paddingInline: odysseyTokens.Spacing2,
825
- borderRadius: odysseyTokens.BorderRadiusMain,
826
- border: 0,
827
- fontWeight: odysseyTokens.TypographyWeightHeadingBold,
828
- lineHeight: odysseyTokens.TypographyLineHeightOverline,
829
- backgroundColor: odysseyTokens.HueNeutral50,
830
- color: odysseyTokens.TypographyColorSubordinate,
831
- fontSize: "0.71428571rem",
832
- textTransform: "uppercase",
816
+ [`&.${chipClasses.colorWarning}`]: {
817
+ backgroundColor: odysseyTokens.PaletteWarningLighter,
818
+ color: odysseyTokens.TypographyColorWarning,
833
819
  "&::before": {
834
- content: "''",
835
- width: "0.42857143rem",
836
- height: "0.42857143rem",
837
- marginInlineEnd: odysseyTokens.Spacing2,
838
- borderRadius: "100%",
839
- backgroundColor: odysseyTokens.HueNeutral400
840
- },
841
- [`&.${chipClasses.colorError}`]: {
842
- backgroundColor: odysseyTokens.PaletteDangerLighter,
843
- color: odysseyTokens.TypographyColorDanger,
844
- "&::before": {
845
- backgroundColor: odysseyTokens.PaletteDangerMain
846
- }
847
- },
848
- [`&.${chipClasses.colorSuccess}`]: {
849
- backgroundColor: odysseyTokens.PaletteSuccessLighter,
850
- color: odysseyTokens.TypographyColorSuccess,
851
- "&::before": {
852
- backgroundColor: odysseyTokens.PaletteSuccessMain
853
- }
854
- },
855
- [`&.${chipClasses.colorWarning}`]: {
856
- backgroundColor: odysseyTokens.PaletteWarningLighter,
857
- color: odysseyTokens.TypographyColorWarning,
858
- "&::before": {
859
- backgroundColor: odysseyTokens.HueYellow200
860
- }
820
+ backgroundColor: odysseyTokens.HueYellow200
861
821
  }
862
- }),
863
- [`.${inputBaseClasses.root}.${inputBaseClasses.disabled} &`]: {
864
- backgroundColor: odysseyTokens.HueNeutral200
865
822
  }
866
- };
867
- },
823
+ }),
824
+ [`.${inputBaseClasses.root}.${inputBaseClasses.disabled} &`]: {
825
+ backgroundColor: odysseyTokens.HueNeutral200
826
+ }
827
+ }),
868
828
  label: {
869
829
  padding: 0,
870
830
  [`.${inputBaseClasses.root}.${inputBaseClasses.disabled} &`]: {
@@ -897,26 +857,20 @@ export const components = _ref => {
897
857
  variant: "indeterminate"
898
858
  },
899
859
  styleOverrides: {
900
- root: _ref15 => {
901
- let {
902
- ownerState
903
- } = _ref15;
904
- return {
905
- ...(ownerState.color !== "inherit" && {
906
- color: odysseyTokens.PalettePrimaryMain
907
- })
908
- };
909
- },
910
- circle: _ref16 => {
911
- let {
912
- ownerState
913
- } = _ref16;
914
- return {
915
- ...(ownerState.variant === "indeterminate" && {
916
- strokeDasharray: "160%, 360%"
917
- })
918
- };
919
- }
860
+ root: ({
861
+ ownerState
862
+ }) => ({
863
+ ...(ownerState.color !== "inherit" && {
864
+ color: odysseyTokens.PalettePrimaryMain
865
+ })
866
+ }),
867
+ circle: ({
868
+ ownerState
869
+ }) => ({
870
+ ...(ownerState.variant === "indeterminate" && {
871
+ strokeDasharray: "160%, 360%"
872
+ })
873
+ })
920
874
  }
921
875
  },
922
876
  MuiCssBaseline: {
@@ -1245,50 +1199,44 @@ export const components = _ref => {
1245
1199
  height: odysseyTokens.Spacing5,
1246
1200
  overflow: "visible"
1247
1201
  },
1248
- switchBase: _ref17 => {
1249
- let {
1250
- ownerState
1251
- } = _ref17;
1252
- return {
1253
- top: odysseyTokens.Spacing1,
1254
- left: odysseyTokens.Spacing1,
1255
- padding: `${odysseyTokens.Spacing0} 0`,
1202
+ switchBase: ({
1203
+ ownerState
1204
+ }) => ({
1205
+ top: odysseyTokens.Spacing1,
1206
+ left: odysseyTokens.Spacing1,
1207
+ padding: `${odysseyTokens.Spacing0} 0`,
1208
+ ...(ownerState.checked === true && {
1209
+ color: `${odysseyTokens.HueNeutralWhite} !important`,
1210
+ transform: `translateX(${odysseyTokens.Spacing4}) !important`
1211
+ }),
1212
+ "&:hover": {
1213
+ backgroundColor: "transparent",
1256
1214
  ...(ownerState.checked === true && {
1257
- color: `${odysseyTokens.HueNeutralWhite} !important`,
1258
- transform: `translateX(${odysseyTokens.Spacing4}) !important`
1259
- }),
1260
- "&:hover": {
1261
- backgroundColor: "transparent",
1262
- ...(ownerState.checked === true && {
1263
- backgroundColor: "transparent !important"
1264
- })
1265
- },
1266
- "&.Mui-focusVisible": {
1267
- " + .MuiSwitch-track": {
1268
- boxShadow: `0 0 0 2px ${odysseyTokens.HueNeutralWhite}, 0 0 0 4px ${odysseyTokens.PalettePrimaryMain}`
1269
- }
1215
+ backgroundColor: "transparent !important"
1216
+ })
1217
+ },
1218
+ "&.Mui-focusVisible": {
1219
+ " + .MuiSwitch-track": {
1220
+ boxShadow: `0 0 0 2px ${odysseyTokens.HueNeutralWhite}, 0 0 0 4px ${odysseyTokens.PalettePrimaryMain}`
1270
1221
  }
1271
- };
1272
- },
1222
+ }
1223
+ }),
1273
1224
  thumb: {
1274
1225
  width: odysseyTokens.Spacing4,
1275
1226
  height: odysseyTokens.Spacing4,
1276
1227
  boxShadow: "none"
1277
1228
  },
1278
- track: _ref18 => {
1279
- let {
1280
- ownerState
1281
- } = _ref18;
1282
- return {
1283
- borderRadius: odysseyTokens.BorderRadiusRound,
1284
- backgroundColor: `${odysseyTokens.HueNeutral300}`,
1285
- opacity: 1,
1286
- ...(ownerState.checked === true && {
1287
- opacity: "1 !important",
1288
- backgroundColor: `${odysseyTokens.PaletteSuccessLight} !important`
1289
- })
1290
- };
1291
- },
1229
+ track: ({
1230
+ ownerState
1231
+ }) => ({
1232
+ borderRadius: odysseyTokens.BorderRadiusRound,
1233
+ backgroundColor: `${odysseyTokens.HueNeutral300}`,
1234
+ opacity: 1,
1235
+ ...(ownerState.checked === true && {
1236
+ opacity: "1 !important",
1237
+ backgroundColor: `${odysseyTokens.PaletteSuccessLight} !important`
1238
+ })
1239
+ }),
1292
1240
  input: {
1293
1241
  height: "44px",
1294
1242
  top: "-14px"
@@ -1324,22 +1272,19 @@ export const components = _ref => {
1324
1272
  },
1325
1273
  MuiDialogContent: {
1326
1274
  styleOverrides: {
1327
- root: _ref19 => {
1328
- let {
1329
- ownerState
1330
- } = _ref19;
1331
- return {
1332
- paddingBlock: 0,
1333
- paddingInline: odysseyTokens.Spacing6,
1334
- ...(ownerState.dividers === true && {
1335
- paddingBlock: odysseyTokens.Spacing6,
1336
- color: odysseyTokens.HueNeutral600
1337
- }),
1338
- ["&:last-child"]: {
1339
- paddingBlockEnd: odysseyTokens.Spacing6
1340
- }
1341
- };
1342
- }
1275
+ root: ({
1276
+ ownerState
1277
+ }) => ({
1278
+ paddingBlock: 0,
1279
+ paddingInline: odysseyTokens.Spacing6,
1280
+ ...(ownerState.dividers === true && {
1281
+ paddingBlock: odysseyTokens.Spacing6,
1282
+ color: odysseyTokens.HueNeutral600
1283
+ }),
1284
+ ["&:last-child"]: {
1285
+ paddingBlockEnd: odysseyTokens.Spacing6
1286
+ }
1287
+ })
1343
1288
  }
1344
1289
  },
1345
1290
  MuiDialogContentText: {
@@ -1380,83 +1325,77 @@ export const components = _ref => {
1380
1325
  margin: "normal"
1381
1326
  },
1382
1327
  styleOverrides: {
1383
- root: _ref20 => {
1384
- let {
1385
- ownerState
1386
- } = _ref20;
1387
- return {
1388
- width: "100%",
1389
- maxWidth: odysseyTokens.TypographyLineLengthMax,
1390
- ...(ownerState.margin === "normal" && {
1391
- marginTop: 0,
1392
- marginBottom: odysseyTokens.Spacing4,
1393
- "&:last-child": {
1394
- marginBottom: 0
1395
- }
1396
- }),
1397
- ...(ownerState.margin === "dense" && {
1398
- marginTop: 0,
1399
- marginBottom: odysseyTokens.Spacing5,
1400
- "&:last-child": {
1401
- marginBottom: 0
1402
- }
1403
- }),
1404
- ...(ownerState.fullWidth && {
1405
- maxWidth: "100%"
1406
- }),
1407
- [`& .${formGroupClasses.root}`]: {
1408
- marginBlockStart: odysseyTokens.Spacing1
1328
+ root: ({
1329
+ ownerState
1330
+ }) => ({
1331
+ width: "100%",
1332
+ maxWidth: odysseyTokens.TypographyLineLengthMax,
1333
+ ...(ownerState.margin === "normal" && {
1334
+ marginTop: 0,
1335
+ marginBottom: odysseyTokens.Spacing4,
1336
+ "&:last-child": {
1337
+ marginBottom: 0
1409
1338
  }
1410
- };
1411
- }
1339
+ }),
1340
+ ...(ownerState.margin === "dense" && {
1341
+ marginTop: 0,
1342
+ marginBottom: odysseyTokens.Spacing5,
1343
+ "&:last-child": {
1344
+ marginBottom: 0
1345
+ }
1346
+ }),
1347
+ ...(ownerState.fullWidth && {
1348
+ maxWidth: "100%"
1349
+ }),
1350
+ [`& .${formGroupClasses.root}`]: {
1351
+ marginBlockStart: odysseyTokens.Spacing1
1352
+ }
1353
+ })
1412
1354
  }
1413
1355
  },
1414
1356
  MuiFormControlLabel: {
1415
1357
  styleOverrides: {
1416
- root: _ref21 => {
1417
- let {
1418
- ownerState
1419
- } = _ref21;
1420
- return {
1421
- gap: odysseyTokens.Spacing2,
1358
+ root: ({
1359
+ ownerState
1360
+ }) => ({
1361
+ gap: odysseyTokens.Spacing2,
1362
+ marginInlineStart: 0,
1363
+ marginInlineEnd: 0,
1364
+ ...(ownerState.labelPlacement === "start" && {
1422
1365
  marginInlineStart: 0,
1423
- marginInlineEnd: 0,
1424
- ...(ownerState.labelPlacement === "start" && {
1425
- marginInlineStart: 0,
1426
- marginInlineEnd: 0
1427
- }),
1428
- ...(ownerState.labelPlacement === "top" && {
1429
- marginInlineStart: 0
1430
- }),
1431
- ...(ownerState.labelPlacement === "bottom" && {
1432
- marginInlineStart: 0
1433
- }),
1434
- "&:not(:last-child)": {
1435
- marginBottom: odysseyTokens.Spacing2
1436
- },
1437
- "&.Mui-disabled": {
1438
- pointerEvents: "none"
1439
- },
1440
- [`:has(> .${radioClasses.root})`]: {
1441
- alignItems: "flex-start"
1442
- },
1443
- [`& .${checkboxClasses.root}`]: {
1444
- marginBlockStart: 0
1445
- },
1446
- [`&:hover .${radioClasses.root}, &:hover .${checkboxClasses.root}`]: {
1447
- color: odysseyTokens.TypographyColorBody
1448
- },
1449
- [`&:hover .${radioClasses.root}.Mui-checked, &:hover .${checkboxClasses.root}.Mui-checked`]: {
1450
- color: odysseyTokens.PalettePrimaryDark
1451
- },
1452
- [`&.Mui-error:hover .${radioClasses.root}, &.Mui-error:hover .${checkboxClasses.root}`]: {
1453
- color: odysseyTokens.PaletteDangerDark
1454
- },
1455
- [`&.Mui-error:hover .${radioClasses.root}.Mui-checked, &.Mui-error:hover .${checkboxClasses.root}.Mui-checked`]: {
1456
- color: odysseyTokens.PaletteDangerDark
1457
- }
1458
- };
1459
- },
1366
+ marginInlineEnd: 0
1367
+ }),
1368
+ ...(ownerState.labelPlacement === "top" && {
1369
+ marginInlineStart: 0
1370
+ }),
1371
+ ...(ownerState.labelPlacement === "bottom" && {
1372
+ marginInlineStart: 0
1373
+ }),
1374
+ "&:not(:last-child)": {
1375
+ marginBottom: odysseyTokens.Spacing2
1376
+ },
1377
+ "&.Mui-disabled": {
1378
+ pointerEvents: "none"
1379
+ },
1380
+ [`:has(> .${radioClasses.root})`]: {
1381
+ alignItems: "flex-start"
1382
+ },
1383
+ [`& .${checkboxClasses.root}`]: {
1384
+ marginBlockStart: 0
1385
+ },
1386
+ [`&:hover .${radioClasses.root}, &:hover .${checkboxClasses.root}`]: {
1387
+ color: odysseyTokens.TypographyColorBody
1388
+ },
1389
+ [`&:hover .${radioClasses.root}.Mui-checked, &:hover .${checkboxClasses.root}.Mui-checked`]: {
1390
+ color: odysseyTokens.PalettePrimaryDark
1391
+ },
1392
+ [`&.Mui-error:hover .${radioClasses.root}, &.Mui-error:hover .${checkboxClasses.root}`]: {
1393
+ color: odysseyTokens.PaletteDangerDark
1394
+ },
1395
+ [`&.Mui-error:hover .${radioClasses.root}.Mui-checked, &.Mui-error:hover .${checkboxClasses.root}.Mui-checked`]: {
1396
+ color: odysseyTokens.PaletteDangerDark
1397
+ }
1398
+ }),
1460
1399
  label: {
1461
1400
  gap: odysseyTokens.Spacing1,
1462
1401
  lineHeight: odysseyTokens.TypographyLineHeightUi
@@ -1534,29 +1473,26 @@ export const components = _ref => {
1534
1473
  },
1535
1474
  MuiInputAdornment: {
1536
1475
  styleOverrides: {
1537
- root: _ref22 => {
1538
- let {
1539
- ownerState
1540
- } = _ref22;
1541
- return {
1542
- display: "flex",
1543
- minWidth: "1.25em",
1544
- maxHeight: "unset",
1545
- margin: 0,
1546
- alignItems: "center",
1547
- whiteSpace: "nowrap",
1548
- color: odysseyTokens.TypographyColorSubordinate,
1549
- ...(ownerState.position === "start" && {
1550
- marginInlineStart: odysseyTokens.Spacing2
1551
- }),
1552
- ...(ownerState.position === "end" && {
1553
- marginInlineEnd: odysseyTokens.Spacing2
1554
- }),
1555
- ...(ownerState.disablePointerEvents === true && {
1556
- pointerEvents: "none"
1557
- })
1558
- };
1559
- }
1476
+ root: ({
1477
+ ownerState
1478
+ }) => ({
1479
+ display: "flex",
1480
+ minWidth: "1.25em",
1481
+ maxHeight: "unset",
1482
+ margin: 0,
1483
+ alignItems: "center",
1484
+ whiteSpace: "nowrap",
1485
+ color: odysseyTokens.TypographyColorSubordinate,
1486
+ ...(ownerState.position === "start" && {
1487
+ marginInlineStart: odysseyTokens.Spacing2
1488
+ }),
1489
+ ...(ownerState.position === "end" && {
1490
+ marginInlineEnd: odysseyTokens.Spacing2
1491
+ }),
1492
+ ...(ownerState.disablePointerEvents === true && {
1493
+ pointerEvents: "none"
1494
+ })
1495
+ })
1560
1496
  }
1561
1497
  },
1562
1498
  MuiInputBase: {
@@ -1564,61 +1500,58 @@ export const components = _ref => {
1564
1500
  minRows: 3
1565
1501
  },
1566
1502
  styleOverrides: {
1567
- root: _ref23 => {
1568
- let {
1569
- ownerState,
1570
- theme
1571
- } = _ref23;
1572
- return {
1573
- ...theme.typography.body1,
1574
- flex: "1",
1575
- width: "auto",
1576
- color: odysseyTokens.TypographyColorBody,
1577
- lineHeight: odysseyTokens.TypographyLineHeightUi,
1578
- borderWidth: odysseyTokens.BorderWidthMain,
1579
- borderStyle: odysseyTokens.BorderStyleMain,
1580
- borderRadius: odysseyTokens.BorderRadiusMain,
1581
- borderColor: odysseyTokens.HueNeutral500,
1582
- boxShadow: `0 0 0 0 transparent`,
1583
- backgroundColor: odysseyTokens.HueNeutralWhite,
1584
- transition: theme.transitions.create(["border-color", "background-color", "box-shadow"], {
1585
- duration: odysseyTokens.TransitionDurationMain
1586
- }),
1587
- ...(ownerState.fullWidth && {
1588
- width: "100%"
1589
- }),
1590
- ...(ownerState.readOnly === true && {
1591
- borderColor: "transparent",
1592
- backgroundColor: odysseyTokens.HueNeutral50
1593
- }),
1594
- [`&:hover`]: {
1595
- borderColor: odysseyTokens.HueNeutral900
1596
- },
1597
- [`&.${inputBaseClasses.focused}`]: {
1598
- borderColor: odysseyTokens.FocusOutlineColorPrimary,
1599
- boxShadow: `0 0 0 1px ${odysseyTokens.FocusOutlineColorPrimary}`,
1600
- outline: `${odysseyTokens.FocusOutlineWidthMain} ${odysseyTokens.FocusOutlineStyle} transparent`,
1601
- outlineOffset: odysseyTokens.FocusOutlineOffsetTight
1602
- },
1603
- [`&.${inputBaseClasses.error}`]: {
1604
- borderColor: odysseyTokens.BorderColorDangerControl
1605
- },
1606
- [`&.${inputBaseClasses.error}:hover`]: {
1607
- borderColor: odysseyTokens.BorderColorDangerDark
1608
- },
1609
- [`&.${inputBaseClasses.error}.${inputBaseClasses.focused}`]: {
1610
- borderColor: odysseyTokens.BorderColorDangerControl,
1611
- boxShadow: `0 0 0 1px ${odysseyTokens.PaletteDangerMain}`
1612
- },
1613
- [`&.${inputBaseClasses.disabled}`]: {
1614
- color: odysseyTokens.TypographyColorDisabled,
1615
- borderColor: odysseyTokens.BorderColorDisabled,
1616
- pointerEvents: "auto",
1617
- backgroundColor: odysseyTokens.HueNeutral50,
1618
- cursor: "not-allowed"
1619
- }
1620
- };
1621
- },
1503
+ root: ({
1504
+ ownerState,
1505
+ theme
1506
+ }) => ({
1507
+ ...theme.typography.body1,
1508
+ flex: "1",
1509
+ width: "auto",
1510
+ color: odysseyTokens.TypographyColorBody,
1511
+ lineHeight: odysseyTokens.TypographyLineHeightUi,
1512
+ borderWidth: odysseyTokens.BorderWidthMain,
1513
+ borderStyle: odysseyTokens.BorderStyleMain,
1514
+ borderRadius: odysseyTokens.BorderRadiusMain,
1515
+ borderColor: odysseyTokens.HueNeutral500,
1516
+ boxShadow: `0 0 0 0 transparent`,
1517
+ backgroundColor: odysseyTokens.HueNeutralWhite,
1518
+ transition: theme.transitions.create(["border-color", "background-color", "box-shadow"], {
1519
+ duration: odysseyTokens.TransitionDurationMain
1520
+ }),
1521
+ ...(ownerState.fullWidth && {
1522
+ width: "100%"
1523
+ }),
1524
+ ...(ownerState.readOnly === true && {
1525
+ borderColor: "transparent",
1526
+ backgroundColor: odysseyTokens.HueNeutral50
1527
+ }),
1528
+ [`&:hover`]: {
1529
+ borderColor: odysseyTokens.HueNeutral900
1530
+ },
1531
+ [`&.${inputBaseClasses.focused}`]: {
1532
+ borderColor: odysseyTokens.FocusOutlineColorPrimary,
1533
+ boxShadow: `0 0 0 1px ${odysseyTokens.FocusOutlineColorPrimary}`,
1534
+ outline: `${odysseyTokens.FocusOutlineWidthMain} ${odysseyTokens.FocusOutlineStyle} transparent`,
1535
+ outlineOffset: odysseyTokens.FocusOutlineOffsetTight
1536
+ },
1537
+ [`&.${inputBaseClasses.error}`]: {
1538
+ borderColor: odysseyTokens.BorderColorDangerControl
1539
+ },
1540
+ [`&.${inputBaseClasses.error}:hover`]: {
1541
+ borderColor: odysseyTokens.BorderColorDangerDark
1542
+ },
1543
+ [`&.${inputBaseClasses.error}.${inputBaseClasses.focused}`]: {
1544
+ borderColor: odysseyTokens.BorderColorDangerControl,
1545
+ boxShadow: `0 0 0 1px ${odysseyTokens.PaletteDangerMain}`
1546
+ },
1547
+ [`&.${inputBaseClasses.disabled}`]: {
1548
+ color: odysseyTokens.TypographyColorDisabled,
1549
+ borderColor: odysseyTokens.BorderColorDisabled,
1550
+ pointerEvents: "auto",
1551
+ backgroundColor: odysseyTokens.HueNeutral50,
1552
+ cursor: "not-allowed"
1553
+ }
1554
+ }),
1622
1555
  input: {
1623
1556
  boxSizing: "border-box",
1624
1557
  height: "auto",
@@ -1659,32 +1592,29 @@ export const components = _ref => {
1659
1592
  shrink: false
1660
1593
  },
1661
1594
  styleOverrides: {
1662
- root: _ref24 => {
1663
- let {
1664
- ownerState
1665
- } = _ref24;
1666
- return {
1667
- display: "flex",
1668
- justifyContent: "space-between",
1669
- overflow: "unset",
1670
- whiteSpace: "unset",
1671
- ...(ownerState.formControl && {
1672
- position: "initial",
1673
- transform: "none"
1674
- }),
1675
- ...(ownerState.variant === "outlined" && {
1676
- pointerEvents: "initial",
1677
- transform: "none",
1678
- maxWidth: "100%",
1679
- ...(ownerState.size === "small" && {
1680
- transform: "none"
1681
- })
1682
- }),
1683
- [`& > .${typographyClasses.root}`]: {
1684
- lineHeight: "unset"
1685
- }
1686
- };
1687
- }
1595
+ root: ({
1596
+ ownerState
1597
+ }) => ({
1598
+ display: "flex",
1599
+ justifyContent: "space-between",
1600
+ overflow: "unset",
1601
+ whiteSpace: "unset",
1602
+ ...(ownerState.formControl && {
1603
+ position: "initial",
1604
+ transform: "none"
1605
+ }),
1606
+ ...(ownerState.variant === "outlined" && {
1607
+ pointerEvents: "initial",
1608
+ transform: "none",
1609
+ maxWidth: "100%",
1610
+ ...(ownerState.size === "small" && {
1611
+ transform: "none"
1612
+ })
1613
+ }),
1614
+ [`& > .${typographyClasses.root}`]: {
1615
+ lineHeight: "unset"
1616
+ }
1617
+ })
1688
1618
  }
1689
1619
  },
1690
1620
  MuiLink: {
@@ -1791,69 +1721,66 @@ export const components = _ref => {
1791
1721
  },
1792
1722
  MuiMenuItem: {
1793
1723
  styleOverrides: {
1794
- root: _ref25 => {
1795
- let {
1796
- ownerState
1797
- } = _ref25;
1798
- return {
1799
- gap: odysseyTokens.Spacing2,
1800
- minHeight: "unset",
1801
- paddingBlock: odysseyTokens.Spacing3,
1802
- paddingInline: odysseyTokens.Spacing4,
1803
- borderRadius: odysseyTokens.BorderRadiusTight,
1804
- [`& .${formControlLabelClasses.root}`]: {
1805
- gap: "unset"
1806
- },
1724
+ root: ({
1725
+ ownerState
1726
+ }) => ({
1727
+ gap: odysseyTokens.Spacing2,
1728
+ minHeight: "unset",
1729
+ paddingBlock: odysseyTokens.Spacing3,
1730
+ paddingInline: odysseyTokens.Spacing4,
1731
+ borderRadius: odysseyTokens.BorderRadiusTight,
1732
+ [`& .${formControlLabelClasses.root}`]: {
1733
+ gap: "unset"
1734
+ },
1735
+ "&:hover": {
1736
+ textDecoration: "none",
1737
+ backgroundColor: odysseyTokens.HueNeutral100,
1738
+ "@media (hover: none)": {
1739
+ backgroundColor: "transparent"
1740
+ }
1741
+ },
1742
+ [`:focus-visible`]: {
1743
+ backgroundColor: odysseyTokens.HueNeutral100
1744
+ },
1745
+ [`&.${menuItemClasses.root}-destructive`]: {
1746
+ color: odysseyTokens.TypographyColorDanger,
1747
+ [`.${typographyClasses.root}`]: {
1748
+ color: "inherit"
1749
+ }
1750
+ },
1751
+ [`&.${menuItemClasses.selected}`]: {
1752
+ backgroundColor: "transparent",
1753
+ color: odysseyTokens.TypographyColorAction,
1807
1754
  "&:hover": {
1808
- textDecoration: "none",
1809
- backgroundColor: odysseyTokens.HueNeutral100,
1755
+ backgroundColor: odysseyTokens.PalettePrimaryLighter,
1810
1756
  "@media (hover: none)": {
1811
- backgroundColor: "transparent"
1812
- }
1813
- },
1814
- [`:focus-visible`]: {
1815
- backgroundColor: odysseyTokens.HueNeutral100
1816
- },
1817
- [`&.${menuItemClasses.root}-destructive`]: {
1818
- color: odysseyTokens.TypographyColorDanger,
1819
- [`.${typographyClasses.root}`]: {
1820
- color: "inherit"
1821
- }
1822
- },
1823
- [`&.${menuItemClasses.selected}`]: {
1824
- backgroundColor: "transparent",
1825
- color: odysseyTokens.TypographyColorAction,
1826
- "&:hover": {
1827
- backgroundColor: odysseyTokens.PalettePrimaryLighter,
1828
- "@media (hover: none)": {
1829
- backgroundColor: odysseyTokens.PalettePrimaryLighter
1830
- }
1831
- }
1832
- },
1833
- ...(!ownerState.disableGutters && {
1834
- paddingInline: odysseyTokens.Spacing4
1835
- }),
1836
- ...(ownerState.divider && {
1837
- borderBlockEnd: `1px solid ${odysseyTokens.BorderColorDisplay}`
1838
- }),
1839
- [`&.${menuItemClasses.disabled}`]: {
1840
- opacity: 1,
1841
- color: odysseyTokens.TypographyColorDisabled,
1842
- [`.${typographyClasses.root}`]: {
1843
- color: "inherit"
1757
+ backgroundColor: odysseyTokens.PalettePrimaryLighter
1844
1758
  }
1845
- },
1846
- [`& + .${dividerClasses.root}`]: {
1847
- marginBlock: odysseyTokens.Spacing1
1848
- },
1849
- [`& .${listItemTextClasses.root}`]: {
1850
- marginBlock: 0
1851
- },
1852
- [`& .${listItemIconClasses.root}`]: {
1853
- minWidth: "unset"
1854
1759
  }
1855
- };
1856
- }
1760
+ },
1761
+ ...(!ownerState.disableGutters && {
1762
+ paddingInline: odysseyTokens.Spacing4
1763
+ }),
1764
+ ...(ownerState.divider && {
1765
+ borderBlockEnd: `1px solid ${odysseyTokens.BorderColorDisplay}`
1766
+ }),
1767
+ [`&.${menuItemClasses.disabled}`]: {
1768
+ opacity: 1,
1769
+ color: odysseyTokens.TypographyColorDisabled,
1770
+ [`.${typographyClasses.root}`]: {
1771
+ color: "inherit"
1772
+ }
1773
+ },
1774
+ [`& + .${dividerClasses.root}`]: {
1775
+ marginBlock: odysseyTokens.Spacing1
1776
+ },
1777
+ [`& .${listItemTextClasses.root}`]: {
1778
+ marginBlock: 0
1779
+ },
1780
+ [`& .${listItemIconClasses.root}`]: {
1781
+ minWidth: "unset"
1782
+ }
1783
+ })
1857
1784
  }
1858
1785
  },
1859
1786
  MuiListItemSecondaryAction: {
@@ -1923,75 +1850,72 @@ export const components = _ref => {
1923
1850
  checkedIcon: _jsx(_Fragment, {})
1924
1851
  },
1925
1852
  styleOverrides: {
1926
- root: _ref26 => {
1927
- let {
1928
- theme
1929
- } = _ref26;
1930
- return {
1931
- width: `${odysseyTokens.TypographyLineHeightUi}em`,
1932
- minWidth: `${odysseyTokens.TypographyLineHeightUi}em`,
1933
- height: `${odysseyTokens.TypographyLineHeightUi}em`,
1934
- borderRadius: `${odysseyTokens.TypographyLineHeightUi}em`,
1935
- borderWidth: odysseyTokens.BorderWidthMain,
1936
- borderStyle: odysseyTokens.BorderStyleMain,
1937
- borderColor: odysseyTokens.HueNeutral500,
1938
- padding: 0,
1939
- boxShadow: `0 0 0 0 transparent`,
1940
- transition: theme.transitions.create(["border-color", "background-color", "box-shadow"], {
1853
+ root: ({
1854
+ theme
1855
+ }) => ({
1856
+ width: `${odysseyTokens.TypographyLineHeightUi}em`,
1857
+ minWidth: `${odysseyTokens.TypographyLineHeightUi}em`,
1858
+ height: `${odysseyTokens.TypographyLineHeightUi}em`,
1859
+ borderRadius: `${odysseyTokens.TypographyLineHeightUi}em`,
1860
+ borderWidth: odysseyTokens.BorderWidthMain,
1861
+ borderStyle: odysseyTokens.BorderStyleMain,
1862
+ borderColor: odysseyTokens.HueNeutral500,
1863
+ padding: 0,
1864
+ boxShadow: `0 0 0 0 transparent`,
1865
+ transition: theme.transitions.create(["border-color", "background-color", "box-shadow"], {
1866
+ duration: odysseyTokens.TransitionDurationMain
1867
+ }),
1868
+ "&::before": {
1869
+ content: "''",
1870
+ position: "absolute",
1871
+ width: odysseyTokens.Spacing2,
1872
+ height: odysseyTokens.Spacing2,
1873
+ borderRadius: "50%",
1874
+ backgroundColor: "transparent",
1875
+ transition: theme.transitions.create(["background-color"], {
1941
1876
  duration: odysseyTokens.TransitionDurationMain
1942
- }),
1877
+ })
1878
+ },
1879
+ [`.${formControlLabelClasses.root}:hover > &`]: {
1880
+ backgroundColor: "transparent",
1881
+ borderColor: odysseyTokens.HueNeutral900
1882
+ },
1883
+ ".Mui-error:hover > &": {
1884
+ backgroundColor: "transparent",
1885
+ borderColor: odysseyTokens.BorderColorDangerDark,
1943
1886
  "&::before": {
1944
- content: "''",
1945
- position: "absolute",
1946
- width: odysseyTokens.Spacing2,
1947
- height: odysseyTokens.Spacing2,
1948
- borderRadius: "50%",
1949
- backgroundColor: "transparent",
1950
- transition: theme.transitions.create(["background-color"], {
1951
- duration: odysseyTokens.TransitionDurationMain
1952
- })
1953
- },
1954
- [`.${formControlLabelClasses.root}:hover > &`]: {
1955
- backgroundColor: "transparent",
1956
- borderColor: odysseyTokens.HueNeutral900
1957
- },
1958
- ".Mui-error:hover > &": {
1959
- backgroundColor: "transparent",
1960
- borderColor: odysseyTokens.BorderColorDangerDark,
1961
- "&::before": {
1962
- backgroundColor: odysseyTokens.PaletteDangerDark
1963
- }
1964
- },
1965
- ".Mui-error > &": {
1966
- borderColor: odysseyTokens.BorderColorDangerControl,
1967
- "&.Mui-focusVisible": {
1968
- boxShadow: `0 0 0 2px ${odysseyTokens.HueNeutralWhite}, 0 0 0 4px ${odysseyTokens.PaletteDangerMain}`
1969
- }
1970
- },
1887
+ backgroundColor: odysseyTokens.PaletteDangerDark
1888
+ }
1889
+ },
1890
+ ".Mui-error > &": {
1891
+ borderColor: odysseyTokens.BorderColorDangerControl,
1971
1892
  "&.Mui-focusVisible": {
1972
- borderColor: odysseyTokens.HueNeutral900,
1973
- boxShadow: `0 0 0 2px ${odysseyTokens.HueNeutralWhite}, 0 0 0 4px ${odysseyTokens.PalettePrimaryMain}`,
1974
- outline: "2px solid transparent",
1975
- outlineOffset: "1px"
1976
- },
1977
- "&.Mui-checked": {
1978
- position: "relative",
1979
- "&::before": {
1980
- backgroundColor: odysseyTokens.PalettePrimaryMain
1981
- }
1982
- },
1983
- ".Mui-error > &.Mui-checked::before": {
1984
- backgroundColor: odysseyTokens.PaletteDangerMain
1985
- },
1986
- "&.Mui-disabled": {
1987
- backgroundColor: odysseyTokens.HueNeutral50,
1988
- borderColor: odysseyTokens.BorderColorDisabled,
1989
- "&.Mui-checked::before": {
1990
- backgroundColor: odysseyTokens.BorderColorDisabled
1991
- }
1893
+ boxShadow: `0 0 0 2px ${odysseyTokens.HueNeutralWhite}, 0 0 0 4px ${odysseyTokens.PaletteDangerMain}`
1992
1894
  }
1993
- };
1994
- }
1895
+ },
1896
+ "&.Mui-focusVisible": {
1897
+ borderColor: odysseyTokens.HueNeutral900,
1898
+ boxShadow: `0 0 0 2px ${odysseyTokens.HueNeutralWhite}, 0 0 0 4px ${odysseyTokens.PalettePrimaryMain}`,
1899
+ outline: "2px solid transparent",
1900
+ outlineOffset: "1px"
1901
+ },
1902
+ "&.Mui-checked": {
1903
+ position: "relative",
1904
+ "&::before": {
1905
+ backgroundColor: odysseyTokens.PalettePrimaryMain
1906
+ }
1907
+ },
1908
+ ".Mui-error > &.Mui-checked::before": {
1909
+ backgroundColor: odysseyTokens.PaletteDangerMain
1910
+ },
1911
+ "&.Mui-disabled": {
1912
+ backgroundColor: odysseyTokens.HueNeutral50,
1913
+ borderColor: odysseyTokens.BorderColorDisabled,
1914
+ "&.Mui-checked::before": {
1915
+ backgroundColor: odysseyTokens.BorderColorDisabled
1916
+ }
1917
+ }
1918
+ })
1995
1919
  }
1996
1920
  },
1997
1921
  MuiSnackbar: {
@@ -2050,20 +1974,17 @@ export const components = _ref => {
2050
1974
  color: "inherit"
2051
1975
  },
2052
1976
  styleOverrides: {
2053
- root: _ref27 => {
2054
- let {
2055
- ownerState
2056
- } = _ref27;
2057
- return {
2058
- fontSize: `${odysseyTokens.TypographyLineHeightUi}rem`,
2059
- ...(ownerState.fontSize === "small" && {
2060
- fontSize: `${Number(odysseyTokens.TypographyLineHeightUi) * 0.75}rem`
2061
- }),
2062
- ...(ownerState.fontSize === "large" && {
2063
- fontSize: `${Number(odysseyTokens.TypographyLineHeightUi) * 1.25}rem`
2064
- })
2065
- };
2066
- }
1977
+ root: ({
1978
+ ownerState
1979
+ }) => ({
1980
+ fontSize: `${odysseyTokens.TypographyLineHeightUi}rem`,
1981
+ ...(ownerState.fontSize === "small" && {
1982
+ fontSize: `${Number(odysseyTokens.TypographyLineHeightUi) * 0.75}rem`
1983
+ }),
1984
+ ...(ownerState.fontSize === "large" && {
1985
+ fontSize: `${Number(odysseyTokens.TypographyLineHeightUi) * 1.25}rem`
1986
+ })
1987
+ })
2067
1988
  }
2068
1989
  },
2069
1990
  MuiTab: {
@@ -2071,53 +1992,50 @@ export const components = _ref => {
2071
1992
  iconPosition: "start"
2072
1993
  },
2073
1994
  styleOverrides: {
2074
- root: _ref28 => {
2075
- let {
2076
- ownerState
2077
- } = _ref28;
2078
- return {
2079
- maxWidth: `calc(${odysseyTokens.TypographyLineLengthMax} / 2)`,
2080
- minWidth: "unset",
2081
- minHeight: odysseyTokens.Spacing9,
2082
- padding: `${odysseyTokens.Spacing4} ${odysseyTokens.Spacing1}`,
2083
- fontSize: odysseyTokens.TypographySizeHeading6,
2084
- fontFamily: odysseyTokens.TypographyFamilyHeading,
2085
- lineHeight: odysseyTokens.TypographyLineHeightUi,
2086
- overflow: "visible",
2087
- color: odysseyTokens.HueNeutral600,
2088
- opacity: 1,
2089
- ...(ownerState.selected == true && {
2090
- color: odysseyTokens.TypographyColorAction,
2091
- fontWeight: odysseyTokens.TypographyWeightHeading
2092
- }),
2093
- ...(ownerState.disabled && {
2094
- color: odysseyTokens.TypographyColorDisabled,
2095
- opacity: "1 !important"
2096
- }),
2097
- ...(ownerState.wrapped && {
2098
- fontSize: odysseyTokens.TypographySizeSubordinate,
2099
- lineHeight: odysseyTokens.TypographyLineHeightBody
2100
- }),
2101
- "&:hover": {
2102
- color: odysseyTokens.TypographyColorAction
2103
- },
2104
- "&:focus-visible::before, &.Mui-focusVisible::before": {
2105
- content: "''",
2106
- position: "absolute",
2107
- insetBlockStart: odysseyTokens.Spacing4,
2108
- insetInlineEnd: `calc(-1 * ${odysseyTokens.Spacing2})`,
2109
- insetBlockEnd: odysseyTokens.Spacing4,
2110
- insetInlineStart: `calc(-1 * ${odysseyTokens.Spacing2})`,
2111
- borderWidth: odysseyTokens.BorderWidthMain,
2112
- borderStyle: odysseyTokens.BorderStyleMain,
2113
- borderColor: odysseyTokens.PalettePrimaryMain,
2114
- borderRadius: odysseyTokens.BorderRadiusMain
2115
- },
2116
- "& .MuiTab-iconWrapper": {
2117
- marginInlineEnd: odysseyTokens.Spacing1
2118
- }
2119
- };
2120
- }
1995
+ root: ({
1996
+ ownerState
1997
+ }) => ({
1998
+ maxWidth: `calc(${odysseyTokens.TypographyLineLengthMax} / 2)`,
1999
+ minWidth: "unset",
2000
+ minHeight: odysseyTokens.Spacing9,
2001
+ padding: `${odysseyTokens.Spacing4} ${odysseyTokens.Spacing1}`,
2002
+ fontSize: odysseyTokens.TypographySizeHeading6,
2003
+ fontFamily: odysseyTokens.TypographyFamilyHeading,
2004
+ lineHeight: odysseyTokens.TypographyLineHeightUi,
2005
+ overflow: "visible",
2006
+ color: odysseyTokens.HueNeutral600,
2007
+ opacity: 1,
2008
+ ...(ownerState.selected == true && {
2009
+ color: odysseyTokens.TypographyColorAction,
2010
+ fontWeight: odysseyTokens.TypographyWeightHeading
2011
+ }),
2012
+ ...(ownerState.disabled && {
2013
+ color: odysseyTokens.TypographyColorDisabled,
2014
+ opacity: "1 !important"
2015
+ }),
2016
+ ...(ownerState.wrapped && {
2017
+ fontSize: odysseyTokens.TypographySizeSubordinate,
2018
+ lineHeight: odysseyTokens.TypographyLineHeightBody
2019
+ }),
2020
+ "&:hover": {
2021
+ color: odysseyTokens.TypographyColorAction
2022
+ },
2023
+ "&:focus-visible::before, &.Mui-focusVisible::before": {
2024
+ content: "''",
2025
+ position: "absolute",
2026
+ insetBlockStart: odysseyTokens.Spacing4,
2027
+ insetInlineEnd: `calc(-1 * ${odysseyTokens.Spacing2})`,
2028
+ insetBlockEnd: odysseyTokens.Spacing4,
2029
+ insetInlineStart: `calc(-1 * ${odysseyTokens.Spacing2})`,
2030
+ borderWidth: odysseyTokens.BorderWidthMain,
2031
+ borderStyle: odysseyTokens.BorderStyleMain,
2032
+ borderColor: odysseyTokens.PalettePrimaryMain,
2033
+ borderRadius: odysseyTokens.BorderRadiusMain
2034
+ },
2035
+ "& .MuiTab-iconWrapper": {
2036
+ marginInlineEnd: odysseyTokens.Spacing1
2037
+ }
2038
+ })
2121
2039
  }
2122
2040
  },
2123
2041
  MuiTabPanel: {
@@ -2172,154 +2090,148 @@ export const components = _ref => {
2172
2090
  },
2173
2091
  MuiTable: {
2174
2092
  styleOverrides: {
2175
- root: _ref29 => {
2176
- let {
2177
- ownerState
2178
- } = _ref29;
2179
- return {
2180
- display: "table",
2181
- width: "auto",
2182
- borderCollapse: "separate",
2183
- borderSpacing: 0,
2184
- marginBlock: odysseyTokens.Spacing0,
2185
- marginInline: odysseyTokens.Spacing0,
2186
- lineHeight: odysseyTokens.TypographyLineHeightUi,
2187
- "&.narrow": {
2188
- width: "100%",
2189
- tableLayout: "fixed"
2190
- },
2191
- "&:only-child": {
2192
- marginBlockEnd: 0
2193
- },
2194
- ...(ownerState.stickyHeader && {
2195
- borderCollapse: "separate"
2196
- }),
2197
- caption: {
2198
- clip: "rect(0 0 0 0)",
2199
- clipPath: "inset(50%)",
2200
- height: "1px",
2201
- overflow: "hidden",
2202
- position: "absolute",
2203
- whiteSpace: "nowrap",
2204
- width: "1px"
2205
- }
2206
- };
2207
- }
2093
+ root: ({
2094
+ ownerState
2095
+ }) => ({
2096
+ display: "table",
2097
+ width: "auto",
2098
+ borderCollapse: "separate",
2099
+ borderSpacing: 0,
2100
+ marginBlock: odysseyTokens.Spacing0,
2101
+ marginInline: odysseyTokens.Spacing0,
2102
+ lineHeight: odysseyTokens.TypographyLineHeightUi,
2103
+ "&.narrow": {
2104
+ width: "100%",
2105
+ tableLayout: "fixed"
2106
+ },
2107
+ "&:only-child": {
2108
+ marginBlockEnd: 0
2109
+ },
2110
+ ...(ownerState.stickyHeader && {
2111
+ borderCollapse: "separate"
2112
+ }),
2113
+ caption: {
2114
+ clip: "rect(0 0 0 0)",
2115
+ clipPath: "inset(50%)",
2116
+ height: "1px",
2117
+ overflow: "hidden",
2118
+ position: "absolute",
2119
+ whiteSpace: "nowrap",
2120
+ width: "1px"
2121
+ }
2122
+ })
2208
2123
  }
2209
2124
  },
2210
2125
  MuiTableCell: {
2211
2126
  styleOverrides: {
2212
- root: _ref30 => {
2213
- let {
2214
- theme,
2215
- ownerState
2216
- } = _ref30;
2217
- return {
2218
- ...theme.typography.body1,
2219
- borderBottom: `${odysseyTokens.BorderWidthMain} ${odysseyTokens.BorderStyleMain} ${odysseyTokens.HueNeutral100}`,
2220
- textAlign: "start",
2221
- verticalAlign: "baseline",
2222
- padding: odysseyTokens.Spacing3,
2223
- overflowWrap: "break-word",
2224
- [`.MuiTable-root.narrow &:last-child`]: {
2225
- width: "auto"
2226
- },
2227
- [`.${tableRowClasses.root}:hover &[rowspan]`]: {
2228
- backgroundColor: odysseyTokens.HueNeutralWhite
2229
- },
2230
- [`.${tableBodyClasses.root} .${tableRowClasses.root}:last-of-type &`]: {
2231
- borderBottom: 0
2232
- },
2233
- [`.${tableBodyClasses.root} .${tableRowClasses.root}:first-of-type &`]: {
2234
- borderTopColor: odysseyTokens.HueNeutralWhite,
2235
- borderTopStyle: "solid",
2236
- borderTopWidth: odysseyTokens.BorderWidthMain
2237
- },
2238
- [`.${tableRowClasses.selected} &`]: {
2239
- borderBottomColor: odysseyTokens.PalettePrimaryLight
2240
- },
2241
- [`.${tableRowClasses.selected}:hover &`]: {
2242
- borderBottomColor: odysseyTokens.PalettePrimaryMain
2243
- },
2244
- ...(ownerState.variant === "action" && {
2245
- paddingBlock: 0
2246
- }),
2247
- ...(ownerState.variant === "body" && {
2248
- color: odysseyTokens.TypographyColorBody
2249
- }),
2250
- ...(ownerState.variant === "date" && {
2251
- whiteSpace: "nowrap"
2252
- }),
2253
- ...(ownerState.variant === "footer" && {
2254
- color: odysseyTokens.TypographyColorSubordinate,
2255
- lineHeight: odysseyTokens.TypographyLineHeightBody,
2256
- fontSize: odysseyTokens.TypographySizeBody
2257
- }),
2258
- [`.${tableHeadClasses.root} &`]: {
2259
- color: odysseyTokens.TypographyColorHeading,
2260
- fontSize: odysseyTokens.TypographySizeSubordinate,
2261
- lineHeight: odysseyTokens.TypographyLineHeightBody,
2262
- fontWeight: odysseyTokens.TypographyWeightBodyBold,
2263
- textTransform: "uppercase",
2264
- backgroundColor: odysseyTokens.HueNeutral50,
2265
- borderBottom: 0
2266
- },
2267
- [`.${tableHeadClasses.root} &:first-of-type`]: {
2268
- borderTopLeftRadius: odysseyTokens.Spacing2,
2269
- borderBottomLeftRadius: odysseyTokens.Spacing2
2270
- },
2271
- [`.${tableHeadClasses.root} &:last-of-type`]: {
2272
- borderTopRightRadius: odysseyTokens.Spacing2,
2273
- borderBottomRightRadius: odysseyTokens.Spacing2
2274
- },
2275
- ...(ownerState.variant === "head" && {
2276
- lineHeight: odysseyTokens.TypographyLineHeightBody,
2277
- fontWeight: odysseyTokens.TypographyWeightBodyBold
2278
- }),
2279
- ...(ownerState.variant === "number" && {
2280
- textAlign: "end",
2281
- fontFeatureSettings: '"lnum", "tnum"'
2282
- }),
2283
- ...(ownerState.padding === "checkbox" && {
2284
- width: 48,
2285
- padding: "0 0 0 4px"
2286
- }),
2287
- ...(ownerState.padding === "none" && {
2288
- padding: 0
2289
- }),
2290
- ...(ownerState.align === "left" && {
2291
- textAlign: "start"
2292
- }),
2293
- ...(ownerState.align === "center" && {
2294
- textAlign: "center"
2295
- }),
2296
- ...(ownerState.align === "right" && {
2297
- textAlign: "end",
2298
- flexDirection: "row-reverse"
2299
- }),
2300
- ...(ownerState.align === "justify" && {
2301
- textAlign: "justify"
2302
- }),
2303
- ["&.MuiTableCell-compact"]: {
2304
- fontSize: odysseyTokens.TypographySizeSubordinate,
2305
- padding: odysseyTokens.Spacing2
2306
- },
2307
- ["&.MuiTableCell-spacious"]: {
2308
- padding: odysseyTokens.Spacing4
2309
- },
2310
- [`& .${checkboxClasses.root}`]: {
2311
- width: `${odysseyTokens.TypographyLineHeightUi}rem`,
2312
- height: `${odysseyTokens.TypographyLineHeightUi}rem`,
2313
- margin: 0
2314
- },
2315
- [`& .${dividerClasses.vertical}`]: {
2316
- borderStyle: "none none none dotted",
2317
- borderWidth: 2,
2318
- borderRadius: 0,
2319
- marginRight: 2
2320
- }
2321
- };
2322
- }
2127
+ root: ({
2128
+ theme,
2129
+ ownerState
2130
+ }) => ({
2131
+ ...theme.typography.body1,
2132
+ borderBottom: `${odysseyTokens.BorderWidthMain} ${odysseyTokens.BorderStyleMain} ${odysseyTokens.HueNeutral100}`,
2133
+ textAlign: "start",
2134
+ verticalAlign: "baseline",
2135
+ padding: odysseyTokens.Spacing3,
2136
+ overflowWrap: "break-word",
2137
+ [`.MuiTable-root.narrow &:last-child`]: {
2138
+ width: "auto"
2139
+ },
2140
+ [`.${tableRowClasses.root}:hover &[rowspan]`]: {
2141
+ backgroundColor: odysseyTokens.HueNeutralWhite
2142
+ },
2143
+ [`.${tableBodyClasses.root} .${tableRowClasses.root}:last-of-type &`]: {
2144
+ borderBottom: 0
2145
+ },
2146
+ [`.${tableBodyClasses.root} .${tableRowClasses.root}:first-of-type &`]: {
2147
+ borderTopColor: odysseyTokens.HueNeutralWhite,
2148
+ borderTopStyle: "solid",
2149
+ borderTopWidth: odysseyTokens.BorderWidthMain
2150
+ },
2151
+ [`.${tableRowClasses.selected} &`]: {
2152
+ borderBottomColor: odysseyTokens.PalettePrimaryLight
2153
+ },
2154
+ [`.${tableRowClasses.selected}:hover &`]: {
2155
+ borderBottomColor: odysseyTokens.PalettePrimaryMain
2156
+ },
2157
+ ...(ownerState.variant === "action" && {
2158
+ paddingBlock: 0
2159
+ }),
2160
+ ...(ownerState.variant === "body" && {
2161
+ color: odysseyTokens.TypographyColorBody
2162
+ }),
2163
+ ...(ownerState.variant === "date" && {
2164
+ whiteSpace: "nowrap"
2165
+ }),
2166
+ ...(ownerState.variant === "footer" && {
2167
+ color: odysseyTokens.TypographyColorSubordinate,
2168
+ lineHeight: odysseyTokens.TypographyLineHeightBody,
2169
+ fontSize: odysseyTokens.TypographySizeBody
2170
+ }),
2171
+ [`.${tableHeadClasses.root} &`]: {
2172
+ color: odysseyTokens.TypographyColorHeading,
2173
+ fontSize: odysseyTokens.TypographySizeSubordinate,
2174
+ lineHeight: odysseyTokens.TypographyLineHeightBody,
2175
+ fontWeight: odysseyTokens.TypographyWeightBodyBold,
2176
+ textTransform: "uppercase",
2177
+ backgroundColor: odysseyTokens.HueNeutral50,
2178
+ borderBottom: 0
2179
+ },
2180
+ [`.${tableHeadClasses.root} &:first-of-type`]: {
2181
+ borderTopLeftRadius: odysseyTokens.Spacing2,
2182
+ borderBottomLeftRadius: odysseyTokens.Spacing2
2183
+ },
2184
+ [`.${tableHeadClasses.root} &:last-of-type`]: {
2185
+ borderTopRightRadius: odysseyTokens.Spacing2,
2186
+ borderBottomRightRadius: odysseyTokens.Spacing2
2187
+ },
2188
+ ...(ownerState.variant === "head" && {
2189
+ lineHeight: odysseyTokens.TypographyLineHeightBody,
2190
+ fontWeight: odysseyTokens.TypographyWeightBodyBold
2191
+ }),
2192
+ ...(ownerState.variant === "number" && {
2193
+ textAlign: "end",
2194
+ fontFeatureSettings: '"lnum", "tnum"'
2195
+ }),
2196
+ ...(ownerState.padding === "checkbox" && {
2197
+ width: 48,
2198
+ padding: "0 0 0 4px"
2199
+ }),
2200
+ ...(ownerState.padding === "none" && {
2201
+ padding: 0
2202
+ }),
2203
+ ...(ownerState.align === "left" && {
2204
+ textAlign: "start"
2205
+ }),
2206
+ ...(ownerState.align === "center" && {
2207
+ textAlign: "center"
2208
+ }),
2209
+ ...(ownerState.align === "right" && {
2210
+ textAlign: "end",
2211
+ flexDirection: "row-reverse"
2212
+ }),
2213
+ ...(ownerState.align === "justify" && {
2214
+ textAlign: "justify"
2215
+ }),
2216
+ ["&.MuiTableCell-compact"]: {
2217
+ fontSize: odysseyTokens.TypographySizeSubordinate,
2218
+ padding: odysseyTokens.Spacing2
2219
+ },
2220
+ ["&.MuiTableCell-spacious"]: {
2221
+ padding: odysseyTokens.Spacing4
2222
+ },
2223
+ [`& .${checkboxClasses.root}`]: {
2224
+ width: `${odysseyTokens.TypographyLineHeightUi}rem`,
2225
+ height: `${odysseyTokens.TypographyLineHeightUi}rem`,
2226
+ margin: 0
2227
+ },
2228
+ [`& .${dividerClasses.vertical}`]: {
2229
+ borderStyle: "none none none dotted",
2230
+ borderWidth: 2,
2231
+ borderRadius: 0,
2232
+ marginRight: 2
2233
+ }
2234
+ })
2323
2235
  }
2324
2236
  },
2325
2237
  MuiTableContainer: {
@@ -2429,28 +2341,25 @@ export const components = _ref => {
2429
2341
  color: odysseyTokens.TypographyColorBody
2430
2342
  }
2431
2343
  },
2432
- icon: _ref31 => {
2433
- let {
2434
- ownerState
2435
- } = _ref31;
2436
- return {
2437
- ...(ownerState.direction === "asc" && {
2438
- transform: "rotate(180deg) !important"
2439
- }),
2440
- ".isUnsorted &": {
2441
- opacity: "0 !important"
2442
- },
2443
- ".isUnsorted:hover &, .isUnsorted:focus &": {
2444
- opacity: "0.5 !important",
2445
- "&:hover, &:focus": {
2446
- opacity: "1 !important"
2447
- }
2448
- },
2449
- ".isSorted &": {
2450
- opacity: 1
2344
+ icon: ({
2345
+ ownerState
2346
+ }) => ({
2347
+ ...(ownerState.direction === "asc" && {
2348
+ transform: "rotate(180deg) !important"
2349
+ }),
2350
+ ".isUnsorted &": {
2351
+ opacity: "0 !important"
2352
+ },
2353
+ ".isUnsorted:hover &, .isUnsorted:focus &": {
2354
+ opacity: "0.5 !important",
2355
+ "&:hover, &:focus": {
2356
+ opacity: "1 !important"
2451
2357
  }
2452
- };
2453
- }
2358
+ },
2359
+ ".isSorted &": {
2360
+ opacity: 1
2361
+ }
2362
+ })
2454
2363
  }
2455
2364
  },
2456
2365
  MuiTooltip: {
@@ -2461,69 +2370,66 @@ export const components = _ref => {
2461
2370
  placement: "top"
2462
2371
  },
2463
2372
  styleOverrides: {
2464
- tooltip: _ref32 => {
2465
- let {
2466
- ownerState
2467
- } = _ref32;
2468
- return {
2469
- maxWidth: `calc(${odysseyTokens.TypographyLineLengthMax} / 2)`,
2373
+ tooltip: ({
2374
+ ownerState
2375
+ }) => ({
2376
+ maxWidth: `calc(${odysseyTokens.TypographyLineLengthMax} / 2)`,
2377
+ paddingBlock: odysseyTokens.Spacing2,
2378
+ paddingInline: odysseyTokens.Spacing3,
2379
+ backgroundColor: odysseyTokens.HueNeutral900,
2380
+ color: odysseyTokens.HueNeutralWhite,
2381
+ fontSize: odysseyTokens.TypographySizeSubordinate,
2382
+ lineHeight: odysseyTokens.TypographyLineHeightBody,
2383
+ ...(ownerState.touch === true && {
2470
2384
  paddingBlock: odysseyTokens.Spacing2,
2471
2385
  paddingInline: odysseyTokens.Spacing3,
2472
- backgroundColor: odysseyTokens.HueNeutral900,
2473
- color: odysseyTokens.HueNeutralWhite,
2474
2386
  fontSize: odysseyTokens.TypographySizeSubordinate,
2475
2387
  lineHeight: odysseyTokens.TypographyLineHeightBody,
2476
- ...(ownerState.touch === true && {
2477
- paddingBlock: odysseyTokens.Spacing2,
2478
- paddingInline: odysseyTokens.Spacing3,
2479
- fontSize: odysseyTokens.TypographySizeSubordinate,
2480
- lineHeight: odysseyTokens.TypographyLineHeightBody,
2481
- fontWeight: odysseyTokens.TypographyWeightBody
2482
- }),
2483
- [`.${tooltipClasses.popper}[data-popper-placement*="left"] &`]: {
2484
- transformOrigin: "right center",
2485
- ...(ownerState.isRtl ? {
2486
- marginInlineStart: odysseyTokens.Spacing3,
2487
- ...(ownerState.touch === true && {
2488
- marginInlineStart: odysseyTokens.Spacing4
2489
- })
2490
- } : {
2491
- marginInlineEnd: odysseyTokens.Spacing3,
2492
- ...(ownerState.touch === true && {
2493
- marginInlineEnd: odysseyTokens.Spacing4
2494
- })
2388
+ fontWeight: odysseyTokens.TypographyWeightBody
2389
+ }),
2390
+ [`.${tooltipClasses.popper}[data-popper-placement*="left"] &`]: {
2391
+ transformOrigin: "right center",
2392
+ ...(ownerState.isRtl ? {
2393
+ marginInlineStart: odysseyTokens.Spacing3,
2394
+ ...(ownerState.touch === true && {
2395
+ marginInlineStart: odysseyTokens.Spacing4
2495
2396
  })
2496
- },
2497
- [`.${tooltipClasses.popper}[data-popper-placement*="right"] &`]: {
2498
- transformOrigin: "left center",
2499
- ...(ownerState.isRtl ? {
2500
- marginInlineEnd: odysseyTokens.Spacing3,
2501
- ...(ownerState.touch === true && {
2502
- marginInlineEnd: odysseyTokens.Spacing4
2503
- })
2504
- } : {
2505
- marginInlineStart: odysseyTokens.Spacing3,
2506
- ...(ownerState.touch === true && {
2507
- marginInlineStart: odysseyTokens.Spacing4
2508
- })
2397
+ } : {
2398
+ marginInlineEnd: odysseyTokens.Spacing3,
2399
+ ...(ownerState.touch === true && {
2400
+ marginInlineEnd: odysseyTokens.Spacing4
2509
2401
  })
2510
- },
2511
- [`.${tooltipClasses.popper}[data-popper-placement*="top"] &`]: {
2512
- transformOrigin: "center bottom",
2513
- marginBottom: odysseyTokens.Spacing3,
2402
+ })
2403
+ },
2404
+ [`.${tooltipClasses.popper}[data-popper-placement*="right"] &`]: {
2405
+ transformOrigin: "left center",
2406
+ ...(ownerState.isRtl ? {
2407
+ marginInlineEnd: odysseyTokens.Spacing3,
2514
2408
  ...(ownerState.touch === true && {
2515
- marginBottom: odysseyTokens.Spacing4
2409
+ marginInlineEnd: odysseyTokens.Spacing4
2516
2410
  })
2517
- },
2518
- [`.${tooltipClasses.popper}[data-popper-placement*="bottom"] &`]: {
2519
- transformOrigin: "center top",
2520
- marginTop: odysseyTokens.Spacing3,
2411
+ } : {
2412
+ marginInlineStart: odysseyTokens.Spacing3,
2521
2413
  ...(ownerState.touch === true && {
2522
- marginTop: odysseyTokens.Spacing4
2414
+ marginInlineStart: odysseyTokens.Spacing4
2523
2415
  })
2524
- }
2525
- };
2526
- },
2416
+ })
2417
+ },
2418
+ [`.${tooltipClasses.popper}[data-popper-placement*="top"] &`]: {
2419
+ transformOrigin: "center bottom",
2420
+ marginBottom: odysseyTokens.Spacing3,
2421
+ ...(ownerState.touch === true && {
2422
+ marginBottom: odysseyTokens.Spacing4
2423
+ })
2424
+ },
2425
+ [`.${tooltipClasses.popper}[data-popper-placement*="bottom"] &`]: {
2426
+ transformOrigin: "center top",
2427
+ marginTop: odysseyTokens.Spacing3,
2428
+ ...(ownerState.touch === true && {
2429
+ marginTop: odysseyTokens.Spacing4
2430
+ })
2431
+ }
2432
+ }),
2527
2433
  arrow: {
2528
2434
  color: odysseyTokens.HueNeutral900,
2529
2435
  "&::before": {