import type { ManifestPropertyEditorModel } from '@umbraco-cms/models';

export const manifest: ManifestPropertyEditorModel = {
	type: 'propertyEditorModel',
	name: 'Color Picker',
	alias: 'Umbraco.ColorPicker',
	meta: {
		config: {
			properties: [
				{
					alias: 'useLabel',
					label: 'Include labels?',
					description:
						'Stores colors as a Json object containing both the color hex string and label, rather than just the hex string.',
					propertyEditorUI: 'Umb.PropertyEditorUI.Toggle',
				},
				{
					alias: 'items',
					label: 'Colors',
					description: 'Add, remove or sort colors',
					propertyEditorUI: 'Umb.PropertyEditorUI.ColorPicker',
				},
			],
		},
	},
};
