@pingux/astro 2.245.0 → 2.246.0-alpha.0

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 (45) hide show
  1. package/lib/cjs/components/Calendar/CalendarCell.js +8 -2
  2. package/lib/cjs/components/DatePicker/DateField.js +24 -5
  3. package/lib/cjs/components/DatePicker/DatePicker.js +19 -9
  4. package/lib/cjs/components/TableBase/TableBase.js +14 -3
  5. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/colors.d.ts +1 -0
  6. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/colors.js +3 -2
  7. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/buttons.d.ts +17 -0
  8. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/buttons.js +17 -0
  9. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/calendar.d.ts +113 -0
  10. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/calendar.js +128 -0
  11. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/forms.d.ts +1822 -0
  12. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/forms.js +42 -2
  13. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/variants.d.ts +112 -0
  14. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/variants.js +3 -1
  15. package/lib/cjs/styles/themeOverrides/onyxUiLibraryOverride.js +5 -1
  16. package/lib/cjs/styles/themes/next-gen/colors/colors.d.ts +1 -0
  17. package/lib/cjs/styles/themes/next-gen/colors/colors.js +1 -0
  18. package/lib/cjs/styles/themes/next-gen/convertedComponentList.js +1 -1
  19. package/lib/cjs/styles/themes/next-gen/forms.d.ts +2044 -214
  20. package/lib/cjs/styles/themes/next-gen/forms.js +48 -2
  21. package/lib/cjs/styles/themes/next-gen/next-gen.d.ts +1185 -90
  22. package/lib/cjs/styles/themes/next-gen/variants/button.d.ts +22 -0
  23. package/lib/cjs/styles/themes/next-gen/variants/button.js +22 -0
  24. package/lib/cjs/styles/themes/next-gen/variants/calendar.d.ts +158 -0
  25. package/lib/cjs/styles/themes/next-gen/variants/calendar.js +172 -0
  26. package/lib/cjs/styles/themes/next-gen/variants/variants.d.ts +157 -0
  27. package/lib/cjs/styles/themes/next-gen/variants/variants.js +2 -0
  28. package/lib/cjs/types/popoverContainer.d.ts +7 -2
  29. package/lib/components/Calendar/CalendarCell.js +9 -3
  30. package/lib/components/DatePicker/DateField.js +25 -6
  31. package/lib/components/DatePicker/DatePicker.js +20 -10
  32. package/lib/components/TableBase/TableBase.js +14 -3
  33. package/lib/styles/themeOverrides/nextGenDarkMode/colors.js +3 -2
  34. package/lib/styles/themeOverrides/nextGenDarkMode/variants/buttons.js +17 -0
  35. package/lib/styles/themeOverrides/nextGenDarkMode/variants/calendar.js +122 -0
  36. package/lib/styles/themeOverrides/nextGenDarkMode/variants/forms.js +41 -1
  37. package/lib/styles/themeOverrides/nextGenDarkMode/variants/variants.js +3 -1
  38. package/lib/styles/themeOverrides/onyxUiLibraryOverride.js +5 -1
  39. package/lib/styles/themes/next-gen/colors/colors.js +1 -0
  40. package/lib/styles/themes/next-gen/convertedComponentList.js +1 -1
  41. package/lib/styles/themes/next-gen/forms.js +47 -1
  42. package/lib/styles/themes/next-gen/variants/button.js +22 -0
  43. package/lib/styles/themes/next-gen/variants/calendar.js +166 -0
  44. package/lib/styles/themes/next-gen/variants/variants.js +2 -0
  45. package/package.json +1 -1
@@ -1367,6 +1367,28 @@ declare const buttons: {
1367
1367
  alignSelf: string;
1368
1368
  };
1369
1369
  };
1370
+ datePicker: {
1371
+ containedIcon: {
1372
+ width: number;
1373
+ height: number;
1374
+ minWidth: number;
1375
+ right: number;
1376
+ px: number;
1377
+ py: number;
1378
+ border: string;
1379
+ '&.is-disabled': {
1380
+ opacity: number;
1381
+ };
1382
+ '&.is-hovered': {
1383
+ backgroundColor: string;
1384
+ };
1385
+ '&.is-pressed': {
1386
+ '.material-symbols-outlined': {
1387
+ color: string;
1388
+ };
1389
+ };
1390
+ };
1391
+ };
1370
1392
  };
