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D,YAAY,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;IAC3C,UAAU,EAAE;QACV,OAAO,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,KAAK,CAAC;QAClD,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;KAC5B;IACD,YAAY,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;CAC5C,CAAC","sourcesContent":["import type { Meta, StoryFn } from '@storybook/react';\n\nimport { ThemeOverride, Flex, Text } from '@pega/cosmos-react-core';\nimport type { TextProps } from '@pega/cosmos-react-core';\n\nexport default {\n  title: 'Core/Text',\n  component: Text,\n  excludeStories: ['ConfigurableText']\n} as Meta;\n\nexport const TextDemo: StoryFn<TextProps> = (args: TextProps) => {\n  return (\n    <Text variant={args.variant} status={args.status}>\n      Pega Constellation\n    </Text>\n  );\n};\n\nTextDemo.args = {\n  variant: 'primary',\n  status: undefined\n};\n\nTextDemo.argTypes = {\n  variant: {\n    options: ['primary', 'secondary', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6'],\n    control: { type: 'select' }\n  },\n  status: { options: [undefined, 'success', 'warning', 'error'], control: { type: 'select' } }\n};\n\ninterface ConfigurableTextProps {\n  primaryFontSize?: string;\n  primaryFontWeight?: string;\n  secondaryFontSize?: string;\n  secondaryFontWeight?: string;\n  h1FontSize?: string;\n  h1FontWeight?: string;\n  h2FontSize?: string;\n  h2FontWeight?: string;\n  h3FontSize?: string;\n  h3FontWeight?: string;\n  h4FontSize?: string;\n  h4FontWeight?: string;\n  h5FontSize?: string;\n  h5FontWeight?: string;\n  h6FontSize?: string;\n  h6FontWeight?: string;\n}\n\nexport const ConfigurableText: StoryFn<ConfigurableTextProps> = (args: ConfigurableTextProps) => {\n  return (\n    <ThemeOverride\n      theme={{\n        components: {\n          text: {\n            primary: {\n              'font-size': args.primaryFontSize,\n              'font-weight': args.primaryFontWeight\n            },\n            secondary: {\n              'font-size': args.secondaryFontSize,\n              'font-weight': args.secondaryFontWeight\n            },\n            h1: {\n              'font-size': args.h1FontSize,\n              'font-weight': args.h1FontWeight\n            },\n            h2: {\n              'font-size': args.h2FontSize,\n              'font-weight': args.h2FontWeight\n            },\n            h3: {\n              'font-size': args.h3FontSize,\n              'font-weight': args.h3FontWeight\n            },\n            h4: {\n              'font-size': args.h4FontSize,\n              'font-weight': args.h4FontWeight\n            },\n            h5: {\n              'font-size': args.h5FontSize,\n              'font-weight': args.h5FontWeight\n            },\n            h6: {\n              'font-size': args.h6FontSize,\n              'font-weight': args.h6FontWeight\n            }\n          }\n        }\n      }}\n    >\n      <Flex container={{ gap: 2, alignItems: 'end' }}>\n        <Text variant='primary'>Primary</Text>\n        <Text variant='secondary'>Secondary</Text>\n        <Text variant='h1'>h1</Text>\n        <Text variant='h2'>h2</Text>\n        <Text variant='h3'>h3</Text>\n        <Text variant='h4'>h4</Text>\n        <Text variant='h5'>h5</Text>\n        <Text variant='h6'>h6</Text>\n      </Flex>\n    </ThemeOverride>\n  );\n};\n\nConfigurableText.args = {\n  primaryFontSize: 's',\n  primaryFontWeight: '400',\n  secondaryFontSize: 'xs',\n  secondaryFontWeight: '400',\n  h1FontSize: 'xl',\n  h1FontWeight: '600',\n  h2FontSize: 'l',\n  h2FontWeight: '600',\n  h3FontSize: 'm',\n  h3FontWeight: '600',\n  h4FontSize: 's',\n  h4FontWeight: '600',\n  h5FontSize: 'xs',\n  h5FontWeight: '600',\n  h6FontSize: 'xxs',\n  h6FontWeight: '600'\n};\n\nConfigurableText.argTypes = {\n  primaryFontSize: {\n    options: ['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl'],\n    control: { type: 'select' }\n  },\n  primaryFontWeight: { control: { type: 'text' } },\n  secondaryFontSize: {\n    options: ['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl'],\n    control: { type: 'select' }\n  },\n  secondaryFontWeight: { control: { type: 'text' } },\n  h1FontSize: {\n    options: ['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl'],\n    control: { type: 'select' }\n  },\n  h1FontWeight: { control: { type: 'text' } },\n  h2FontSize: {\n    options: ['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl'],\n    control: { type: 'select' }\n  },\n  h2FontWeight: { control: { type: 'text' } },\n  h3FontSize: {\n    options: ['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl'],\n    control: { type: 'select' }\n  },\n  h3FontWeight: { control: { type: 'text' } },\n  h4FontSize: {\n    options: ['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl'],\n    control: { type: 'select' }\n  },\n  h4FontWeight: { control: { type: 'text' } },\n  h5FontSize: {\n    options: ['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl'],\n    control: { type: 'select' }\n  },\n  h5FontWeight: { control: { type: 'text' } },\n  h6FontSize: {\n    options: ['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl'],\n    control: { type: 'select' }\n  },\n  h6FontWeight: { control: { type: 'text' } }\n};\n"]}