"use client"; // Adapted from Adobe React Spectrum starters (Apache-2.0). // Modified: owned composition, local runtime, scoped CSS and customization. // See THIRD_PARTY_NOTICES.md. import { TagGroup as AriaTagGroup, Tag as AriaTag, TagList, type TagGroupProps as AriaProps, type TagProps, Button, Label, composeRenderProps, } from "./react-aria-runtime.js"; import type { ReactNode } from "react"; export interface TagGroupProps extends Omit { label: string; children: ReactNode; emptyMessage?: string; } export function TagGroup({ label, children, emptyMessage = "No tags", className, ...props }: TagGroupProps) { return ( emptyMessage}> {children} ); } export function Tag({ children, className, ...props }: Omit & { children: ReactNode }) { return ( `ynr-aria-tag ${value ?? ""}`, )} > {({ allowsRemoving }) => ( <> {children} {allowsRemoving && ( )} )} ); }