diff --git a/src/components/inline-inputs/index.d.ts b/src/components/inline-inputs/index.d.ts new file mode 100644 index 0000000000..b970f6a73b --- /dev/null +++ b/src/components/inline-inputs/index.d.ts @@ -0,0 +1 @@ +export { default } from "./inline-inputs"; diff --git a/src/components/inline-inputs/inline-inputs.d.ts b/src/components/inline-inputs/inline-inputs.d.ts new file mode 100644 index 0000000000..5b722a0bee --- /dev/null +++ b/src/components/inline-inputs/inline-inputs.d.ts @@ -0,0 +1,19 @@ +import * as React from "react"; +import * as OptionsHelper from "../../utils/helpers/options-helper/options-helper"; + +export interface InlineInputsProps { + /** Children elements */ + children?: React.ReactNode; + /** [Legacy prop] A custom class name for the component. */ + className?: string; + /** Gutter prop gets passed down to Row component if false gutter value is "none" */ + gutter?: "none" | OptionsHelper.SizesFull; + /** The id of the corresponding input control for the label */ + htmlFor?: string; + /** Defines the label text for the heading. */ + label?: string; +} + +declare function InlineInputs(props: InlineInputsProps): JSX.Element; + +export default InlineInputs; diff --git a/src/utils/helpers/options-helper/options-helper.d.ts b/src/utils/helpers/options-helper/options-helper.d.ts index 603ffdb15d..1df7ccdc30 100644 --- a/src/utils/helpers/options-helper/options-helper.d.ts +++ b/src/utils/helpers/options-helper/options-helper.d.ts @@ -296,6 +296,15 @@ export type SizesType = "small" | "large"; export type SizesRestricted = "small" | "medium" | "large"; +export type SizesFull = + | "extra-small" + | "small" + | "medium-small" + | "medium" + | "medium-large" + | "large" + | "extra-large"; + export type ThemesBinary = "primary" | "secondary"; export type Positions = "top" | "bottom" | "left" | "right";