@helpscout/ui-kit-react 0.0.1
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/badge/badge.d.ts +20 -0
- package/dist/lib/components/badge/badge.d.ts.map +1 -0
- package/dist/lib/components/badge/badge.test.d.ts +2 -0
- package/dist/lib/components/badge/badge.test.d.ts.map +1 -0
- package/dist/lib/components/button/button.d.ts +25 -0
- package/dist/lib/components/button/button.d.ts.map +1 -0
- package/dist/lib/components/button/button.test.d.ts +2 -0
- package/dist/lib/components/button/button.test.d.ts.map +1 -0
- package/dist/lib/components/link/link.d.ts +12 -0
- package/dist/lib/components/link/link.d.ts.map +1 -0
- package/dist/lib/components/link/link.test.d.ts +2 -0
- package/dist/lib/components/link/link.test.d.ts.map +1 -0
- package/dist/lib/components/theme/theme.d.ts +11 -0
- package/dist/lib/components/theme/theme.d.ts.map +1 -0
- package/dist/lib/components/theme/theme.test.d.ts +2 -0
- package/dist/lib/components/theme/theme.test.d.ts.map +1 -0
- package/dist/lib/ui-kit-react.d.ts +5 -0
- package/dist/lib/ui-kit-react.d.ts.map +1 -0
- package/dist/prop-types.json +1470 -0
- package/dist/ui-kit-react.css +1 -0
- package/dist/ui-kit-react.js +21400 -0
- package/dist/ui-kit-react.umd.cjs +187 -0
- package/package.json +93 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { type VariantProps } from "class-variance-authority";
|
|
2
|
+
declare const badgeStyles: (props?: ({
|
|
3
|
+
color?: "default" | "success" | "warning" | "error" | null | undefined;
|
|
4
|
+
size?: "default" | "sm" | null | undefined;
|
|
5
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
6
|
+
export type BadgeVariantProps = VariantProps<typeof badgeStyles>;
|
|
7
|
+
export interface BadgeProps {
|
|
8
|
+
/** Content of the badge. Can be text, icons, etc. */
|
|
9
|
+
children: React.ReactNode;
|
|
10
|
+
/** Sets the color of the badge. */
|
|
11
|
+
color?: BadgeVariantProps["color"];
|
|
12
|
+
/** Sets the size of the badge. */
|
|
13
|
+
size?: BadgeVariantProps["size"];
|
|
14
|
+
}
|
|
15
|
+
export declare function Badge({ children, color, size, }: BadgeProps): JSX.Element;
|
|
16
|
+
export declare namespace Badge {
|
|
17
|
+
var displayName: string;
|
|
18
|
+
}
|
|
19
|
+
export {};
|
|
20
|
+
//# sourceMappingURL=badge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"badge.d.ts","sourceRoot":"","sources":["../../../../lib/components/badge/badge.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAO,MAAM,0BAA0B,CAAC;AAKlE,QAAA,MAAM,WAAW;;;8EAaf,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,YAAY,CAAC,OAAO,WAAW,CAAC,CAAC;AAEjE,MAAM,WAAW,UAAU;IACzB,qDAAqD;IACrD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAE1B,mCAAmC;IACnC,KAAK,CAAC,EAAE,iBAAiB,CAAC,OAAO,CAAC,CAAC;IAEnC,kCAAkC;IAClC,IAAI,CAAC,EAAE,iBAAiB,CAAC,MAAM,CAAC,CAAC;CAClC;AAED,wBAAgB,KAAK,CAAC,EACpB,QAAQ,EACR,KAAiB,EACjB,IAAgB,GACjB,EAAE,UAAU,GAAG,GAAG,CAAC,OAAO,CAE1B;yBANe,KAAK"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"badge.test.d.ts","sourceRoot":"","sources":["../../../../lib/components/badge/badge.test.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { type VariantProps } from "class-variance-authority";
|
|
2
|
+
import { type ButtonProps as RACButtonProps } from "react-aria-components";
|
|
3
|
+
declare const buttonStyles: (props?: ({
|
|
4
|
+
fullWidth?: boolean | null | undefined;
|
|
5
|
+
color?: "danger" | "primary" | "secondary" | null | undefined;
|
|
6
|
+
size?: "sm" | "md" | "xs" | "xxs" | null | undefined;
|
|
7
|
+
variant?: "link" | "solid" | "outline" | null | undefined;
|
|
8
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
9
|
+
export type ButtonVariantProps = VariantProps<typeof buttonStyles>;
|
|
10
|
+
export interface ButtonProps extends RACButtonProps {
|
|
11
|
+
/** Changes the color of the button to signal the intent of its action. */
|
|
12
|
+
color?: ButtonVariantProps["color"];
|
|
13
|
+
/** Renders a full-width button. */
|
|
14
|
+
fullWidth?: ButtonVariantProps["fullWidth"];
|
|
15
|
+
/** Sets the size of the button. */
|
|
16
|
+
size?: ButtonVariantProps["size"];
|
|
17
|
+
/** Changes the appearance of the button. */
|
|
18
|
+
variant?: ButtonVariantProps["variant"];
|
|
19
|
+
}
|
|
20
|
+
export declare function Button({ className, color, fullWidth, size, variant, ...props }: ButtonProps): JSX.Element;
|
|
21
|
+
export declare namespace Button {
|
|
22
|
+
var displayName: string;
|
|
23
|
+
}
|
|
24
|
+
export {};
|
|
25
|
+
//# sourceMappingURL=button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../../lib/components/button/button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAO,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAEL,KAAK,WAAW,IAAI,cAAc,EACnC,MAAM,uBAAuB,CAAC;AAM/B,QAAA,MAAM,YAAY;;;;;8EAsBhB,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,YAAY,CAAC,OAAO,YAAY,CAAC,CAAC;AAGnE,MAAM,WAAW,WAAY,SAAQ,cAAc;IACjD,0EAA0E;IAC1E,KAAK,CAAC,EAAE,kBAAkB,CAAC,OAAO,CAAC,CAAC;IAEpC,mCAAmC;IACnC,SAAS,CAAC,EAAE,kBAAkB,CAAC,WAAW,CAAC,CAAC;IAE5C,mCAAmC;IACnC,IAAI,CAAC,EAAE,kBAAkB,CAAC,MAAM,CAAC,CAAC;IAElC,4CAA4C;IAC5C,OAAO,CAAC,EAAE,kBAAkB,CAAC,SAAS,CAAC,CAAC;CACzC;AACD,wBAAgB,MAAM,CAAC,EACrB,SAAS,EACT,KAAmB,EACnB,SAAiB,EACjB,IAAW,EACX,OAAiB,EACjB,GAAG,KAAK,EACT,EAAE,WAAW,GAAG,GAAG,CAAC,OAAO,CAQ3B;yBAfe,MAAM"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"button.test.d.ts","sourceRoot":"","sources":["../../../../lib/components/button/button.test.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type VariantProps } from "class-variance-authority";
|
|
2
|
+
import { type LinkProps as RACLinkProps } from "react-aria-components";
|
|
3
|
+
declare const linkStyles: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
4
|
+
export type LinkVariantProps = VariantProps<typeof linkStyles>;
|
|
5
|
+
export interface LinkProps extends RACLinkProps {
|
|
6
|
+
}
|
|
7
|
+
export declare function Link({ className, ...props }: LinkProps): JSX.Element;
|
|
8
|
+
export declare namespace Link {
|
|
9
|
+
var displayName: string;
|
|
10
|
+
}
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=link.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"link.d.ts","sourceRoot":"","sources":["../../../../lib/components/link/link.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAO,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAEL,KAAK,SAAS,IAAI,YAAY,EAC/B,MAAM,uBAAuB,CAAC;AAI/B,QAAA,MAAM,UAAU,oFAAmB,CAAC;AAEpC,MAAM,MAAM,gBAAgB,GAAG,YAAY,CAAC,OAAO,UAAU,CAAC,CAAC;AAC/D,MAAM,WAAW,SAAU,SAAQ,YAAY;CAmB9C;AAED,wBAAgB,IAAI,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,SAAS,GAAG,GAAG,CAAC,OAAO,CAEpE;yBAFe,IAAI"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"link.test.d.ts","sourceRoot":"","sources":["../../../../lib/components/link/link.test.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface ThemeProps {
|
|
2
|
+
/** The children to render within the Theme component. */
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
/** Whether or not to fetch the app styles from Help Scout App with the JavaScript SDK . */
|
|
5
|
+
fetchStyles?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare function Theme({ children, fetchStyles, }: ThemeProps): JSX.Element;
|
|
8
|
+
export declare namespace Theme {
|
|
9
|
+
var displayName: string;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=theme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../../lib/components/theme/theme.tsx"],"names":[],"mappings":"AAMA,MAAM,WAAW,UAAU;IACzB,yDAAyD;IACzD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAE1B,2FAA2F;IAC3F,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,wBAAgB,KAAK,CAAC,EACpB,QAAQ,EACR,WAAkB,GACnB,EAAE,UAAU,GAAG,GAAG,CAAC,OAAO,CA4B1B;yBA/Be,KAAK"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme.test.d.ts","sourceRoot":"","sources":["../../../../lib/components/theme/theme.test.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { Badge, type BadgeProps, type BadgeVariantProps, } from "./components/badge/badge";
|
|
2
|
+
export { Button, type ButtonProps, type ButtonVariantProps, } from "./components/button/button";
|
|
3
|
+
export { Theme, type ThemeProps } from "./components/theme/theme";
|
|
4
|
+
export { Link, type LinkProps, type LinkVariantProps, } from "./components/link/link";
|
|
5
|
+
//# sourceMappingURL=ui-kit-react.d.ts.map
|
|
@@ -0,0 +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,EAAE,KAAK,EAAE,KAAK,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EACL,IAAI,EACJ,KAAK,SAAS,EACd,KAAK,gBAAgB,GACtB,MAAM,wBAAwB,CAAC"}
|