1371
1393
  modalCloseButton: {
1372
1394
  path: {
@@ -672,6 +672,28 @@ const iconButtons = {
672
672
  backgroundColor: _onyxTokens.astroTokens.color.common.light
673
673
  }
674
674
  }
675
+ },
676
+ datePicker: {
677
+ containedIcon: {
678
+ width: 28,
679
+ height: 28,
680
+ minWidth: 18,
681
+ right: 20,
682
+ px: 0,
683
+ py: 0,
684
+ border: 'none',
685
+ '&.is-disabled': {
686
+ opacity: 1
687
+ },
688
+ '&.is-hovered': {
689
+ backgroundColor: _onyxTokens.astroTokens.color.gray[100]
690
+ },
691
+ '&.is-pressed': {
692
+ '.material-symbols-outlined': {
693
+ color: 'white'
694
+ }
695
+ }
696
+ }
675
697
  }
676
698
  };
677
699
  const listBoxLink = {
@@ -0,0 +1,158 @@
1
+ declare const _default: {
2
+ calendarBody: {
3
+ py: string;
4
+ borderTop: string;
5
+ backgroundColor: string;
6
+ '& > tr:nth-of-type(odd) ': {
7
+ backgroundColor: string;
8
+ };
9
+ };
10
+ calendarButton: {
11
+ height: string;
12
+ width: string;
13
+ margin: string;
14
+ p: number;
15
+ fontWeight: string;
16
+ fontSize: string;
17
+ borderRadius: number;
18
+ color: string;
19
+ lineHeight: number;
20
+ justifyContent: string;
21
+ '&.is-hovered': {
22
+ bg: string;
23
+ color: string;
24
+ cursor: string;
25
+ };
26
+ '&.is-selected': {
27
+ bg: string;
28
+ color: string;
29
+ borderRadius: number;
30
+ outline: string;
31
+ boxShadow: string;
32
+ };
33
+ '&.is-selection-start': {
34
+ borderRadius: number;
35
+ };
36
+ '&.is-selection-end': {
37
+ borderRadius: number;
38
+ };
39
+ '&.is-start-and-end': {
40
+ borderRadius: number;
41
+ };
42
+ '&.is-focused, &:focus-visible': {
43
+ outline: string;
44
+ outlineStyle: string;
45
+ outlineColor: string;
46
+ outlineOffset: string;
47
+ };
48
+ '&.is-disabled': {
49
+ backgroundColor: string;
50
+ cursor: string;
51
+ '&.is-hovered': {
52
+ backgroundColor: string;
53
+ };
54
+ };
55
+ '&.is-unavailable': {
56
+ backgroundColor: string;
57
+ color: string;
58
+ '&.is-hovered': {
59
+ cursor: string;
60
+ };
61
+ };
62
+ '&:not(.is-unavailable)&.is-outside-month': {
63
+ backgroundColor: string;
64
+ };
65
+ '&:not(.is-outside-visible-range)&.is-extreme&:not(.is-completely-disabled)': {
66
+ backgroundColor: string;
67
+ color: string;
68
+ cursor: string;
69
+ '&.is-hovered': {
70
+ backgroundColor: string;
71
+ };
72
+ };
73
+ };
74
+ calendarCell: {
75
+ height: string;
76
+ width: string;
77
+ px: number;
78
+ color: string;
79
+ '&.is-outside-month': {
80
+ opacity: number;
81
+ backgroundColor: string;
82
+ color: string;
83
+ '& [data-hidden="true"], & > [hidden]': {
84
+ color: string;
85
+ };
86
+ '&.is-completely-disabled': {
87
+ backgroundColor: string;
88
+ color: string;
89
+ '& > [hidden]': {
90
+ color: string;
91
+ };
92
+ '&.is-hovered': {
93
+ backgroundColor: string;
94
+ color: string;
95
+ };
96
+ };
97
+ '&.is-unavailable': {
98
+ backgroundColor: string;
99
+ color: string;
100
+ '& > [hidden]': {
101
+ color: string;
102
+ };
103
+ '&.is-hovered': {
104
+ backgroundColor: string;
105
+ color: string;
106
+ };
107
+ };
108
+ '&.is-extreme:not(.is-completely-disabled):not(.is-unavailable)': {
109
+ backgroundColor: string;
110
+ color: string;
111
+ '& > [hidden]': {
112
+ color: string;
113
+ };
114
+ '&.is-hovered': {
115
+ backgroundColor: string;
116
+ color: string;
117
+ };
118
+ };
119
+ };
120
+ };
121
+ calendarContainer: {
122
+ boxShadow: string;
123
+ border: string;
124
+ borderColor: string;
125
+ borderRadius: number;
126
+ p: string;
127
+ bg: string;
128
+ color: string;
129
+ maxWidth: string;
130
+ };
131
+ calendarHeader: {
132
+ justifyContent: string;
133
+ alignItems: string;
134
+ color: string;
135
+ };
136
+ calendarHeaderContainer: {
137
+ mt: number;
138
+ height: string;
139
+ mb: string;
140
+ width: string;
141
+ };
142
+ columnHeader: {
143
+ color: string;
144
+ fontWeight: number;
145
+ fontSize: string;
146
+ borderBottom: string;
147
+ borderBottomColor: string;
148
+ pb: string;
149
+ mb: string;
150
+ '&.is-disabled': {
151
+ opacity: number;
152
+ };
153
+ };
154
+ calendarRow: {
155
+ bg: string;
156
+ };
157
+ };
158
+ export default _default;
@@ -0,0 +1,172 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _onyxTokens = require("@pingux/onyx-tokens");
8
+ const calendarBody = {
9
+ py: 'sm',
10
+ borderTop: 'none',
11
+ backgroundColor: 'backgroundBase',
12
+ '& > tr:nth-of-type(odd) ': {
13
+ backgroundColor: 'backgroundBase'
14
+ }
15
+ };
16
+ const calendarButton = {
17
+ height: '31px',
18
+ width: '31px',
19
+ margin: '0 auto',
20
+ p: 0,
21
+ fontWeight: '2',
22
+ fontSize: 'small',
23
+ borderRadius: _onyxTokens.astroTokens.radius.xl,
24
+ color: 'text.primary',
25
+ lineHeight: 1.6,
26
+ justifyContent: 'center',
27
+ '&.is-hovered': {
28
+ bg: _onyxTokens.astroTokens.color.gray[100],
29
+ color: 'text.primary',
30
+ cursor: 'pointer'
31
+ },
32
+ '&.is-selected': {
33
+ bg: 'active',
34
+ color: 'text.reverse',
35
+ borderRadius: _onyxTokens.astroTokens.radius.xl,
36
+ outline: 'none',
37
+ boxShadow: 'none'
38
+ },
39
+ '&.is-selection-start': {
40
+ borderRadius: _onyxTokens.astroTokens.radius.xl
41
+ },
42
+ '&.is-selection-end': {
43
+ borderRadius: _onyxTokens.astroTokens.radius.xl
44
+ },
45
+ '&.is-start-and-end': {
46
+ borderRadius: _onyxTokens.astroTokens.radius.xl
47
+ },
48
+ '&.is-focused, &:focus-visible': {
49
+ outline: '2px',
50
+ outlineStyle: 'solid',
51
+ outlineColor: 'focus',
52
+ outlineOffset: '2px'
53
+ },
54
+ '&.is-disabled': {
55
+ backgroundColor: _onyxTokens.astroTokens.color.gray[300],
56
+ cursor: 'default',
57
+ '&.is-hovered': {
58
+ backgroundColor: _onyxTokens.astroTokens.color.gray[300]
59
+ }
60
+ },
61
+ '&.is-unavailable': {
62
+ backgroundColor: _onyxTokens.astroTokens.color.gray[300],
63
+ color: 'text.primary',
64
+ '&.is-hovered': {
65
+ cursor: 'default'
66
+ }
67
+ },
68
+ '&:not(.is-unavailable)&.is-outside-month': {
69
+ backgroundColor: 'unset'
70
+ },
71
+ '&:not(.is-outside-visible-range)&.is-extreme&:not(.is-completely-disabled)': {
72
+ backgroundColor: _onyxTokens.astroTokens.color.gray[300],
73
+ color: 'text.primary',
74
+ cursor: 'default',
75
+ '&.is-hovered': {
76
+ backgroundColor: _onyxTokens.astroTokens.color.gray[300]
77
+ }
78
+ }
79
+ };
80
+ const calendarCell = {
81
+ height: '36px',
82
+ width: '40px',
83
+ px: 0,
84
+ color: 'text.primary',
85
+ '&.is-outside-month': {
86
+ opacity: 0.65,
87
+ backgroundColor: 'transparent',
88
+ color: 'text.secondary',
89
+ '& [data-hidden="true"], & > [hidden]': {
90
+ color: 'text.secondary'
91
+ },
92
+ '&.is-completely-disabled': {
93
+ backgroundColor: 'transparent',
94
+ color: 'text.secondary',
95
+ '& > [hidden]': {
96
+ color: 'text.secondary'
97
+ },
98
+ '&.is-hovered': {
99
+ backgroundColor: 'transparent',
100
+ color: 'text.secondary'
101
+ }
102
+ },
103
+ '&.is-unavailable': {
104
+ backgroundColor: _onyxTokens.astroTokens.color.gray[300],
105
+ color: 'text.primary',
106
+ '& > [hidden]': {
107
+ color: 'text.secondary'
108
+ },
109
+ '&.is-hovered': {
110
+ backgroundColor: _onyxTokens.astroTokens.color.gray[300],
111
+ color: 'text.primary'
112
+ }
113
+ },
114
+ '&.is-extreme:not(.is-completely-disabled):not(.is-unavailable)': {
115
+ backgroundColor: _onyxTokens.astroTokens.color.gray[300],
116
+ color: 'text.primary',
117
+ '& > [hidden]': {
118
+ color: 'text.secondary'
119
+ },
120
+ '&.is-hovered': {
121
+ backgroundColor: _onyxTokens.astroTokens.color.gray[300],
122
+ color: 'text.primary'
123
+ }
124
+ }
125
+ }
126
+ };
127
+ const calendarHeader = {
128
+ justifyContent: 'space-between',
129
+ alignItems: 'center',
130
+ color: 'text.primary'
131
+ };
132
+ const calendarHeaderContainer = {
133
+ mt: 0,
134
+ height: '26px',
135
+ mb: 'md',
136
+ width: '100%'
137
+ };
138
+ const columnHeader = {
139
+ color: 'text.primary',
140
+ fontWeight: 0,
141
+ fontSize: 'small',
142
+ borderBottom: '1px solid',
143
+ borderBottomColor: _onyxTokens.astroTokens.color.gray[200],
144
+ pb: '32px',
145
+ mb: '0',
146
+ '&.is-disabled': {
147
+ opacity: 0.65
148
+ }
149
+ };
150
+ const calendarContainer = {
151
+ boxShadow: `0 ${_onyxTokens.astroTokens.spacing.popover.shadow.y}px ${_onyxTokens.astroTokens.spacing.popover.shadow.blur}px 0 rgba(0, 0, 0, 0.18)`,
152
+ border: '1px solid',
153
+ borderColor: _onyxTokens.astroTokens.color.common.border,
154
+ borderRadius: _onyxTokens.astroTokens.radius.xl,
155
+ p: 'md',
156
+ bg: 'backgroundBase',
157
+ color: 'text.primary',
158
+ maxWidth: '312px'
159
+ };
160
+ const calendarRow = {
161
+ bg: 'backgroundBase'
162
+ };
163
+ var _default = exports.default = {
164
+ calendarBody,
165
+ calendarButton,
166
+ calendarCell,
167
+ calendarContainer,
168
+ calendarHeader,
169
+ calendarHeaderContainer,
170
+ columnHeader,
171
+ calendarRow
172
+ };
@@ -339,6 +339,163 @@ declare const _default: {
339
339
  backgroundColor: string;
340
340
  };
341
341
  };
