@12-apps/ui 2.0.0 → 2.1.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@12-apps/ui",
3
- "version": "2.0.0",
3
+ "version": "2.1.0",
4
4
  "license": "MIT",
5
5
  "packageManager": "pnpm@9.0.0",
6
6
  "type": "module",
@@ -102,7 +102,12 @@ export const CalendarMonth: FC<CalendarMonthProps> = ({
102
102
  const title = renderHeader ? renderHeader({ month: matrix.month, year: matrix.year }) : monthName;
103
103
 
104
104
  return (
105
- <Box sx={{ minWidth: 280 }}>
105
+ /* The month is addressable by its position, because in a multi-month
106
+ calendar every day number appears once PER MONTH — `calendar-date-5` is
107
+ January's 5th and February's. Without a per-month hook a test can only
108
+ reach a day positionally, which is exactly what the flakiness gate
109
+ refuses. Additive: `calendar-grid` below is unchanged. */
110
+ <Box sx={{ minWidth: 280 }} data-testid={`calendar-month-${monthIndex}`}>
106
111
  <MonthNavHeader
107
112
  title={title}
108
113
  showPrevious={monthIndex === 0}