@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
@@ -17,193 +17,139 @@ const odysseyTheme = createOdysseyMuiTheme({
17
17
  odysseyTokens
18
18
  });
19
19
  const dateStyles = {
20
- default: _ref => {
21
- let {
22
- theme
23
- } = _ref;
24
- return {
25
- color: theme.palette.text.primary
26
- };
27
- },
28
- disabled: _ref2 => {
29
- let {
30
- theme
31
- } = _ref2;
32
- return {
33
- backgroundColor: "transparent",
34
- color: theme.palette.text.disabled
35
- };
36
- },
37
- hover: _ref3 => {
38
- let {
39
- theme
40
- } = _ref3;
41
- return {
42
- backgroundColor: theme.palette.grey[100]
43
- };
44
- },
45
- hoverSelected: _ref4 => {
46
- let {
47
- theme
48
- } = _ref4;
49
- return {
50
- backgroundColor: theme.palette.primary.dark,
51
- color: theme.palette.primary.contrastText
52
- };
53
- },
54
- outsideOfMonth: _ref5 => {
55
- let {
56
- theme
57
- } = _ref5;
58
- return {
59
- backgroundColor: "transparent",
60
- color: theme.palette.text.secondary
61
- };
62
- },
63
- selected: _ref6 => {
64
- let {
65
- theme
66
- } = _ref6;
67
- return {
68
- backgroundColor: theme.palette.primary.main,
69
- color: theme.palette.primary.contrastText
70
- };
71
- },
72
- today: _ref7 => {
73
- let {
74
- theme
75
- } = _ref7;
76
- return {
77
- backgroundColor: "transparent",
78
- color: theme.palette.primary.main
79
- };
80
- }
20
+ default: ({
21
+ theme
22
+ }) => ({
23
+ color: theme.palette.text.primary
24
+ }),
25
+ disabled: ({
26
+ theme
27
+ }) => ({
28
+ backgroundColor: "transparent",
29
+ color: theme.palette.text.disabled
30
+ }),
31
+ hover: ({
32
+ theme
33
+ }) => ({
34
+ backgroundColor: theme.palette.grey[100]
35
+ }),
36
+ hoverSelected: ({
37
+ theme
38
+ }) => ({
39
+ backgroundColor: theme.palette.primary.dark,
40
+ color: theme.palette.primary.contrastText
41
+ }),
42
+ outsideOfMonth: ({
43
+ theme
44
+ }) => ({
45
+ backgroundColor: "transparent",
46
+ color: theme.palette.text.secondary
47
+ }),
48
+ selected: ({
49
+ theme
50
+ }) => ({
51
+ backgroundColor: theme.palette.primary.main,
52
+ color: theme.palette.primary.contrastText
53
+ }),
54
+ today: ({
55
+ theme
56
+ }) => ({
57
+ backgroundColor: "transparent",
58
+ color: theme.palette.primary.main
59
+ })
81
60
  };
82
61
  const todayDotStyles = {
83
- default: _ref8 => {
84
- let {
85
- theme
86
- } = _ref8;
87
- return {
88
- backgroundColor: theme.palette.primary.main,
89
- borderRadius: "50%",
90
- bottom: theme.spacing(1),
91
- content: '" "',
92
- height: `${2 / theme.typography.fontSize}em`,
93
- position: "absolute",
94
- transform: "translateY(-50%)",
95
- width: `${2 / theme.typography.fontSize}em`
96
- };
97
- },
98
- hover: _ref9 => {
99
- let {
100
- theme
101
- } = _ref9;
102
- return {
103
- backgroundColor: theme.palette.primary.main
104
- };
105
- },
106
- selected: _ref10 => {
107
- let {
108
- theme
109
- } = _ref10;
110
- return {
111
- backgroundColor: theme.palette.primary.contrastText
112
- };
113
- }
62
+ default: ({
63
+ theme
64
+ }) => ({
65
+ backgroundColor: theme.palette.primary.main,
66
+ borderRadius: "50%",
67
+ bottom: theme.spacing(1),
68
+ content: '" "',
69
+ height: `${2 / theme.typography.fontSize}em`,
70
+ position: "absolute",
71
+ transform: "translateY(-50%)",
72
+ width: `${2 / theme.typography.fontSize}em`
73
+ }),
74
+ hover: ({
75
+ theme
76
+ }) => ({
77
+ backgroundColor: theme.palette.primary.main
78
+ }),
79
+ selected: ({
80
+ theme
81
+ }) => ({
82
+ backgroundColor: theme.palette.primary.contrastText
83
+ })
114
84
  };
