From 2ae3a035e3043ddddf72e93d12a54272de89c26c Mon Sep 17 00:00:00 2001 From: Andrea Vesterhus Date: Thu, 8 Feb 2024 12:23:00 +0100 Subject: [PATCH] refactor: spaceItems -> spaceEvenly --- .../dm-core-plugins/blueprints/stack/StackPluginConfig.json | 2 +- packages/dm-core-plugins/src/stack/StackPlugin.tsx | 2 +- packages/dm-core-plugins/src/stack/types.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/dm-core-plugins/blueprints/stack/StackPluginConfig.json b/packages/dm-core-plugins/blueprints/stack/StackPluginConfig.json index ab86da451..ba4d6571e 100644 --- a/packages/dm-core-plugins/blueprints/stack/StackPluginConfig.json +++ b/packages/dm-core-plugins/blueprints/stack/StackPluginConfig.json @@ -24,7 +24,7 @@ { "name": "horizontalPlacement", "type": "CORE:BlueprintAttribute", - "description": "left, center, right or spaceItems", + "description": "left, center, right or spaceEvenly", "attributeType": "string", "optional": true, "default": "left" diff --git a/packages/dm-core-plugins/src/stack/StackPlugin.tsx b/packages/dm-core-plugins/src/stack/StackPlugin.tsx index 6aee14d64..b1a75fe7f 100644 --- a/packages/dm-core-plugins/src/stack/StackPlugin.tsx +++ b/packages/dm-core-plugins/src/stack/StackPlugin.tsx @@ -22,7 +22,7 @@ export const StackPlugin = (props: IUIPlugin) => { right: 'flex-end', top: 'flex-start', bottom: 'flex-end', - spaceItems: 'space-between', + spaceEvenly: 'space-between', } const stackProps: StackProps = { diff --git a/packages/dm-core-plugins/src/stack/types.ts b/packages/dm-core-plugins/src/stack/types.ts index 6b46cb94d..c941ee32e 100644 --- a/packages/dm-core-plugins/src/stack/types.ts +++ b/packages/dm-core-plugins/src/stack/types.ts @@ -3,7 +3,7 @@ import { TViewConfig } from '@development-framework/dm-core' export type StackPluginConfig = { items: TViewConfig[] direction: 'horizontal' | 'vertical' - horizontalPlacement: 'left' | 'center' | 'right' | 'spaceItems' + horizontalPlacement: 'left' | 'center' | 'right' | 'spaceEvenly' verticalPlacement: 'top' | 'center' | 'bottom' spacing: number maxWidth: string