@happeouikit/form-elements 2.3.46 → 2.4.0

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,3 +1,3 @@
1
1
  import { CheckboxProps } from "./Checkbox.types";
2
- declare const Checkbox: ({ label, subtitle, description, indeterminate, onChange, style, disabled, checked, id, background, "data-tip": dataTip, "data-tip-disable": dataTipDisable, "data-testid": dataTestId, ...props }: CheckboxProps) => import("react/jsx-runtime").JSX.Element;
2
+ declare const Checkbox: ({ label, subtitle, description, indeterminate, onChange, style, disabled, checked, id, background, "data-tip": dataTip1, "data-tooltip-content": dataTip2, "data-tooltip-id": dataTooltipId, "data-testid": dataTestId, ...props }: CheckboxProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default Checkbox;
@@ -1,4 +1,4 @@
1
- export const dropdownStyles: import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<any>>;
1
+ export const dropdownStyles: import("styled-components").RuleSet<object>;
2
2
  declare const _default: React.ForwardRefExoticComponent<Omit<{
3
3
  [x: string]: any;
4
4
  label: any;
package/dist/Input.d.ts CHANGED
@@ -1,12 +1,12 @@
1
1
  import React from "react";
2
2
  import { InputNumberProps, InputProps } from "./Input.types";
3
3
  export declare const Input: ({ label, description, hintText, required, id, icon, iconProps, state, errorMessage, disabled, readOnly, ...rest }: InputProps) => import("react/jsx-runtime").JSX.Element;
4
- export declare const StyledInput: import("styled-components").StyledComponent<"input", any, {
5
- type: React.HTMLInputTypeAttribute;
6
- } & {
7
- hasIcon: boolean;
8
- state: "success" | "error" | "default";
9
- }, "type">;
4
+ export declare const StyledInput: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & {
5
+ ref?: ((instance: HTMLInputElement | null) => void) | React.RefObject<HTMLInputElement> | null | undefined;
6
+ }>, never>, {
7
+ $hasIcon: boolean;
8
+ $state: "success" | "error" | "default";
9
+ }>> & string;
10
10
  /**
11
11
  * Number Input
12
12
  */
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- export interface InputProps {
2
+ export interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {
3
3
  label?: string;
4
4
  description?: React.ReactNode;
5
5
  hintText?: React.ReactNode;
@@ -11,9 +11,7 @@ export interface InputProps {
11
11
  iconProps: object;
12
12
  state: "success" | "error" | "default";
13
13
  errorMessage: string;
14
- [key: string]: any;
15
14
  }
16
- export interface InputNumberProps {
15
+ export interface InputNumberProps extends InputProps {
17
16
  label: string;
18
- [key: string]: any;
19
17
  }
package/dist/Switch.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  import { SwitchProps } from "./Switch.types";
2
- declare const Switch: ({ label, subtitle, description, tabIndex, id, disabled, checked, defaultChecked, required, onChange, background, "data-tip": dataTip, "data-tip-disable": dataTipDisable, "data-testid": dataTestId, ...props }: SwitchProps) => import("react/jsx-runtime").JSX.Element;
2
+ declare const Switch: ({ label, subtitle, description, tabIndex, id, disabled, checked, defaultChecked, required, onChange, background, "data-tip": dataTip1, "data-tooltip-content": dataTip2, "data-tooltip-id": dataTipId, "data-testid": dataTestId, ...props }: SwitchProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default Switch;
@@ -1,3 +1,3 @@
1
1
  import { TextareaProps } from "./Textarea.types";
2
- declare const Textarea: ({ id, cols, rows, label, description, required, readOnly, disabled, state, errorMessage, hintText, maxHeight, ...props }: TextareaProps) => import("react/jsx-runtime").JSX.Element;
2
+ declare const Textarea: ({ id, cols, rows, label, description, required, readOnly, disabled, state, errorMessage, hintText, maxHeight, autoHeight, ...props }: TextareaProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default Textarea;