@okta/odyssey-react-mui 1.6.1 → 1.6.3

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 (64) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/Autocomplete.js.map +1 -1
  3. package/dist/Checkbox.js +3 -2
  4. package/dist/Checkbox.js.map +1 -1
  5. package/dist/CheckboxGroup.js.map +1 -1
  6. package/dist/CssBaseline.js +15 -0
  7. package/dist/CssBaseline.js.map +1 -0
  8. package/dist/FieldComponentProps.js +2 -0
  9. package/dist/FieldComponentProps.js.map +1 -0
  10. package/dist/NativeSelect.js.map +1 -1
  11. package/dist/PasswordField.js.map +1 -1
  12. package/dist/Radio.js.map +1 -1
  13. package/dist/RadioGroup.js.map +1 -1
  14. package/dist/SearchField.js.map +1 -1
  15. package/dist/Select.js.map +1 -1
  16. package/dist/TextField.js +1 -0
  17. package/dist/TextField.js.map +1 -1
  18. package/dist/index.js +3 -1
  19. package/dist/index.js.map +1 -1
  20. package/dist/src/Autocomplete.d.ts +2 -21
  21. package/dist/src/Autocomplete.d.ts.map +1 -1
  22. package/dist/src/Checkbox.d.ts +2 -13
  23. package/dist/src/Checkbox.d.ts.map +1 -1
  24. package/dist/src/CheckboxGroup.d.ts +2 -13
  25. package/dist/src/CheckboxGroup.d.ts.map +1 -1
  26. package/dist/src/CssBaseline.d.ts +13 -0
  27. package/dist/src/CssBaseline.d.ts.map +1 -0
  28. package/dist/src/FieldComponentProps.d.ts +42 -0
  29. package/dist/src/FieldComponentProps.d.ts.map +1 -0
  30. package/dist/src/NativeSelect.d.ts +3 -42
  31. package/dist/src/NativeSelect.d.ts.map +1 -1
  32. package/dist/src/PasswordField.d.ts +3 -58
  33. package/dist/src/PasswordField.d.ts.map +1 -1
  34. package/dist/src/Radio.d.ts +2 -9
  35. package/dist/src/Radio.d.ts.map +1 -1
  36. package/dist/src/RadioGroup.d.ts +2 -21
  37. package/dist/src/RadioGroup.d.ts.map +1 -1
  38. package/dist/src/SearchField.d.ts +3 -26
  39. package/dist/src/SearchField.d.ts.map +1 -1
  40. package/dist/src/Select.d.ts +2 -25
  41. package/dist/src/Select.d.ts.map +1 -1
  42. package/dist/src/TextField.d.ts +3 -58
  43. package/dist/src/TextField.d.ts.map +1 -1
  44. package/dist/src/index.d.ts +2 -2
  45. package/dist/src/index.d.ts.map +1 -1
  46. package/dist/src/theme/components.d.ts.map +1 -1
  47. package/dist/theme/components.js +75 -58
  48. package/dist/theme/components.js.map +1 -1
  49. package/dist/tsconfig.production.tsbuildinfo +1 -1
  50. package/package.json +3 -3
  51. package/src/Autocomplete.tsx +6 -21
  52. package/src/Checkbox.tsx +6 -16
  53. package/src/CheckboxGroup.tsx +3 -13
  54. package/src/CssBaseline.tsx +15 -0
  55. package/src/FieldComponentProps.ts +42 -0
  56. package/src/NativeSelect.tsx +6 -22
  57. package/src/PasswordField.tsx +3 -29
  58. package/src/Radio.tsx +3 -9
  59. package/src/RadioGroup.tsx +6 -21
  60. package/src/SearchField.tsx +3 -13
  61. package/src/Select.tsx +8 -26
  62. package/src/TextField.tsx +4 -30
  63. package/src/index.ts +2 -2
  64. package/src/theme/components.tsx +18 -2
@@ -11,6 +11,7 @@
11
11
  */
12
12
  /// <reference types="react" />
13
13
  import { SelectProps as MuiSelectProps } from "@mui/material";
14
+ import { FieldComponentProps } from "./FieldComponentProps";
14
15
  import type { SeleniumProps } from "./SeleniumProps";
