* chore: Add ./components/[name]/index.ts map to package.json * fix: Clarify Popover exports * fix: re-add dropdown to calcom/ui barrel * chore: Add icon barrel file re-export * Fix all calcom/ui imports of its own barrel * Never say 'fix all remaining..' it's never true * Some type fixeS * Linking fixes * Rename sheet.tsx to Sheet.tsx Done through UI, console does NOT like this. * Fixed some test failures
21 lines
551 B
TypeScript
21 lines
551 B
TypeScript
import React, { forwardRef } from "react";
|
|
|
|
import { UnstyledSelect } from "../../../form/Select";
|
|
import { InputField } from "./TextField";
|
|
import type { InputFieldProps } from "./types";
|
|
|
|
export const InputFieldWithSelect = forwardRef<
|
|
HTMLInputElement,
|
|
InputFieldProps & { selectProps: typeof UnstyledSelect }
|
|
>(function EmailField(props, ref) {
|
|
return (
|
|
<InputField
|
|
ref={ref}
|
|
{...props}
|
|
inputIsFullWidth={false}
|
|
addOnClassname="!px-0"
|
|
addOnSuffix={<UnstyledSelect {...props.selectProps} />}
|
|
/>
|
|
);
|
|
});
|