@lctafrica/ui 1.2.9 → 1.2.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import { DayPicker, DayButton, Locale } from 'react-day-picker';
2
- import { Button } from './button/Button';
2
+ import { Button } from '../button/Button';
3
3
  import * as React from "react";
4
4
  declare function Calendar({ className, classNames, showOutsideDays, captionLayout, buttonVariant, locale, formatters, components, ...props }: React.ComponentProps<typeof DayPicker> & {
5
5
  buttonVariant?: React.ComponentProps<typeof Button>["variant"];
@@ -0,0 +1 @@
1
+ export { Calendar } from './Calendar';
@@ -1,6 +1,8 @@
1
+ import { Matcher } from 'react-day-picker';
1
2
  export type DatePickerProps = {
2
3
  value?: Date | undefined;
3
4
  onChange?(date: Date | undefined): void;
4
5
  placeholder?: string;
6
+ disabled?: Matcher | Matcher[] | undefined;
5
7
  };
6
- export declare function DatePicker({ value, onChange, placeholder, }: DatePickerProps): import("react/jsx-runtime").JSX.Element;
8
+ export declare function DatePicker({ value, onChange, placeholder, disabled, }: DatePickerProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,12 @@
1
+ type FileExtension = ".pdf" | ".docx" | ".jpeg" | ".jpg" | ".png" | ".xlsx" | ".xls";
2
+ export type FilePickerCardProps = {
3
+ accept: FileExtension[];
4
+ value: File[];
5
+ onValueChange(files: File[]): void;
6
+ onError?(error: Error): void;
7
+ maxSize?: number;
8
+ multiple?: boolean;
9
+ className?: string;
10
+ };
11
+ export default function FilePickerCard({ accept, value, onValueChange, maxSize, onError, multiple, className, }: FilePickerCardProps): import("react/jsx-runtime").JSX.Element;
12
+ export {};