@helpscout/ui-kit-react 0.0.1 → 0.1.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.
Files changed (43) hide show
  1. package/dist/lib/components/button/button.d.ts +2 -11
  2. package/dist/lib/components/button/button.d.ts.map +1 -1
  3. package/dist/lib/components/input/input.d.ts +16 -0
  4. package/dist/lib/components/input/input.d.ts.map +1 -0
  5. package/dist/lib/components/input/input.test.d.ts +2 -0
  6. package/dist/lib/components/input/input.test.d.ts.map +1 -0
  7. package/dist/lib/components/label/label.d.ts +30 -0
  8. package/dist/lib/components/label/label.d.ts.map +1 -0
  9. package/dist/lib/components/label/label.test.d.ts +2 -0
  10. package/dist/lib/components/label/label.test.d.ts.map +1 -0
  11. package/dist/lib/components/link/link.d.ts +2 -0
  12. package/dist/lib/components/link/link.d.ts.map +1 -1
  13. package/dist/lib/components/numberfield/numberfield.d.ts +8 -0
  14. package/dist/lib/components/numberfield/numberfield.d.ts.map +1 -0
  15. package/dist/lib/components/numberfield/numberfield.test.d.ts +2 -0
  16. package/dist/lib/components/numberfield/numberfield.test.d.ts.map +1 -0
  17. package/dist/lib/components/text/text.d.ts +31 -0
  18. package/dist/lib/components/text/text.d.ts.map +1 -0
  19. package/dist/lib/components/text/text.test.d.ts +2 -0
  20. package/dist/lib/components/text/text.test.d.ts.map +1 -0
  21. package/dist/lib/components/text/text.utils.d.ts +6 -0
  22. package/dist/lib/components/text/text.utils.d.ts.map +1 -0
  23. package/dist/lib/components/text-field/text-field.d.ts +20 -0
  24. package/dist/lib/components/text-field/text-field.d.ts.map +1 -0
  25. package/dist/lib/components/text-field/text-field.test.d.ts +2 -0
  26. package/dist/lib/components/text-field/text-field.test.d.ts.map +1 -0
  27. package/dist/lib/components/thumbnail/thumbnail.d.ts +25 -0
  28. package/dist/lib/components/thumbnail/thumbnail.d.ts.map +1 -0
  29. package/dist/lib/components/thumbnail/thumbnail.test.d.ts +2 -0
  30. package/dist/lib/components/thumbnail/thumbnail.test.d.ts.map +1 -0
  31. package/dist/lib/components/validation-alert/validation-alert.d.ts +15 -0
  32. package/dist/lib/components/validation-alert/validation-alert.d.ts.map +1 -0
  33. package/dist/lib/components/validation-alert/validation-alert.test.d.ts +2 -0
  34. package/dist/lib/components/validation-alert/validation-alert.test.d.ts.map +1 -0
  35. package/dist/lib/hooks/useFocusRing/useFocusRing.d.ts +8 -0
  36. package/dist/lib/hooks/useFocusRing/useFocusRing.d.ts.map +1 -0
  37. package/dist/lib/ui-kit-react.d.ts +8 -0
  38. package/dist/lib/ui-kit-react.d.ts.map +1 -1
  39. package/dist/prop-types.json +2141 -88
  40. package/dist/ui-kit-react.css +1 -1
  41. package/dist/ui-kit-react.js +13185 -10795
  42. package/dist/ui-kit-react.umd.cjs +53 -53
  43. package/package.json +19 -17
