@7shifts/sous-chef 3.13.3 → 3.15.0-beta.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.
@@ -0,0 +1,8 @@
1
+ import { CountryCode } from 'libphonenumber-js';
2
+ declare type Props = {
3
+ country: CountryCode;
4
+ onChange: (country: CountryCode) => void;
5
+ hasError: boolean;
6
+ };
7
+ declare const CountrySelector: ({ country, onChange, hasError }: Props) => JSX.Element;
8
+ export default CountrySelector;
@@ -0,0 +1 @@
1
+ export { default } from './CountrySelector';
@@ -0,0 +1,21 @@
1
+ import React from 'react';
2
+ import { PhoneFieldValue } from './types';
3
+ export declare type Props = {
4
+ autoFocus?: boolean;
5
+ caption?: React.ReactNode;
6
+ disabled?: boolean;
7
+ error?: React.ReactNode;
8
+ /** If not provided it will generate a random id so the label links properly with the text input */
9
+ id?: string;
10
+ label?: React.ReactNode;
11
+ maxLength?: number;
12
+ name: string;
13
+ onBlur?: (value: PhoneFieldValue) => void;
14
+ onChange?: (value: PhoneFieldValue) => void;
15
+ placeholder?: string;
16
+ value?: PhoneFieldValue;
17
+ testId?: string;
18
+ disabledCountry?: boolean;
19
+ };
20
+ declare const PhoneField: ({ disabledCountry, ...props }: Props) => JSX.Element;
21
+ export default PhoneField;