rently-components 0.1.29 → 0.1.31
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.
- package/dist/components/Calendar.d.ts +4 -3
- package/dist/components/DatePicker.d.ts +5 -4
- package/dist/components/Input.d.ts +2 -1
- package/dist/index.es.js +2094 -2007
- package/dist/index.umd.js +7 -7
- package/package.json +1 -1
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import { type Dispatch, type SetStateAction } from "react";
|
|
1
2
|
interface Props {
|
|
2
3
|
locale?: "en" | "es";
|
|
3
|
-
|
|
4
|
-
|
|
4
|
+
date?: Date | undefined;
|
|
5
|
+
setDate: Dispatch<SetStateAction<Date | undefined>>;
|
|
5
6
|
rootClassName?: string;
|
|
6
7
|
buttonDayClassName?: string;
|
|
7
8
|
containerMonthDaysClassName?: string;
|
|
8
9
|
}
|
|
9
|
-
declare const Calendar: ({ locale,
|
|
10
|
+
declare const Calendar: ({ locale, date, setDate, rootClassName, buttonDayClassName, containerMonthDaysClassName, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
10
11
|
export default Calendar;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { type ComponentProps, type ComponentType, type SVGProps } from "react";
|
|
1
|
+
import { type ComponentProps, type ComponentType, type Dispatch, type SetStateAction, type SVGProps } from "react";
|
|
2
2
|
import "dayjs/locale/es";
|
|
3
3
|
import "dayjs/locale/en";
|
|
4
4
|
interface Props extends ComponentProps<"button"> {
|
|
5
5
|
placeholder: string;
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
setDate: Dispatch<SetStateAction<Date | undefined>>;
|
|
7
|
+
date?: Date;
|
|
8
8
|
Icon?: ComponentType<SVGProps<SVGSVGElement>>;
|
|
9
9
|
locale?: "en" | "es";
|
|
10
|
+
error?: string;
|
|
10
11
|
}
|
|
11
|
-
declare const DatePicker: ({ placeholder, locale, className, Icon,
|
|
12
|
+
declare const DatePicker: ({ placeholder, locale, className, Icon, date, setDate, error, ...props }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
12
13
|
export default DatePicker;
|
|
@@ -2,7 +2,8 @@ import type { ComponentProps, ComponentType, SVGProps } from "react";
|
|
|
2
2
|
interface Props extends ComponentProps<"input"> {
|
|
3
3
|
Icon?: ComponentType<SVGProps<SVGSVGElement>>;
|
|
4
4
|
containerClassName?: string;
|
|
5
|
+
inputClassName?: string;
|
|
5
6
|
error?: string;
|
|
6
7
|
}
|
|
7
|
-
declare const Input: ({ Icon, error,
|
|
8
|
+
declare const Input: ({ Icon, error, inputClassName, className, ...other }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
8
9
|
export default Input;
|