|
|
@@ -1,7 +1,7 @@ |
|
|
|
import * as React from 'react'; |
|
|
|
import { TextControl } from '@tesseract-design/web-base'; |
|
|
|
import { delegateTriggerEvent, useClientSide } from '@modal-sh/react-utils'; |
|
|
|
import PhoneInput, {Country, Value} from 'react-phone-number-input/input'; |
|
|
|
import PhoneInput, { Country, Value } from 'react-phone-number-input/input'; |
|
|
|
import clsx from 'clsx'; |
|
|
|
|
|
|
|
export type PhoneNumberInputDerivedElement = HTMLInputElement; |
|
|
@@ -96,7 +96,7 @@ export const PhoneNumberInput = React.forwardRef< |
|
|
|
}; |
|
|
|
|
|
|
|
const commonInputStyles = clsx( |
|
|
|
'bg-negative rounded-inherit w-full peer block', |
|
|
|
'bg-negative rounded-inherit w-full peer block font-inherit', |
|
|
|
'focus:outline-0', |
|
|
|
'disabled:opacity-50 disabled:cursor-not-allowed', |
|
|
|
{ |
|
|
@@ -253,11 +253,11 @@ PhoneNumberInput.defaultProps = { |
|
|
|
label: undefined, |
|
|
|
hint: undefined, |
|
|
|
indicator: undefined, |
|
|
|
size: 'medium', |
|
|
|
border: false, |
|
|
|
block: false, |
|
|
|
variant: 'default', |
|
|
|
hiddenLabel: false, |
|
|
|
enhanced: false, |
|
|
|
defaultCountry: 'PH', |
|
|
|
size: 'medium' as const, |
|
|
|
border: false as const, |
|
|
|
block: false as const, |
|
|
|
variant: 'default' as const, |
|
|
|
hiddenLabel: false as const, |
|
|
|
enhanced: false as const, |
|
|
|
defaultCountry: 'PH' as const, |
|
|
|
}; |