@web-fuse/wf-components 1.0.6 → 1.0.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,6 +2,8 @@
2
2
  type CssColor = React.CSSProperties["color"];
3
3
  export type DarkCardTitleProps = React.PropsWithChildren<{
4
4
  titleColor?: CssColor;
5
+ strong?: boolean;
6
+ style?: React.CSSProperties;
5
7
  }>;
6
8
  declare const DarkCardTitle: React.FC<DarkCardTitleProps>;
7
9
  export default DarkCardTitle;
@@ -1,10 +1,13 @@
1
1
  /// <reference types="react" />
2
2
  import Title, { type DarkCardTitleProps } from "./DarkCard.Title";
3
- export type DarkCardProps = React.PropsWithChildren<DarkCardTitleProps & {
3
+ export type DarkCardProps = React.PropsWithChildren<{
4
4
  title?: React.ReactNode;
5
+ titleColor?: React.CSSProperties["color"];
6
+ style?: React.CSSProperties;
5
7
  }>;
6
8
  type DarkCardComponent = React.FC<DarkCardProps> & {
7
9
  Title: typeof Title;
8
10
  };
9
11
  declare const DarkCard: DarkCardComponent;
12
+ export type { DarkCardTitleProps };
10
13
  export default DarkCard;
@@ -2,6 +2,8 @@
2
2
  type CssColor = React.CSSProperties["color"];
3
3
  export type LightCardTitleProps = React.PropsWithChildren<{
4
4
  titleColor?: CssColor;
5
+ strong?: boolean;
6
+ style?: React.CSSProperties;
5
7
  }>;
6
8
  declare const LightCardTitle: React.FC<LightCardTitleProps>;
7
9
  export default LightCardTitle;
@@ -1,10 +1,13 @@
1
1
  /// <reference types="react" />
2
2
  import Title, { LightCardTitleProps } from "./LightCard.Title";
3
- export type LightCardProps = React.PropsWithChildren<LightCardTitleProps & {
3
+ export type LightCardProps = React.PropsWithChildren<{
4
4
  title?: React.ReactNode;
5
+ style?: React.CSSProperties;
6
+ titleColor?: React.CSSProperties["color"];
5
7
  }>;
6
8
  type LightCardComponent = React.FC<LightCardProps> & {
7
9
  Title: typeof Title;
8
10
  };
9
11
  declare const LightCard: LightCardComponent;
12
+ export type { LightCardTitleProps };
10
13
  export default LightCard;
@@ -1,4 +1,4 @@
1
1
  export { default as LightCard } from "./LightCard";
2
- export type { LightCardProps } from "./LightCard";
2
+ export type { LightCardProps, LightCardTitleProps } from "./LightCard";
3
3
  export { default as DarkCard } from "./DarkCard";
4
- export type { DarkCardProps } from "./DarkCard";
4
+ export type { DarkCardProps, DarkCardTitleProps } from "./DarkCard";
@@ -0,0 +1,16 @@
1
+ /// <reference types="react" />
2
+ import AntFormItem, { FormItemProps as AntFormItemProps } from "antd/es/form/FormItem";
3
+ import { type HoverLabelProps } from "../HoverLabel";
4
+ type HoverTypeCustom = {
5
+ type: "hover";
6
+ } & Omit<HoverLabelProps, "name">;
7
+ export interface FormItemProps<Values = any> extends AntFormItemProps<Values> {
8
+ labelType?: "default" | "hover" | HoverTypeCustom;
9
+ }
10
+ type FormItemType<Values = any> = React.FC<FormItemProps<Values>>;
11
+ type CompoundedComponent = typeof InternalFormItem & {
12
+ useStatus: typeof AntFormItem.useStatus;
13
+ };
14
+ declare const InternalFormItem: FormItemType;
15
+ declare const FormItem: CompoundedComponent;
16
+ export default FormItem;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import { type FormProps as AntFormProps, type FormInstance } from "antd/es/form/Form";
3
+ export type FormProps<Values = any> = AntFormProps<Values> & {
4
+ children: React.ReactNode;
5
+ };
6
+ type FormType<Values = any> = React.ForwardRefExoticComponent<React.PropsWithoutRef<FormProps<Values>> & React.RefAttributes<FormInstance<Values>>>;
7
+ declare const Form: FormType;
8
+ export default Form;
@@ -0,0 +1,14 @@
1
+ import { Form as AntForm } from "antd";
2
+ import InternalForm, { type FormProps } from "./Form";
3
+ import FormItem, { type FormItemProps } from "./Form.Item";
4
+ type FormType = typeof InternalForm & {
5
+ Item: typeof FormItem;
6
+ List: typeof AntForm.List;
7
+ useForm: typeof AntForm.useForm;
8
+ useFormInstance: typeof AntForm.useFormInstance;
9
+ useWatch: typeof AntForm.useWatch;
10
+ Provider: typeof AntForm.Provider;
11
+ };
12
+ declare const Form: FormType;
13
+ export type { FormProps, FormItemProps };
14
+ export default Form;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { InputRef } from "antd";
3
- import { PasswordProps as AntProps } from "antd/es/input";
3
+ import { PasswordProps as AntProps } from "antd/es/input/Password";
4
4
  interface RandomizeOptions {
5
5
  charCount?: number;
6
6
  onRandomize?: (event: React.MouseEvent<HTMLSpanElement>) => void;
@@ -1,5 +1,8 @@
1
1
  /// <reference types="react" />
2
- declare const HtmlSearch: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("antd/es/input").SearchProps & import("react").RefAttributes<import("antd").InputRef>, "ref"> & {
3
- ref?: ((instance: import("antd").InputRef | null) => void) | import("react").RefObject<import("antd").InputRef> | null | undefined;
4
- }, never>> & Omit<import("react").ForwardRefExoticComponent<import("antd/es/input").SearchProps & import("react").RefAttributes<import("antd").InputRef>>, keyof import("react").Component<any, {}, any>>;
2
+ import { type SearchProps as AntSearchProps } from "antd/es/input/Search";
3
+ export interface SearchProps extends AntSearchProps {
4
+ }
5
+ declare const HtmlSearch: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<AntSearchProps & import("react").RefAttributes<import("rc-input").InputRef>, "ref"> & {
6
+ ref?: ((instance: import("rc-input").InputRef | null) => void) | import("react").RefObject<import("rc-input").InputRef> | null | undefined;
7
+ }, never>> & Omit<import("react").ForwardRefExoticComponent<AntSearchProps & import("react").RefAttributes<import("rc-input").InputRef>>, keyof import("react").Component<any, {}, any>>;
5
8
  export default HtmlSearch;
@@ -1,5 +1,8 @@
1
1
  /// <reference types="react" />
2
- declare const HtmlTextArea: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("antd/es/input").TextAreaProps & import("react").RefAttributes<import("antd/es/input/TextArea").TextAreaRef>, "ref"> & {
2
+ import { type TextAreaProps as AntTextAreaProps } from "antd/es/input/TextArea";
3
+ export interface TextAreaProps extends AntTextAreaProps {
4
+ }
5
+ declare const HtmlTextArea: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<AntTextAreaProps & import("react").RefAttributes<import("antd/es/input/TextArea").TextAreaRef>, "ref"> & {
3
6
  ref?: ((instance: import("antd/es/input/TextArea").TextAreaRef | null) => void) | import("react").RefObject<import("antd/es/input/TextArea").TextAreaRef> | null | undefined;
4
- }, never>> & Omit<import("react").ForwardRefExoticComponent<import("antd/es/input").TextAreaProps & import("react").RefAttributes<import("antd/es/input/TextArea").TextAreaRef>>, keyof import("react").Component<any, {}, any>>;
7
+ }, never>> & Omit<import("react").ForwardRefExoticComponent<AntTextAreaProps & import("react").RefAttributes<import("antd/es/input/TextArea").TextAreaRef>>, keyof import("react").Component<any, {}, any>>;
5
8
  export default HtmlTextArea;
@@ -1,7 +1,10 @@
1
1
  /// <reference types="react" />
2
- declare const HtmlInput: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef>, "ref"> & {
2
+ import { InputProps as AntInputProps } from "antd";
3
+ export interface InputProps extends AntInputProps {
4
+ }
5
+ declare const HtmlInput: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<AntInputProps & import("react").RefAttributes<import("antd").InputRef>, "ref"> & {
3
6
  ref?: ((instance: import("antd").InputRef | null) => void) | import("react").RefObject<import("antd").InputRef> | null | undefined;
4
- }, never>> & Omit<import("react").ForwardRefExoticComponent<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef>> & {
7
+ }, never>> & Omit<import("react").ForwardRefExoticComponent<AntInputProps & import("react").RefAttributes<import("antd").InputRef>> & {
5
8
  Group: import("react").FC<import("antd/es/input").GroupProps>;
6
9
  Search: import("react").ForwardRefExoticComponent<import("antd/es/input").SearchProps & import("react").RefAttributes<import("antd").InputRef>>;
7
10
  TextArea: import("react").ForwardRefExoticComponent<import("antd/es/input").TextAreaProps & import("react").RefAttributes<import("antd/es/input/TextArea").TextAreaRef>>;
@@ -1,14 +1,14 @@
1
1
  import { Input as AntInput } from "antd";
2
- import { default as HtmlInput } from "./Input";
3
- import Password from "./Input.Password";
4
- import Search from "./Input.Search";
5
- import TextArea from "./Input.TextArea";
6
- export type { PasswordProps } from "./Input.Password";
7
- type InputType = typeof HtmlInput & {
2
+ import InternalInput, { InputProps } from "./Input";
3
+ import Password, { type PasswordProps } from "./Input.Password";
4
+ import Search, { type SearchProps } from "./Input.Search";
5
+ import TextArea, { type TextAreaProps } from "./Input.TextArea";
6
+ type InputType = typeof InternalInput & {
8
7
  TextArea: typeof TextArea;
9
8
  Search: typeof Search;
10
9
  Password: typeof Password;
11
10
  OTP: typeof AntInput.OTP;
12
11
  };
13
12
  declare const Input: InputType;
13
+ export type { PasswordProps, SearchProps, TextAreaProps, InputProps };
14
14
  export default Input;
@@ -2,3 +2,6 @@ export * from "./Buttons";
2
2
  export { default as HoverLabel } from "./HoverLabel";
3
3
  export type { HoverLabelProps } from "./HoverLabel";
4
4
  export { default as Input } from "./Input/index";
5
+ export type { InputProps, PasswordProps } from "./Input/index";
6
+ export { default as Form } from "./Form/index";
7
+ export type { FormProps, FormItemProps } from "./Form/index";