// Copyright (c) Cratis. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. import { lazy } from 'react'; import { RegisteredComponentProps } from '@cratis/scene.react'; import { booleanProperty, numberProperty, stringProperty } from '../../properties'; import { CommandFormField } from './CommandFormField'; const ChipsField = lazy(async () => ({ default: (await import('@cratis/components/CommandForm')).ChipsField })); /** * The `Cratis.Components:chipsField` component - `ChipsField` from `@cratis/components/CommandForm`. * * A free-form list of strings - tags, labels, recipients - where the values are typed rather than picked. * `multiSelectField` is the right choice whenever the values come from a known set; this one exists for * when they do not. * * There is no `separator` property. PrimeReact 11's `InputTags` commits exactly one tag per `Enter` and * no longer splits pasted text, so `@cratis/components` keeps the prop only so existing call sites * compile and never reads it. A screen that wrote `separator: ','` and watched a pasted comma-separated * list arrive as a single tag would have no way to tell that from a bug, which is precisely why the * property is withdrawn rather than passed through. */ export function SceneChipsField({ element }: RegisteredComponentProps) { return ( {binding => ( )} ); }