@dxos/react-ui-calendar 0.9.1-main.c7dcc2e112 → 0.10.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": "@dxos/react-ui-calendar",
3
- "version": "0.9.1-main.c7dcc2e112",
3
+ "version": "0.10.0",
4
4
  "description": "A calendar component.",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -39,31 +39,31 @@
39
39
  "react-resize-detector": "^11.0.1",
40
40
  "react-virtualized": "^9.22.6",
41
41
  "react-window": "^2.2.3",
42
- "@dxos/async": "0.9.1-main.c7dcc2e112",
43
- "@dxos/invariant": "0.9.1-main.c7dcc2e112",
44
- "@dxos/log": "0.9.1-main.c7dcc2e112",
45
- "@dxos/debug": "0.9.1-main.c7dcc2e112",
46
- "@dxos/util": "0.9.1-main.c7dcc2e112"
42
+ "@dxos/async": "0.10.0",
43
+ "@dxos/invariant": "0.10.0",
44
+ "@dxos/util": "0.10.0",
45
+ "@dxos/log": "0.10.0",
46
+ "@dxos/debug": "0.10.0"
47
47
  },
48
48
  "devDependencies": {
49
- "@types/react": "~19.2.7",
49
+ "@types/react": "~19.2.17",
50
50
  "@types/react-dom": "~19.2.3",
51
51
  "@types/react-virtualized": "^9.22.3",
52
- "effect": "3.21.3",
53
- "react": "~19.2.3",
54
- "react-dom": "~19.2.3",
52
+ "effect": "3.21.4",
53
+ "react": "~19.2.7",
54
+ "react-dom": "~19.2.7",
55
55
  "vite": "^8.0.16",
56
- "@dxos/random": "0.9.1-main.c7dcc2e112",
57
- "@dxos/react-ui": "0.9.1-main.c7dcc2e112",
58
- "@dxos/storybook-utils": "0.9.1-main.c7dcc2e112",
59
- "@dxos/ui-theme": "0.9.1-main.c7dcc2e112"
56
+ "@dxos/random": "0.10.0",
57
+ "@dxos/react-ui": "0.10.0",
58
+ "@dxos/storybook-utils": "0.10.0",
59
+ "@dxos/ui-theme": "0.10.0"
60
60
  },
61
61
  "peerDependencies": {
62
- "effect": "3.21.3",
63
- "react": "~19.2.3",
64
- "react-dom": "~19.2.3",
65
- "@dxos/react-ui": "0.9.1-main.c7dcc2e112",
66
- "@dxos/ui-theme": "0.9.1-main.c7dcc2e112"
62
+ "effect": "3.21.4",
63
+ "react": "~19.2.7",
64
+ "react-dom": "~19.2.7",
65
+ "@dxos/react-ui": "0.10.0",
66
+ "@dxos/ui-theme": "0.10.0"
67
67
  },
68
68
  "publishConfig": {
69
69
  "access": "public"
@@ -4,9 +4,9 @@
4
4
 
5
5
  import { addDays, format, startOfDay } from 'date-fns';
6
6
  import React, {
7
+ type PropsWithChildren,
7
8
  type KeyboardEvent as ReactKeyboardEvent,
8
9
  type PointerEvent as ReactPointerEvent,
9
- type PropsWithChildren,
10
10
  forwardRef,
11
11
  useCallback,
12
12
  useEffect,
@@ -26,15 +26,15 @@ import { mx } from '@dxos/ui-theme';
26
26
  import { translationKey } from '#translations';
27
27
 
28
28
  import {
29
+ CalendarContextProvider,
29
30
  type CalendarContextValue,
30
31
  type CalendarController,
31
- CalendarContextProvider,
32
32
  type CalendarScrollEvent,
33
33
  type Range,
34
34
  useCalendarContext,
35
35
  } from './context';
36
36
  import { getDate, getRowIndex, gridEpoch, isSameDay } from './util';
37
- import { CalendarWeek, type CalendarEvent, type CalendarWeekProps } from './Week';
37
+ import { type CalendarEvent, CalendarWeek, type CalendarWeekProps } from './Week';
38
38
  import { Weekdays } from './Weekdays';
39
39
 
40
40
  const maxRows = 50 * 100;
package/src/types.ts CHANGED
@@ -155,9 +155,9 @@ export interface MonthProps {
155
155
  */
156
156
  export interface UseCalendarReturn {
157
157
  containerProps: {
158
- ref: RefObject<HTMLDivElement>;
159
- tabIndex?: number;
160
- className?: string;
158
+ 'ref': RefObject<HTMLDivElement>;
159
+ 'tabIndex'?: number;
160
+ 'className'?: string;
161
161
  'aria-label': string;
162
162
  };
163
163
  display: DisplayMode;
@@ -175,9 +175,9 @@ export interface UseCalendarReturn {
175
175
 
176
176
  export interface UseDayReturn {
177
177
  dayProps: {
178
- onClick: () => void;
178
+ 'onClick': () => void;
179
179
  'data-date': DateString;
180
- className?: string;
180
+ 'className'?: string;
181
181
  };
182
182
  isSelected: boolean;
183
183
  isToday: boolean;