diff --git a/frontend/src/scenes/organization/ConfirmOrganization/ConfirmOrganization.tsx b/frontend/src/scenes/organization/ConfirmOrganization/ConfirmOrganization.tsx
index 24c1ab43ec1a1..300d5825846d6 100644
--- a/frontend/src/scenes/organization/ConfirmOrganization/ConfirmOrganization.tsx
+++ b/frontend/src/scenes/organization/ConfirmOrganization/ConfirmOrganization.tsx
@@ -5,9 +5,9 @@ import { AnimatedCollapsible } from 'lib/components/AnimatedCollapsible'
import { BridgePage } from 'lib/components/BridgePage/BridgePage'
import SignupReferralSource from 'lib/components/SignupReferralSource'
import SignupRoleSelect from 'lib/components/SignupRoleSelect'
-import { Field } from 'lib/forms/Field'
import { LemonButton } from 'lib/lemon-ui/LemonButton'
import { LemonDivider } from 'lib/lemon-ui/LemonDivider'
+import { LemonField } from 'lib/lemon-ui/LemonField'
import { LemonInput } from 'lib/lemon-ui/LemonInput/LemonInput'
import { organizationLogic } from 'scenes/organizationLogic'
import { SceneExport } from 'scenes/sceneTypes'
@@ -62,21 +62,21 @@ export function ConfirmOrganization(): JSX.Element {
enableFormOnSubmit
className="space-y-4"
>
-
+
-
+
-
+
-
+
-
-
+
diff --git a/frontend/src/scenes/organization/CreateOrganizationModal.tsx b/frontend/src/scenes/organization/CreateOrganizationModal.tsx
index 68375eda4308b..f0aa3482f534f 100644
--- a/frontend/src/scenes/organization/CreateOrganizationModal.tsx
+++ b/frontend/src/scenes/organization/CreateOrganizationModal.tsx
@@ -1,6 +1,6 @@
import { LemonButton, LemonInput, LemonModal, Link } from '@posthog/lemon-ui'
import { useActions } from 'kea'
-import { PureField } from 'lib/forms/Field'
+import { LemonField } from 'lib/lemon-ui/LemonField'
import { useState } from 'react'
import { organizationLogic } from 'scenes/organizationLogic'
@@ -63,7 +63,7 @@ export function CreateOrganizationModal({
isOpen={isVisible}
inline={inline}
>
-
+
-
+
)
}
diff --git a/frontend/src/scenes/pipeline/PipelineNodeConfiguration.tsx b/frontend/src/scenes/pipeline/PipelineNodeConfiguration.tsx
index 67563831846d2..e844df81a3213 100644
--- a/frontend/src/scenes/pipeline/PipelineNodeConfiguration.tsx
+++ b/frontend/src/scenes/pipeline/PipelineNodeConfiguration.tsx
@@ -1,8 +1,8 @@
import { LemonButton, LemonSkeleton, Tooltip } from '@posthog/lemon-ui'
import { useActions, useValues } from 'kea'
import { Form } from 'kea-forms'
-import { Field } from 'lib/forms/Field'
import { IconLock } from 'lib/lemon-ui/icons'
+import { LemonField } from 'lib/lemon-ui/LemonField'
import { LemonMarkdown } from 'lib/lemon-ui/LemonMarkdown'
import React from 'react'
import { BatchExportsEditFields } from 'scenes/batch_exports/BatchExportEditForm'
@@ -79,7 +79,7 @@ function PluginConfigurationFields({
fieldConfig.type &&
isValidField(fieldConfig) &&
!hiddenFields.includes(fieldConfig.key) ? (
-
@@ -99,7 +99,7 @@ function PluginConfigurationFields({
showOptional={!requiredFields.includes(fieldConfig.key)}
>
-
+
) : (
<>
{fieldConfig.type ? (
diff --git a/frontend/src/scenes/plugins/edit/interface-jobs/PluginJobConfiguration.tsx b/frontend/src/scenes/plugins/edit/interface-jobs/PluginJobConfiguration.tsx
index cb09686bd9b19..b19681a7c9493 100644
--- a/frontend/src/scenes/plugins/edit/interface-jobs/PluginJobConfiguration.tsx
+++ b/frontend/src/scenes/plugins/edit/interface-jobs/PluginJobConfiguration.tsx
@@ -5,10 +5,10 @@ import { ChildFunctionProps, Form } from 'kea-forms'
import { CodeEditor } from 'lib/components/CodeEditors'
import { DatePicker } from 'lib/components/DatePicker'
import { dayjs } from 'lib/dayjs'
-import { Field } from 'lib/forms/Field'
import { IconClose, IconPlayCircle, IconSettings } from 'lib/lemon-ui/icons'
import { LemonButton } from 'lib/lemon-ui/LemonButton'
import { LemonCalendarRangeInline } from 'lib/lemon-ui/LemonCalendarRange/LemonCalendarRangeInline'
+import { LemonField } from 'lib/lemon-ui/LemonField'
import { LemonInput } from 'lib/lemon-ui/LemonInput/LemonInput'
import { LemonModal } from 'lib/lemon-ui/LemonModal'
import { formatDate, formatDateRange } from 'lib/utils'
@@ -88,9 +88,9 @@ export function PluginJobModal(props: InterfaceJobsProps): JSX.Element {
{shownFields.length > 0 ? (
) : null}
diff --git a/frontend/src/scenes/plugins/source/PluginSource.tsx b/frontend/src/scenes/plugins/source/PluginSource.tsx
index 9a5f7e1b876be..7b531e7cbfdda 100644
--- a/frontend/src/scenes/plugins/source/PluginSource.tsx
+++ b/frontend/src/scenes/plugins/source/PluginSource.tsx
@@ -7,8 +7,8 @@ import { useActions, useValues } from 'kea'
import { Form } from 'kea-forms'
import { CodeEditor } from 'lib/components/CodeEditors'
import { Drawer } from 'lib/components/Drawer'
-import { Field } from 'lib/forms/Field'
import { LemonButton } from 'lib/lemon-ui/LemonButton'
+import { LemonField } from 'lib/lemon-ui/LemonField'
import { useEffect } from 'react'
import { createDefaultPluginSource } from 'scenes/plugins/source/createDefaultPluginSource'
import { pluginSourceLogic } from 'scenes/plugins/source/pluginSourceLogic'
@@ -112,7 +112,7 @@ export function PluginSource({
) : (
<>
-
+
{({ value, onChange }) => (
<>
)}
-
+
>
)}
>
diff --git a/frontend/src/scenes/plugins/source/pluginSourceLogic.tsx b/frontend/src/scenes/plugins/source/pluginSourceLogic.tsx
index cd332a54143f3..a2ebd3a5a8e2b 100644
--- a/frontend/src/scenes/plugins/source/pluginSourceLogic.tsx
+++ b/frontend/src/scenes/plugins/source/pluginSourceLogic.tsx
@@ -3,7 +3,6 @@ import { forms } from 'kea-forms'
import { loaders } from 'kea-loaders'
import { beforeUnload } from 'kea-router'
import api from 'lib/api'
-import { FormErrors } from 'lib/forms/Errors'
import { lemonToast } from 'lib/lemon-ui/LemonToast/LemonToast'
import { validateJson } from 'lib/utils'
import { frontendAppsLogic } from 'scenes/apps/frontendAppsLogic'
@@ -153,7 +152,6 @@ export const pluginSourceLogic = kea
([
<>
Please fix the following errors:
{String(error?.message || error)}
-
>,
{ position: 'top-right' }
)
diff --git a/frontend/src/scenes/project/CreateProjectModal.tsx b/frontend/src/scenes/project/CreateProjectModal.tsx
index 6739952f31b04..b1212bf53aeea 100644
--- a/frontend/src/scenes/project/CreateProjectModal.tsx
+++ b/frontend/src/scenes/project/CreateProjectModal.tsx
@@ -1,6 +1,6 @@
import { LemonButton, LemonInput, LemonModal, Link } from '@posthog/lemon-ui'
import { useActions, useValues } from 'kea'
-import { PureField } from 'lib/forms/Field'
+import { LemonField } from 'lib/lemon-ui/LemonField'
import { eventUsageLogic } from 'lib/utils/eventUsageLogic'
import { useEffect, useState } from 'react'
import { teamLogic } from 'scenes/teamLogic'
@@ -90,7 +90,7 @@ export function CreateProjectModal({
inline={inline}
closable={!currentTeamLoading}
>
-
+
-
+
)
}
diff --git a/frontend/src/scenes/session-recordings/player/playlist-popover/PlaylistPopover.tsx b/frontend/src/scenes/session-recordings/player/playlist-popover/PlaylistPopover.tsx
index 1d19209eabcfc..fef33b2967cae 100644
--- a/frontend/src/scenes/session-recordings/player/playlist-popover/PlaylistPopover.tsx
+++ b/frontend/src/scenes/session-recordings/player/playlist-popover/PlaylistPopover.tsx
@@ -1,9 +1,9 @@
import { LemonCheckbox, LemonDivider } from '@posthog/lemon-ui'
import { useActions, useValues } from 'kea'
import { Form } from 'kea-forms'
-import { Field } from 'lib/forms/Field'
import { IconOpenInNew, IconPlus, IconWithCount } from 'lib/lemon-ui/icons'
import { LemonButton, LemonButtonProps } from 'lib/lemon-ui/LemonButton'
+import { LemonField } from 'lib/lemon-ui/LemonField'
import { LemonInput } from 'lib/lemon-ui/LemonInput/LemonInput'
import { LemonSkeleton } from 'lib/lemon-ui/LemonSkeleton'
import { Popover } from 'lib/lemon-ui/Popover'
@@ -46,9 +46,9 @@ export function PlaylistPopoverButton(props: LemonButtonProps): JSX.Element {
enableFormOnSubmit
className="space-y-1"
>
-
+
-
+
-
+
-
-
+
+
-
+
diff --git a/frontend/src/scenes/settings/organization/VerifiedDomains/ConfigureSAMLModal.tsx b/frontend/src/scenes/settings/organization/VerifiedDomains/ConfigureSAMLModal.tsx
index 770b125d6f861..651e1a3aa2585 100644
--- a/frontend/src/scenes/settings/organization/VerifiedDomains/ConfigureSAMLModal.tsx
+++ b/frontend/src/scenes/settings/organization/VerifiedDomains/ConfigureSAMLModal.tsx
@@ -2,9 +2,9 @@ import { Link } from '@posthog/lemon-ui'
import { useActions, useValues } from 'kea'
import { Form } from 'kea-forms'
import { CopyToClipboardInline } from 'lib/components/CopyToClipboard'
-import { Field } from 'lib/forms/Field'
import { LemonBanner } from 'lib/lemon-ui/LemonBanner'
import { LemonButton } from 'lib/lemon-ui/LemonButton'
+import { LemonField } from 'lib/lemon-ui/LemonField'
import { LemonInput } from 'lib/lemon-ui/LemonInput/LemonInput'
import { LemonModal } from 'lib/lemon-ui/LemonModal'
import { LemonTextArea } from 'lib/lemon-ui/LemonTextArea/LemonTextArea'
@@ -37,28 +37,28 @@ export function ConfigureSAMLModal(): JSX.Element {
Read the docs
-
+
{`${siteUrl}/complete/saml/`}
-
-
+
+
{configureSAMLModalId || 'unknown'}
-
-
+
+
{siteUrl}
-
-
+
+
-
-
+
+
-
-
+
+
-
+
{!samlReady && (
SAML will not be enabled unless you enter all attributes above. However you can still
diff --git a/frontend/src/scenes/settings/organization/VerifiedDomains/VerifyDomainModal.tsx b/frontend/src/scenes/settings/organization/VerifiedDomains/VerifyDomainModal.tsx
index bf38e5d9133ad..6b502f4c402bc 100644
--- a/frontend/src/scenes/settings/organization/VerifiedDomains/VerifyDomainModal.tsx
+++ b/frontend/src/scenes/settings/organization/VerifiedDomains/VerifyDomainModal.tsx
@@ -1,7 +1,7 @@
import { useActions, useValues } from 'kea'
import { CopyToClipboardInline } from 'lib/components/CopyToClipboard'
-import { PureField } from 'lib/forms/Field'
import { LemonButton } from 'lib/lemon-ui/LemonButton'
+import { LemonField } from 'lib/lemon-ui/LemonField'
import { LemonModal } from 'lib/lemon-ui/LemonModal'
import { LemonTag } from 'lib/lemon-ui/LemonTag/LemonTag'
@@ -40,14 +40,14 @@ export function VerifyDomainModal(): JSX.Element {
Add the following TXT record.
-
+
-
+
-
+
{domainBeingVerified?.verification_challenge}
@@ -59,13 +59,13 @@ export function VerifyDomainModal(): JSX.Element {
/>
)}
-
-
+
+
-
+
Press verify below.
diff --git a/frontend/src/scenes/settings/project/AddMembersModal.tsx b/frontend/src/scenes/settings/project/AddMembersModal.tsx
index 51febcc209c0f..b94bae43d7b9b 100644
--- a/frontend/src/scenes/settings/project/AddMembersModal.tsx
+++ b/frontend/src/scenes/settings/project/AddMembersModal.tsx
@@ -4,8 +4,8 @@ import { Form } from 'kea-forms'
import { RestrictedComponentProps } from 'lib/components/RestrictedArea'
import { usersLemonSelectOptions } from 'lib/components/UserSelectItem'
import { TeamMembershipLevel } from 'lib/constants'
-import { Field } from 'lib/forms/Field'
import { IconPlus } from 'lib/lemon-ui/icons'
+import { LemonField } from 'lib/lemon-ui/LemonField'
import { LemonSelectMultiple } from 'lib/lemon-ui/LemonSelectMultiple/LemonSelectMultiple'
import { membershipLevelToName, teamMembershipLevelIntegers } from 'lib/utils/permissioning'
import { useState } from 'react'
@@ -42,7 +42,7 @@ export function AddMembersModalWithButton({ isRestricted }: RestrictedComponentP
{`Adding members${currentTeam?.name ? ` to project ${currentTeam.name}` : ''}`}
-
+
-
-
+
+
)
)}
/>
-
+
diff --git a/frontend/src/scenes/settings/user/ChangePassword.tsx b/frontend/src/scenes/settings/user/ChangePassword.tsx
index 1e284f1696316..42549b954407c 100644
--- a/frontend/src/scenes/settings/user/ChangePassword.tsx
+++ b/frontend/src/scenes/settings/user/ChangePassword.tsx
@@ -2,7 +2,7 @@ import { LemonButton, LemonInput } from '@posthog/lemon-ui'
import { useValues } from 'kea'
import { Form } from 'kea-forms'
import PasswordStrength from 'lib/components/PasswordStrength'
-import { Field } from 'lib/forms/Field'
+import { LemonField } from 'lib/lemon-ui/LemonField'
import { changePasswordLogic } from './changePasswordLogic'
@@ -11,16 +11,16 @@ export function ChangePassword(): JSX.Element {
return (
-
+
+
@@ -480,8 +480,8 @@ export default function SurveyEdit(): JSX.Element {
}
placeholder="ex: .className or #id"
/>
-
-
+
+
{' '}
days.
-
+
>
)}
-
-
+
+
)}
-
+
>
)}
-
+
),
},
]}
diff --git a/frontend/src/scenes/surveys/SurveyEditQuestionRow.tsx b/frontend/src/scenes/surveys/SurveyEditQuestionRow.tsx
index d3420e1a81749..bb6482e18598b 100644
--- a/frontend/src/scenes/surveys/SurveyEditQuestionRow.tsx
+++ b/frontend/src/scenes/surveys/SurveyEditQuestionRow.tsx
@@ -6,8 +6,8 @@ import { CSS } from '@dnd-kit/utilities'
import { LemonButton, LemonCheckbox, LemonInput, LemonSelect } from '@posthog/lemon-ui'
import { useActions, useValues } from 'kea'
import { Group } from 'kea-forms'
-import { Field } from 'lib/forms/Field'
import { IconDelete, IconPlusMini, SortableDragIcon } from 'lib/lemon-ui/icons'
+import { LemonField } from 'lib/lemon-ui/LemonField'
import { Survey, SurveyQuestionType } from '~/types'
@@ -88,7 +88,7 @@ export function SurveyEditQuestionGroup({ index, question }: { index: number; qu
return (
-
+
{
@@ -216,11 +216,11 @@ export function SurveyEditQuestionGroup({ index, question }: { index: number; qu
],
]}
/>
-
-
+
+
-
-
+
+
{({ value, onChange }) => (
)}
-
+
{survey.questions.length > 1 && (
-
+
-
+
)}
{question.type === SurveyQuestionType.Link && (
-
+
-
+
)}
{question.type === SurveyQuestionType.Rating && (
-
+
-
-
+
+
-
+
-
+
-
-
+
+
-
+
)}
{(question.type === SurveyQuestionType.SingleChoice ||
question.type === SurveyQuestionType.MultipleChoice) && (
-
+
{({ value: hasOpenChoice, onChange: toggleHasOpenChoice }) => (
-
+
{({ value, onChange }) => (
{(value || []).map((choice: string, index: number) => {
@@ -366,18 +366,18 @@ export function SurveyEditQuestionGroup({ index, question }: { index: number; qu
)}
-
+
)}
-
+
)}
-
+
-
+
)