@helpscout/ui-kit-react 0.0.1 → 0.1.0

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,23 +1,14 @@
1
1
  import { type VariantProps } from "class-variance-authority";
2
2
  import { type ButtonProps as RACButtonProps } from "react-aria-components";
3
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;
4
+ variant?: "critical" | "primary" | "secondary" | "tertiary" | null | undefined;
8
5
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
9
6
  export type ButtonVariantProps = VariantProps<typeof buttonStyles>;
10
7
  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
8
  /** Changes the appearance of the button. */
18
9
  variant?: ButtonVariantProps["variant"];
19
10
  }
20
- export declare function Button({ className, color, fullWidth, size, variant, ...props }: ButtonProps): JSX.Element;
11
+ export declare function Button({ className, variant, ...props }: ButtonProps): JSX.Element;
21
12
  export declare namespace Button {
22
13
  var displayName: string;
23
14
  }
@@ -1 +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"}
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;AAGlE,OAAO,EAEL,KAAK,WAAW,IAAI,cAAc,EACnC,MAAM,uBAAuB,CAAC;AAQ/B,QAAA,MAAM,YAAY;;8EAShB,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,YAAY,CAAC,OAAO,YAAY,CAAC,CAAC;AAGnE,MAAM,WAAW,WAAY,SAAQ,cAAc;IACjD,4CAA4C;IAC5C,OAAO,CAAC,EAAE,kBAAkB,CAAC,SAAS,CAAC,CAAC;CACzC;AACD,wBAAgB,MAAM,CAAC,EACrB,SAAS,EACT,OAAqB,EACrB,GAAG,KAAK,EACT,EAAE,WAAW,GAAG,GAAG,CAAC,OAAO,CAgB3B;yBApBe,MAAM"}
@@ -0,0 +1,30 @@
1
+ import { type VariantProps } from "class-variance-authority";
2
+ import { type GroupProps, type LabelProps as RACLabelProps } from "react-aria-components";
3
+ declare const labelStyles: (props?: ({
4
+ required?: boolean | null | undefined;
5
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
6
+ export type LabelVariantProps = VariantProps<typeof labelStyles>;
7
+ export interface LabelProps extends RACLabelProps {
8
+ /** Displays a required indicator next to the label. */
9
+ required?: boolean;
10
+ }
11
+ export declare function Label({ className, ...props }: LabelProps): JSX.Element;
12
+ export declare namespace Label {
13
+ var displayName: string;
14
+ }
15
+ export interface LabelDescriptionProps {
16
+ /** The description text to display. */
17
+ children: string;
18
+ }
19
+ export declare function LabelDescription({ children, }: LabelDescriptionProps): JSX.Element;
20
+ export declare namespace LabelDescription {
21
+ var displayName: string;
22
+ }
23
+ export interface LabelGroupProps extends GroupProps {
24
+ }
25
+ export declare function LabelGroup(props: LabelGroupProps): JSX.Element;
26
+ export declare namespace LabelGroup {
27
+ var displayName: string;
28
+ }
29
+ export {};
30
+ //# sourceMappingURL=label.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"label.d.ts","sourceRoot":"","sources":["../../../../lib/components/label/label.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAO,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAEL,KAAK,UAAU,EAEf,KAAK,UAAU,IAAI,aAAa,EACjC,MAAM,uBAAuB,CAAC;AAM/B,QAAA,MAAM,WAAW;;8EAMf,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,YAAY,CAAC,OAAO,WAAW,CAAC,CAAC;AAEjE,MAAM,WAAW,UAAW,SAAQ,aAAa;IAC/C,uDAAuD;IACvD,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,wBAAgB,KAAK,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,UAAU,GAAG,GAAG,CAAC,OAAO,CAWtE;yBAXe,KAAK;;;AAarB,MAAM,WAAW,qBAAqB;IACpC,uCAAuC;IACvC,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,wBAAgB,gBAAgB,CAAC,EAC/B,QAAQ,GACT,EAAE,qBAAqB,GAAG,GAAG,CAAC,OAAO,CAMrC;yBARe,gBAAgB;;;AAUhC,MAAM,WAAW,eAAgB,SAAQ,UAAU;CAAG;AAEtD,wBAAgB,UAAU,CAAC,KAAK,EAAE,eAAe,GAAG,GAAG,CAAC,OAAO,CAE9D;yBAFe,UAAU"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=label.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"label.test.d.ts","sourceRoot":"","sources":["../../../../lib/components/label/label.test.tsx"],"names":[],"mappings":""}
@@ -3,6 +3,8 @@ import { type LinkProps as RACLinkProps } from "react-aria-components";
3
3
  declare const linkStyles: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
4
4
  export type LinkVariantProps = VariantProps<typeof linkStyles>;
5
5
  export interface LinkProps extends RACLinkProps {
6
+ /** Whether the link is disabled. */
7
+ isDisabled?: boolean;
6
8
  }
7
9
  export declare function Link({ className, ...props }: LinkProps): JSX.Element;
8
10
  export declare namespace Link {
@@ -1 +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"}
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;AAGlE,OAAO,EAEL,KAAK,SAAS,IAAI,YAAY,EAC/B,MAAM,uBAAuB,CAAC;AAM/B,QAAA,MAAM,UAAU,oFAAmB,CAAC;AAEpC,MAAM,MAAM,gBAAgB,GAAG,YAAY,CAAC,OAAO,UAAU,CAAC,CAAC;AAE/D,MAAM,WAAW,SAAU,SAAQ,YAAY;IAC7C,oCAAoC;IACpC,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,wBAAgB,IAAI,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,SAAS,GAAG,GAAG,CAAC,OAAO,CAWpE;yBAXe,IAAI"}
@@ -0,0 +1,31 @@
1
+ import { type VariantProps } from "class-variance-authority";
2
+ declare const textStyles: (props?: ({
3
+ tone?: "default" | "success" | "warning" | "error" | "critical" | "headline" | "dark" | "light" | "disabled" | "info" | null | undefined;
4
+ variant?: "heading-lg" | "heading-md" | "body-md-strong" | "body-md" | "body-sm" | null | undefined;
5
+ visuallyHidden?: boolean | null | undefined;
6
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
7
+ export type TextVariantProps = VariantProps<typeof textStyles>;
8
+ export type Element = "dt" | "dd" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "legend" | "p" | "span" | "strong";
9
+ export interface TextProps {
10
+ /** Optional HTML element type to render as.
11
+ * @default 'span'
12
+ */
13
+ as?: Element;
14
+ /** Optional class name to apply to the text. */
15
+ className?: string;
16
+ /** The text to display. */
17
+ children: React.ReactNode;
18
+ /** The HTML id attribute */
19
+ id?: string;
20
+ /** Optional tone of the text. */
21
+ tone?: TextVariantProps["tone"];
22
+ /** Optional variant of the text. */
23
+ variant?: TextVariantProps["variant"];
24
+ /** Optional boolean to visually hide the text.
25
+ * @default false
26
+ */
27
+ visuallyHidden?: boolean;
28
+ }
29
+ export declare const Text: import("react").ForwardRefExoticComponent<TextProps & import("react").RefAttributes<HTMLElement>>;
30
+ export {};
31
+ //# sourceMappingURL=text.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../../../lib/components/text/text.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAO,MAAM,0BAA0B,CAAC;AASlE,QAAA,MAAM,UAAU;;;;8EAyBd,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,YAAY,CAAC,OAAO,UAAU,CAAC,CAAC;AAE/D,MAAM,MAAM,OAAO,GACf,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,QAAQ,GACR,GAAG,GACH,MAAM,GACN,QAAQ,CAAC;AAEb,MAAM,WAAW,SAAS;IACxB;;OAEG;IACH,EAAE,CAAC,EAAE,OAAO,CAAC;IAEb,gDAAgD;IAChD,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,2BAA2B;IAC3B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAE1B,4BAA4B;IAC5B,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ,iCAAiC;IACjC,IAAI,CAAC,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAC;IAEhC,oCAAoC;IACpC,OAAO,CAAC,EAAE,gBAAgB,CAAC,SAAS,CAAC,CAAC;IAEtC;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAID,eAAO,MAAM,IAAI,mGA8BhB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=text.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text.test.d.ts","sourceRoot":"","sources":["../../../../lib/components/text/text.test.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ import { TextProps } from "./text";
2
+ export declare const mapPropDefaults: ({ as, variant, tone, }: Pick<TextProps, "as" | "variant" | "tone">) => {
3
+ variant: "heading-lg" | "heading-md" | "body-md-strong" | "body-md" | "body-sm";
4
+ tone: "default" | "success" | "warning" | "error" | "critical" | "headline" | "dark" | "light" | "disabled" | "info";
5
+ };
6
+ //# sourceMappingURL=text.utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text.utils.d.ts","sourceRoot":"","sources":["../../../../lib/components/text/text.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAW,SAAS,EAAE,MAAM,QAAQ,CAAC;AAsB5C,eAAO,MAAM,eAAe,2BAIzB,KAAK,SAAS,EAAE,IAAI,GAAG,SAAS,GAAG,MAAM,CAAC;;;CAQ5C,CAAC"}
@@ -0,0 +1,25 @@
1
+ import { type VariantProps } from "class-variance-authority";
2
+ declare const thumbnailStyles: (props?: ({
3
+ size?: "sm" | "md" | "lg" | null | undefined;
4
+ fit?: "cover" | "contain" | null | undefined;
5
+ isDisabled?: boolean | null | undefined;
6
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
7
+ export type ThumbnailVariantProps = VariantProps<typeof thumbnailStyles>;
8
+ export interface ThumbnailProps {
9
+ /** The alt text for the thumbnail. */
10
+ alt: string;
11
+ /** The source of the image to display can either be a URL string or an SVG element. */
12
+ src: string | React.ReactElement<React.SVGProps<SVGSVGElement>>;
13
+ /** Optional fit style for the thumbnail image. */
14
+ fit?: ThumbnailVariantProps["fit"];
15
+ /** Optionally disables the thumbnail. */
16
+ isDisabled?: boolean;
17
+ /** Optional size of the thumbnail. */
18
+ size?: ThumbnailVariantProps["size"];
19
+ }
20
+ export declare function Thumbnail({ src, alt, size, fit, isDisabled, ...props }: ThumbnailProps): JSX.Element;
21
+ export declare namespace Thumbnail {
22
+ var displayName: string;
23
+ }
24
+ export {};
25
+ //# sourceMappingURL=thumbnail.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"thumbnail.d.ts","sourceRoot":"","sources":["../../../../lib/components/thumbnail/thumbnail.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAO,MAAM,0BAA0B,CAAC;AAKlE,QAAA,MAAM,eAAe;;;;8EAenB,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,YAAY,CAAC,OAAO,eAAe,CAAC,CAAC;AAEzE,MAAM,WAAW,cAAc;IAC7B,sCAAsC;IACtC,GAAG,EAAE,MAAM,CAAC;IAEZ,uFAAuF;IACvF,GAAG,EAAE,MAAM,GAAG,KAAK,CAAC,YAAY,CAAC,KAAK,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC;IAEhE,kDAAkD;IAClD,GAAG,CAAC,EAAE,qBAAqB,CAAC,KAAK,CAAC,CAAC;IAEnC,yCAAyC;IACzC,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB,sCAAsC;IACtC,IAAI,CAAC,EAAE,qBAAqB,CAAC,MAAM,CAAC,CAAC;CACtC;AAED,wBAAgB,SAAS,CAAC,EACxB,GAAG,EACH,GAAG,EACH,IAAW,EACX,GAAa,EACb,UAAU,EACV,GAAG,KAAK,EACT,EAAE,cAAc,GAAG,GAAG,CAAC,OAAO,CAqB9B;yBA5Be,SAAS"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=thumbnail.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"thumbnail.test.d.ts","sourceRoot":"","sources":["../../../../lib/components/thumbnail/thumbnail.test.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,8 @@
1
+ import { AriaFocusRingProps, FocusRingAria } from "react-aria";
2
+ interface FocusRingWithStylesAria extends FocusRingAria {
3
+ /** Contain all required classnames to make the focus ring work on an element. */
4
+ focusRingClassnames: string;
5
+ }
6
+ export declare function useFocusRing(props?: AriaFocusRingProps): FocusRingWithStylesAria;
7
+ export {};
8
+ //# sourceMappingURL=useFocusRing.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useFocusRing.d.ts","sourceRoot":"","sources":["../../../../lib/hooks/useFocusRing/useFocusRing.ts"],"names":[],"mappings":"AACA,OAAO,EACL,kBAAkB,EAClB,aAAa,EAEd,MAAM,YAAY,CAAC;AAMpB,UAAU,uBAAwB,SAAQ,aAAa;IACrD,iFAAiF;IACjF,mBAAmB,EAAE,MAAM,CAAC;CAC7B;AAED,wBAAgB,YAAY,CAC1B,KAAK,GAAE,kBAAuB,GAC7B,uBAAuB,CAYzB"}
@@ -1,5 +1,8 @@
1
1
  export { Badge, type BadgeProps, type BadgeVariantProps, } from "./components/badge/badge";
2
2
  export { Button, type ButtonProps, type ButtonVariantProps, } from "./components/button/button";
3
3
  export { Theme, type ThemeProps } from "./components/theme/theme";
4
+ export { Label, LabelDescription, LabelGroup, type LabelProps, type LabelVariantProps, type LabelDescriptionProps, type LabelGroupProps, } from "./components/label/label";
4
5
  export { Link, type LinkProps, type LinkVariantProps, } from "./components/link/link";
6
+ export { Text, type TextProps, type TextVariantProps, } from "./components/text/text";
7
+ export { Thumbnail, type ThumbnailProps, type ThumbnailVariantProps, } from "./components/thumbnail/thumbnail";
5
8
  //# sourceMappingURL=ui-kit-react.d.ts.map
@@ -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,EAAE,KAAK,EAAE,KAAK,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EACL,IAAI,EACJ,KAAK,SAAS,EACd,KAAK,gBAAgB,GACtB,MAAM,wBAAwB,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,EAAE,KAAK,EAAE,KAAK,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAClE,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,KAAK,SAAS,EACd,KAAK,gBAAgB,GACtB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,SAAS,EACT,KAAK,cAAc,EACnB,KAAK,qBAAqB,GAC3B,MAAM,kCAAkC,CAAC"}
@@ -63,72 +63,9 @@
63
63
  }
64
64
  },
65
65
  "Button": {
66
- "color": {
67
- "defaultValue": {
68
- "value": "secondary"
69
- },
70
- "description": "Changes the color of the button to signal the intent of its action.",
71
- "name": "color",
72
- "parent": {
73
- "fileName": "ui-kit-react/lib/components/button/button.tsx",
74
- "name": "ButtonProps"
75
- },
76
- "declarations": [
77
- {
78
- "fileName": "ui-kit-react/lib/components/button/button.tsx",
79
- "name": "ButtonProps"
80
- }
81
- ],
82
- "required": false,
83
- "type": {
84
- "name": "\"danger\" | \"primary\" | \"secondary\" | null"
85
- }
86
- },
87
- "fullWidth": {
88
- "defaultValue": {
89
- "value": false
90
- },
91
- "description": "Renders a full-width button.",
92
- "name": "fullWidth",
93
- "parent": {
94
- "fileName": "ui-kit-react/lib/components/button/button.tsx",
95
- "name": "ButtonProps"
96
- },
97
- "declarations": [
98
- {
99
- "fileName": "ui-kit-react/lib/components/button/button.tsx",
100
- "name": "ButtonProps"
101
- }
102
- ],
103
- "required": false,
104
- "type": {
105
- "name": "boolean | null"
106
- }
107
- },
108
- "size": {
109
- "defaultValue": {
110
- "value": "md"
111
- },
112
- "description": "Sets the size of the button.",
113
- "name": "size",
114
- "parent": {
115
- "fileName": "ui-kit-react/lib/components/button/button.tsx",
116
- "name": "ButtonProps"
117
- },
118
- "declarations": [
119
- {
120
- "fileName": "ui-kit-react/lib/components/button/button.tsx",
121
- "name": "ButtonProps"
122
- }
123
- ],
124
- "required": false,
125
- "type": {
126
- "name": "\"sm\" | \"md\" | \"xs\" | \"xxs\" | null"
127
- }
128
- },
129
66
  "variant": {
130
67
  "defaultValue": {
131
- "value": "solid"
68
+ "value": "secondary"
132
69
  },
133
70
  "description": "Changes the appearance of the button.",
134
71
  "name": "variant",
@@ -144,7 +81,7 @@
144
81
  ],
145
82
  "required": false,
146
83
  "type": {
147
- "name": "\"link\" | \"solid\" | \"outline\" | null"
84
+ "name": "\"critical\" | \"primary\" | \"secondary\" | \"tertiary\" | null"
148
85
  }
149
86
  },
150
87
  "form": {
@@ -872,19 +809,40 @@
872
809
  }
873
810
  }
874
811
  },
812
+ "Label": {
813
+ "required": {
814
+ "defaultValue": null,
815
+ "description": "Displays a required indicator next to the label.",
816
+ "name": "required",
817
+ "parent": {
818
+ "fileName": "ui-kit-react/lib/components/label/label.tsx",
819
+ "name": "LabelProps"
820
+ },
821
+ "declarations": [
822
+ {
823
+ "fileName": "ui-kit-react/lib/components/label/label.tsx",
824
+ "name": "LabelProps"
825
+ }
826
+ ],
827
+ "required": false,
828
+ "type": {
829
+ "name": "boolean"
830
+ }
831
+ }
832
+ },
875
833
  "Link": {
876
834
  "isDisabled": {
877
835
  "defaultValue": null,
878
836
  "description": "Whether the link is disabled.",
879
837
  "name": "isDisabled",
880
838
  "parent": {
881
- "fileName": "apps-platform/node_modules/.pnpm/@react-aria+link@3.6.5_react@18.2.0/node_modules/@react-aria/link/dist/types.d.ts",
882
- "name": "AriaLinkOptions"
839
+ "fileName": "ui-kit-react/lib/components/link/link.tsx",
840
+ "name": "LinkProps"
883
841
  },
884
842
  "declarations": [
885
843
  {
886
- "fileName": "apps-platform/node_modules/.pnpm/@react-aria+link@3.6.5_react@18.2.0/node_modules/@react-aria/link/dist/types.d.ts",
887
- "name": "AriaLinkOptions"
844
+ "fileName": "ui-kit-react/lib/components/link/link.tsx",
845
+ "name": "LinkProps"
888
846
  }
889
847
  ],
890
848
  "required": false,
@@ -1425,6 +1383,145 @@
1425
1383
  }
1426
1384
  }
1427
1385
  },
1386
+ "Text": {
1387
+ "as": {
1388
+ "defaultValue": {
1389
+ "value": "'span'"
1390
+ },
1391
+ "description": "Optional HTML element type to render as.",
1392
+ "name": "as",
1393
+ "parent": {
1394
+ "fileName": "ui-kit-react/lib/components/text/text.tsx",
1395
+ "name": "TextProps"
1396
+ },
1397
+ "declarations": [
1398
+ {
1399
+ "fileName": "ui-kit-react/lib/components/text/text.tsx",
1400
+ "name": "TextProps"
1401
+ }
1402
+ ],
1403
+ "required": false,
1404
+ "type": {
1405
+ "name": "Element"
1406
+ }
1407
+ },
1408
+ "className": {
1409
+ "defaultValue": null,
1410
+ "description": "Optional class name to apply to the text.",
1411
+ "name": "className",
1412
+ "parent": {
1413
+ "fileName": "ui-kit-react/lib/components/text/text.tsx",
1414
+ "name": "TextProps"
1415
+ },
1416
+ "declarations": [
1417
+ {
1418
+ "fileName": "ui-kit-react/lib/components/text/text.tsx",
1419
+ "name": "TextProps"
1420
+ }
1421
+ ],
1422
+ "required": false,
1423
+ "type": {
1424
+ "name": "string"
1425
+ }
1426
+ },
1427
+ "children": {
1428
+ "defaultValue": null,
1429
+ "description": "The text to display.",
1430
+ "name": "children",
1431
+ "parent": {
1432
+ "fileName": "ui-kit-react/lib/components/text/text.tsx",
1433
+ "name": "TextProps"
1434
+ },
1435
+ "declarations": [
1436
+ {
1437
+ "fileName": "ui-kit-react/lib/components/text/text.tsx",
1438
+ "name": "TextProps"
1439
+ }
1440
+ ],
1441
+ "required": true,
1442
+ "type": {
1443
+ "name": "ReactNode"
1444
+ }
1445
+ },
1446
+ "id": {
1447
+ "defaultValue": null,
1448
+ "description": "The HTML id attribute",
1449
+ "name": "id",
1450
+ "parent": {
1451
+ "fileName": "ui-kit-react/lib/components/text/text.tsx",
1452
+ "name": "TextProps"
1453
+ },
1454
+ "declarations": [
1455
+ {
1456
+ "fileName": "ui-kit-react/lib/components/text/text.tsx",
1457
+ "name": "TextProps"
1458
+ }
1459
+ ],
1460
+ "required": false,
1461
+ "type": {
1462
+ "name": "string"
1463
+ }
1464
+ },
1465
+ "tone": {
1466
+ "defaultValue": null,
1467
+ "description": "Optional tone of the text.",
1468
+ "name": "tone",
1469
+ "parent": {
1470
+ "fileName": "ui-kit-react/lib/components/text/text.tsx",
1471
+ "name": "TextProps"
1472
+ },
1473
+ "declarations": [
1474
+ {
1475
+ "fileName": "ui-kit-react/lib/components/text/text.tsx",
1476
+ "name": "TextProps"
1477
+ }
1478
+ ],
1479
+ "required": false,
1480
+ "type": {
1481
+ "name": "\"default\" | \"headline\" | \"dark\" | \"light\" | \"disabled\" | \"critical\" | \"error\" | \"info\" | \"success\" | \"warning\" | null"
1482
+ }
1483
+ },
1484
+ "variant": {
1485
+ "defaultValue": null,
1486
+ "description": "Optional variant of the text.",
1487
+ "name": "variant",
1488
+ "parent": {
1489
+ "fileName": "ui-kit-react/lib/components/text/text.tsx",
1490
+ "name": "TextProps"
1491
+ },
1492
+ "declarations": [
1493
+ {
1494
+ "fileName": "ui-kit-react/lib/components/text/text.tsx",
1495
+ "name": "TextProps"
1496
+ }
1497
+ ],
1498
+ "required": false,
1499
+ "type": {
1500
+ "name": "\"heading-lg\" | \"heading-md\" | \"body-md-strong\" | \"body-md\" | \"body-sm\" | null"
1501
+ }
1502
+ },
1503
+ "visuallyHidden": {
1504
+ "defaultValue": {
1505
+ "value": false
1506
+ },
1507
+ "description": "Optional boolean to visually hide the text.",
1508
+ "name": "visuallyHidden",
1509
+ "parent": {
1510
+ "fileName": "ui-kit-react/lib/components/text/text.tsx",
1511
+ "name": "TextProps"
1512
+ },
1513
+ "declarations": [
1514
+ {
1515
+ "fileName": "ui-kit-react/lib/components/text/text.tsx",
1516
+ "name": "TextProps"
1517
+ }
1518
+ ],
1519
+ "required": false,
1520
+ "type": {
1521
+ "name": "boolean"
1522
+ }
1523
+ }
1524
+ },
1428
1525
  "Theme": {
1429
1526
  "children": {
1430
1527
  "defaultValue": null,
@@ -1466,5 +1563,106 @@
1466
1563
  "name": "boolean"
1467
1564
  }
1468
1565
  }
1566
+ },
1567
+ "Thumbnail": {
1568
+ "alt": {
1569
+ "defaultValue": null,
1570
+ "description": "The alt text for the thumbnail.",
1571
+ "name": "alt",
1572
+ "parent": {
1573
+ "fileName": "ui-kit-react/lib/components/thumbnail/thumbnail.tsx",
1574
+ "name": "ThumbnailProps"
1575
+ },
1576
+ "declarations": [
1577
+ {
1578
+ "fileName": "ui-kit-react/lib/components/thumbnail/thumbnail.tsx",
1579
+ "name": "ThumbnailProps"
1580
+ }
1581
+ ],
1582
+ "required": true,
1583
+ "type": {
1584
+ "name": "string"
1585
+ }
1586
+ },
1587
+ "src": {
1588
+ "defaultValue": null,
1589
+ "description": "The source of the image to display can either be a URL string or an SVG element.",
1590
+ "name": "src",
1591
+ "parent": {
1592
+ "fileName": "ui-kit-react/lib/components/thumbnail/thumbnail.tsx",
1593
+ "name": "ThumbnailProps"
1594
+ },
1595
+ "declarations": [
1596
+ {
1597
+ "fileName": "ui-kit-react/lib/components/thumbnail/thumbnail.tsx",
1598
+ "name": "ThumbnailProps"
1599
+ }
1600
+ ],
1601
+ "required": true,
1602
+ "type": {
1603
+ "name": "string | ReactElement<SVGProps<SVGSVGElement>, string | JSXElementConstructor<any>>"
1604
+ }
1605
+ },
1606
+ "fit": {
1607
+ "defaultValue": {
1608
+ "value": "cover"
1609
+ },
1610
+ "description": "Optional fit style for the thumbnail image.",
1611
+ "name": "fit",
1612
+ "parent": {
1613
+ "fileName": "ui-kit-react/lib/components/thumbnail/thumbnail.tsx",
1614
+ "name": "ThumbnailProps"
1615
+ },
1616
+ "declarations": [
1617
+ {
1618
+ "fileName": "ui-kit-react/lib/components/thumbnail/thumbnail.tsx",
1619
+ "name": "ThumbnailProps"
1620
+ }
1621
+ ],
1622
+ "required": false,
1623
+ "type": {
1624
+ "name": "\"cover\" | \"contain\" | null"
1625
+ }
1626
+ },
1627
+ "isDisabled": {
1628
+ "defaultValue": null,
1629
+ "description": "Optionally disables the thumbnail.",
1630
+ "name": "isDisabled",
1631
+ "parent": {
1632
+ "fileName": "ui-kit-react/lib/components/thumbnail/thumbnail.tsx",
1633
+ "name": "ThumbnailProps"
1634
+ },
1635
+ "declarations": [
1636
+ {
1637
+ "fileName": "ui-kit-react/lib/components/thumbnail/thumbnail.tsx",
1638
+ "name": "ThumbnailProps"
1639
+ }
1640
+ ],
1641
+ "required": false,
1642
+ "type": {
1643
+ "name": "boolean"
1644
+ }
1645
+ },
1646
+ "size": {
1647
+ "defaultValue": {
1648
+ "value": "md"
1649
+ },
1650
+ "description": "Optional size of the thumbnail.",
1651
+ "name": "size",
1652
+ "parent": {
1653
+ "fileName": "ui-kit-react/lib/components/thumbnail/thumbnail.tsx",
1654
+ "name": "ThumbnailProps"
1655
+ },
1656
+ "declarations": [
1657
+ {
1658
+ "fileName": "ui-kit-react/lib/components/thumbnail/thumbnail.tsx",
1659
+ "name": "ThumbnailProps"
1660
+ }
1661
+ ],
1662
+ "required": false,
1663
+ "type": {
1664
+ "name": "\"sm\" | \"md\" | \"lg\" | null"
1665
+ }
1666
+ }
1469
1667
  }
1470
1668
  }