115
85
  const yearStyles = {
116
- default: _ref11 => {
117
- let {
118
- theme
119
- } = _ref11;
120
- return {
121
- backgroundColor: "transparent",
122
- color: theme.palette.text.primary
123
- };
124
- },
125
- disabled: _ref12 => {
126
- let {
127
- theme
128
- } = _ref12;
129
- return {
130
- backgroundColor: "transparent",
131
- color: theme.palette.text.disabled
132
- };
133
- },
134
- hover: _ref13 => {
135
- let {
136
- theme
137
- } = _ref13;
138
- return {
139
- backgroundColor: theme.palette.grey[100]
140
- };
141
- },
142
- hoverSelected: _ref14 => {
143
- let {
144
- theme
145
- } = _ref14;
146
- return {
147
- backgroundColor: theme.palette.primary.lighter,
148
- color: theme.palette.primary.main
149
- };
150
- },
151
- outsideOfMonth: _ref15 => {
152
- let {
153
- theme
154
- } = _ref15;
155
- return {
156
- backgroundColor: "transparent",
157
- color: theme.palette.text.secondary
158
- };
159
- },
160
- selected: _ref16 => {
161
- let {
162
- theme
163
- } = _ref16;
164
- return {
165
- backgroundColor: "transparent",
166
- color: theme.palette.primary.main,
167
- fontWeight: theme.typography.fontWeightBold
168
- };
169
- }
86
+ default: ({
87
+ theme
88
+ }) => ({
89
+ backgroundColor: "transparent",
90
+ color: theme.palette.text.primary
91
+ }),
92
+ disabled: ({
93
+ theme
94
+ }) => ({
95
+ backgroundColor: "transparent",
96
+ color: theme.palette.text.disabled
97
+ }),
98
+ hover: ({
99
+ theme
100
+ }) => ({
101
+ backgroundColor: theme.palette.grey[100]
102
+ }),
103
+ hoverSelected: ({
104
+ theme
105
+ }) => ({
106
+ backgroundColor: theme.palette.primary.lighter,
107
+ color: theme.palette.primary.main
108
+ }),
109
+ outsideOfMonth: ({
110
+ theme
111
+ }) => ({
112
+ backgroundColor: "transparent",
113
+ color: theme.palette.text.secondary
114
+ }),
115
+ selected: ({
116
+ theme
117
+ }) => ({
118
+ backgroundColor: "transparent",
119
+ color: theme.palette.primary.main,
120
+ fontWeight: theme.typography.fontWeightBold
121
+ })
170
122
  };
171
123
  const yearCheckStyles = {
172
- default: _ref17 => {
173
- let {
174
- theme
175
- } = _ref17;
176
- return {
177
- backgroundColor: theme.palette.primary.main,
178
- content: '""',
179
- height: theme.typography.h6.fontSize,
180
- maskImage: "url(\"data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%0A%3E%3Cpath fillRule='evenodd' clipRule='evenodd' d='M14.3536 4.35355L6.35355 12.3536C6.15829 12.5488 5.84171 12.5488 5.64645 12.3536L1.64645 8.35355L2.35355 7.64645L6 11.2929L13.6464 3.64645L14.3536 4.35355Z' fill='currentColor' /%3E%3C/svg%3E%0A\")",
181
- maskPosition: "50% 50%",
182
- maskRepeat: "no-repeat",
183
- position: "absolute",
184
- right: theme.spacing(4),
185
- width: theme.typography.h6.fontSize
186
- };
187
- }
124
+ default: ({
125
+ theme
126
+ }) => ({
127
+ backgroundColor: theme.palette.primary.main,
128
+ content: '""',
129
+ height: theme.typography.h6.fontSize,
130
+ maskImage: "url(\"data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%0A%3E%3Cpath fillRule='evenodd' clipRule='evenodd' d='M14.3536 4.35355L6.35355 12.3536C6.15829 12.5488 5.84171 12.5488 5.64645 12.3536L1.64645 8.35355L2.35355 7.64645L6 11.2929L13.6464 3.64645L14.3536 4.35355Z' fill='currentColor' /%3E%3C/svg%3E%0A\")",
131
+ maskPosition: "50% 50%",
132
+ maskRepeat: "no-repeat",
133
+ position: "absolute",
134
+ right: theme.spacing(4),
135
+ width: theme.typography.h6.fontSize
136
+ })
188
137
  };
