@happeouikit/form-elements 2.3.40 → 2.3.43

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 { ChangeEvent, CSSProperties } from "react";
1
+ import React, { ChangeEvent, CSSProperties } from "react";
2
2
  interface BaseCheckboxProps {
3
- label?: string;
4
- subtitle?: string;
5
- description?: string;
3
+ subtitle?: React.ReactNode;
4
+ description?: React.ReactNode;
6
5
  indeterminate?: boolean;
7
6
  disabled?: boolean;
8
7
  background?: string;
package/dist/Input.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import { InputNumberProps, InputProps } from "./Input.types";
3
- export declare const Input: ({ label, description, hintText, required, id, icon, iconProps, state, errorMessage, disabled, ...rest }: InputProps) => import("react/jsx-runtime").JSX.Element;
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
4
  export declare const StyledInput: import("styled-components").StyledComponent<"input", any, {
5
5
  type: React.HTMLInputTypeAttribute;
6
6
  } & {
@@ -1,11 +1,12 @@
1
1
  import React from "react";
2
2
  export interface InputProps {
3
3
  label?: string;
4
- description?: string;
5
- hintText?: string;
4
+ description?: React.ReactNode;
5
+ hintText?: React.ReactNode;
6
6
  required?: boolean;
7
7
  id?: string;
8
8
  disabled?: boolean;
9
+ readOnly?: boolean;
9
10
  icon: React.ComponentType<any>;
10
11
  iconProps: object;
11
12
  state: "success" | "error" | "default";
package/dist/Link.d.ts CHANGED
@@ -1,3 +1,8 @@
1
- export const Link: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
2
- export const LinkExternal: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
3
1
  import React from "react";
2
+ interface LinkProps {
3
+ children: React.ReactNode;
4
+ [key: string]: any;
5
+ }
6
+ export declare const Link: React.ForwardRefExoticComponent<Omit<LinkProps, "ref"> & React.RefAttributes<unknown>>;
7
+ export declare const LinkExternal: React.ForwardRefExoticComponent<Omit<LinkProps, "ref"> & React.RefAttributes<unknown>>;
8
+ export {};
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from "react";
2
2
  export interface RadioButtonProps {
3
3
  label?: React.ReactNode;
4
4
  subtitle?: React.ReactNode;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from "react";
2
2
  export interface BaseSwitchProps {
3
3
  tabIndex?: number;
4
4
  id?: string;
@@ -6,8 +6,8 @@ export interface BaseSwitchProps {
6
6
  checked?: boolean;
7
7
  background?: string;
8
8
  defaultChecked?: boolean;
9
- subtitle?: string;
10
- description?: string;
9
+ subtitle?: React.ReactNode;
10
+ description?: React.ReactNode;
11
11
  "data-tracker"?: string;
12
12
  "data-testid"?: string;
13
13
  required?: boolean;