♻️ Remove text and textarea barrel file

This commit is contained in:
Baptiste Arnaud 2025-10-03 16:10:16 +02:00
parent 1b289f0ba6
commit 7647036d09
No known key found for this signature in database
64 changed files with 74 additions and 66 deletions

View File

@ -3,7 +3,7 @@ import { GiphyFetch } from "@giphy/js-fetch-api";
import { Grid } from "@giphy/react-components";
import { env } from "@typebot.io/env";
import { useState } from "react";
import { TextInput } from "../inputs";
import { TextInput } from "../inputs/TextInput";
import { GiphyLogo } from "../logos/GiphyLogo";
type GiphySearchFormProps = {

View File

@ -10,7 +10,7 @@ import { useTranslate } from "@tolgee/react";
import { Button } from "@typebot.io/ui/components/Button";
import { useEffect, useMemo, useRef, useState } from "react";
import { ColorPicker } from "../ColorPicker";
import { TextInput } from "../inputs";
import { TextInput } from "../inputs/TextInput";
import { iconNames } from "./iconNames";
const batchSize = 200;

View File

@ -18,7 +18,7 @@ import { isDefined } from "@typebot.io/lib/utils";
import { useCallback, useEffect, useRef, useState } from "react";
import { createApi } from "unsplash-js";
import type { Basic as UnsplashPhoto } from "unsplash-js/dist/methods/photos/types";
import { TextInput } from "../inputs";
import { TextInput } from "../inputs/TextInput";
import { UnsplashLogo } from "../logos/UnsplashLogo";
import { TextLink } from "../TextLink";

View File

@ -21,8 +21,8 @@ import {
type Videos,
} from "pexels";
import { useCallback, useEffect, useRef, useState } from "react";
import { TextInput } from "../inputs";
import { BasicSelect } from "../inputs/BasicSelect";
import { TextInput } from "../inputs/TextInput";
import { PexelsLogo } from "../logos/PexelsLogo";
import { TextLink } from "../TextLink";

View File

@ -2,7 +2,7 @@ import { Stack, Text } from "@chakra-ui/react";
import { useTranslate } from "@tolgee/react";
import { defaultVideoBubbleContent } from "@typebot.io/blocks-bubbles/video/constants";
import type { VideoBubbleBlock } from "@typebot.io/blocks-bubbles/video/schema";
import { TextInput } from "@/components/inputs";
import { TextInput } from "@/components/inputs/TextInput";
import { SwitchWithLabel } from "../inputs/SwitchWithLabel";
export const VideoLinkEmbedContent = ({

View File

@ -1,3 +0,0 @@
export { NumberInput } from "./NumberInput";
export { Textarea } from "./Textarea";
export { TextInput } from "./TextInput";

View File

@ -8,8 +8,8 @@ import { Dialog } from "@typebot.io/ui/components/Dialog";
import { useRouter } from "next/router";
import type { FormEvent } from "react";
import React, { useState } from "react";
import { TextInput } from "@/components/inputs";
import { BasicSelect } from "@/components/inputs/BasicSelect";
import { TextInput } from "@/components/inputs/TextInput";
import { trpc } from "@/lib/queryClient";
export type PreCheckoutDialogProps = {

View File

@ -5,8 +5,8 @@ import type { AudioBubbleBlock } from "@typebot.io/blocks-bubbles/audio/schema";
import { Button } from "@typebot.io/ui/components/Button";
import { useState } from "react";
import { UploadButton } from "@/components/ImageUploadContent/UploadButton";
import { TextInput } from "@/components/inputs";
import { SwitchWithLabel } from "@/components/inputs/SwitchWithLabel";
import { TextInput } from "@/components/inputs/TextInput";
import type { FilePathUploadProps } from "@/features/upload/api/generateUploadUrl";
type Props = {

View File

@ -4,7 +4,8 @@ import { defaultEmbedBubbleContent } from "@typebot.io/blocks-bubbles/embed/cons
import type { EmbedBubbleBlock } from "@typebot.io/blocks-bubbles/embed/schema";
import { sanitizeUrl } from "@typebot.io/lib/utils";
import type { Variable } from "@typebot.io/variables/schemas";
import { NumberInput, TextInput } from "@/components/inputs";
import { NumberInput } from "@/components/inputs/NumberInput";
import { TextInput } from "@/components/inputs/TextInput";
import { VariableSearchInput } from "@/components/inputs/VariableSearchInput";
import { SwitchWithRelatedSettings } from "@/components/SwitchWithRelatedSettings";

View File

@ -5,8 +5,8 @@ import type { ImageBubbleBlock } from "@typebot.io/blocks-bubbles/image/schema";
import { isDefined, isNotEmpty } from "@typebot.io/lib/utils";
import { useState } from "react";
import { ImageUploadContent } from "@/components/ImageUploadContent";
import { TextInput } from "@/components/inputs";
import { SwitchWithLabel } from "@/components/inputs/SwitchWithLabel";
import { TextInput } from "@/components/inputs/TextInput";
import type { FilePathUploadProps } from "@/features/upload/api/generateUploadUrl";
type Props = {

View File

@ -4,8 +4,8 @@ import { defaultChoiceInputOptions } from "@typebot.io/blocks-inputs/choice/cons
import type { ChoiceInputBlock } from "@typebot.io/blocks-inputs/choice/schema";
import { MoreInfoTooltip } from "@typebot.io/ui/components/MoreInfoTooltip";
import type { Variable } from "@typebot.io/variables/schemas";
import { TextInput } from "@/components/inputs";
import { SwitchWithLabel } from "@/components/inputs/SwitchWithLabel";
import { TextInput } from "@/components/inputs/TextInput";
import { VariableSearchInput } from "@/components/inputs/VariableSearchInput";
import { SwitchWithRelatedSettings } from "@/components/SwitchWithRelatedSettings";

View File

@ -3,7 +3,7 @@ import { useTranslate } from "@tolgee/react";
import type { ButtonItem } from "@typebot.io/blocks-inputs/choice/schema";
import { LogicalOperator } from "@typebot.io/conditions/constants";
import type { Condition } from "@typebot.io/conditions/schemas";
import { TextInput } from "@/components/inputs";
import { TextInput } from "@/components/inputs/TextInput";
import { SwitchWithRelatedSettings } from "@/components/SwitchWithRelatedSettings";
import { ConditionForm } from "@/features/blocks/logic/condition/components/ConditionForm";

View File

@ -3,8 +3,8 @@ import { useTranslate } from "@tolgee/react";
import { defaultDateInputOptions } from "@typebot.io/blocks-inputs/date/constants";
import type { DateInputBlock } from "@typebot.io/blocks-inputs/date/schema";
import type { Variable } from "@typebot.io/variables/schemas";
import { TextInput } from "@/components/inputs";
import { SwitchWithLabel } from "@/components/inputs/SwitchWithLabel";
import { TextInput } from "@/components/inputs/TextInput";
import { VariableSearchInput } from "@/components/inputs/VariableSearchInput";
import { SwitchWithRelatedSettings } from "@/components/SwitchWithRelatedSettings";

View File

@ -3,7 +3,7 @@ import { useTranslate } from "@tolgee/react";
import { defaultEmailInputOptions } from "@typebot.io/blocks-inputs/email/constants";
import type { EmailInputBlock } from "@typebot.io/blocks-inputs/email/schema";
import type { Variable } from "@typebot.io/variables/schemas";
import { TextInput } from "@/components/inputs";
import { TextInput } from "@/components/inputs/TextInput";
import { VariableSearchInput } from "@/components/inputs/VariableSearchInput";
type Props = {

View File

@ -16,10 +16,10 @@ import type { FileInputBlock } from "@typebot.io/blocks-inputs/file/schema";
import { Field } from "@typebot.io/ui/components/Field";
import { MoreInfoTooltip } from "@typebot.io/ui/components/MoreInfoTooltip";
import type { Variable } from "@typebot.io/variables/schemas";
import { TextInput } from "@/components/inputs";
import { BasicSelect } from "@/components/inputs/BasicSelect";
import { CodeEditor } from "@/components/inputs/CodeEditor";
import { SwitchWithLabel } from "@/components/inputs/SwitchWithLabel";
import { TextInput } from "@/components/inputs/TextInput";
import { VariableSearchInput } from "@/components/inputs/VariableSearchInput";
import { SwitchWithRelatedSettings } from "@/components/SwitchWithRelatedSettings";
import { TagsInput } from "@/components/TagsInput";

View File

@ -26,8 +26,9 @@ import {
} from "@typebot.io/blocks-inputs/number/schema";
import type { Variable } from "@typebot.io/variables/schemas";
import { useEffect } from "react";
import { NumberInput, TextInput } from "@/components/inputs";
import { BasicSelect } from "@/components/inputs/BasicSelect";
import { NumberInput } from "@/components/inputs/NumberInput";
import { TextInput } from "@/components/inputs/TextInput";
import { VariableSearchInput } from "@/components/inputs/VariableSearchInput";
import { currencies } from "../../payment/currencies";

View File

@ -8,7 +8,7 @@ import { Dialog } from "@typebot.io/ui/components/Dialog";
import { MoreInfoTooltip } from "@typebot.io/ui/components/MoreInfoTooltip";
import type React from "react";
import { useState } from "react";
import { TextInput } from "@/components/inputs";
import { TextInput } from "@/components/inputs/TextInput";
import { TextLink } from "@/components/TextLink";
import { useUser } from "@/features/user/hooks/useUser";
import { useWorkspace } from "@/features/workspace/WorkspaceProvider";

View File

@ -8,7 +8,7 @@ import {
} from "@chakra-ui/react";
import { useTranslate } from "@tolgee/react";
import type { PaymentAddress } from "@typebot.io/blocks-inputs/payment/schema";
import { TextInput } from "@/components/inputs";
import { TextInput } from "@/components/inputs/TextInput";
type Props = {
address: PaymentAddress;

View File

@ -19,8 +19,8 @@ import type {
PaymentInputBlock,
} from "@typebot.io/blocks-inputs/payment/schema";
import { useMemo } from "react";
import { TextInput } from "@/components/inputs";
import { BasicSelect } from "@/components/inputs/BasicSelect";
import { TextInput } from "@/components/inputs/TextInput";
import { CredentialsDropdown } from "@/features/credentials/components/CredentialsDropdown";
import { useWorkspace } from "@/features/workspace/WorkspaceProvider";
import { currencies } from "../currencies";

View File

@ -7,7 +7,7 @@ import { Button } from "@typebot.io/ui/components/Button";
import { Dialog } from "@typebot.io/ui/components/Dialog";
import { MoreInfoTooltip } from "@typebot.io/ui/components/MoreInfoTooltip";
import { useEffect, useState } from "react";
import { TextInput } from "@/components/inputs";
import { TextInput } from "@/components/inputs/TextInput";
import { TextLink } from "@/components/TextLink";
import { useUser } from "@/features/user/hooks/useUser";
import { useWorkspace } from "@/features/workspace/WorkspaceProvider";

View File

@ -3,7 +3,7 @@ import { useTranslate } from "@tolgee/react";
import { defaultPhoneInputOptions } from "@typebot.io/blocks-inputs/phone/constants";
import type { PhoneNumberInputBlock } from "@typebot.io/blocks-inputs/phone/schema";
import type { Variable } from "@typebot.io/variables/schemas";
import { TextInput } from "@/components/inputs";
import { TextInput } from "@/components/inputs/TextInput";
import { VariableSearchInput } from "@/components/inputs/VariableSearchInput";
import { CountryCodeSelect } from "./CountryCodeSelect";

View File

@ -6,7 +6,8 @@ import type { Condition } from "@typebot.io/conditions/schemas";
import { Button } from "@typebot.io/ui/components/Button";
import { Popover } from "@typebot.io/ui/components/Popover";
import { ImageUploadContent } from "@/components/ImageUploadContent";
import { Textarea, TextInput } from "@/components/inputs";
import { Textarea } from "@/components/inputs/Textarea";
import { TextInput } from "@/components/inputs/TextInput";
import { SwitchWithRelatedSettings } from "@/components/SwitchWithRelatedSettings";
import { ConditionForm } from "@/features/blocks/logic/condition/components/ConditionForm";
import { useOpenControls } from "@/hooks/useOpenControls";

View File

@ -3,7 +3,7 @@ import { useTranslate } from "@tolgee/react";
import { defaultPictureChoiceOptions } from "@typebot.io/blocks-inputs/pictureChoice/constants";
import type { PictureChoiceBlock } from "@typebot.io/blocks-inputs/pictureChoice/schema";
import type { Variable } from "@typebot.io/variables/schemas";
import { TextInput } from "@/components/inputs";
import { TextInput } from "@/components/inputs/TextInput";
import { VariableSearchInput } from "@/components/inputs/VariableSearchInput";
import { SwitchWithRelatedSettings } from "@/components/SwitchWithRelatedSettings";

View File

@ -3,9 +3,10 @@ import { useTranslate } from "@tolgee/react";
import { defaultRatingInputOptions } from "@typebot.io/blocks-inputs/rating/constants";
import type { RatingInputBlock } from "@typebot.io/blocks-inputs/rating/schema";
import type { Variable } from "@typebot.io/variables/schemas";
import { NumberInput, TextInput } from "@/components/inputs";
import { BasicSelect } from "@/components/inputs/BasicSelect";
import { NumberInput } from "@/components/inputs/NumberInput";
import { SwitchWithLabel } from "@/components/inputs/SwitchWithLabel";
import { TextInput } from "@/components/inputs/TextInput";
import { VariableSearchInput } from "@/components/inputs/VariableSearchInput";
type Props = {

View File

@ -7,9 +7,9 @@ import { inputModeOptions } from "@typebot.io/blocks-inputs/text/schema";
import { Field } from "@typebot.io/ui/components/Field";
import { MoreInfoTooltip } from "@typebot.io/ui/components/MoreInfoTooltip";
import type { Variable } from "@typebot.io/variables/schemas";
import { TextInput } from "@/components/inputs";
import { BasicSelect } from "@/components/inputs/BasicSelect";
import { SwitchWithLabel } from "@/components/inputs/SwitchWithLabel";
import { TextInput } from "@/components/inputs/TextInput";
import { VariableSearchInput } from "@/components/inputs/VariableSearchInput";
import { SwitchWithRelatedSettings } from "@/components/SwitchWithRelatedSettings";

View File

@ -3,7 +3,7 @@ import { useTranslate } from "@tolgee/react";
import { defaultUrlInputOptions } from "@typebot.io/blocks-inputs/url/constants";
import type { UrlInputBlock } from "@typebot.io/blocks-inputs/url/schema";
import type { Variable } from "@typebot.io/variables/schemas";
import { TextInput } from "@/components/inputs";
import { TextInput } from "@/components/inputs/TextInput";
import { VariableSearchInput } from "@/components/inputs/VariableSearchInput";
type Props = {

View File

@ -11,8 +11,8 @@ import {
defaultChatwootOptions,
} from "@typebot.io/blocks-integrations/chatwoot/constants";
import type { ChatwootBlock } from "@typebot.io/blocks-integrations/chatwoot/schema";
import { TextInput } from "@/components/inputs";
import { BasicSelect } from "@/components/inputs/BasicSelect";
import { TextInput } from "@/components/inputs/TextInput";
type Props = {
options: ChatwootBlock["options"];

View File

@ -8,7 +8,8 @@ import {
Stack,
} from "@chakra-ui/react";
import type { GoogleAnalyticsBlock } from "@typebot.io/blocks-integrations/googleAnalytics/schema";
import { NumberInput, TextInput } from "@/components/inputs";
import { NumberInput } from "@/components/inputs/NumberInput";
import { TextInput } from "@/components/inputs/TextInput";
type Props = {
options?: GoogleAnalyticsBlock["options"];

View File

@ -1,7 +1,7 @@
import { Stack } from "@chakra-ui/react";
import type { Cell } from "@typebot.io/blocks-integrations/googleSheets/schema";
import { TextInput } from "@/components/inputs";
import { BasicSelect } from "@/components/inputs/BasicSelect";
import { TextInput } from "@/components/inputs/TextInput";
import type { TableListItemProps } from "@/components/TableList";
export const CellWithValueStack = ({

View File

@ -1,8 +1,8 @@
import { Stack } from "@chakra-ui/react";
import type { RowsFilterComparison } from "@typebot.io/blocks-integrations/googleSheets/schema";
import { ComparisonOperators } from "@typebot.io/conditions/constants";
import { TextInput } from "@/components/inputs";
import { BasicSelect } from "@/components/inputs/BasicSelect";
import { TextInput } from "@/components/inputs/TextInput";
import type { TableListItemProps } from "@/components/TableList";
export const RowsFilterComparisonItem = ({

View File

@ -24,9 +24,9 @@ import type {
} from "@typebot.io/blocks-integrations/httpRequest/schema";
import { Button } from "@typebot.io/ui/components/Button";
import { useMemo, useState } from "react";
import { NumberInput } from "@/components/inputs";
import { BasicSelect } from "@/components/inputs/BasicSelect";
import { CodeEditor } from "@/components/inputs/CodeEditor";
import { NumberInput } from "@/components/inputs/NumberInput";
import { SwitchWithLabel } from "@/components/inputs/SwitchWithLabel";
import { TableList, type TableListItemProps } from "@/components/TableList";
import { CredentialsDropdown } from "@/features/credentials/components/CredentialsDropdown";

View File

@ -4,7 +4,7 @@ import type {
HttpRequestBlock,
} from "@typebot.io/blocks-integrations/httpRequest/schema";
import { useRef } from "react";
import { TextInput } from "@/components/inputs";
import { TextInput } from "@/components/inputs/TextInput";
import { HttpRequestAdvancedConfigForm } from "./HttpRequestAdvancedConfigForm";
type Props = {

View File

@ -1,6 +1,6 @@
import { Stack } from "@chakra-ui/react";
import type { KeyValue } from "@typebot.io/blocks-integrations/httpRequest/schema";
import { TextInput } from "@/components/inputs";
import { TextInput } from "@/components/inputs/TextInput";
import type { TableListItemProps } from "@/components/TableList";
export const QueryParamsInputs = (props: TableListItemProps<KeyValue>) => (

View File

@ -1,7 +1,7 @@
import { FormControl, FormLabel, Stack } from "@chakra-ui/react";
import type { VariableForTest } from "@typebot.io/blocks-integrations/httpRequest/schema";
import type { Variable } from "@typebot.io/variables/schemas";
import { TextInput } from "@/components/inputs";
import { TextInput } from "@/components/inputs/TextInput";
import { VariableSearchInput } from "@/components/inputs/VariableSearchInput";
import type { TableListItemProps } from "@/components/TableList";

View File

@ -18,8 +18,8 @@ import type {
CreateSpeechOpenAIOptions,
OpenAIBlock,
} from "@typebot.io/blocks-integrations/openai/schema";
import { TextInput } from "@/components/inputs";
import { BasicSelect } from "@/components/inputs/BasicSelect";
import { TextInput } from "@/components/inputs/TextInput";
import { CredentialsDropdown } from "@/features/credentials/components/CredentialsDropdown";
import { useWorkspace } from "@/features/workspace/WorkspaceProvider";
import { OpenAICreateSpeechSettings } from "./audio/OpenAICreateSpeechSettings";

View File

@ -2,8 +2,8 @@ import { FormControl, FormLabel, Stack, Text } from "@chakra-ui/react";
import { openAIVoices } from "@typebot.io/blocks-integrations/openai/constants";
import type { CreateSpeechOpenAIOptions } from "@typebot.io/blocks-integrations/openai/schema";
import type { Variable } from "@typebot.io/variables/schemas";
import { Textarea } from "@/components/inputs";
import { BasicSelect } from "@/components/inputs/BasicSelect";
import { Textarea } from "@/components/inputs/Textarea";
import { VariableSearchInput } from "@/components/inputs/VariableSearchInput";
import { TextLink } from "@/components/TextLink";
import { ModelsDropdown } from "../ModelsDropdown";

View File

@ -6,8 +6,8 @@ import {
} from "@typebot.io/blocks-integrations/openai/constants";
import type { ChatCompletionOpenAIOptions } from "@typebot.io/blocks-integrations/openai/schema";
import type { Variable } from "@typebot.io/variables/schemas";
import { Textarea } from "@/components/inputs";
import { BasicSelect } from "@/components/inputs/BasicSelect";
import { Textarea } from "@/components/inputs/Textarea";
import { VariableSearchInput } from "@/components/inputs/VariableSearchInput";
import type { TableListItemProps } from "@/components/TableList";

View File

@ -8,7 +8,7 @@ import {
Text,
} from "@chakra-ui/react";
import type { ChatCompletionOpenAIOptions } from "@typebot.io/blocks-integrations/openai/schema";
import { NumberInput } from "@/components/inputs";
import { NumberInput } from "@/components/inputs/NumberInput";
import { TableList } from "@/components/TableList";
import { TextLink } from "@/components/TextLink";
import { ModelsDropdown } from "../ModelsDropdown";

View File

@ -4,7 +4,7 @@ import type { PabblyConnectBlock } from "@typebot.io/blocks-integrations/pabblyC
import { useRef } from "react";
import { ButtonLink } from "@/components/ButtonLink";
import { ExternalLinkIcon } from "@/components/icons";
import { TextInput } from "@/components/inputs";
import { TextInput } from "@/components/inputs/TextInput";
import { HttpRequestAdvancedConfigForm } from "../../httpRequest/components/HttpRequestAdvancedConfigForm";
type Props = {

View File

@ -6,10 +6,10 @@ import {
} from "@typebot.io/blocks-integrations/pixel/constants";
import type { PixelBlock } from "@typebot.io/blocks-integrations/pixel/schema";
import { isDefined, isEmpty } from "@typebot.io/lib/utils";
import { TextInput } from "@/components/inputs";
import { BasicSelect } from "@/components/inputs/BasicSelect";
import { CodeEditor } from "@/components/inputs/CodeEditor";
import { SwitchWithLabel } from "@/components/inputs/SwitchWithLabel";
import { TextInput } from "@/components/inputs/TextInput";
import { SwitchWithRelatedSettings } from "@/components/SwitchWithRelatedSettings";
import { TableList } from "@/components/TableList";
import { TextLink } from "@/components/TextLink";

View File

@ -19,9 +19,10 @@ import { isNotEmpty } from "@typebot.io/lib/utils";
import { MoreInfoTooltip } from "@typebot.io/ui/components/MoreInfoTooltip";
import type { Variable } from "@typebot.io/variables/schemas";
import type { Workspace } from "@typebot.io/workspaces/schemas";
import { Textarea, TextInput } from "@/components/inputs";
import { CodeEditor } from "@/components/inputs/CodeEditor";
import { SwitchWithLabel } from "@/components/inputs/SwitchWithLabel";
import { Textarea } from "@/components/inputs/Textarea";
import { TextInput } from "@/components/inputs/TextInput";
import { VariableSearchInput } from "@/components/inputs/VariableSearchInput";
import { isFreePlan } from "@/features/billing/helpers/isFreePlan";
import { CredentialsDropdown } from "@/features/credentials/components/CredentialsDropdown";

View File

@ -2,7 +2,7 @@ import { Stack } from "@chakra-ui/react";
import { defaultAbTestOptions } from "@typebot.io/blocks-logic/abTest/constants";
import type { AbTestBlock } from "@typebot.io/blocks-logic/abTest/schema";
import { isDefined } from "@typebot.io/lib/utils";
import { NumberInput } from "@/components/inputs";
import { NumberInput } from "@/components/inputs/NumberInput";
type Props = {
options: AbTestBlock["options"];

View File

@ -3,8 +3,8 @@ import { useTranslate } from "@tolgee/react";
import { ComparisonOperators } from "@typebot.io/conditions/constants";
import type { Comparison } from "@typebot.io/conditions/schemas";
import type { Variable } from "@typebot.io/variables/schemas";
import { TextInput } from "@/components/inputs";
import { BasicSelect } from "@/components/inputs/BasicSelect";
import { TextInput } from "@/components/inputs/TextInput";
import { VariableSearchInput } from "@/components/inputs/VariableSearchInput";
import type { TableListItemProps } from "@/components/TableList";

View File

@ -1,8 +1,8 @@
import { Stack } from "@chakra-ui/react";
import { defaultRedirectOptions } from "@typebot.io/blocks-logic/redirect/constants";
import type { RedirectBlock } from "@typebot.io/blocks-logic/redirect/schema";
import { TextInput } from "@/components/inputs";
import { SwitchWithLabel } from "@/components/inputs/SwitchWithLabel";
import { TextInput } from "@/components/inputs/TextInput";
type Props = {
options: RedirectBlock["options"];

View File

@ -1,9 +1,9 @@
import { Stack } from "@chakra-ui/react";
import { defaultScriptOptions } from "@typebot.io/blocks-logic/script/constants";
import type { ScriptBlock } from "@typebot.io/blocks-logic/script/schema";
import { TextInput } from "@/components/inputs";
import { CodeEditor } from "@/components/inputs/CodeEditor";
import { SwitchWithLabel } from "@/components/inputs/SwitchWithLabel";
import { TextInput } from "@/components/inputs/TextInput";
type Props = {
options: ScriptBlock["options"];

View File

@ -18,11 +18,12 @@ import type { SetVariableBlock } from "@typebot.io/blocks-logic/setVariable/sche
import { timeZones } from "@typebot.io/lib/timeZones";
import { isDefined } from "@typebot.io/lib/utils";
import type { Variable } from "@typebot.io/variables/schemas";
import { Textarea, TextInput } from "@/components/inputs";
import { BasicSelect } from "@/components/inputs/BasicSelect";
import { CodeEditor } from "@/components/inputs/CodeEditor";
import { RadioButtons } from "@/components/inputs/RadioButtons";
import { SwitchWithLabel } from "@/components/inputs/SwitchWithLabel";
import { Textarea } from "@/components/inputs/Textarea";
import { TextInput } from "@/components/inputs/TextInput";
import { VariableSearchInput } from "@/components/inputs/VariableSearchInput";
import { WhatsAppLogo } from "@/components/logos/WhatsAppLogo";
import { useTypebot } from "@/features/editor/providers/TypebotProvider";

View File

@ -8,8 +8,8 @@ import {
} from "@chakra-ui/react";
import { defaultWaitOptions } from "@typebot.io/blocks-logic/wait/constants";
import type { WaitBlock } from "@typebot.io/blocks-logic/wait/schema";
import { TextInput } from "@/components/inputs";
import { SwitchWithLabel } from "@/components/inputs/SwitchWithLabel";
import { TextInput } from "@/components/inputs/TextInput";
type Props = {
options: WaitBlock["options"];

View File

@ -1,7 +1,7 @@
import { Stack } from "@chakra-ui/react";
import { useTranslate } from "@tolgee/react";
import type { CommandEvent } from "@typebot.io/events/schemas";
import { TextInput } from "@/components/inputs";
import { TextInput } from "@/components/inputs/TextInput";
export const CommandEventSettings = ({
options,

View File

@ -7,11 +7,13 @@ import { MoreInfoTooltip } from "@typebot.io/ui/components/MoreInfoTooltip";
import type { ZodLayoutMetadata } from "@typebot.io/zod";
import Markdown, { type Components } from "react-markdown";
import type { ZodTypeAny, z } from "zod";
import { NumberInput, Textarea, TextInput } from "@/components/inputs";
import { BasicAutocompleteInputWithVariableButton } from "@/components/inputs/BasicAutocompleteInput";
import { BasicSelect } from "@/components/inputs/BasicSelect";
import { CodeEditor } from "@/components/inputs/CodeEditor";
import { NumberInput } from "@/components/inputs/NumberInput";
import { SwitchWithLabel } from "@/components/inputs/SwitchWithLabel";
import { Textarea } from "@/components/inputs/Textarea";
import { TextInput } from "@/components/inputs/TextInput";
import { VariableSearchInput } from "@/components/inputs/VariableSearchInput";
import { PrimitiveList } from "@/components/PrimitiveList";
import { TableList } from "@/components/TableList";

View File

@ -13,7 +13,7 @@ import { Button } from "@typebot.io/ui/components/Button";
import { type FormEvent, useState } from "react";
import { ButtonLink } from "@/components/ButtonLink";
import { BuoyIcon, ExternalLinkIcon } from "@/components/icons";
import { TextInput } from "@/components/inputs";
import { TextInput } from "@/components/inputs/TextInput";
import { useEditor } from "@/features/editor/providers/EditorProvider";
import { useTypebot } from "@/features/editor/providers/TypebotProvider";
import { trpc } from "@/lib/queryClient";

View File

@ -1,8 +1,8 @@
import { HStack, Text } from "@chakra-ui/react";
import { ComparisonOperators } from "@typebot.io/conditions/constants";
import type { WhatsAppComparison } from "@typebot.io/whatsapp/schemas";
import { TextInput } from "@/components/inputs";
import { BasicSelect } from "@/components/inputs/BasicSelect";
import { TextInput } from "@/components/inputs/TextInput";
import type { TableListItemProps } from "@/components/TableList";
export const WhatsAppComparisonItem = ({

View File

@ -19,8 +19,8 @@ import { isDefined } from "@typebot.io/lib/utils";
import { defaultSessionExpiryTimeout } from "@typebot.io/settings/constants";
import { Dialog } from "@typebot.io/ui/components/Dialog";
import { AlertInfo } from "@/components/AlertInfo";
import { NumberInput } from "@/components/inputs";
import { BasicSelect } from "@/components/inputs/BasicSelect";
import { NumberInput } from "@/components/inputs/NumberInput";
import { SwitchWithLabel } from "@/components/inputs/SwitchWithLabel";
import { SwitchWithRelatedSettings } from "@/components/SwitchWithRelatedSettings";
import { TableList } from "@/components/TableList";

View File

@ -9,7 +9,7 @@ import {
import type { PreviewMessageParams } from "@typebot.io/js";
import { isDefined } from "@typebot.io/lib/utils";
import { useState } from "react";
import { NumberInput } from "@/components/inputs";
import { NumberInput } from "@/components/inputs/NumberInput";
type Props = {
defaultAvatar: string;

View File

@ -9,7 +9,7 @@ import {
import type { PopupProps } from "@typebot.io/js";
import { isDefined } from "@typebot.io/lib/utils";
import { useEffect, useState } from "react";
import { NumberInput } from "@/components/inputs";
import { NumberInput } from "@/components/inputs/NumberInput";
type Props = {
onUpdateSettings: (windowSettings: Pick<PopupProps, "autoShowDelay">) => void;

View File

@ -6,9 +6,10 @@ import type { Settings } from "@typebot.io/settings/schemas";
import { MoreInfoTooltip } from "@typebot.io/ui/components/MoreInfoTooltip";
import { Popover } from "@typebot.io/ui/components/Popover";
import { ImageUploadContent } from "@/components/ImageUploadContent";
import { Textarea, TextInput } from "@/components/inputs";
import { CodeEditor } from "@/components/inputs/CodeEditor";
import { SwitchWithLabel } from "@/components/inputs/SwitchWithLabel";
import { Textarea } from "@/components/inputs/Textarea";
import { TextInput } from "@/components/inputs/TextInput";
import { useOpenControls } from "@/hooks/useOpenControls";
type Props = {

View File

@ -2,7 +2,8 @@ import { Stack } from "@chakra-ui/react";
import { useTranslate } from "@tolgee/react";
import { defaultSystemMessages } from "@typebot.io/settings/constants";
import type { SystemMessages } from "@typebot.io/settings/schemas";
import { Textarea, TextInput } from "@/components/inputs";
import { Textarea } from "@/components/inputs/Textarea";
import { TextInput } from "@/components/inputs/TextInput";
type Props = {
systemMessages?: SystemMessages;

View File

@ -6,7 +6,7 @@ import {
maxTypingEmulationMaxDelay,
} from "@typebot.io/settings/constants";
import type { Settings } from "@typebot.io/settings/schemas";
import { NumberInput } from "@/components/inputs";
import { NumberInput } from "@/components/inputs/NumberInput";
import { SwitchWithLabel } from "@/components/inputs/SwitchWithLabel";
import { SwitchWithRelatedSettings } from "@/components/SwitchWithRelatedSettings";

View File

@ -5,7 +5,7 @@ import type { ThemeTemplate } from "@typebot.io/theme/schemas";
import { Button } from "@typebot.io/ui/components/Button";
import { Dialog } from "@typebot.io/ui/components/Dialog";
import { type FormEvent, useRef, useState } from "react";
import { TextInput } from "@/components/inputs";
import { TextInput } from "@/components/inputs/TextInput";
import { queryClient, trpc } from "@/lib/queryClient";
type Props = {

View File

@ -10,8 +10,8 @@ import {
import { isChatContainerLight } from "@typebot.io/theme/helpers/isChatContainerLight";
import type { ChatTheme, GeneralTheme } from "@typebot.io/theme/schemas";
import { colors } from "@typebot.io/ui/colors";
import { NumberInput } from "@/components/inputs";
import { BasicSelect } from "@/components/inputs/BasicSelect";
import { NumberInput } from "@/components/inputs/NumberInput";
import { ContainerThemeForm } from "./ContainerThemeForm";
type Props = {

View File

@ -20,8 +20,8 @@ import type {
ContainerTheme,
InputTheme,
} from "@typebot.io/theme/schemas";
import { NumberInput } from "@/components/inputs";
import { BasicSelect } from "@/components/inputs/BasicSelect";
import { NumberInput } from "@/components/inputs/NumberInput";
import { ColorPicker } from "../../../../components/ColorPicker";
type Props<T extends ((placeholder: string) => void) | undefined> = {

View File

@ -1,7 +1,7 @@
import { Stack } from "@chakra-ui/react";
import type { CustomFont } from "@typebot.io/theme/schemas";
import { TextInput } from "@/components/inputs";
import { CodeEditor } from "@/components/inputs/CodeEditor";
import { TextInput } from "@/components/inputs/TextInput";
type Props = {
font: CustomFont;

View File

@ -14,8 +14,8 @@ import type { TypebotV6 } from "@typebot.io/typebot/schemas/typebot";
import { Field } from "@typebot.io/ui/components/Field";
import { MoreInfoTooltip } from "@typebot.io/ui/components/MoreInfoTooltip";
import { ColorPicker } from "@/components/ColorPicker";
import { NumberInput } from "@/components/inputs";
import { BasicSelect } from "@/components/inputs/BasicSelect";
import { NumberInput } from "@/components/inputs/NumberInput";
import { SwitchWithRelatedSettings } from "@/components/SwitchWithRelatedSettings";
type Props = {

View File

@ -7,9 +7,9 @@ import { MoreInfoTooltip } from "@typebot.io/ui/components/MoreInfoTooltip";
import { defaultGroupTitleGenPrompt } from "@typebot.io/user/constants";
import type { GroupTitlesAutoGeneration } from "@typebot.io/user/schemas";
import { useState } from "react";
import { Textarea } from "@/components/inputs";
import { BasicAutocompleteInput } from "@/components/inputs/BasicAutocompleteInput";
import { BasicSelect } from "@/components/inputs/BasicSelect";
import { Textarea } from "@/components/inputs/Textarea";
import { CredentialsCreateDialog } from "@/features/credentials/components/CredentialsCreateDialog";
import { CredentialsDropdown } from "@/features/credentials/components/CredentialsDropdown";
import { BlockIcon } from "@/features/editor/components/BlockIcon";

View File

@ -16,7 +16,7 @@ import { ConfirmDialog } from "@/components/ConfirmDialog";
import { CopyButton } from "@/components/CopyButton";
import { EditableEmojiOrImageIcon } from "@/components/EditableEmojiOrImageIcon";
import { HardDriveIcon } from "@/components/icons";
import { TextInput } from "@/components/inputs";
import { TextInput } from "@/components/inputs/TextInput";
import { useWorkspace } from "../WorkspaceProvider";
export const WorkspaceSettingsForm = ({ onClose }: { onClose: () => void }) => {