Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
34 lines
1.2 KiB
Plaintext
34 lines
1.2 KiB
Plaintext
import React, { Component } from "react";
|
|
interface WeekNumberProps {
|
|
weekNumber: number;
|
|
date: Date;
|
|
onClick?: React.MouseEventHandler<HTMLDivElement>;
|
|
ariaLabelPrefix?: string;
|
|
selected?: Date | null;
|
|
preSelection?: Date | null;
|
|
showWeekPicker?: boolean;
|
|
showWeekNumber?: boolean;
|
|
disabledKeyboardNavigation?: boolean;
|
|
inline?: boolean;
|
|
shouldFocusDayInline?: boolean;
|
|
handleOnKeyDown?: React.KeyboardEventHandler<HTMLDivElement>;
|
|
containerRef?: React.RefObject<HTMLDivElement>;
|
|
isInputFocused?: boolean;
|
|
isWeekDisabled?: boolean;
|
|
}
|
|
export default class WeekNumber extends Component<WeekNumberProps> {
|
|
static get defaultProps(): {
|
|
ariaLabelPrefix: string;
|
|
};
|
|
componentDidMount(): void;
|
|
componentDidUpdate(prevProps: WeekNumberProps): void;
|
|
weekNumberEl: React.RefObject<HTMLDivElement>;
|
|
handleClick: (event: React.MouseEvent<HTMLDivElement>) => void;
|
|
handleOnKeyDown: (event: React.KeyboardEvent<HTMLDivElement>) => void;
|
|
isKeyboardSelected: () => boolean;
|
|
getTabIndex: () => number;
|
|
handleFocusWeekNumber: (prevProps?: Partial<WeekNumberProps>) => void;
|
|
render(): React.ReactElement;
|
|
}
|
|
export {};
|