diff --git a/packages/components/src/item-group/stories/index.js b/packages/components/src/item-group/stories/index.js index 7e3ee2746d2751..30fb1a02150aac 100644 --- a/packages/components/src/item-group/stories/index.js +++ b/packages/components/src/item-group/stories/index.js @@ -6,14 +6,22 @@ import { boolean, select } from '@storybook/addon-knobs'; /** - * Internal dependencies + * WordPress dependencies */ +import { typography } from '@wordpress/icons'; + /** * Internal dependencies */ import { ItemGroup, Item } from '..'; -import { Flyout } from '../../flyout'; import Button from '../../button'; +import { FlexItem, FlexBlock } from '../../flex'; +import { Flyout } from '../../flyout'; +import { HStack } from '../../h-stack'; +import Icon from '../../icon'; +import { Text } from '../../text'; +import { Truncate } from '../../truncate'; +import { ZStack } from '../../z-stack'; export default { component: ItemGroup, @@ -97,4 +105,84 @@ export const dropdown = () => ( ); + +export const SimpleColorSwatch = ( { color, style } ) => ( +
+); + +export const complexLayouts = () => { + const colors = [ + { + color: '#00A19D', + id: 'teal', + }, + { + color: '#FFF8E5', + id: 'cream', + }, + { + color: '#FFB344', + id: 'yellow', + }, + { + color: '#E05D5D', + id: 'red', + }, + ]; + + return ( + + alert( 'Color palette' ) }> + + + + { colors.map( ( { color, id } ) => ( + + ) ) } + + + + 23 colors + + + + + alert( 'Single color setting' ) }> + + + + Single color setting with very long description + + + + + alert( 'Single typography setting' ) } + > + + + + + + Single typography setting + + + + + ); +}; /* eslint-enable no-alert */