@lemonadejs/calendar 5.9.0 → 5.9.1
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/dist/react.d.ts +20 -2
- package/package.json +1 -1
package/dist/react.d.ts
CHANGED
|
@@ -41,15 +41,33 @@ declare namespace CalendarReact {
|
|
|
41
41
|
style?: React.CSSProperties;
|
|
42
42
|
children?: React.ReactNode;
|
|
43
43
|
}
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Re-export the underlying type namespace so consumers can write
|
|
47
|
+
* import { Calendar } from '@lemonadejs/calendar/react';
|
|
48
|
+
* import type { Calendar as CalendarNS } from '@lemonadejs/calendar/react';
|
|
49
|
+
* and get `CalendarNS.Options`, `CalendarNS.Instance`, etc. The same
|
|
50
|
+
* applies through the `@calendarjs/react` aggregate.
|
|
51
|
+
*/
|
|
52
|
+
export type Options = Calendar.Options;
|
|
53
|
+
export type Instance = Calendar.Instance;
|
|
54
|
+
export type ValidRange = Calendar.ValidRange;
|
|
55
|
+
export type ValidRangeItem = Calendar.ValidRangeItem;
|
|
56
|
+
export type CloseOptions = Calendar.CloseOptions;
|
|
44
57
|
}
|
|
45
58
|
|
|
46
|
-
|
|
59
|
+
// Interface (not const) so the value type declaration-merges with the
|
|
60
|
+
// namespace above. That merge carries the type members along with the
|
|
61
|
+
// React component value when the default export is re-exported.
|
|
62
|
+
interface CalendarReact extends React.MemoExoticComponent<
|
|
47
63
|
React.ForwardRefExoticComponent<
|
|
48
64
|
Omit<Calendar.Options, 'onchange' | 'onupdate' | 'onclose' | 'onopen' | 'onChange'>
|
|
49
65
|
& CalendarReact.ReactCallbacks
|
|
50
66
|
& CalendarReact.DOMProps
|
|
51
67
|
& React.RefAttributes<Calendar.Instance>
|
|
52
68
|
>
|
|
53
|
-
|
|
69
|
+
> {}
|
|
70
|
+
|
|
71
|
+
declare const CalendarReact: CalendarReact;
|
|
54
72
|
|
|
55
73
|
export default CalendarReact;
|
package/package.json
CHANGED