@@ -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,16 @@
1
+ import { type VariantProps } from "class-variance-authority";
2
+ import { type InputProps as RACInputProps } from "react-aria-components";
3
+ declare const inputStyles: (props?: ({
4
+ state?: "success" | "warning" | "error" | null | undefined;
5
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
6
+ export type InputVariantProps = VariantProps<typeof inputStyles>;
7
+ export interface InputProps extends RACInputProps {
8
+ /** Changes the appearance of the input to indicate an error, success, or warning state. */
9
+ state?: InputVariantProps["state"];
10
+ }
11
+ export declare function Input({ className, disabled, state, ...props }: InputProps): JSX.Element;
12
+ export declare namespace Input {
13
+ var displayName: string;
14
+ }
15
+ export {};
16
+ //# sourceMappingURL=input.d.ts.map
@@ -0,0 +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;AA6B/B,QAAA,MAAM,WAAW;;8EAQf,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,YAAY,CAAC,OAAO,WAAW,CAAC,CAAC;AAEjE,MAAM,WAAW,UAAW,SAAQ,aAAa;IAC/C,2FAA2F;IAC3F,KAAK,CAAC,EAAE,iBAAiB,CAAC,OAAO,CAAC,CAAC;CACpC;AAED,wBAAgB,KAAK,CAAC,EACpB,SAAS,EACT,QAAQ,EACR,KAAK,EACL,GAAG,KAAK,EACT,EAAE,UAAU,GAAG,GAAG,CAAC,OAAO,CAiB1B;yBAtBe,KAAK"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=input.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"input.test.d.ts","sourceRoot":"","sources":["../../../../lib/components/input/input.test.tsx"],"names":[],"mappings":""}
@@ -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,8 @@
1
+ import { type NumberFieldProps as RCANumberFieldProps } from "react-aria-components";
2
+ export interface NumberFieldProps extends RCANumberFieldProps {
3
+ }
4
+ export declare function NumberField({ className, ...props }: NumberFieldProps): JSX.Element;
5
+ export declare namespace NumberField {
6
+ var displayName: string;
7
+ }
8
+ //# sourceMappingURL=numberfield.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"numberfield.d.ts","sourceRoot":"","sources":["../../../../lib/components/numberfield/numberfield.tsx"],"names":[],"mappings":"AAGA,OAAO,EAOL,KAAK,gBAAgB,IAAI,mBAAmB,EAC7C,MAAM,uBAAuB,CAAC;AAY/B,MAAM,WAAW,gBAAiB,SAAQ,mBAAmB;CAAG;AAEhE,wBAAgB,WAAW,CAAC,EAC1B,SAAS,EACT,GAAG,KAAK,EACT,EAAE,gBAAgB,GAAG,GAAG,CAAC,OAAO,CA4BhC;yBA/Be,WAAW"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=numberfield.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"numberfield.test.d.ts","sourceRoot":"","sources":["../../../../lib/components/numberfield/numberfield.test.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,31 @@
1
+ import { type VariantProps } from "class-variance-authority";
2
+ declare const textStyles: (props?: ({
3
+ tone?: "default" | "success" | "warning" | "error" | "critical" | "disabled" | "headline" | "dark" | "light" | "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" | "disabled" | "headline" | "dark" | "light" | "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,20 @@
1
+ import { type TextFieldProps as RACTextFieldProps } from "react-aria-components";
2
+ export interface TextFieldProps extends Omit<RACTextFieldProps, "isInvalid"> {
3
+ /** The label for the input. */
4
+ label?: string;
5
+ /** Shows a description under the label. */
6
+ description?: string;
7
+ /** Controls if the textfield is disabled. */
8
+ isDisabled?: boolean;
9
+ /** Shows a placeholder in the input. */
10
+ placeholder?: string;
11
+ /** Shows a validation message under the input. */
12
+ validationMessage?: string;
13
+ /** Changes the appearance of the text field. */
14
+ validationState?: "error" | "success" | "warning";
15
+ }
16
+ export declare function TextField({ label, description, isRequired, placeholder, validationMessage, validationState, ...props }: TextFieldProps): JSX.Element;
17
+ export declare namespace TextField {
18
+ var displayName: string;
19
+ }
20
+ //# sourceMappingURL=text-field.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text-field.d.ts","sourceRoot":"","sources":["../../../../lib/components/text-field/text-field.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,cAAc,IAAI,iBAAiB,EACzC,MAAM,uBAAuB,CAAC;AAQ/B,MAAM,WAAW,cAAe,SAAQ,IAAI,CAAC,iBAAiB,EAAE,WAAW,CAAC;IAC1E,+BAA+B;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,2CAA2C;IAC3C,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,6CAA6C;IAC7C,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB,wCAAwC;IACxC,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,kDAAkD;IAClD,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B,gDAAgD;IAChD,eAAe,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,SAAS,CAAC;CACnD;AAED,wBAAgB,SAAS,CAAC,EACxB,KAAK,EACL,WAAW,EACX,UAAU,EACV,WAAW,EACX,iBAAiB,EACjB,eAAe,EACf,GAAG,KAAK,EACT,EAAE,cAAc,GAAG,GAAG,CAAC,OAAO,CAyB9B;yBAjCe,SAAS"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=text-field.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text-field.test.d.ts","sourceRoot":"","sources":["../../../../lib/components/text-field/text-field.test.tsx"],"names":[],"mappings":""}
@@ -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,15 @@
1
+ import { type VariantProps } from "class-variance-authority";
2
+ declare const validationAlertStyles: (props?: ({
3
+ state?: "success" | "warning" | "error" | null | undefined;
4
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
5
+ export type ValidationAlertVariantProps = VariantProps<typeof validationAlertStyles>;
6
+ export interface ValidationAlertProps extends React.HTMLAttributes<HTMLDivElement> {
7
+ /** Changes the appearance of the alert to indicate an error, success, or warning state. */
8
+ state?: ValidationAlertVariantProps["state"];
9
+ }
10
+ export declare function ValidationAlert({ children, className, state, ...props }: ValidationAlertProps): JSX.Element | null;
11
+ export declare namespace ValidationAlert {
12
+ var displayName: string;
13
+ }
14
+ export {};
15
+ //# sourceMappingURL=validation-alert.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validation-alert.d.ts","sourceRoot":"","sources":["../../../../lib/components/validation-alert/validation-alert.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAO,MAAM,0BAA0B,CAAC;AAIlE,QAAA,MAAM,qBAAqB;;8EAQzB,CAAC;AAEH,MAAM,MAAM,2BAA2B,GAAG,YAAY,CACpD,OAAO,qBAAqB,CAC7B,CAAC;AAEF,MAAM,WAAW,oBACf,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAC5C,2FAA2F;IAC3F,KAAK,CAAC,EAAE,2BAA2B,CAAC,OAAO,CAAC,CAAC;CAC9C;AAED,wBAAgB,eAAe,CAAC,EAC9B,QAAQ,EACR,SAAS,EACT,KAAK,EACL,GAAG,KAAK,EACT,EAAE,oBAAoB,GAAG,GAAG,CAAC,OAAO,GAAG,IAAI,CAa3C;yBAlBe,eAAe"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=validation-alert.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validation-alert.test.d.ts","sourceRoot":"","sources":["../../../../lib/components/validation-alert/validation-alert.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,13 @@
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 { Input, type InputProps, type InputVariantProps, } from "./components/input/input";
5
+ export { Label, LabelDescription, LabelGroup, type LabelProps, type LabelVariantProps, type LabelDescriptionProps, type LabelGroupProps, } from "./components/label/label";
4
6
  export { Link, type LinkProps, type LinkVariantProps, } from "./components/link/link";
7
+ export { Text, type TextProps, type TextVariantProps, } from "./components/text/text";
8
+ export { TextField, type TextFieldProps, } from "./components/text-field/text-field";
9
+ export { Thumbnail, type ThumbnailProps, type ThumbnailVariantProps, } from "./components/thumbnail/thumbnail";
10
+ export { useFocusRing } from "./hooks/useFocusRing/useFocusRing";
11
+ export { ValidationAlert, type ValidationAlertProps, type ValidationAlertVariantProps, } from "./components/validation-alert/validation-alert";
12
+ export { NumberField, type NumberFieldProps, } from "./components/numberfield/numberfield";
5
13
  //# 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,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,KAAK,SAAS,EACd,KAAK,gBAAgB,GACtB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,SAAS,EACT,KAAK,cAAc,GACpB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACL,SAAS,EACT,KAAK,cAAc,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;AACxD,OAAO,EACL,WAAW,EACX,KAAK,gBAAgB,GACtB,MAAM,sCAAsC,CAAC"}