189
138
  export const datePickerTheme = {
190
139
  components: {
191
140
  MuiCalendarPicker: {
192
141
  styleOverrides: {
193
- root: _ref18 => {
194
- let {
195
- theme
196
- } = _ref18;
197
- return {
198
- borderColor: theme.palette.divider,
199
- borderStyle: theme.mixins.borderStyle,
200
- borderWidth: theme.mixins.borderWidth,
201
- borderRadius: theme.mixins.borderRadius,
202
- paddingBottom: theme.spacing(popupSpacingValue),
203
- paddingTop: theme.spacing(4),
204
- width: "100%"
205
- };
206
- }
142
+ root: ({
143
+ theme
144
+ }) => ({
145
+ borderColor: theme.palette.divider,
146
+ borderStyle: theme.mixins.borderStyle,
147
+ borderWidth: theme.mixins.borderWidth,
148
+ borderRadius: theme.mixins.borderRadius,
149
+ paddingBottom: theme.spacing(popupSpacingValue),
150
+ paddingTop: theme.spacing(4),
151
+ width: "100%"
152
+ })
207
153
  }
208
154
  },
209
155
  MuiCalendarOrClockPicker: {
@@ -231,54 +177,45 @@ export const datePickerTheme = {
231
177
  },
232
178
  MuiDayPicker: {
233
179
  styleOverrides: {
234
- header: _ref19 => {
235
- let {
236
- theme
237
- } = _ref19;
238
- return {
239
- gap: theme.spacing(1),
240
- justifyContent: "space-between",
241
- paddingLeft: theme.spacing(popupSpacingValue),
242
- paddingRight: theme.spacing(popupSpacingValue)
243
- };
244
- },
180
+ header: ({
181
+ theme
182
+ }) => ({
183
+ gap: theme.spacing(1),
184
+ justifyContent: "space-between",
185
+ paddingLeft: theme.spacing(popupSpacingValue),
186
+ paddingRight: theme.spacing(popupSpacingValue)
187
+ }),
245
188
  slideTransition: () => ({
246
189
  minHeight: `${214 / 16 * (16 / 14)}rem`
247
190
  }),
248
- weekContainer: _ref20 => {
249
- let {
250
- theme
251
- } = _ref20;
252
- return {
253
- gap: theme.spacing(1),
254
- justifyContent: "space-between",
255
- marginBottom: theme.spacing(1),
256
- marginLeft: 0,
257
- marginRight: 0,
258
- paddingLeft: theme.spacing(popupSpacingValue),
259
- paddingRight: theme.spacing(popupSpacingValue),
260
- "&:last-child": {
261
- marginBottom: 0
262
- }
263
- };
264
- },
265
- weekDayLabel: _ref21 => {
266
- let {
267
- theme
268
- } = _ref21;
269
- return {
270
- color: theme.palette.grey[900],
271
- flexBasis: theme.spacing(6),
272
- flexShrink: 0,
273
- fontSize: theme.typography.subtitle1.fontSize,
274
- fontWeight: theme.typography.fontWeightBold,
275
- height: theme.spacing(6),
276
- marginBottom: theme.spacing(2),
277
- marginLeft: 0,
278
- marginRight: 0,
279
- width: theme.spacing(6)
280
- };
281
- }
191
+ weekContainer: ({
192
+ theme
193
+ }) => ({
194
+ gap: theme.spacing(1),
195
+ justifyContent: "space-between",
196
+ marginBottom: theme.spacing(1),
197
+ marginLeft: 0,
198
+ marginRight: 0,
199
+ paddingLeft: theme.spacing(popupSpacingValue),
200
+ paddingRight: theme.spacing(popupSpacingValue),
201
+ "&:last-child": {
202
+ marginBottom: 0
203
+ }
204
+ }),
205
+ weekDayLabel: ({
206
+ theme
207
+ }) => ({
208
+ color: theme.palette.grey[900],
209
+ flexBasis: theme.spacing(6),
210
+ flexShrink: 0,
211
+ fontSize: theme.typography.subtitle1.fontSize,
212
+ fontWeight: theme.typography.fontWeightBold,
213
+ height: theme.spacing(6),
214
+ marginBottom: theme.spacing(2),
215
+ marginLeft: 0,
216
+ marginRight: 0,
217
+ width: theme.spacing(6)
218
+ })
282
219
  }
283
220
  },
284
221
  MuiDatePicker: {
@@ -294,27 +231,21 @@ export const datePickerTheme = {
294
231
  },
295
232
  MuiPickersCalendarHeader: {
296
233
  styleOverrides: {
297
- label: _ref22 => {
298
- let {
299
- theme
300
- } = _ref22;
301
- return {
302
- fontSize: theme.typography.h6.fontSize,
303
- fontWeight: theme.typography.fontWeightBold
304
- };
305
- },
306
- root: _ref23 => {
307
- let {
308
- theme
309
- } = _ref23;
310
- return {
311
- marginBottom: theme.spacing(1),
312
- marginTop: 0,
313
- paddingLeft: `calc(${theme.spacing(popupSpacingValue)} + ${theme.spacing(2)})`,
314
- paddingRight: theme.spacing(popupSpacingValue),
315
- width: "auto"
316
- };
317
- }
234
+ label: ({
235
+ theme
236
+ }) => ({
237
+ fontSize: theme.typography.h6.fontSize,
238
+ fontWeight: theme.typography.fontWeightBold
239
+ }),
240
+ root: ({
241
+ theme
242
+ }) => ({
243
+ marginBottom: theme.spacing(1),
244
+ marginTop: 0,
245
+ paddingLeft: `calc(${theme.spacing(popupSpacingValue)} + ${theme.spacing(2)})`,
246
+ paddingRight: theme.spacing(popupSpacingValue),
247
+ width: "auto"
248
+ })
318
249
  }
319
250
  },
320
251
  MuiPickersDay: {
@@ -323,134 +254,119 @@ export const datePickerTheme = {
323
254
  marginLeft: 0,
324
255
  marginRight: 0
325
256
  }),
326
- root: _ref24 => {
327
- let {
328
- theme
329
- } = _ref24;
330
- return [dateStyles.default({
257
+ root: ({
258
+ theme
259
+ }) => [dateStyles.default({
260
+ theme
261
+ }), {
262
+ border: "none",
263
+ borderRadius: theme.mixins.borderRadius,
264
+ flexBasis: theme.spacing(6),
265
+ flexShrink: 0,
266
+ fontSize: theme.typography.body1.fontSize,
267
+ height: theme.spacing(6),
268
+ width: theme.spacing(6),
269
+ "&.MuiPickersDay-today": [dateStyles.today({
331
270
  theme
332
271
  }), {
333
- border: "none",
334
- borderRadius: theme.mixins.borderRadius,
335
- flexBasis: theme.spacing(6),
336
- flexShrink: 0,
337
- fontSize: theme.typography.body1.fontSize,
338
- height: theme.spacing(6),
339
- width: theme.spacing(6),
340
- "&.MuiPickersDay-today": [dateStyles.today({
341
- theme
342
- }), {
343
- fontWeight: theme.typography.fontWeightBold
344
- }],
345
- "&.MuiPickersDay-today::after": todayDotStyles.default({
346
- theme
347
- }),
348
- "&.MuiPickersDay-today.Mui-selected::after": todayDotStyles.selected({
349
- theme
350
- }),
351
- "&.MuiPickersDay-dayOutsideMonth": dateStyles.outsideOfMonth({
352
- theme
353
- }),
354
- "&:hover": dateStyles.hover({
355
- theme
356
- }),
357
- "&:not(.Mui-selected)": {
358
- border: "none"
359
- },
360
- "&.Mui-selected, &.Mui-selected:focus": dateStyles.selected({
361
- theme
362
- }),
363
- "&.Mui-selected:hover": dateStyles.hoverSelected({
364
- theme
365
- }),
366
- "&.Mui-disabled": dateStyles.disabled({
367
- theme
368
- })
369
- }];
370
- }
272
+ fontWeight: theme.typography.fontWeightBold
273
+ }],
274
+ "&.MuiPickersDay-today::after": todayDotStyles.default({
275
+ theme
276
+ }),
277
+ "&.MuiPickersDay-today.Mui-selected::after": todayDotStyles.selected({
278
+ theme
279
+ }),
280
+ "&.MuiPickersDay-dayOutsideMonth": dateStyles.outsideOfMonth({
281
+ theme
282
+ }),
283
+ "&:hover": dateStyles.hover({
284
+ theme
285
+ }),
286
+ "&:not(.Mui-selected)": {
287
+ border: "none"
288
+ },
289
+ "&.Mui-selected, &.Mui-selected:focus": dateStyles.selected({
290
+ theme
291
+ }),
292
+ "&.Mui-selected:hover": dateStyles.hoverSelected({
293
+ theme
294
+ }),
295
+ "&.Mui-disabled": dateStyles.disabled({
296
+ theme
297
+ })
298
+ }]
371
299
  }
372
300
  },
373
301
  MuiPickersPopper: {
374
302
  styleOverrides: {
375
- paper: _ref25 => {
376
- let {
377
- theme
378
- } = _ref25;
379
- return {
380
- boxShadow: `0 ${1 / 16 * (16 / 14)}rem ${4 / 16 * (16 / 14)}rem rgba(29, 29, 33, 0.08), 0 ${4 / 16 * (16 / 14)}rem ${10 / 16 * (16 / 14)}rem rgba(29, 29, 33, 0.08), 0 ${8 / 16 * (16 / 14)}rem ${30 / 16 * (16 / 14)}rem rgba(29, 29, 33, 0.1)`,
381
- marginTop: theme.spacing(1)
382
- };
383
- }
303
+ paper: ({
304
+ theme
305
+ }) => ({
306
+ boxShadow: `0 ${1 / 16 * (16 / 14)}rem ${4 / 16 * (16 / 14)}rem rgba(29, 29, 33, 0.08), 0 ${4 / 16 * (16 / 14)}rem ${10 / 16 * (16 / 14)}rem rgba(29, 29, 33, 0.08), 0 ${8 / 16 * (16 / 14)}rem ${30 / 16 * (16 / 14)}rem rgba(29, 29, 33, 0.1)`,
307
+ marginTop: theme.spacing(1)
308
+ })
384
309
  }
385
310
  },
386
311
  MuiYearPicker: {
387
312
  styleOverrides: {
388
- root: _ref26 => {
389
- let {
390
- theme
391
- } = _ref26;
392
- return {
393
- alignItems: "flex-start",
394
- flexDirection: "column",
395
- flexWrap: "nowrap",
396
- marginBottom: `-${theme.spacing(popupSpacingValue)}`,
397
- marginInlineEnd: 0,
398
- maxHeight: `${284 / 16 * (16 / 14)}rem`,
399
- paddingLeft: 0,
400
- paddingRight: 0
401
- };
402
- }
313
+ root: ({
314
+ theme
315
+ }) => ({
316
+ alignItems: "flex-start",
317
+ flexDirection: "column",
318
+ flexWrap: "nowrap",
319
+ marginBottom: `-${theme.spacing(popupSpacingValue)}`,
320
+ marginInlineEnd: 0,
321
+ maxHeight: `${284 / 16 * (16 / 14)}rem`,
322
+ paddingLeft: 0,
323
+ paddingRight: 0
324
+ })
403
325
  }
404
326
  },
405
327
  PrivatePickersYear: {
406
328
  styleOverrides: {
407
- button: _ref27 => {
408
- let {
329
+ button: ({
330
+ theme
331
+ }) => [yearStyles.default({
332
+ theme
333
+ }), {
334
+ alignItems: "center",
335
+ borderRadius: 0,
336
+ display: "flex",
337
+ fontSize: theme.typography.body1.fontSize,
338
+ justifyContent: "flex-start",
339
+ marginBottom: 0,
340
+ marginTop: 0,
341
+ paddingLeft: theme.spacing(7),
342
+ position: "relative",
343
+ width: "100%",
344
+ "&:hover": yearStyles.hover({
409
345
  theme
410
- } = _ref27;
411
- return [yearStyles.default({
346
+ }),
347
+ "&:not(.Mui-selected)": {
348
+ border: "none"
349
+ },
350
+ "&.Mui-disabled": yearStyles.disabled({
412
351
  theme
413
- }), {
414
- alignItems: "center",
415
- borderRadius: 0,
416
- display: "flex",
417
- fontSize: theme.typography.body1.fontSize,
418
- justifyContent: "flex-start",
419
- marginBottom: 0,
420
- marginTop: 0,
421
- paddingLeft: theme.spacing(7),
422
- position: "relative",
423
- width: "100%",
424
- "&:hover": yearStyles.hover({
425
- theme
426
- }),
427
- "&:not(.Mui-selected)": {
428
- border: "none"
429
- },
430
- "&.Mui-disabled": yearStyles.disabled({
431
- theme
432
- })
433
- }];
434
- },
352
+ })
353
+ }],
435
354
  root: () => ({
436
355
  width: "100%"
437
356
  }),
438
- selected: _ref28 => {
439
- let {
357
+ selected: ({
358
+ theme
359
+ }) => ({
360
+ "&, &:focus": yearStyles.selected({
440
361
  theme
441
- } = _ref28;
442
- return {
443
- "&, &:focus": yearStyles.selected({
444
- theme
445
- }),
446
- "&:hover": yearStyles.hoverSelected({
447
- theme
448
- }),
449
- "&::after": yearCheckStyles.default({
450
- theme
451
- })
452
- };
453
- }
362
+ }),
363
+ "&:hover": yearStyles.hoverSelected({
364
+ theme
365
+ }),
366
+ "&::after": yearCheckStyles.default({
367
+ theme
368
+ })
369
+ })
454
370
  }
455
371
  }
456
372
  }