{"version":3,"file":"typography.mjs","sources":["../src/Blockquote.tsx","../src/CodeText.tsx","../src/EmphasizedText.tsx","../src/BaseHeading.tsx","../src/Heading1.tsx","../src/Heading2.tsx","../src/Heading3.tsx","../src/Heading4.tsx","../src/Heading5.tsx","../src/Heading6.tsx","../src/Label.tsx","../src/LeadParagraph.tsx","../src/Link.tsx","../src/StrongText.tsx","../src/ListItem.tsx","../src/NumberedList.tsx","../src/Paragraph.tsx","../src/PreformattedText.tsx","../src/SmallText.tsx","../src/SubLabel.tsx","../src/SubParagraph.tsx","../src/UnorderedList.tsx","../src/index.tsx"],"sourcesContent":["import React from 'react';\nimport classNames from 'classnames';\n\nexport type BlockquoteProps = {\n  /** Ekstra klassenavn */\n  className?: string;\n} & React.DetailedHTMLProps<\n  React.BlockquoteHTMLAttributes<HTMLElement>,\n  HTMLQuoteElement\n>;\n\nexport const Blockquote = ({ className, ref, ...rest }: BlockquoteProps) => {\n  return (\n    <blockquote\n      className={classNames('eds-blockquote', className)}\n      ref={ref}\n      {...rest}\n    />\n  );\n};\n\nexport type BlockquoteFooterProps = {\n  /** Ekstra klassenavn */\n  className?: string;\n} & React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;\n\nexport const BlockquoteFooter = ({\n  className,\n  ...rest\n}: BlockquoteFooterProps) => {\n  return (\n    <footer\n      className={classNames('eds-blockquote__footer', className)}\n      {...rest}\n    />\n  );\n};\n","import React from 'react';\nimport classNames from 'classnames';\nimport { PolymorphicComponentProps } from '@entur/utils';\n\nexport type CodeTextOwnProps = {\n  /** HTML-elementet eller React-komponenten som rendres\n   * @default \"code\"\n   */\n  as?: string | React.ElementType;\n  /** Ekstra klassenavn */\n  className?: string;\n  /** Innholdet */\n  children: React.ReactNode;\n};\n\nexport type CodeTextProps<T extends React.ElementType = typeof defaultElement> =\n  PolymorphicComponentProps<T, CodeTextOwnProps>;\n\nconst defaultElement = 'code';\n\nexport const CodeText = <E extends React.ElementType = typeof defaultElement>({\n  className,\n  as,\n  ...rest\n}: CodeTextProps<E>): JSX.Element => {\n  const Element: React.ElementType = as || defaultElement;\n  return (\n    <Element className={classNames('eds-code-text', className)} {...rest} />\n  );\n};\n","import React from 'react';\nimport classNames from 'classnames';\nimport { PolymorphicComponentProps } from '@entur/utils';\n\nexport type EmphasizedTextOwnProps = {\n  /** HTML-elementet eller React-komponenten som rendres\n   * @default \"em\"\n   */\n  as?: string | React.ElementType;\n  /** Ekstra klassenavn */\n  className?: string;\n  /** Innholdet */\n  children: React.ReactNode;\n  /** Hvor du vil ha marginer\n   * @default \"both\"\n   */\n  margin?: 'top' | 'bottom' | 'both' | 'none';\n};\n\nexport type EmphasizedTextProps<\n  T extends React.ElementType = typeof defaultElement,\n> = PolymorphicComponentProps<T, EmphasizedTextOwnProps>;\n\nconst defaultElement = 'em';\n\nexport const EmphasizedText = <\n  E extends React.ElementType = typeof defaultElement,\n>({\n  className,\n  margin = 'both',\n  as,\n  ...rest\n}: EmphasizedTextProps<E>): JSX.Element => {\n  const Element: React.ElementType = as || defaultElement;\n  return (\n    <Element\n      className={classNames(\n        'eds-emphasized-text',\n        {\n          [`eds-emphasized-text--margin-top`]: margin === 'top',\n          [`eds-emphasized-text--margin-bottom`]: margin === 'bottom',\n          [`eds-emphasized-text--margin-none`]: margin === 'none',\n        },\n        className,\n      )}\n      {...rest}\n    />\n  );\n};\n","import React from 'react';\nimport classNames from 'classnames';\nimport { PolymorphicComponentProps } from '@entur/utils';\n\ntype BaseHeadingOwnProps = {\n  /** HTML-elementet eller React-komponenten som rendres */\n  as: string | React.ElementType;\n  /** Ekstra klassenavn */\n  className?: string;\n  /** Innholdet */\n  children: React.ReactNode;\n  /** Hvor du vil ha marginer */\n  margin: 'top' | 'bottom' | 'both' | 'none';\n  /** Nivået på overskriften  */\n  level: 1 | 2 | 3 | 4 | 5 | 6;\n};\nconst defaultElement = 'h1';\n\nexport type BaseHeadingProps<\n  T extends React.ElementType = typeof defaultElement,\n> = PolymorphicComponentProps<T, BaseHeadingOwnProps>;\n\nexport const BaseHeading = <\n  E extends React.ElementType = typeof defaultElement,\n>({\n  className,\n  level,\n  margin,\n  as,\n  ...rest\n}: BaseHeadingProps<E>): JSX.Element => {\n  const Element: React.ElementType = as || defaultElement;\n  const baseClass = `eds-h${level}`;\n  return (\n    <Element\n      className={classNames(\n        baseClass,\n        {\n          [`${baseClass}--margin-top`]: margin === 'top',\n          [`${baseClass}--margin-bottom`]: margin === 'bottom',\n          [`${baseClass}--margin-none`]: margin === 'none',\n        },\n        className,\n      )}\n      {...rest}\n    />\n  );\n};\n","import React from 'react';\nimport { BaseHeading } from './BaseHeading';\nimport { PolymorphicComponentProps } from '@entur/utils';\n\nexport type Heading1OwnProps = {\n  /** HTML-elementet eller React-komponenten som rendres\n   * @default \"h1\"\n   */\n  as?: string | React.ElementType;\n  /** Ekstra klassenavn */\n  className?: string;\n  /** Innholdet */\n  children: React.ReactNode;\n  /** Hvor du vil ha marginer\n   * @default \"both\"\n   */\n  margin?: 'top' | 'bottom' | 'both' | 'none';\n};\n\nconst defaultElement = 'h1';\n\nexport type Heading1Props<T extends React.ElementType = typeof defaultElement> =\n  PolymorphicComponentProps<T, Heading1OwnProps>;\n\nexport const Heading1 = <E extends React.ElementType = typeof defaultElement>({\n  margin = 'both',\n  children,\n  as,\n  ...rest\n}: Heading1Props<E>): JSX.Element => {\n  const Element: React.ElementType = as || defaultElement;\n  return (\n    <BaseHeading as={Element} margin={margin} {...rest} level={1}>\n      {children}\n    </BaseHeading>\n  );\n};\n","import React from 'react';\nimport { BaseHeading } from './BaseHeading';\nimport { PolymorphicComponentProps } from '@entur/utils';\n\nexport type Heading2OwnProps = {\n  /** HTML-elementet eller React-komponenten som rendres\n   * @default \"h2\"\n   */\n  as?: string | React.ElementType;\n  /** Ekstra klassenavn */\n  className?: string;\n  /** Innholdet */\n  children: React.ReactNode;\n  /** Hvor du vil ha marginer\n   * @default \"both\"\n   */\n  margin?: 'top' | 'bottom' | 'both' | 'none';\n};\n\nexport type Heading2Props<T extends React.ElementType = typeof defaultElement> =\n  PolymorphicComponentProps<T, Heading2OwnProps>;\n\nconst defaultElement = 'h2';\n\nexport const Heading2 = <E extends React.ElementType = typeof defaultElement>({\n  margin = 'both',\n  children,\n  as,\n  ...rest\n}: Heading2Props<E>): JSX.Element => {\n  const Element: React.ElementType = as || defaultElement;\n  return (\n    <BaseHeading as={Element} margin={margin} {...rest} level={2}>\n      {children}\n    </BaseHeading>\n  );\n};\n","import React from 'react';\nimport { BaseHeading } from './BaseHeading';\nimport { PolymorphicComponentProps } from '@entur/utils';\n\nexport type Heading3OwnProps = {\n  /** HTML-elementet eller React-komponenten som rendres\n   * @default \"h3\"\n   */\n  as?: string | React.ElementType;\n  /** Ekstra klassenavn */\n  className?: string;\n  /** Innholdet */\n  children: React.ReactNode;\n  /** Hvor du vil ha marginer\n   * @default \"both\"\n   */\n  margin?: 'top' | 'bottom' | 'both' | 'none';\n};\n\nexport type Heading3Props<T extends React.ElementType = typeof defaultElement> =\n  PolymorphicComponentProps<T, Heading3OwnProps>;\n\nconst defaultElement = 'h3';\n\nexport const Heading3 = <E extends React.ElementType = typeof defaultElement>({\n  margin = 'both',\n  children,\n  as,\n  ...rest\n}: Heading3Props<E>): JSX.Element => {\n  const Element: React.ElementType = as || defaultElement;\n  return (\n    <BaseHeading as={Element} margin={margin} {...rest} level={3}>\n      {children}\n    </BaseHeading>\n  );\n};\n","import React from 'react';\nimport { BaseHeading } from './BaseHeading';\nimport { PolymorphicComponentProps } from '@entur/utils';\n\nexport type Heading4OwnProps = {\n  /** HTML-elementet eller React-komponenten som rendres\n   * @default \"h4\"\n   */\n  as?: string | React.ElementType;\n  /** Ekstra klassenavn */\n  className?: string;\n  /** Innholdet */\n  children: React.ReactNode;\n  /** Hvor du vil ha marginer\n   * @default \"both\"\n   */\n  margin?: 'top' | 'bottom' | 'both' | 'none';\n};\n\nexport type Heading4Props<T extends React.ElementType = typeof defaultElement> =\n  PolymorphicComponentProps<T, Heading4OwnProps>;\n\nconst defaultElement = 'h4';\nexport const Heading4 = <E extends React.ElementType = typeof defaultElement>({\n  margin = 'both',\n  children,\n  as,\n  ...rest\n}: Heading4Props<E>): JSX.Element => {\n  const Element: React.ElementType = as || defaultElement;\n  return (\n    <BaseHeading as={Element} margin={margin} {...rest} level={4}>\n      {children}\n    </BaseHeading>\n  );\n};\n","import React from 'react';\nimport { BaseHeading } from './BaseHeading';\nimport { PolymorphicComponentProps } from '@entur/utils';\n\nexport type Heading5OwnProps = {\n  /** HTML-elementet eller React-komponenten som rendres\n   * @default \"h5\"\n   */\n  as?: string | React.ElementType;\n  /** Ekstra klassenavn */\n  className?: string;\n  /** Innholdet */\n  children: React.ReactNode;\n  /** Hvor du vil ha marginer\n   * @default \"both\"\n   */\n  margin?: 'top' | 'bottom' | 'both' | 'none';\n};\n\nexport type Heading5Props<T extends React.ElementType = typeof defaultElement> =\n  PolymorphicComponentProps<T, Heading5OwnProps>;\n\nconst defaultElement = 'h5';\n\nexport const Heading5 = <E extends React.ElementType = typeof defaultElement>({\n  margin = 'both',\n  children,\n  as,\n  ...rest\n}: Heading5Props<E>): JSX.Element => {\n  const Element: React.ElementType = as || defaultElement;\n  return (\n    <BaseHeading as={Element} margin={margin} {...rest} level={5}>\n      {children}\n    </BaseHeading>\n  );\n};\n","import React from 'react';\nimport { BaseHeading } from './BaseHeading';\nimport { PolymorphicComponentProps } from '@entur/utils';\n\nexport type Heading6OwnProps = {\n  /** HTML-elementet eller React-komponenten som rendres\n   * @default \"h6\"\n   */\n  as?: string | React.ElementType;\n  /** Ekstra klassenavn */\n  className?: string;\n  /** Innholdet */\n  children: React.ReactNode;\n  /** Hvor du vil ha marginer\n   * @default \"both\"\n   */\n  margin?: 'top' | 'bottom' | 'both' | 'none';\n};\n\nexport type Heading6Props<T extends React.ElementType = typeof defaultElement> =\n  PolymorphicComponentProps<T, Heading6OwnProps>;\n\nconst defaultElement = 'h6';\n\nexport const Heading6 = <E extends React.ElementType = typeof defaultElement>({\n  margin = 'both',\n  children,\n  as,\n  ...rest\n}: Heading6Props<E>): JSX.Element => {\n  const Element: React.ElementType = as || defaultElement;\n  return (\n    <BaseHeading as={Element} margin={margin} {...rest} level={6}>\n      {children}\n    </BaseHeading>\n  );\n};\n","import React from 'react';\nimport classNames from 'classnames';\nimport { PolymorphicComponentProps } from '@entur/utils';\n\nexport type LabelOwnProps = {\n  /** HTML-elementet eller React-komponenten som rendres\n   * @default \"label\"\n   */\n  as?: string | React.ElementType;\n  /** Ekstra klassenavn */\n  className?: string;\n  /** Innholdet */\n  children: React.ReactNode;\n  /** Hvor du vil ha marginer\n   * @default \"both\"\n   */\n  margin?: 'top' | 'bottom' | 'both' | 'none';\n};\n\nexport type LabelProps<T extends React.ElementType = typeof defaultElement> =\n  PolymorphicComponentProps<T, LabelOwnProps>;\n\nconst defaultElement = 'label';\n\nexport const Label = <E extends React.ElementType = typeof defaultElement>({\n  className,\n  margin = 'both',\n  as,\n  ...rest\n}: LabelProps<E>): JSX.Element => {\n  const Element: React.ElementType = as || defaultElement;\n  return (\n    <Element\n      className={classNames(\n        'eds-label',\n        {\n          [`eds-label--margin-top`]: margin === 'top',\n          [`eds-label--margin-bottom`]: margin === 'bottom',\n          [`eds-label--margin-none`]: margin === 'none',\n        },\n        className,\n      )}\n      {...rest}\n    />\n  );\n};\n","import React from 'react';\nimport classNames from 'classnames';\nimport { PolymorphicComponentProps } from '@entur/utils';\n\nexport type LeadParagraphOwnProps = {\n  /** HTML-elementet eller React-komponenten som rendres\n   * @default \"p\"\n   */\n  as?: string | React.ElementType;\n  /** Ekstra klassenavn */\n  className?: string;\n  /** Innholdet */\n  children: React.ReactNode;\n  /** Hvor du vil ha marginer\n   * @default \"both\"\n   */\n  margin?: 'top' | 'bottom' | 'both' | 'none';\n};\n\nexport type LeadParagraphProps<\n  T extends React.ElementType = typeof defaultElement,\n> = PolymorphicComponentProps<T, LeadParagraphOwnProps>;\n\nconst defaultElement = 'p';\n\nexport const LeadParagraph = <\n  E extends React.ElementType = typeof defaultElement,\n>({\n  className,\n  margin = 'both',\n  as,\n  ...rest\n}: LeadParagraphProps<E>): JSX.Element => {\n  const Element: React.ElementType = as || defaultElement;\n  return (\n    <Element\n      className={classNames(\n        'eds-lead-paragraph',\n        {\n          [`eds-lead-paragraph--margin-top`]: margin === 'top',\n          [`eds-lead-paragraph--margin-bottom`]: margin === 'bottom',\n          [`eds-lead-paragraph--margin-none`]: margin === 'none',\n        },\n        className,\n      )}\n      {...rest}\n    />\n  );\n};\n","import React from 'react';\nimport classNames from 'classnames';\nimport { PolymorphicComponentProps } from '@entur/utils';\nimport { ExternalIcon } from '@entur/icons';\n\nexport type LinkOwnProps = {\n  external?: boolean;\n  /** HTML-elementet eller React-komponenten som rendres\n   * @default \"a\"\n   */\n  as?: string | React.ElementType;\n  /** Ekstra klassenavn */\n  className?: string;\n  /** Innholdet */\n  children: React.ReactNode;\n  /** Hvor du vil ha marginer\n   * @default \"both\"\n   */\n  margin?: 'top' | 'bottom' | 'both' | 'none';\n  ariaLabelExternalIcon?: string;\n};\n\nexport type LinkProps<T extends React.ElementType = typeof defaultElement> =\n  PolymorphicComponentProps<T, LinkOwnProps>;\n\nconst defaultElement = 'a';\n\nexport const Link = <E extends React.ElementType = typeof defaultElement>({\n  external = false,\n  ariaLabelExternalIcon = '(ekstern lenke)',\n  className,\n  margin = 'both',\n  children,\n  as,\n  ...rest\n}: LinkProps<E>): JSX.Element => {\n  const Element: React.ElementType = as || defaultElement;\n  return (\n    <Element\n      className={classNames(\n        'eds-link',\n        {\n          [`eds-link--margin-top`]: margin === 'top',\n          [`eds-link--margin-bottom`]: margin === 'bottom',\n          [`eds-link--margin-none`]: margin === 'none',\n        },\n        className,\n      )}\n      {...rest}\n    >\n      {children}\n      {external ? (\n        <ExternalIcon\n          className=\"eds-link--ext-icon\"\n          aria-label={ariaLabelExternalIcon}\n        />\n      ) : (\n        <></>\n      )}\n    </Element>\n  );\n};\n","import React from 'react';\nimport classNames from 'classnames';\nimport { PolymorphicComponentProps } from '@entur/utils';\n\nexport type StrongTextOwnProps = {\n  /** HTML-elementet eller React-komponenten som rendres\n   * @default \"strong\"\n   */\n  as?: string | React.ElementType;\n  /** Ekstra klassenavn */\n  className?: string;\n  /** Innholdet */\n  children: React.ReactNode;\n  /** Hvor du vil ha marginer\n   * @default \"both\"\n   */\n  margin?: 'top' | 'bottom' | 'both' | 'none';\n};\n\nexport type StrongTextProps<\n  T extends React.ElementType = typeof defaultElement,\n> = PolymorphicComponentProps<T, StrongTextOwnProps>;\n\nconst defaultElement = 'strong';\n\nexport const StrongText = <\n  E extends React.ElementType = typeof defaultElement,\n>({\n  className,\n  margin = 'both',\n  as,\n  ...rest\n}: StrongTextProps<E>): JSX.Element => {\n  const Element: React.ElementType = as || defaultElement;\n  return (\n    <Element\n      className={classNames(\n        'eds-strong-text',\n        {\n          [`eds-strong-text--margin-top`]: margin === 'top',\n          [`eds-strong-text--margin-bottom`]: margin === 'bottom',\n          [`eds-strong-text--margin-none`]: margin === 'none',\n        },\n        className,\n      )}\n      {...rest}\n    />\n  );\n};\n","import React from 'react';\nimport classNames from 'classnames';\nimport { StrongText } from './StrongText';\n\nexport type ListItemProps = {\n  /** Ekstra klassenavn */\n  className?: string;\n  /** Innholdet */\n  children: React.ReactNode;\n  /** Tittel */\n  title?: React.ReactNode;\n  [key: string]: any;\n};\n\nexport const ListItem = ({\n  children,\n  className,\n  title,\n  ...rest\n}: ListItemProps) => (\n  <li className={classNames('eds-list-item', className)} {...rest}>\n    {title && <StrongText className=\"eds-list-item__title\">{title}</StrongText>}\n    {children}\n  </li>\n);\n","import React from 'react';\nimport classNames from 'classnames';\n\nexport type NumberedListProps = {\n  /** Ekstra klassenavn */\n  className?: string;\n  /** Innholdet */\n  children: React.ReactNode;\n} & React.OlHTMLAttributes<HTMLOListElement>;\n\nexport const NumberedList = ({\n  className,\n  type = '1',\n  ...rest\n}: NumberedListProps) => (\n  <ol\n    className={classNames(\n      'eds-numbered-list',\n      { [`eds-numbered-list--type-${type}`]: type },\n      className,\n    )}\n    type={type}\n    {...rest}\n  />\n);\n","import React from 'react';\nimport classNames from 'classnames';\nimport { PolymorphicComponentProps } from '@entur/utils';\n\nexport type ParagraphOwnProps = {\n  /** HTML-elementet eller React-komponenten som rendres\n   * @default \"p\"\n   */\n  as?: string | React.ElementType;\n  /** Ekstra klassenavn */\n  className?: string;\n  /** Innholdet */\n  children: React.ReactNode;\n  /** Hvor du vil ha marginer\n   * @default \"bottom\"\n   */\n  margin?: 'bottom' | 'none';\n};\n\nexport type ParagraphProps<\n  T extends React.ElementType = typeof defaultElement,\n> = PolymorphicComponentProps<T, ParagraphOwnProps>;\n\nconst defaultElement = 'p';\n\nexport const Paragraph = <E extends React.ElementType = typeof defaultElement>({\n  margin = 'bottom',\n  className,\n  as,\n  ...rest\n}: ParagraphProps<E>): JSX.Element => {\n  const Element: React.ElementType = as || defaultElement;\n  return (\n    <Element\n      className={classNames(\n        'eds-paragraph',\n        {\n          'eds-paragraph--margin-bottom': margin === 'bottom',\n          'eds-paragraph--margin-none': margin === 'none',\n        },\n        className,\n      )}\n      {...rest}\n    />\n  );\n};\n","import React from 'react';\nimport classNames from 'classnames';\nimport { PolymorphicComponentProps } from '@entur/utils';\n\nexport type PreformattedTextOwnProps = {\n  /** HTML-elementet eller React-komponenten som rendres\n   * @default \"pre\"\n   */\n  as?: string | React.ElementType;\n  /** Ekstra klassenavn */\n  className?: string;\n  /** Innholdet */\n  children: React.ReactNode;\n};\n\nexport type PreformattedTextProps<T extends React.ElementType> =\n  PolymorphicComponentProps<T, PreformattedTextOwnProps>;\n\nconst defaultElement = 'pre';\n\nexport const PreformattedText = <\n  E extends React.ElementType = typeof defaultElement,\n>({\n  className,\n  as,\n  ...rest\n}: PreformattedTextProps<E>): JSX.Element => {\n  const Element: React.ElementType = as || defaultElement;\n  return (\n    <Element\n      className={classNames('eds-preformatted-text', className)}\n      {...rest}\n    />\n  );\n};\n","import React from 'react';\nimport classNames from 'classnames';\nimport { PolymorphicComponentProps } from '@entur/utils';\n\nexport type SmallTextOwnProps = {\n  /** HTML-elementet eller React-komponenten som rendres\n   * @default \"span\"\n   */\n  as?: string | React.ElementType;\n  /** Ekstra klassenavn */\n  className?: string;\n  /** Innholdet */\n  children: React.ReactNode;\n  /** Hvor du vil ha marginer\n   * @default \"both\"\n   */\n  margin?: 'top' | 'bottom' | 'both' | 'none';\n};\n\nexport type SmallTextProps<\n  T extends React.ElementType = typeof defaultElement,\n> = PolymorphicComponentProps<T, SmallTextOwnProps>;\nconst defaultElement = 'span';\n\nexport const SmallText = <E extends React.ElementType = typeof defaultElement>({\n  className,\n  margin = 'both',\n  as,\n  ...rest\n}: SmallTextProps<E>): JSX.Element => {\n  const Element: React.ElementType = as || defaultElement;\n  return (\n    <Element\n      className={classNames(\n        'eds-small-text',\n        {\n          [`eds-small-text--margin-top`]: margin === 'top',\n          [`eds-small-text--margin-bottom`]: margin === 'bottom',\n          [`eds-small-text--margin-none`]: margin === 'none',\n        },\n        className,\n      )}\n      {...rest}\n    />\n  );\n};\n","import React from 'react';\nimport classNames from 'classnames';\nimport { PolymorphicComponentProps } from '@entur/utils';\n\nexport type SubLabelOwnProps = {\n  /** HTML-elementet eller React-komponenten som rendres\n   * @default \"span\"\n   */\n  as?: string | React.ElementType;\n  /** Ekstra klassenavn */\n  className?: string;\n  /** Innholdet */\n  children: React.ReactNode;\n  /** Hvor du vil ha marginer\n   * @default \"both\"\n   */\n  margin?: 'top' | 'bottom' | 'both' | 'none';\n};\n\nexport type SubLabelProps<T extends React.ElementType = typeof defaultElement> =\n  PolymorphicComponentProps<T, SubLabelOwnProps>;\n\nconst defaultElement = 'span';\n\nexport const SubLabel = <E extends React.ElementType = typeof defaultElement>({\n  className,\n  margin = 'both',\n  as,\n  ...rest\n}: SubLabelProps<E>): JSX.Element => {\n  const Element: React.ElementType = as || defaultElement;\n  return (\n    <Element\n      className={classNames(\n        'eds-sub-label',\n        {\n          [`eds-sub-label--margin-top`]: margin === 'top',\n          [`eds-sub-label--margin-bottom`]: margin === 'bottom',\n          [`eds-sub-label--margin-none`]: margin === 'none',\n        },\n        className,\n      )}\n      {...rest}\n    />\n  );\n};\n","import React from 'react';\nimport classNames from 'classnames';\nimport { PolymorphicComponentProps } from '@entur/utils';\n\nexport type SubParagraphOwnProps = {\n  /** HTML-elementet eller React-komponenten som rendres\n   * @default \"p\"\n   */\n  as?: string | React.ElementType;\n  /** Ekstra klassenavn */\n  className?: string;\n  /** Innholdet */\n  children: React.ReactNode;\n  /** Hvor du vil ha marginer\n   * @default \"both\"\n   */\n  margin?: 'top' | 'bottom' | 'both' | 'none';\n};\n\nexport type SubParagraphProps<\n  T extends React.ElementType = typeof defaultElement,\n> = PolymorphicComponentProps<T, SubParagraphOwnProps>;\n\nconst defaultElement = 'p';\n\nexport const SubParagraph = <\n  E extends React.ElementType = typeof defaultElement,\n>({\n  className,\n  margin,\n  as,\n  ...rest\n}: SubParagraphProps<E>): JSX.Element => {\n  const Element: React.ElementType = as || defaultElement;\n  return (\n    <Element\n      className={classNames(\n        'eds-sub-paragraph',\n        {\n          [`eds-sub-paragraph--margin-top`]: margin === 'top',\n          [`eds-sub-paragraph--margin-bottom`]: margin === 'bottom',\n          [`eds-sub-paragraph--margin-none`]: margin === 'none',\n        },\n        className,\n      )}\n      {...rest}\n    />\n  );\n};\n","import React from 'react';\nimport classNames from 'classnames';\n\nexport type UnorderedListProps = {\n  /** Ekstra klassenavn */\n  className?: string;\n  /** Innholdet */\n  children: React.ReactNode;\n} & React.DetailedHTMLProps<\n  React.HTMLAttributes<HTMLUListElement>,\n  HTMLUListElement\n>;\n\nexport const UnorderedList = ({ className, ...rest }: UnorderedListProps) => (\n  <ul className={classNames('eds-unordered-list', className)} {...rest} />\n);\n","import { warnAboutMissingStyles } from '@entur/utils';\nimport './index.scss';\n\nwarnAboutMissingStyles('typography');\n\nexport * from './Blockquote';\nexport * from './CodeText';\nexport * from './EmphasizedText';\nexport * from './Heading1';\nexport * from './Heading2';\nexport * from './Heading3';\nexport * from './Heading4';\nexport * from './Heading5';\nexport * from './Heading6';\nexport * from './Label';\nexport * from './LeadParagraph';\nexport * from './Link';\nexport * from './ListItem';\nexport * from './NumberedList';\nexport * from './Paragraph';\nexport * from './PreformattedText';\nexport * from './SmallText';\nexport * from './StrongText';\nexport * from './SubLabel';\nexport * from './SubParagraph';\nexport * from './UnorderedList';\n"],"names":["defaultElement"],"mappings":";;;;AAWO,MAAM,aAAa,CAAC,EAAE,WAAW,KAAK,GAAG,WAA4B;AAC1E,SACE;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAW,WAAW,kBAAkB,SAAS;AAAA,MACjD;AAAA,MACC,GAAG;AAAA,IAAA;AAAA,EAAA;AAGV;AAOO,MAAM,mBAAmB,CAAC;AAAA,EAC/B;AAAA,EACA,GAAG;AACL,MAA6B;AAC3B,SACE;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAW,WAAW,0BAA0B,SAAS;AAAA,MACxD,GAAG;AAAA,IAAA;AAAA,EAAA;AAGV;AClBA,MAAMA,mBAAiB;AAEhB,MAAM,WAAW,CAAsD;AAAA,EAC5E;AAAA,EACA;AAAA,EACA,GAAG;AACL,MAAqC;AACnC,QAAM,UAA6B,MAAMA;AACzC,SACE,oBAAC,WAAQ,WAAW,WAAW,iBAAiB,SAAS,GAAI,GAAG,MAAM;AAE1E;ACNA,MAAMA,mBAAiB;AAEhB,MAAM,iBAAiB,CAE5B;AAAA,EACA;AAAA,EACA,SAAS;AAAA,EACT;AAAA,EACA,GAAG;AACL,MAA2C;AACzC,QAAM,UAA6B,MAAMA;AACzC,SACE;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAW;AAAA,QACT;AAAA,QACA;AAAA,UACE,CAAC,iCAAiC,GAAG,WAAW;AAAA,UAChD,CAAC,oCAAoC,GAAG,WAAW;AAAA,UACnD,CAAC,kCAAkC,GAAG,WAAW;AAAA,QAAA;AAAA,QAEnD;AAAA,MAAA;AAAA,MA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