UNPKG

@grafana/ui

Version:
21 lines (20 loc) 820 B
export interface Props { onChange: (weekStart?: WeekStart) => void; value?: WeekStart; width?: number; autoFocus?: boolean; onBlur?: () => void; disabled?: boolean; inputId?: string; } export type WeekStart = 'saturday' | 'sunday' | 'monday'; export declare function isWeekStart(value: string): value is WeekStart; /** * Returns the system or user defined week start (as defined in bootData) * Or you can pass in an override weekStart string and have it be validated and returned as WeekStart type if valid */ export declare function getWeekStart(override?: string): WeekStart; /** * https://developers.grafana.com/ui/latest/index.html?path=/docs/date-time-pickers-weekstartpicker--docs */ export declare const WeekStartPicker: (props: Props) => import("react/jsx-runtime").JSX.Element;