|
|
@@ -1,6 +1,6 @@ |
|
|
|
import * as React from 'react'; |
|
|
|
import { TextControl } from '@tesseract-design/web-base'; |
|
|
|
import { useClientSide, useProxyInput } from '@modal-sh/react-utils'; |
|
|
|
import {useClientSide, useFallbackId, useProxyInput} from '@modal-sh/react-utils'; |
|
|
|
import PhoneInput, { Country, Value } from 'react-phone-number-input/input'; |
|
|
|
import clsx from 'clsx'; |
|
|
|
|
|
|
@@ -83,8 +83,7 @@ export const PhoneNumberInput = React.forwardRef< |
|
|
|
value?.toString() ?? defaultValue?.toString() ?? '', |
|
|
|
); |
|
|
|
const labelId = React.useId(); |
|
|
|
const defaultId = React.useId(); |
|
|
|
const id = idProp ?? defaultId; |
|
|
|
const id = useFallbackId(idProp); |
|
|
|
const { |
|
|
|
defaultRef, |
|
|
|
handleChange: handlePhoneInputChange, |
|
|
|