rently-components 0.1.33 → 0.1.35

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,8 +1,7 @@
1
- import { type Dispatch, type SetStateAction } from "react";
2
1
  interface Props {
3
2
  locale?: "en" | "es";
4
3
  date?: Date | undefined;
5
- setDate: Dispatch<SetStateAction<Date | undefined>>;
4
+ setDate: (date: Date | undefined) => void;
6
5
  rootClassName?: string;
7
6
  buttonDayClassName?: string;
8
7
  containerMonthDaysClassName?: string;
@@ -1,9 +1,9 @@
1
- import { type ComponentProps, type ComponentType, type Dispatch, type SetStateAction, type SVGProps } from "react";
1
+ import { type ComponentProps, type ComponentType, 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
- setDate: Dispatch<SetStateAction<Date | undefined>>;
6
+ setDate: (date: Date | undefined) => void;
7
7
  date?: Date;
8
8
  Icon?: ComponentType<SVGProps<SVGSVGElement>>;
9
9
  locale?: "en" | "es";
@@ -1,7 +1,6 @@
1
1
  import type { ComponentProps, ComponentType, SVGProps } from "react";
2
2
  interface Props extends ComponentProps<"input"> {
3
3
  Icon?: ComponentType<SVGProps<SVGSVGElement>>;
4
- containerClassName?: string;
5
4
  inputClassName?: string;
6
5
  error?: string;
7
6
  }
package/dist/index.d.ts CHANGED
@@ -8,6 +8,7 @@ export { default as Badge } from "./components/Badge";
8
8
  export { default as Calendar } from "./components/Calendar";
9
9
  export { default as Dialog } from "./components/Dialog";
10
10
  export { default as DatePicker } from "./components/DatePicker";
11
+ export { default as PhoneInput } from "./components/PhoneInput";
11
12
  export type { BadgeType } from "./components/Badge";
12
13
  export type { Step } from "./components/Stepper";
13
14
  import "./styles/index.css";