@helpscout/ui-kit-react 0.1.6 → 0.1.8
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.
- package/dist/lib/components/input/input.d.ts +6 -3
- package/dist/lib/components/input/input.d.ts.map +1 -1
- package/dist/prop-types.json +655 -484
- package/dist/ui-kit-react.css +1 -1
- package/dist/ui-kit-react.js +19130 -19033
- package/dist/ui-kit-react.umd.cjs +63 -79
- package/package.json +2 -2
|
@@ -6,15 +6,18 @@ declare const inputStyles: (props?: ({
|
|
|
6
6
|
state?: "success" | "warning" | "error" | null | undefined;
|
|
7
7
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
8
8
|
export type InputVariantProps = VariantProps<typeof inputStyles>;
|
|
9
|
-
|
|
9
|
+
type AddonProps = React.ReactNode | string;
|
|
10
|
+
export interface InputProps extends Omit<RACInputProps, "prefix"> {
|
|
10
11
|
/** Change the alignment of the input text. */
|
|
11
12
|
align?: InputVariantProps["align"];
|
|
12
13
|
/** Render the input with a prefix. */
|
|
13
|
-
prefix?:
|
|
14
|
+
prefix?: AddonProps;
|
|
14
15
|
/** Changes the appearance of the input to indicate an error, success, or warning state. */
|
|
15
16
|
state?: InputVariantProps["state"];
|
|
17
|
+
/** Render the input with a suffix. */
|
|
18
|
+
suffix?: AddonProps;
|
|
16
19
|
}
|
|
17
|
-
export declare function Input({ className, align, disabled, prefix, state, ...props }: InputProps): JSX.Element;
|
|
20
|
+
export declare function Input({ className, align, disabled, prefix, state, suffix, ...props }: InputProps): JSX.Element;
|
|
18
21
|
export declare namespace Input {
|
|
19
22
|
var displayName: string;
|
|
20
23
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../../../lib/components/input/input.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,KAAK,YAAY,EAAO,MAAM,0BAA0B,CAAC;AAElE,OAAO,EAGL,KAAK,UAAU,IAAI,aAAa,EACjC,MAAM,uBAAuB,CAAC;AA+B/B,QAAA,MAAM,WAAW;;;8EAYf,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,YAAY,CAAC,OAAO,WAAW,CAAC,CAAC;AAEjE,MAAM,WAAW,UAAW,SAAQ,aAAa;IAC/
|
|
1
|
+
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../../../lib/components/input/input.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,KAAK,YAAY,EAAO,MAAM,0BAA0B,CAAC;AAElE,OAAO,EAGL,KAAK,UAAU,IAAI,aAAa,EACjC,MAAM,uBAAuB,CAAC;AA+B/B,QAAA,MAAM,WAAW;;;8EAYf,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,YAAY,CAAC,OAAO,WAAW,CAAC,CAAC;AAEjE,KAAK,UAAU,GAAG,KAAK,CAAC,SAAS,GAAG,MAAM,CAAC;AAE3C,MAAM,WAAW,UAAW,SAAQ,IAAI,CAAC,aAAa,EAAE,QAAQ,CAAC;IAC/D,8CAA8C;IAC9C,KAAK,CAAC,EAAE,iBAAiB,CAAC,OAAO,CAAC,CAAC;IAEnC,sCAAsC;IACtC,MAAM,CAAC,EAAE,UAAU,CAAC;IAEpB,2FAA2F;IAC3F,KAAK,CAAC,EAAE,iBAAiB,CAAC,OAAO,CAAC,CAAC;IAEnC,sCAAsC;IACtC,MAAM,CAAC,EAAE,UAAU,CAAA;CACpB;AAqBD,wBAAgB,KAAK,CAAC,EACpB,SAAS,EACT,KAAc,EACd,QAAQ,EACR,MAAM,EACN,KAAK,EACL,MAAM,EACN,GAAG,KAAK,EACT,EAAE,UAAU,GAAG,GAAG,CAAC,OAAO,CAmB1B;yBA3Be,KAAK"}
|