15
16
  export type SelectOption = {
16
17
  text: string;
@@ -19,43 +20,19 @@ export type SelectOption = {
19
20
  };
20
21
  export type SelectValueType<HasMultipleChoices> = HasMultipleChoices extends true ? string[] : string;
21
22
  export type SelectProps<Value extends SelectValueType<HasMultipleChoices>, HasMultipleChoices extends boolean> = {
22
- /**
23
- * The error message for the Select
24
- */
25
- errorMessage?: string;
26
23
  /**
27
24
  * If `true`, the Select allows multiple selections
28
25
  */
29
26
  hasMultipleChoices?: HasMultipleChoices;
30
- /**
31
- * The hint text for the Select
32
- */
33
- hint?: string;
34
- /**
35
- * The id attribute of the Select
36
- */
37
- id?: string;
38
- /**
39
- * If `true`, the Select is disabled
40
- */
41
- isDisabled?: boolean;
42
27
  /**
43
28
  * @deprecated Use `hasMultipleChoices` instead.
44
29
  */
45
30
  /** **Deprecated:** use `hasMultipleChoices` */
46
31
  isMultiSelect?: HasMultipleChoices;
47
- /**
48
- * If `true`, the Select is optional
49
- */
50
- isOptional?: boolean;
51
32
  /**
52
33
  * The label text for the Select
53
34
  */
54
35
  label: string;
55
- /**
56
- * The name of the `input` element. Defaults to the `id` if not set.
57
- */
58
- name?: string;
59
36
  /**
60
37
  * Callback fired when the Select loses focus
61
38
  */
@@ -76,7 +53,7 @@ export type SelectProps<Value extends SelectValueType<HasMultipleChoices>, HasMu
76
53
  * The value or values selected in the Select
77
54
  */
78
55
  value?: Value;
79
- } & SeleniumProps;
56
+ } & Pick<FieldComponentProps, "errorMessage" | "hint" | "id" | "isDisabled" | "isOptional" | "name"> & SeleniumProps;
80
57
  declare const MemoizedSelect: import("react").MemoExoticComponent<(<Value extends SelectValueType<HasMultipleChoices>, HasMultipleChoices extends boolean>({ errorMessage, hasMultipleChoices: hasMultipleChoicesProp, hint, id: idOverride, isDisabled, isMultiSelect, isOptional, label, name: nameOverride, onBlur, onChange: onChangeProp, onFocus, options, testId, value, }: SelectProps<Value, HasMultipleChoices>) => JSX.Element)>;
81
58
  export { MemoizedSelect as Select };
82
59
  //# sourceMappingURL=Select.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../src/Select.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;;AAYH,OAAO,EAAE,WAAW,IAAI,cAAc,EAAE,MAAM,eAAe,CAAC;AAE9D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAGrD,MAAM,MAAM,YAAY,GAAG;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,SAAS,GA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AAG,MAAM,CACtE,GACC,aAAa,CAAC;AAkMhB,QAAA,MAAM,cAAc,+YAAe,CAAC;AAGpC,OAAO,EAAE,cAAc,IAAI,MAAM,EAAE,CAAC"}
@@ -10,6 +10,7 @@
10
10
  * See the License for the specific language governing permissions and limitations under the License.
11
11
  */
12
12
  import { ChangeEventHandler, FocusEventHandler, InputHTMLAttributes, ReactElement } from "react";
13
+ import { FieldComponentProps } from "./FieldComponentProps";
13
14
  import { SeleniumProps } from "./SeleniumProps";
14
15
  export declare const textFieldTypeValues: readonly ["email", "number", "tel", "text", "url"];
