@theroutingcompany/components 0.0.100-alpha.0 → 0.0.100-alpha.2

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.100-alpha.0",
3
+ "version": "0.0.100-alpha.2",
4
4
  "description": "The Routing Company Components",
5
5
  "main": "./dist/trc-components.umd.js",
6
6
  "module": "./dist/trc-components.es.js",
@@ -60,11 +60,15 @@ export declare const TextAreaFormControl: import("react").ForwardRefExoticCompon
60
60
  maxLength?: number | undefined;
61
61
  minLength?: number | undefined;
62
62
  readOnly?: boolean | undefined;
63
- required?: unknown;
63
+ required?: boolean | undefined;
64
64
  description?: ReactNode;
65
65
  onFocusChange?: ((isFocused: boolean) => void) | undefined;
66
66
  excludeFromTabOrder?: boolean | undefined;
67
+ validationState?: import("@react-types/shared").ValidationState | undefined;
68
+ isInvalid?: boolean | undefined;
67
69
  errorMessage?: ReactNode | ((v: import("@react-types/shared").ValidationResult) => ReactNode);
70
+ validationBehavior?: "aria" | "native" | undefined;
71
+ validate?: ((value: unknown) => true | import("@react-types/shared").ValidationError | null | undefined) | undefined;
68
72
  } & import("components/Input/InputBase").InputBaseProps & {
69
73
  rows?: number | undefined;
70
74
  errorMessage?: ReactNode;
@@ -89,5 +93,6 @@ export declare const NumberFormControl: import("react").ForwardRefExoticComponen
89
93
  required?: boolean | undefined;
90
94
  isInvalid?: boolean | undefined;
91
95
  boldLabel?: boolean | undefined;
96
+ tooltipContent?: string | undefined;
92
97
  } & import("react").RefAttributes<HTMLInputElement>>;
93
98
  export {};
@@ -14,6 +14,7 @@ export type NumberInputProps = ReactAriaNumberInputProps & InputBaseProps & Stan
14
14
  required?: boolean;
15
15
  isInvalid?: boolean;
16
16
  boldLabel?: boolean;
17
+ tooltipContent?: string;
17
18
  };
18
19
  /**
19
20
  * Use cases
@@ -45,6 +46,7 @@ export declare const NumberInput: import("react").ForwardRefExoticComponent<Omit
45
46
  required?: boolean | undefined;
46
47
  isInvalid?: boolean | undefined;
47
48
  boldLabel?: boolean | undefined;
49
+ tooltipContent?: string | undefined;
48
50
  } & import("react").RefAttributes<HTMLInputElement>>;
49
51
  export declare const handleFormWithNumbers: (form: HTMLFormElement) => {
50
52
  [k: string]: FormDataEntryValue;
@@ -9,6 +9,6 @@ export declare const Search: import("react").ForwardRefExoticComponent<{
9
9
  height?: string | undefined;
10
10
  } & Omit<AriaSearchFieldProps, "isDisabled" | "isRequired" | "isReadOnly"> & {
11
11
  disabled?: boolean | undefined;
12
- required?: unknown;
12
+ required?: boolean | undefined;
13
13
  readOnly?: boolean | undefined;
14
14
  } & import("react").RefAttributes<HTMLInputElement>>;