342
+ calendar: {
343
+ calendarBody: {
344
+ py: string;
345
+ borderTop: string;
346
+ backgroundColor: string;
347
+ '& > tr:nth-of-type(odd) ': {
348
+ backgroundColor: string;
349
+ };
350
+ };
351
+ calendarButton: {
352
+ height: string;
353
+ width: string;
354
+ margin: string;
355
+ p: number;
356
+ fontWeight: string;
357
+ fontSize: string;
358
+ borderRadius: number;
359
+ color: string;
360
+ lineHeight: number;
361
+ justifyContent: string;
362
+ '&.is-hovered': {
363
+ bg: string;
364
+ color: string;
365
+ cursor: string;
366
+ };
367
+ '&.is-selected': {
368
+ bg: string;
369
+ color: string;
370
+ borderRadius: number;
371
+ outline: string;
372
+ boxShadow: string;
373
+ };
374
+ '&.is-selection-start': {
375
+ borderRadius: number;
376
+ };
377
+ '&.is-selection-end': {
378
+ borderRadius: number;
379
+ };
380
+ '&.is-start-and-end': {
381
+ borderRadius: number;
382
+ };
383
+ '&.is-focused, &:focus-visible': {
384
+ outline: string;
385
+ outlineStyle: string;
386
+ outlineColor: string;
387
+ outlineOffset: string;
388
+ };
389
+ '&.is-disabled': {
390
+ backgroundColor: string;
391
+ cursor: string;
392
+ '&.is-hovered': {
393
+ backgroundColor: string;
394
+ };
395
+ };
396
+ '&.is-unavailable': {
397
+ backgroundColor: string;
398
+ color: string;
399
+ '&.is-hovered': {
400
+ cursor: string;
401
+ };
402
+ };
403
+ '&:not(.is-unavailable)&.is-outside-month': {
404
+ backgroundColor: string;
405
+ };
406
+ '&:not(.is-outside-visible-range)&.is-extreme&:not(.is-completely-disabled)': {
407
+ backgroundColor: string;
408
+ color: string;
409
+ cursor: string;
410
+ '&.is-hovered': {
411
+ backgroundColor: string;
412
+ };
413
+ };
414
+ };
415
+ calendarCell: {
416
+ height: string;
417
+ width: string;
418
+ px: number;
419
+ color: string;
420
+ '&.is-outside-month': {
421
+ opacity: number;
422
+ backgroundColor: string;
423
+ color: string;
424
+ '& [data-hidden="true"], & > [hidden]': {
425
+ color: string;
426
+ };
427
+ '&.is-completely-disabled': {
428
+ backgroundColor: string;
429
+ color: string;
430
+ '& > [hidden]': {
431
+ color: string;
432
+ };
433
+ '&.is-hovered': {
434
+ backgroundColor: string;
435
+ color: string;
436
+ };
437
+ };
438
+ '&.is-unavailable': {
439
+ backgroundColor: string;
440
+ color: string;
441
+ '& > [hidden]': {
442
+ color: string;
443
+ };
444
+ '&.is-hovered': {
445
+ backgroundColor: string;
446
+ color: string;
447
+ };
448
+ };
449
+ '&.is-extreme:not(.is-completely-disabled):not(.is-unavailable)': {
450
+ backgroundColor: string;
451
+ color: string;
452
+ '& > [hidden]': {
453
+ color: string;
454
+ };
455
+ '&.is-hovered': {
456
+ backgroundColor: string;
457
+ color: string;
458
+ };
459
+ };
460
+ };
461
+ };
462
+ calendarContainer: {
463
+ boxShadow: string;
464
+ border: string;
465
+ borderColor: string;
466
+ borderRadius: number;
467
+ p: string;
468
+ bg: string;
469
+ color: string;
470
+ maxWidth: string;
471
+ };
472
+ calendarHeader: {
473
+ justifyContent: string;
474
+ alignItems: string;
475
+ color: string;
476
+ };
477
+ calendarHeaderContainer: {
478
+ mt: number;
479
+ height: string;
480
+ mb: string;
481
+ width: string;
482
+ };
483
+ columnHeader: {
484
+ color: string;
485
+ fontWeight: number;
486
+ fontSize: string;
487
+ borderBottom: string;
488
+ borderBottomColor: string;
489
+ pb: string;
490
+ mb: string;
491
+ '&.is-disabled': {
492
+ opacity: number;
493
+ };
494
+ };
495
+ calendarRow: {
496
+ bg: string;
497
+ };
498
+ };
342
499
  callout: {
343
500
  base: {
344
501
  width: string;
@@ -19,6 +19,7 @@ var _arrayField = _interopRequireDefault(require("./arrayField"));
19
19
  var _avatar = require("./avatar");
20
20
  var _box = require("./box");
21
21
  var _button = _interopRequireWildcard(require("./button"));
22
+ var _calendar = _interopRequireDefault(require("./calendar"));
22
23
  var _callout = _interopRequireDefault(require("./callout"));
23
24
  var _dataTable = require("./dataTable");
24
25
  var _environmentBreadcrumb = _interopRequireDefault(require("./environmentBreadcrumb"));
@@ -499,6 +500,7 @@ var _default = exports.default = {
499
500
  breadcrumb,
500
501
  box: _box.box,
501
502
  buttonBar,
503
+ calendar: _calendar.default,
502
504
  callout: _callout.default,
503
505
  checkboxFieldGroup: _CheckboxFieldGroup.default,
504
506
  codeView: _codeView.default,
@@ -1,5 +1,5 @@
1
- import type { OverlayTriggerState } from 'react-stately';
2
1
  import type { AriaPopoverProps } from '@react-aria/overlays';
2
+ import type { OverlayTriggerState } from '@react-stately/overlays';
3
3
  import { TestingAttributes } from './shared/test';
4
4
  import { DOMAttributes, Modify, StyleProps } from './shared';
5
5
  type PopoverPlacement = 'top' | 'right' | 'bottom' | 'left';
@@ -26,7 +26,12 @@ export interface PopoverWrapperProps extends PopoverContainerProps {
26
26
  }
27
27
  export interface PopoverProps extends Omit<AriaPopoverProps, 'popoverRef'> {
28
28
  children?: React.ReactNode;
29
- state: OverlayTriggerState;
29
+ /**
30
+ * Structurally narrowed to the members Popover and usePopover consume, so any
31
+ * overlay state (DatePickerState, MenuTriggerState, ...) satisfies it regardless
32
+ * of which @react-stately/overlays copy the consumer's state came from.
33
+ */
34
+ state: Pick<OverlayTriggerState, 'isOpen' | 'setOpen' | 'open' | 'close' | 'toggle'>;
30
35
  direction?: PopoverPlacement;
31
36
  className?: string;
32
37
  popoverRef?: React.RefObject<HTMLDivElement>;
@@ -4,7 +4,7 @@ import { useCalendarCell } from '@react-aria/calendar';
4
4
  import { useFocusRing } from '@react-aria/focus';
5
5
  import { useHover, usePress } from '@react-aria/interactions';
6
6
  import { mergeProps } from '@react-aria/utils';
7
- import { useLocalOrForwardRef, useStatusClasses } from '../../hooks';
7
+ import { useGetTheme, useLocalOrForwardRef, useStatusClasses } from '../../hooks';
8
8
  import { Box, TableCell } from '../../index';
9
9
  import { jsx as ___EmotionJSX } from "@emotion/react";
10
10
  /**
@@ -21,6 +21,10 @@ const CalendarCell = /*#__PURE__*/forwardRef((props, ref) => {
21
21
  ...others
22
22
  } = props;
23
23
  const cellRef = useLocalOrForwardRef(ref);
24
+ const {
25
+ themeState
26
+ } = useGetTheme();
27
+ const isOnyxTheme = themeState.isOnyx;
24
28
  const {
25
29
  cellProps,
26
30
  buttonProps,
@@ -70,17 +74,19 @@ const CalendarCell = /*#__PURE__*/forwardRef((props, ref) => {
70
74
  within: true
71
75
  });
72
76
  const mergedProps = mergeProps(cellProps, hoverProps, pressProps, focusWithinProps);
77
+ const isOutsideMonth = date.compare(state.visibleRange.start) < 0 || date.compare(state.visibleRange.end) > 0;
73
78
  const {
74
79
  classNames
75
80
  } = useStatusClasses(className, {
76
81
  isSelected,
77
82
  isExtreme: isDisabled,
78
- isUnavailable,
83
+ isUnavailable: isUnavailable || isOnyxTheme && Boolean(state.minValue || state.maxValue) && state.isInvalid(date),
79
84
  isPressed,
80
85
  isFocused: isFocusVisible,
81
86
  isHovered,
82
87
  isOutsideVisibleRange,
83
- isCompletelyDisabled: state.isDisabled
88
+ isCompletelyDisabled: state.isDisabled,
89
+ isOutsideMonth
84
90
  });
85
91
  return ___EmotionJSX(TableCell, _extends({}, mergedProps, {
86
92
  variant: "calendar.calendarCell"