15
16
  export type TextFieldProps = {
@@ -23,46 +24,18 @@ export type TextFieldProps = {
23
24
  * End `InputAdornment` for this component.
24
25
  */
25
26
  endAdornment?: string | ReactElement;
26
- /**
27
- * If `error` is not undefined, the `input` will indicate an error.
28
- */
29
- errorMessage?: string;
30
27
  /**
31
28
  * If `true`, the component will receive focus automatically.
32
29
  */
33
30
  hasInitialFocus?: boolean;
34
- /**
35
- * The helper text content.
36
- */
37
- hint?: string;
38
- /**
39
- * The id of the `input` element.
40
- */
41
- id?: string;
42
- /**
43
- * If `true`, the component is disabled.
44
- */
45
- isDisabled?: boolean;
46
31
  /**
47
32
  * If `true`, a [TextareaAutosize](/material-ui/react-textarea-autosize/) element is rendered.
48
33
  */
49
34
  isMultiline?: boolean;
50
- /**
51
- * If `true`, the `input` element is not required.
52
- */
53
- isOptional?: boolean;
54
- /**
55
- * It prevents the user from changing the value of the field
56
- */
57
- isReadOnly?: boolean;
58
35
  /**
59
36
  * The label for the `input` element.
60
37
  */
61
38
  label: string;
62
- /**
63
- * The name of the `input` element. Defaults to the `id` if not set.
64
- */
65
- name?: string;
66
39
  /**
67
40
  * Callback fired when the `input` element loses focus.
68
41
  */
@@ -91,7 +64,7 @@ export type TextFieldProps = {
91
64
  * The value of the `input` element, required for a controlled component.
92
65
  */
93
66
  value?: string;
94
- } & SeleniumProps;
67
+ } & FieldComponentProps & SeleniumProps;
95
68
  declare const MemoizedTextField: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<{
96
69
  /**
97
70
  * This prop helps users to fill forms faster, especially on mobile devices.
@@ -103,46 +76,18 @@ declare const MemoizedTextField: import("react").MemoExoticComponent<import("rea
103
76
  * End `InputAdornment` for this component.
104
77
  */
105
78
  endAdornment?: string | ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
106
- /**
107
- * If `error` is not undefined, the `input` will indicate an error.
108
- */
109
- errorMessage?: string | undefined;
110
79
  /**
111
80
  * If `true`, the component will receive focus automatically.
112
81
  */
113
82
  hasInitialFocus?: boolean | undefined;
114
- /**
115
- * The helper text content.
116
- */
117
- hint?: string | undefined;
118
- /**
119
- * The id of the `input` element.
120
- */
121
- id?: string | undefined;
122
- /**
123
- * If `true`, the component is disabled.
124
- */
125
- isDisabled?: boolean | undefined;
126
83
  /**
127
84
  * If `true`, a [TextareaAutosize](/material-ui/react-textarea-autosize/) element is rendered.
128
85
  */
129
86
  isMultiline?: boolean | undefined;
130
- /**
131
- * If `true`, the `input` element is not required.
132
- */
133
- isOptional?: boolean | undefined;
134
- /**
135
- * It prevents the user from changing the value of the field
136
- */
137
- isReadOnly?: boolean | undefined;
138
87
  /**
139
88
  * The label for the `input` element.
140
89
  */
141
90
  label: string;
142
- /**
143
- * The name of the `input` element. Defaults to the `id` if not set.
144
- */
145
- name?: string | undefined;
146
91
  /**
147
92
  * Callback fired when the `input` element loses focus.
148
93
  */
@@ -171,6 +116,6 @@ declare const MemoizedTextField: import("react").MemoExoticComponent<import("rea
171
116
  * The value of the `input` element, required for a controlled component.
172
117
  */
173
118
  value?: string | undefined;
174
- } & SeleniumProps & import("react").RefAttributes<HTMLInputElement>>>;
119
+ } & FieldComponentProps & SeleniumProps & import("react").RefAttributes<HTMLInputElement>>>;
175
120
  export { MemoizedTextField as TextField };
176
121
  //# sourceMappingURL=TextField.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TextField.d.ts","sourceRoot":"","sources":["../../src/TextField.t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B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,MAAM,CAAC,EAAE,iBAAiB,CAAC,gBAAgB,GAAG,mBAAmB,CAAC,CAAC;IACnE;;OAEG;IACH,QAAQ,CAAC,EAAE,kBAAkB,CAAC,mBAAmB,GAAG,gBAAgB,CAAC,CAAC;IACtE;;OAEG;IACH,OAAO,CAAC,EAAE,iBAAiB,CAAC,gBAAgB,GAAG,mBAAmB,CAAC,CAAC;IACpE;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,YAAY,CAAC;IACvC;;OAEG;IACH,IAAI,CAAC,EAAE,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,CAAC,CAAC;IAC5C;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,GAAG,mBAAmB,GACrB,aAAa,CAAC;AAoGhB,QAAA,MAAM,iBAAiB;IAvJrB;;;;OAIG;uBACgB,oBAAoB,gBAAgB,CAAC,CAAC,cAAc,CAAC;IACxE;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;WACI,MAAM;IACb;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;2FAuGoC,CAAC;AAG1C,OAAO,EAAE,iBAAiB,IAAI,SAAS,EAAE,CAAC"}
@@ -12,8 +12,6 @@
12
12
  export { deepmerge, visuallyHidden } from "@mui/utils";
13
13
  export { createTheme,
14
14
  /** @deprecated Will be removed in a future Odyssey version in lieu of a wrapped version. */
15
- CssBaseline,
16
- /** @deprecated Will be removed in a future Odyssey version in lieu of a wrapped version. */
17
15
  DialogContentText,
18
16
  /** @deprecated Will be removed in a future Odyssey version in lieu of a wrapped version. */
19
17
  Divider,
@@ -45,10 +43,12 @@ export * from "./Callout";
45
43
  export * from "./Checkbox";
46
44
  export * from "./CheckboxGroup";
47
45
  export * from "./CircularProgress";
46
+ export * from "./CssBaseline";
48
47
  export * from "./createShadowRootElement";
49
48
  export * from "./createUniqueId";
50
49
  export * from "./Dialog";
51
50
  export * from "./Fieldset";
51
+ export * from "./FieldComponentProps";
52
52
  export * from "./Form";
53
53
  export * from "./Link";
54
54
  export * from "./MenuButton";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAEvD,OAAO,EACL,WAAW;AACX,4FAA4F;AAC5F,WAAW;AACX,4FAA4F;AAC5F,iBAAiB;AACjB,4FAA4F;AAC5F,OAAO;AACP,4FAA4F;AAC5F,cAAc;AACd,4FAA4F;AAC5F,SAAS;AACT,4FAA4F;AAC5F,YAAY;AACZ,4FAA4F;AAC5F,YAAY;AACZ,4FAA4F;AAC5F,aAAa;AACb,4FAA4F;AAC5F,QAAQ;AACR,4FAA4F;AAC5F,KAAK;AACL,4FAA4F;AAC5F,iBAAiB,EACjB,aAAa,GACd,MAAM,eAAe,CAAC;AAEvB,YAAY,EACV,gBAAgB,EAChB,sBAAsB,EACtB,YAAY,EACZ,mBAAmB,EACnB,cAAc,EACd,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAClB,aAAa,EACb,UAAU,EACV,sBAAsB,EACtB,YAAY,GACb,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AAEtE,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,OAAO,CAAC;AACtB,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,C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,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,OAAO,CAAC;AACtB,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../src/theme/components.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAsC7C,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAGvC,eAAO,MAAM,UAAU;mBAIN,YAAY;;MAEzB,YAAY,CAAC,YAAY,CAq4E5B,CAAC"}
1
+ {"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../src/theme/components.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAsC7C,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAGvC,eAAO,MAAM,UAAU;mBAIN,YAAY;;MAEzB,YAAY,CAAC,YAAY,CAq5E5B,CAAC"}
@@ -274,16 +274,33 @@ export const components = _ref => {
274
274
  },
275
275
  MuiAlertTitle: {
276
276
  styleOverrides: {
277
- root: {
278
- marginBlockStart: 0,
279
- marginBlockEnd: odysseyTokens.Spacing2,
280
- lineHeight: odysseyTokens.TypographyLineHeightHeading6,
281
- fontSize: odysseyTokens.TypographySizeHeading6,
282
- fontWeight: odysseyTokens.TypographyWeightHeading,
283
- fontFamily: odysseyTokens.TypographyFamilyHeading,
284
- [`&:last-child`]: {
285
- marginBlockEnd: 0
286
- }
277
+ root: _ref6 => {
278
+ let {
279
+ ownerState
280
+ } = _ref6;
281
+ return {
282
+ marginBlockStart: 0,
283
+ marginBlockEnd: odysseyTokens.Spacing2,
284
+ lineHeight: odysseyTokens.TypographyLineHeightHeading6,
285
+ fontSize: odysseyTokens.TypographySizeHeading6,
286
+ fontWeight: odysseyTokens.TypographyWeightHeading,
287
+ fontFamily: odysseyTokens.TypographyFamilyHeading,
288
+ ...(ownerState.severity === "info" && {
289
+ color: odysseyTokens.PalettePrimaryDark
290
+ }),
291
+ ...(ownerState.severity === "error" && {
292
+ color: odysseyTokens.PaletteDangerDarker
293
+ }),
294
+ ...(ownerState.severity === "success" && {
295
+ color: odysseyTokens.PaletteSuccessDarker
296
+ }),
297
+ ...(ownerState.severity === "warning" && {
298
+ color: odysseyTokens.PaletteWarningDarker
299
+ }),
300
+ [`&:last-child`]: {
301
+ marginBlockEnd: 0
302
+ }
303
+ };
287
304
  }
288
305
  }
289
306
  },
@@ -317,10 +334,10 @@ export const components = _ref => {
317
334
  marginRight: "unset",
318
335
  padding: odysseyTokens.Spacing1
319
336
  },
320
- endAdornment: _ref6 => {
337
+ endAdornment: _ref7 => {
321
338
  let {
322
339
  ownerState
323
- } = _ref6;
340
+ } = _ref7;
324
341
  return {
325
342
  display: "flex",
326
343
  gap: odysseyTokens.Spacing1,
@@ -382,10 +399,10 @@ export const components = _ref => {
382
399
  background: "transparent",
383
400
  paddingBlockStart: odysseyTokens.Spacing1
384
401
  },
385
- inputRoot: _ref7 => {
402
+ inputRoot: _ref8 => {
386
403
  let {
387
404
  ownerState
388
- } = _ref7;
405
+ } = _ref8;
389
406
  return {
390
407
  ...(ownerState.readOnly === true && {
391
408
  backgroundColor: odysseyTokens.HueNeutral50,
@@ -399,10 +416,10 @@ export const components = _ref => {
399
416
  },
400
417
  MuiBackdrop: {
401
418
  styleOverrides: {
402
- root: _ref8 => {
419
+ root: _ref9 => {
403
420
  let {
404
421
  ownerState
405
- } = _ref8;
422
+ } = _ref9;
406
423
  return {
407
424
  backgroundColor: "rgba(29,29,33,0.75)",
408
425
  ...(ownerState.invisible === true && {
@@ -449,10 +466,10 @@ export const components = _ref => {
449
466
  disableElevation: true
450
467
  },
451
468
  styleOverrides: {
452
- root: _ref9 => {
469
+ root: _ref10 => {
453
470
  let {
454
471
  ownerState
455
- } = _ref9;
472
+ } = _ref10;
456
473
  return {
457
474
  minWidth: "unset",
458
475
  paddingBlock: odysseyTokens.Spacing3,
@@ -598,10 +615,10 @@ export const components = _ref => {
598
615
  })
599
616
  };
600
617
  },
601
- endIcon: _ref10 => {
618
+ endIcon: _ref11 => {
602
619
  let {
603
620
  ownerState
604
- } = _ref10;
621
+ } = _ref11;
605
622
  return {
606
623
  display: "inline-flex",
607
624
  margin: 0,
@@ -611,10 +628,10 @@ export const components = _ref => {
611
628
  })
612
629
  };
613
630
  },
614
- startIcon: _ref11 => {
631
+ startIcon: _ref12 => {
615
632
  let {
616
633
  ownerState
617
- } = _ref11;
634
+ } = _ref12;
618
635
  return {
619
636
  display: "inline-flex",
620
637
  margin: 0,
@@ -639,10 +656,10 @@ export const components = _ref => {
639
656
  indeterminateIcon: _jsx(SubtractIcon, {})
640
657
  },
641
658
  styleOverrides: {
642
- root: _ref12 => {
659
+ root: _ref13 => {
643
660
  let {
644
661
  theme
645
- } = _ref12;
662
+ } = _ref13;
646
663
  return {
647
664
  width: `${odysseyTokens.TypographyLineHeightUi}em`,
648
665
  height: `${odysseyTokens.TypographyLineHeightUi}em`,
@@ -716,10 +733,10 @@ export const components = _ref => {
716
733
  deleteIcon: _jsx(CloseCircleFilledIcon, {})
717
734
  },
718
735
  styleOverrides: {
719
- root: _ref13 => {
736
+ root: _ref14 => {
720
737
  let {
721
738
  ownerState
722
- } = _ref13;
739
+ } = _ref14;
723
740
  return {
724
741
  height: "auto",
725
742
  paddingBlock: `calc(${odysseyTokens.Spacing2} - ${odysseyTokens.BorderWidthMain})`,
@@ -872,20 +889,20 @@ export const components = _ref => {
872
889
  variant: "indeterminate"
873
890
  },
874
891
  styleOverrides: {
875
- root: _ref14 => {
892
+ root: _ref15 => {
876
893
  let {
877
894
  ownerState
878
- } = _ref14;
895
+ } = _ref15;
879
896
  return {
880
897
  ...(ownerState.color !== "inherit" && {
881
898
  color: odysseyTokens.PalettePrimaryDark
882
899
  })
883
900
  };
884
901
  },
885
- circle: _ref15 => {
902
+ circle: _ref16 => {
886
903
  let {
887
904
  ownerState
888
- } = _ref15;
905
+ } = _ref16;
889
906
  return {
890
907
  ...(ownerState.variant === "indeterminate" && {
891
908
  strokeDasharray: "160%, 360%"
@@ -1214,10 +1231,10 @@ export const components = _ref => {
1214
1231
  },
1215
1232
  MuiDialogContent: {
1216
1233
  styleOverrides: {
1217
- root: _ref16 => {
1234
+ root: _ref17 => {
1218
1235
  let {
1219
1236
  ownerState
1220
- } = _ref16;
1237
+ } = _ref17;
1221
1238
  return {
1222
1239
  paddingBlock: 0,
1223
1240
  paddingInline: odysseyTokens.Spacing6,
@@ -1270,10 +1287,10 @@ export const components = _ref => {
1270
1287
  margin: "normal"
1271
1288
  },
1272
1289
  styleOverrides: {
1273
- root: _ref17 => {
1290
+ root: _ref18 => {
1274
1291
  let {
1275
1292
  ownerState
1276
- } = _ref17;
1293
+ } = _ref18;
1277
1294
  return {
1278
1295
  width: "100%",
1279
1296
  maxWidth: odysseyTokens.TypographyLineLengthMax,
@@ -1300,10 +1317,10 @@ export const components = _ref => {
1300
1317
  },
1301
1318
  MuiFormControlLabel: {
1302
1319
  styleOverrides: {
1303
- root: _ref18 => {
1320
+ root: _ref19 => {
1304
1321
  let {
1305
1322
  ownerState
1306
- } = _ref18;
1323
+ } = _ref19;
1307
1324
  return {
1308
1325
  gap: odysseyTokens.Spacing2,
1309
1326
  marginInlineStart: 0,
@@ -1408,10 +1425,10 @@ export const components = _ref => {
1408
1425
  },
1409
1426
  MuiInputAdornment: {
1410
1427
  styleOverrides: {
1411
- root: _ref19 => {
1428
+ root: _ref20 => {
1412
1429
  let {
1413
1430
  ownerState
1414
- } = _ref19;
1431
+ } = _ref20;
1415
1432
  return {
1416
1433
  display: "flex",
1417
1434
  minWidth: "1.25em",
@@ -1438,11 +1455,11 @@ export const components = _ref => {
1438
1455
  minRows: 3
1439
1456
  },
1440
1457
  styleOverrides: {
1441
- root: _ref20 => {
1458
+ root: _ref21 => {
1442
1459
  let {
1443
1460
  ownerState,
1444
1461
  theme
1445
- } = _ref20;
1462
+ } = _ref21;
1446
1463
  return {
1447
1464
  ...theme.typography.body1,
1448
1465
  flex: "1",
@@ -1533,10 +1550,10 @@ export const components = _ref => {
1533
1550
  shrink: false
1534
1551
  },
1535
1552
  styleOverrides: {
1536
- root: _ref21 => {
1553
+ root: _ref22 => {
1537
1554
  let {
1538
1555
  ownerState
1539
- } = _ref21;
1556
+ } = _ref22;
1540
1557
  return {
1541
1558
  display: "flex",
1542
1559
  justifyContent: "space-between",
@@ -1658,10 +1675,10 @@ export const components = _ref => {
1658
1675
  },
1659
1676
  MuiMenuItem: {
1660
1677
  styleOverrides: {
1661
- root: _ref22 => {
1678
+ root: _ref23 => {
1662
1679
  let {
1663
1680
  ownerState
1664
- } = _ref22;
1681
+ } = _ref23;
1665
1682
  return {
1666
1683
  gap: odysseyTokens.Spacing2,
1667
1684
  minHeight: "unset",
@@ -1784,10 +1801,10 @@ export const components = _ref => {
1784
1801
  checkedIcon: _jsx(_Fragment, {})
1785
1802
  },
1786
1803
  styleOverrides: {
1787
- root: _ref23 => {
1804
+ root: _ref24 => {
1788
1805
  let {
1789
1806
  theme
1790
- } = _ref23;
1807
+ } = _ref24;
1791
1808
  return {
1792
1809
  width: `${odysseyTokens.TypographyLineHeightUi}em`,
1793
1810
  height: `${odysseyTokens.TypographyLineHeightUi}em`,
@@ -1910,10 +1927,10 @@ export const components = _ref => {
1910
1927
  color: "inherit"
1911
1928
  },
1912
1929
  styleOverrides: {
1913
- root: _ref24 => {
1930
+ root: _ref25 => {
1914
1931
  let {
1915
1932
  ownerState
1916
- } = _ref24;
1933
+ } = _ref25;
1917
1934
  return {
1918
1935
  fontSize: `${odysseyTokens.TypographyLineHeightUi}rem`,
1919
1936
  ...(ownerState.fontSize === "small" && {
@@ -1931,10 +1948,10 @@ export const components = _ref => {
1931
1948
  iconPosition: "start"
1932
1949
  },
1933
1950
  styleOverrides: {
1934
- root: _ref25 => {
1951
+ root: _ref26 => {
1935
1952
  let {
1936
1953
  ownerState
1937
- } = _ref25;
1954
+ } = _ref26;
1938
1955
  return {
1939
1956
  maxWidth: `calc(${odysseyTokens.TypographyLineLengthMax} / 2)`,
1940
1957
  minWidth: "unset",
@@ -1988,10 +2005,10 @@ export const components = _ref => {
1988
2005
  },
1989
2006
  MuiTable: {
1990
2007
  styleOverrides: {
1991
- root: _ref26 => {
2008
+ root: _ref27 => {
1992
2009
  let {
1993
2010
  ownerState
1994
- } = _ref26;
2011
+ } = _ref27;
1995
2012
  return {
1996
2013
  display: "table",
1997
2014
  width: "auto",
@@ -2023,11 +2040,11 @@ export const components = _ref => {
2023
2040
  },
2024
2041
  MuiTableCell: {
2025
2042
  styleOverrides: {
2026
- root: _ref27 => {
2043
+ root: _ref28 => {
2027
2044
  let {
2028
2045
  theme,
2029
2046
  ownerState
2030
- } = _ref27;
2047
+ } = _ref28;
2031
2048
  return {
2032
2049
  ...theme.typography.body1,
2033
2050
  maxWidth: odysseyTokens.TypographyLineLengthMax,
@@ -2168,11 +2185,11 @@ export const components = _ref => {
2168
2185
  }
2169
2186
  }
2170
2187
  },
2171
- icon: _ref28 => {
2188
+ icon: _ref29 => {
2172
2189
  let {
2173
2190
  theme,
2174
2191
  ownerState
2175
- } = _ref28;
2192
+ } = _ref29;
2176
2193
  return {
2177
2194
  fontSize: "inherit",
2178
2195
  marginInlineEnd: 0,
@@ -2222,10 +2239,10 @@ export const components = _ref => {
2222
2239
  placement: "top"
2223
2240
  },
2224
2241
  styleOverrides: {
2225
- tooltip: _ref29 => {
2242
+ tooltip: _ref30 => {
2226
2243
  let {
2227
2244
  ownerState
2228
- } = _ref29;
2245
+ } = _ref30;
2229
2246
  return {
2230
2247
  maxWidth: `calc(${odysseyTokens.TypographyLineLengthMax} / 2)`,
2231
2248
  paddingBlock: odysseyTokens.Spacing2,