react-magma-dom 4.10.0-next.20 → 4.10.0-next.22

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.
@@ -18,5 +18,7 @@ export interface CalendarContextInterface {
18
18
  setDateFocused: (value: boolean) => void;
19
19
  setFocusedDate: (day: Date) => void;
20
20
  setFocusedTodayDate: (event: React.SyntheticEvent) => void;
21
+ setMonthFocusedDate: (monthNumber: number) => void;
22
+ setYearFocusedDate: (yearNumber: number) => void;
21
23
  }
22
24
  export declare const CalendarContext: React.Context<CalendarContextInterface>;
@@ -3,5 +3,5 @@ interface CalendarHeaderProps {
3
3
  focusHeader?: boolean;
4
4
  isInverse?: boolean;
5
5
  }
6
- export declare const CalendarHeader: React.ForwardRefExoticComponent<CalendarHeaderProps & React.RefAttributes<HTMLDivElement>>;
6
+ export declare const CalendarHeader: React.FunctionComponent<CalendarHeaderProps>;
7
7
  export {};
@@ -0,0 +1,6 @@
1
+ import * as React from 'react';
2
+ export interface MonthPickerProps {
3
+ currentMonth: string;
4
+ isInverse: boolean;
5
+ }
6
+ export declare const MonthPicker: React.FunctionComponent<MonthPickerProps>;
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import { Theme } from '@emotion/react';
3
+ export declare const StyledSelect: import("@emotion/styled").StyledComponent<{
4
+ theme?: Theme;
5
+ as?: import("react").ElementType<any>;
6
+ } & {
7
+ isInverse: boolean;
8
+ theme: Theme;
9
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ interface YearPickerProps {
3
+ currentYear: number;
4
+ isInverse: boolean;
5
+ }
6
+ export declare const YearPicker: React.FunctionComponent<YearPickerProps>;
7
+ export {};
@@ -6,3 +6,9 @@ export declare function getPrevMonthFromDate(prevDate: any): Date;
6
6
  export declare function getNextMonthFromDate(prevDate: any): Date;
7
7
  export declare function i18nFormat(date: any, formatStr?: string, locale?: Locale): string;
8
8
  export declare function getDateFromString(date: any): Date;
9
+ export declare function getCurrentMonthAndYear(date: Date, locale: Locale): {
10
+ month: string;
11
+ year: string;
12
+ };
13
+ export declare function setMonthForDate(prevDate: any, numberMonth: number): Date;
14
+ export declare function setYearForDate(prevDate: any, numberYear: number): Date;