UNPKG

ivt

Version:

Ivt Components Library

68 lines (61 loc) 2.31 kB
import * as React from 'react'; import React__default from 'react'; import { BadgeProps } from '../badge/index.js'; import * as react_jsx_runtime from 'react/jsx-runtime'; import { ButtonProps } from '../button/index.js'; import { Popover } from '../popover/index.js'; import { DateRange } from 'react-day-picker'; import 'class-variance-authority/types'; import 'class-variance-authority'; import '@radix-ui/react-popover'; interface TextWrapProps extends React__default.HTMLAttributes<HTMLDivElement> { children: React__default.ReactNode; } declare const TextWrap: React__default.FC<TextWrapProps>; interface HeaderProps { title: string; description: string; className?: string; classNameDescription?: string; children?: React__default.ReactNode; } declare const Header: React__default.FC<HeaderProps>; type CaptionLayout = "label" | "dropdown"; declare function normalizeDate(date: Date): string; interface CalendarPopoverProps { date: Date | undefined; setDate: (newDate: Date | undefined) => void; isLoading?: boolean; isLoadingTable?: boolean; disabledDates?: Set<string>; captionLayout?: CaptionLayout; fromYear?: number; toYear?: number; } declare const CalendarPopover: React__default.FC<CalendarPopoverProps>; interface HoverBadgeProps { title: string; description?: string; variant: BadgeProps["variant"]; className?: string; showTitleInDescription?: boolean; } declare const HoverBadge: React__default.FC<HoverBadgeProps>; type CalendarRangeProps = { value?: DateRange; onChange?: (range: DateRange | undefined) => void; placeholder?: string; id?: string; buttonProps?: ButtonProps; buttonClassName?: string; popoverProps?: React.ComponentProps<typeof Popover>; popoverContentClassName?: string; numberOfMonths?: number; fromYear?: number; toYear?: number; toDate?: Date; className?: string; disabled?: boolean; }; declare function CalendarRange({ value, onChange, placeholder, id, buttonProps, buttonClassName, popoverProps, popoverContentClassName, numberOfMonths, fromYear, toYear, toDate, className, disabled, }: CalendarRangeProps): react_jsx_runtime.JSX.Element; export { CalendarPopover, CalendarRange, Header, HoverBadge, TextWrap, normalizeDate };