@theroutingcompany/components 0.0.49 → 0.0.51-alpha.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theroutingcompany/components",
3
- "version": "0.0.49",
3
+ "version": "0.0.51-alpha.0",
4
4
  "description": "The Routing Company Components",
5
5
  "main": "./dist/trc-components.umd.js",
6
6
  "module": "./dist/trc-components.es.js",
@@ -3,6 +3,7 @@ import * as React from 'react';
3
3
  export declare const Wrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
4
4
  declare function ComboBox<T extends object>(props: ComboBoxProps<T> & {
5
5
  tooltipContent?: React.ReactNode;
6
+ errorMessage?: string;
6
7
  }): import("react/jsx-runtime").JSX.Element;
7
8
  declare namespace ComboBox {
8
9
  var Item: <T>(props: import("@react-types/shared").ItemProps<T>) => JSX.Element;
@@ -54,6 +54,7 @@ type MultiSelectProps = {
54
54
  selectionMode: 'single' | 'multiple';
55
55
  tooltipContent?: string;
56
56
  tooltipIcon?: string;
57
+ errorMessage?: string;
57
58
  };
58
59
  export declare const MultiSelectComponent: React.ForwardRefExoticComponent<MultiSelectProps & React.RefAttributes<HTMLButtonElement>>;
59
60
  export declare const MultiSelect: React.ForwardRefExoticComponent<MultiSelectProps & {
@@ -16,6 +16,8 @@ interface MultiSelectAria<T> {
16
16
  valueProps: HTMLAttributes<HTMLElement>;
17
17
  /** Props for the popup. */
18
18
  menuProps: AriaListBoxOptions<unknown>;
19
+ /** Props for the error message */
20
+ errorMessageProps: HTMLAttributes<HTMLElement>;
19
21
  }
20
22
  export declare function useMultiSelect<T>(props: MultiSelectProps<T>, state: MultiSelectState<T>, ref: RefObject<HTMLElement>): MultiSelectAria<T>;
21
23
  export {};
@@ -8,4 +8,5 @@ type SingleSelectProps<T> = AriaSelectProps<T> & {
8
8
  };
9
9
  export declare function SingleSelect<T extends object>(props: SingleSelectProps<T> & {
10
10
  hideLabel?: boolean | undefined;
11
+ errorMessage?: string;
11
12
  }): import("react/jsx-runtime").JSX.Element;