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CACF,CAAC","sourcesContent":["import type { Meta, StoryFn } from '@storybook/react';\n\nimport { IconTile } from '@pega/cosmos-react-build';\nimport type { IconTileProps } from '@pega/cosmos-react-build';\n\nimport { getIconConfig, mockIconTileData, type RuleType } from './IconTile.mocks';\n\nexport default {\n  title: 'Build/IconTile',\n  component: IconTile,\n  parameters: {\n    docs: {\n      description: {\n        component:\n          'IconTile is a visual component with icon and a prescribed color palette as background/foreground.'\n      }\n    }\n  }\n} as Meta;\n\ninterface IconTileStoryArgs {\n  size: IconTileProps['size'];\n  type: RuleType;\n}\n\nexport const IconTileDemo: StoryFn<IconTileStoryArgs> = (args: IconTileStoryArgs) => {\n  const { name, category, label, inverted } = getIconConfig(args.type);\n  return (\n    <IconTile\n      name={name}\n      size={args.size}\n      inverted={inverted}\n      category={category}\n      label={label}\n      set='streamline'\n    />\n  );\n};\n\nIconTileDemo.args = { size: 'm', type: 'Automation' };\n\nIconTileDemo.argTypes = {\n  size: {\n    control: { type: 'inline-radio' },\n    options: ['s', 'm', 'l', 'xl']\n  },\n  type: {\n    control: { type: 'select' },\n    options: Object.keys(mockIconTileData)\n  }\n};\n"]}