@royaloperahouse/chord 2.11.3-dev → 2.12.0-rc

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.
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { IAutocompleteProps } from './Autocomplete.types';
3
+ declare const Autocomplete: ({ value, options, placeholder, onChange, onSelect, maxWidth, }: IAutocompleteProps) => React.ReactElement;
4
+ export default Autocomplete;
@@ -0,0 +1,10 @@
1
+ export declare const AutocompleteWrapper: import("styled-components").StyledComponent<"div", any, {
2
+ maxWidth: number;
3
+ }, never>;
4
+ export declare const Dropdown: import("styled-components").StyledComponent<"div", any, {
5
+ maxWidth: number;
6
+ }, never>;
7
+ export declare const Option: import("styled-components").StyledComponent<"div", any, {
8
+ isActive: boolean;
9
+ }, never>;
10
+ export declare const NoResults: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -0,0 +1,12 @@
1
+ import { ITextFieldProps } from '../../../types/formTypes';
2
+ export interface IAutocompleteOption {
3
+ label: string;
4
+ readonly value: string;
5
+ }
6
+ export interface IAutocompleteProps extends Omit<ITextFieldProps, 'onChange' | 'onSelect'> {
7
+ options: IAutocompleteOption[];
8
+ placeholder?: string;
9
+ maxWidth?: number;
10
+ onChange: (value: IAutocompleteOption['value']) => void;
11
+ onSelect: (option: IAutocompleteOption) => void;
12
+ }
@@ -0,0 +1,2 @@
1
+ import Autocomplete from './Autocomplete';
2
+ export default Autocomplete;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@royaloperahouse/chord",
3
- "version": "2.11.3-dev",
3
+ "version": "2.12.0-rc",
4
4
  "author": "Royal Opera House",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",