diff --git a/apps/design-system/src/components/visualeditor.stories.tsx b/apps/design-system/src/components/visualeditor.stories.tsx index dcafb2773..b8596ee10 100644 --- a/apps/design-system/src/components/visualeditor.stories.tsx +++ b/apps/design-system/src/components/visualeditor.stories.tsx @@ -84,6 +84,29 @@ export const WithObject = () => ( +export const WithArray_obj = () => ( + +); export const WithArray_obj_and_obj = () => ( = ({ onAdd, schemaPath, }; return ( - - - setKey(e.target.value)} - placeholder="Property name" - /> + + + setKey(e.target.value)} + placeholder="Property name" + className="[font-family:'Inter',Helvetica] text-extendedblue-gray300 bg-extendedblue-gray800 border border-extendedblue-gray700 rounded-[3px] p-[2px] text-[12px]" + /> setType(e.target.value)}> Select type String @@ -84,9 +85,9 @@ const PropertyControls: React.FC = ({ onAdd, schemaPath, )} Add Property - - {error && {error}} - + + {error && {error}} + ); }; diff --git a/packages/ui/components/SchemaProperty.tsx b/packages/ui/components/SchemaProperty.tsx index c5775f099..b4fc76ab9 100644 --- a/packages/ui/components/SchemaProperty.tsx +++ b/packages/ui/components/SchemaProperty.tsx @@ -92,9 +92,13 @@ const SchemaProperty: React.FC = ({ return ( - - {name} - Type: - + + {name} + String Number Boolean diff --git a/packages/ui/components/VisualEditor.tsx b/packages/ui/components/VisualEditor.tsx index 0dfa522c8..1f84f8813 100644 --- a/packages/ui/components/VisualEditor.tsx +++ b/packages/ui/components/VisualEditor.tsx @@ -91,8 +91,8 @@ export const VisualEditor: React.FC = ({ schema, onSchemaChan }; return ( - - Visual Editor + + Visual Editor {renderRootTypeSelector()} {renderArrayItemTypeSelector()}
{error}