refactor(shared): move FieldLabelBadge primitive to shared/primitives

FieldLabelBadge is a generic UI primitive (additive/replace badge used in form
field labels). It lived in the document domain but was already imported by
PersonTypeahead (person domain), creating a person → document coupling.
Moving it to shared/primitives eliminates that cross-domain dependency.

Refs #410
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Marcel
2026-05-05 17:36:48 +02:00
committed by marcel
parent 507fa088fd
commit 0f613e49ce
5 changed files with 3 additions and 3 deletions

View File

@@ -4,7 +4,7 @@ import type { components } from '$lib/generated/api';
import { m } from '$lib/paraglide/messages.js';
import { clickOutside } from '$lib/shared/actions/clickOutside';
import { createTypeahead } from '$lib/shared/hooks/useTypeahead.svelte';
import FieldLabelBadge from '$lib/document/FieldLabelBadge.svelte';
import FieldLabelBadge from '$lib/shared/primitives/FieldLabelBadge.svelte';
type Person = components['schemas']['Person'];
interface Props {