@web-fuse/wf-components 1.0.5 → 1.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,14 @@
1
+ /// <reference types="react" />
2
+ import { InputRef } from "antd";
3
+ import { PasswordProps as AntProps } from "antd/es/input";
4
+ interface RandomizeOptions {
5
+ charCount?: number;
6
+ onRandomize?: (event: React.MouseEvent<HTMLSpanElement>) => void;
7
+ tooltip?: React.ReactNode | null;
8
+ }
9
+ export interface PasswordProps extends AntProps {
10
+ copy?: boolean;
11
+ randomize?: boolean | RandomizeOptions;
12
+ }
13
+ declare const Password: import("react").ForwardRefExoticComponent<PasswordProps & import("react").RefAttributes<InputRef>>;
14
+ export default Password;
@@ -0,0 +1,5 @@
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>>;
5
+ export default HtmlSearch;
@@ -0,0 +1,5 @@
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"> & {
3
+ 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>>;
5
+ export default HtmlTextArea;
@@ -0,0 +1,11 @@
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"> & {
3
+ 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>> & {
5
+ Group: import("react").FC<import("antd/es/input").GroupProps>;
6
+ Search: import("react").ForwardRefExoticComponent<import("antd/es/input").SearchProps & import("react").RefAttributes<import("antd").InputRef>>;
7
+ TextArea: import("react").ForwardRefExoticComponent<import("antd/es/input").TextAreaProps & import("react").RefAttributes<import("antd/es/input/TextArea").TextAreaRef>>;
8
+ Password: import("react").ForwardRefExoticComponent<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef>>;
9
+ OTP: import("react").ForwardRefExoticComponent<import("antd/es/input/OTP").OTPProps & import("react").RefAttributes<import("antd/es/input/OTP").OTPRef>>;
10
+ }, keyof import("react").Component<any, {}, any>>;
11
+ export default HtmlInput;
@@ -0,0 +1,14 @@
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 & {
8
+ TextArea: typeof TextArea;
9
+ Search: typeof Search;
10
+ Password: typeof Password;
11
+ OTP: typeof AntInput.OTP;
12
+ };
13
+ declare const Input: InputType;
14
+ export default Input;
@@ -1,4 +1,4 @@
1
1
  export * from "./Buttons";
2
2
  export { default as HoverLabel } from "./HoverLabel";
3
3
  export type { HoverLabelProps } from "./HoverLabel";
4
- export { default as Input } from "./Input";
4
+ export { default as Input } from "./Input/index";
@@ -1,5 +1,15 @@
1
1
  /// <reference types="react" />
2
- declare const MainSettings: import("react").ForwardRefExoticComponent<{
2
+ import { type FlexProps } from "antd";
3
+ export declare const SettingsPadding: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
4
+ export declare const SettingsFlex: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<FlexProps<import("antd/es/_util/type").AnyObject> & import("react").RefAttributes<HTMLElement>, "ref"> & {
5
+ ref?: ((instance: HTMLElement | null) => void) | import("react").RefObject<HTMLElement> | null | undefined;
6
+ }, never>> & Omit<import("react").ForwardRefExoticComponent<FlexProps<import("antd/es/_util/type").AnyObject> & import("react").RefAttributes<HTMLElement>>, keyof import("react").Component<any, {}, any>>;
7
+ export interface MainSettingsProps {
8
+ flex?: boolean;
9
+ padding?: boolean;
10
+ flexProps?: FlexProps;
11
+ }
12
+ declare const MainSettings: import("react").ForwardRefExoticComponent<MainSettingsProps & {
3
13
  children?: import("react").ReactNode;
4
14
  } & import("react").RefAttributes<HTMLDivElement>>;
5
15
  export default MainSettings;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import MainSettings from "./MainSettings";
2
+ import MainSettings, { SettingsFlex, SettingsPadding } from "./MainSettings";
3
3
  import MainSelector from "./MainSelector";
4
4
  interface MainBaseProps {
5
5
  overflow?: "scroll" | "visible";
@@ -9,6 +9,8 @@ export type MainProps = React.PropsWithChildren<MainBaseProps>;
9
9
  type MainLayoutType = React.ForwardRefExoticComponent<MainProps & React.RefAttributes<HTMLDivElement>> & {
10
10
  Settings: typeof MainSettings;
11
11
  Selector: typeof MainSelector;
12
+ Padding: typeof SettingsPadding;
13
+ Flex: typeof SettingsFlex;
12
14
  };
13
15
  declare const MainLayout: MainLayoutType;
14
16
  export default MainLayout;