From e931ccf7fce8ec22db3d587cbb8eb112d4fb709d Mon Sep 17 00:00:00 2001 From: Lukas Oppermann Date: Tue, 17 Dec 2024 14:37:50 +0100 Subject: [PATCH] some updates --- .../react/src/ActionList/ActionList.figma.tsx | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/packages/react/src/ActionList/ActionList.figma.tsx b/packages/react/src/ActionList/ActionList.figma.tsx index d2de616cee5..627d42a95a3 100644 --- a/packages/react/src/ActionList/ActionList.figma.tsx +++ b/packages/react/src/ActionList/ActionList.figma.tsx @@ -163,6 +163,33 @@ figma.connect( }, ) /** Single Select ITEM */ +figma.connect( + ActionList.Item, + 'https://www.figma.com/design/GCvY3Qv8czRgZgvl1dG6lp/Primer-Web?node-id=15614-56202&m=dev', + { + props: { + size: figma.enum('size', { + small: 'small', + medium: 'medium', + large: 'large', + }), + selected: figma.boolean('selected?'), + currentSelection: figma.boolean('currentSelection'), + text: figma.nestedProps('label and description', { + label: figma.textContent('label'), + description: figma.textContent('description'), + }), + leadingVisual: figma.instance('leadingVisual'), + }, + variant: {'leadingVisual?': true}, + example: ({text, selected, currentSelection, leadingVisual}) => ( + + {leadingVisual} + {text.label} + + ), + }, +) figma.connect( ActionList.Item, 'https://www.figma.com/design/GCvY3Qv8czRgZgvl1dG6lp/Primer-Web?node-id=15614-56202&m=dev',