@helpscout/ui-kit-react 0.1.7 → 0.1.9
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/lib/components/select/select.d.ts +21 -0
- package/dist/lib/components/select/select.d.ts.map +1 -0
- package/dist/lib/components/select/select.test.d.ts +2 -0
- package/dist/lib/components/select/select.test.d.ts.map +1 -0
- package/dist/lib/ui-kit-react.d.ts +1 -0
- package/dist/lib/ui-kit-react.d.ts.map +1 -1
- package/dist/prop-types.json +651 -134
- package/dist/ui-kit-react.css +1 -1
- package/dist/ui-kit-react.js +18750 -16143
- package/dist/ui-kit-react.umd.cjs +62 -62
- 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,CAAC;CACrB;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"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { ListBoxItemProps } from "react-aria-components";
|
|
3
|
+
import { PopoverProps } from "react-aria-components";
|
|
4
|
+
interface SelectProps {
|
|
5
|
+
/** Optional class name to apply to the Select. */
|
|
6
|
+
className?: string;
|
|
7
|
+
/** If true, the select is filterable. */
|
|
8
|
+
filterable?: boolean;
|
|
9
|
+
/** The options to be displayed in the select. */
|
|
10
|
+
children: React.ReactNode;
|
|
11
|
+
/** The label for the select. */
|
|
12
|
+
label?: string;
|
|
13
|
+
/** Optional props to pass to the popover. */
|
|
14
|
+
popoverProps?: PopoverProps;
|
|
15
|
+
/** Callback function that is called when the selection changes. */
|
|
16
|
+
onSelectionChange: (key: string | number | null) => void;
|
|
17
|
+
}
|
|
18
|
+
declare function Select({ filterable, children, className, label, popoverProps, ...rest }: SelectProps): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
declare function SelectItem(props: ListBoxItemProps): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export { Select, SelectItem, type SelectProps };
|
|
21
|
+
//# sourceMappingURL=select.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../../../lib/components/select/select.tsx"],"names":[],"mappings":";AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,EAKL,YAAY,EAGb,MAAM,uBAAuB,CAAC;AAa/B,UAAU,WAAW;IACnB,kDAAkD;IAClD,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,yCAAyC;IACzC,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB,iDAAiD;IACjD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAE1B,gCAAgC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,6CAA6C;IAC7C,YAAY,CAAC,EAAE,YAAY,CAAC;IAE5B,mEAAmE;IACnE,iBAAiB,EAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;CAC1D;AAED,iBAAS,MAAM,CAAC,EACd,UAAU,EACV,QAAQ,EACR,SAAS,EACT,KAAK,EACL,YAAY,EACZ,GAAG,IAAI,EACR,EAAE,WAAW,2CA2Bb;AAUD,iBAAS,UAAU,CAAC,KAAK,EAAE,gBAAgB,2CAE1C;AAED,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,KAAK,WAAW,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"select.test.d.ts","sourceRoot":"","sources":["../../../../lib/components/select/select.test.tsx"],"names":[],"mappings":""}
|
|
@@ -9,6 +9,7 @@ export { Link, type LinkProps, type LinkVariantProps, } from "./components/link/
|
|
|
9
9
|
export { List, ListItem, type ListProps, type ListVariantProps, } from "./components/list/list";
|
|
10
10
|
export { Menu, MenuItem, MenuTrigger, type MenuProps, } from "./components/menu/menu";
|
|
11
11
|
export { NumberField, type NumberFieldProps, } from "./components/number-field/number-field";
|
|
12
|
+
export { Select, SelectItem, type SelectProps, } from "./components/select/select";
|
|
12
13
|
export { Text, type TextProps, type TextVariantProps, } from "./components/text/text";
|
|
13
14
|
export { TextArea, type TextAreaProps, type TextAreaVariantProps, } from "./components/text-area/text-area";
|
|
14
15
|
export { TextAreaField, type TextAreaFieldProps, } from "./components/text-area-field/text-area-field";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui-kit-react.d.ts","sourceRoot":"","sources":["../../lib/ui-kit-react.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,EACL,KAAK,UAAU,EACf,KAAK,iBAAiB,GACvB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,MAAM,EACN,KAAK,WAAW,EAChB,KAAK,kBAAkB,GACxB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,WAA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AAc,EACnB,KAAK,qBAAqB,GAC3B,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AACjE,OAAO,EACL,eAAe,EACf,KAAK,oBAAoB,EACzB,KAAK,2BAA2B,GACjC,MAAM,gDAAgD,CAAC"}
|
|
1
|
+
{"version":3,"file":"ui-kit-react.d.ts","sourceRoot":"","sources":["../../lib/ui-kit-react.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,EACL,KAAK,UAAU,EACf,KAAK,iBAAiB,GACvB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,MAAM,EACN,KAAK,WAAW,EAChB,KAAK,kBAAkB,GACxB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,WAAW,EACX,eAAe,EACf,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,GAC1B,MAAM,wCAAwC,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,EACL,IAAI,EACJ,KAAK,SAAS,EACd,KAAK,gBAAgB,GACtB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,KAAK,EACL,KAAK,UAAU,EACf,KAAK,iBAAiB,GACvB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,KAAK,EACL,gBAAgB,EAChB,UAAU,EACV,KAAK,UAAU,EACf,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC1B,KAAK,eAAe,GACrB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,IAAI,EACJ,KAAK,SAAS,EACd,KAAK,gBAAgB,GACtB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,IAAI,EACJ,QAAQ,EACR,KAAK,SAAS,EACd,KAAK,gBAAgB,GACtB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,IAAI,EACJ,QAAQ,EACR,WAAW,EACX,KAAK,SAAS,GACf,MAAM,wBAAwB,CAAC;AAChC,O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