@theroutingcompany/components 0.0.98 → 0.0.99-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.98",
3
+ "version": "0.0.99-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",
@@ -107,10 +107,11 @@
107
107
  "@styled-system/prop-types": "^5.1.2",
108
108
  "@styled-system/props": "^5.1.5",
109
109
  "@tanstack/react-table": "^8.9.1",
110
- "@theroutingcompany/design-tokens": "^0.0.9",
110
+ "@theroutingcompany/design-tokens": "0.0.14-alpha.0",
111
111
  "@types/styled-system": "^5.1.16",
112
112
  "csstype": "^3.1.2",
113
113
  "react-focus-lock": "^2.9.4",
114
+ "react-google-autocomplete": "^2.7.3",
114
115
  "react-scrolllock": "^5.0.1",
115
116
  "react-transition-group": "^4.4.5",
116
117
  "styled-components": "^5.3.9",
@@ -138,6 +139,7 @@
138
139
  "@storybook/react-vite": "^7.0.3",
139
140
  "@storybook/testing-library": "^0.1.0",
140
141
  "@types/eslint": "^8.37.0",
142
+ "@types/google.maps": "^3.55.11",
141
143
  "@types/prettier": "^2.7.2",
142
144
  "@types/react": "^18.0.34",
143
145
  "@types/react-dom": "^18.0.11",
@@ -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;
@@ -0,0 +1,22 @@
1
+ /// <reference types="google.maps" />
2
+ import { type ReactNode } from 'react';
3
+ declare const GoogleInput: ({ googleApiKey, placeholder, options, defaultValue, onPlaceSelected, disabled, label, labelId, inputId, hideLabel, boldLabel, autoFocus, bounds, strictBounds, ...props }: {
4
+ googleApiKey: string;
5
+ placeholder?: string | undefined;
6
+ options?: Record<string, any> | undefined;
7
+ defaultValue?: string | undefined;
8
+ onPlaceSelected?: ((place: google.maps.places.PlaceResult) => void) | undefined;
9
+ disabled?: boolean | undefined;
10
+ 'data-id'?: string | undefined;
11
+ label?: ReactNode;
12
+ boldLabel?: boolean | undefined;
13
+ hideLabel?: boolean | undefined;
14
+ labelId?: string | undefined;
15
+ inputId?: string | undefined;
16
+ tooltipContent?: React.ReactNode;
17
+ autoFocus?: boolean | undefined;
18
+ bounds?: google.maps.LatLngBounds | undefined;
19
+ strictBounds?: boolean | undefined;
20
+ }) => import("react/jsx-runtime").JSX.Element;
21
+ export default GoogleInput;
22
+ export { GoogleInput };
@@ -0,0 +1 @@
1
+ export * from './GoogleInput';
@@ -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>>;
@@ -18,6 +18,7 @@ export * from './DropdownMenu/DropdownMenu';
18
18
  export * from './Fieldset/Fieldset';
19
19
  export * from './FileUpload/FileUpload';
20
20
  export * from './Flex/Flex';
21
+ export * from './GoogleInput';
21
22
  export * from './FormControl/FormControl';
22
23
  export * from './IconButton/IconButton';
23
24
  export * from './Input/InlineEdit/InlineEdit';
@@ -1 +1 @@
1
- export declare const useOutsideClick: (ref: React.RefObject<HTMLElement>, onOutsideClick: () => void) => void;
1
+ export declare const useOutsideClick: (ref: React.RefObject<HTMLElement>, onOutsideClick: (event: MouseEvent) => void) => void;