@coveord/plasma-mantine
Version:
A Plasma flavoured Mantine theme
31 lines • 1.4 kB
TypeScript
import { BoxProps, CompoundStylesApiProps, Factory } from '@mantine/core';
import { type DateRangePickerProps } from '../../DateRangePicker/DateRangePicker.js';
import { DateRangePickerPreset } from '../../DateRangePicker/DateRangePickerPresetSelect.js';
export type TableDateRangePickerStylesNames = 'dateRangeRoot';
export interface TableDateRangePickerProps extends BoxProps, CompoundStylesApiProps<TableDateRangePickerFactory>, Pick<DateRangePickerProps, 'placeholder' | '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