UNPKG

@coveord/plasma-mantine

Version:

A Plasma flavoured Mantine theme

30 lines 1.32 kB
import { BoxProps, CompoundStylesApiProps, Factory } from '@mantine/core'; import { DateRangePickerInlineCalendarProps, DateRangePickerPreset } from '../../date-range-picker'; export type TableDateRangePickerStylesNames = 'dateRangeRoot'; export interface TableDateRangePickerProps extends BoxProps, CompoundStylesApiProps<TableDateRangePickerFactory>, Pick<DateRangePickerInlineCalendarProps, 'startProps' | 'endProps' | 'rangeCalendarProps'> { /** * An object containing date presets. * If empty the preset dropdown won't be shown * * @example * { * january: {label: 'January', range: [new Date(2022, 0, 1), new Date(2022, 0, 31)]}, * february: {label: 'February', range: [new Date(2022, 1, 1), new Date(2022, 1, 28)]} * } * @default {} */ presets?: Record<string, DateRangePickerPreset>; } export type TableDateRangePickerFactory = Factory<{ props: TableDateRangePickerProps; ref: HTMLDivElement; stylesNames: TableDateRangePickerStylesNames; compound: true; }>; export declare const TableDateRangePicker: import("@mantine/core").MantineComponent<{ props: TableDateRangePickerProps; ref: HTMLDivElement; stylesNames: TableDateRangePickerStylesNames; compound: true; }>; //# sourceMappingURL=TableDateRangePicker.d.ts.map