Skip to content
Snippets Groups Projects
components.d.ts 39.5 KiB
Newer Older
/* eslint-disable */
/* tslint:disable */
/**
 * This is an autogenerated file created by the Stencil compiler.
 * It contains typing information for all components that exist in this project.
 */
import {HTMLStencilElement, JSXBase} from '@stencil/core/internal';
Markus Kaarto's avatar
Markus Kaarto committed
import {
  ButtonVariants,
Ekaterina Kondareva's avatar
Ekaterina Kondareva committed
  CtaLinkButtonVariants,
  CtaLinkVariants,
Markus Kaarto's avatar
Markus Kaarto committed
  GridAlignVariants,
  GridColumns,
  GridColumnsLg,
  GridColumnsSm,
  HeadingSectionVariants,
  HeadingVarians,
Tuukka Turu's avatar
Tuukka Turu committed
  HeroColorVariant,
  IntroductionBgColors,
  ProcessFlowBoxStepStates,
  SiteLogoSize,
} from './utils/utils';
import {KeyFigureValue} from './components/hy-key-figure-group/hy-key-figure-group';
import {KeyHighlightValue} from './components/hy-key-highlight-group/hy-key-highlight-group';
import {ProcessFlowValue} from './components/hy-large-process-flow/hy-large-process-flow';
import {PhaseValue} from './components/hy-large-process-flow-phase/hy-large-process-flow-phase';
import {LinkBox} from './components/link-box-list/link-box-list';
import {CtaLinkValue} from './components/hy-link-list/hy-link-list';
import {MenuLanguage} from './components/navigation/menu-language/menu-language';
import {ComponentLabels} from './components/site-header/site-header';
import {ProcessFlowBoxValue} from './components/process/process';
import {ShortcutLinkValue} from './components/hy-shortcuts/hy-shortcuts';
export namespace Components {
Markus Kaarto's avatar
Markus Kaarto committed
  interface ColorBox {}
  interface HyAccordionContainer {
    accordionid?: string;
  }
  interface HyAccordionItem {
    accordiontitle?: string;
  }
  interface HyAdjacentImageText {
    imageAlt: string;
    imageUrl: string;
    mainUrl?: string;
    mainUrl2?: string;
    mainUrlAriaLabel?: string;
    mainUrlAriaLabel2?: string;
    mainUrlIsExternal: boolean;
    mainUrlIsExternal2: boolean;
    mainUrlTitle?: string;
    mainUrlTitle2?: string;
    textDescription: string;
    textTitle?: string;
  }
Markus Kaarto's avatar
Markus Kaarto committed
  interface HyBadge {
    variant: 'primary' | 'warn' | 'success' | 'disabled';
Markus Kaarto's avatar
Markus Kaarto committed
  }
Ekaterina Kondareva's avatar
Ekaterina Kondareva committed
  interface HyBanner {
    scLabel?: string;
    textDescription: string;
    textTitle?: string;
    url?: string;
    urlTitle?: string;
  }
Markus Kaarto's avatar
Markus Kaarto committed
  interface HyBaseline {
    /**
     * Top margin to be added to all but first element. Amount of rem:s
     */
Markus Kaarto's avatar
Markus Kaarto committed
    margin: number;
  }
  interface HyBox {
    /**
     * value for vertical alignment (align-items)
     */
    align: string;
    /**
     * background color. Must use one of css variable names from color tokens
     */
Markus Kaarto's avatar
Markus Kaarto committed
    /**
     * fixed height for the container, useful for extra spacing containers
     */
    h?: number;
    /**
     * Value for horisontal alignment (justify-content)
     */
    justify: string;
    /**
     * All sides padding value in rems. Responsive when given Comma separated values.
     */
    p?: string;
    /**
     * Bottom padding in rems. Responsive when given Comma separated values.
     */
    pb?: string;
    /**
     * Left padding in rems. Responsive when given Comma separated values.
     */
    pl?: string;
    /**
     * Right padding in rems. Responsive when given Comma separated values.
     */
    pr?: string;
    /**
     * Top padding in rems. Responsive when given Comma separated values.
     */
    pt?: string;
    /**
     * Responsive width. Must be a comma separated string of percentage values for breakpoints. First item is the default value.
     */
    width: string;
  }
  interface HyBoxContainer {
    /**
     * Should the container have a max width of 90rems
     */
    maxWidth: boolean;
    /**
     * Should the items wrap to new rows.
     */
    wrap: boolean;
  }
Markus Kaarto's avatar
Markus Kaarto committed
  interface HyButton {
    /**
     * Aria label for the element
     */
    ariaLabel?: string;
    /**
     * Use this to programmatically disable the button, matches the native button functionality
     */
    disabled: boolean;
    /**
     * Icon to use on the left side
     */
    icon?: string;
    /**
     * Icon to use on the right side
     */
    iconRight?: string;
    /**
     * Use only with url property. Sets the
     */
    isExternal?: boolean;
    /**
     * Size (height) of the button. Normal: 44px, large: 48px
     */
    size: 'normal' | 'large';
Markus Kaarto's avatar
Markus Kaarto committed
    /**
     * deprecated, use disabled boolean value
     */
    state: 'enabled' | 'disabled';
Markus Kaarto's avatar
Markus Kaarto committed
    /**
     * Set this on if an anchor tag is required instead of a button.
     */
    url?: string;
    /**
     * The element variant. Defaults to primary
     */
    variant: ButtonVariants;
  }
Markus Kaarto's avatar
Markus Kaarto committed
    isExternal: boolean;
    linkContent: string;
Markus Kaarto's avatar
Markus Kaarto committed
    url?: string;
Ekaterina Kondareva's avatar
Ekaterina Kondareva committed
    variant: CtaLinkButtonVariants;
  interface HyCtaLink {
    isExternal: boolean;
    linkContent: string;
    scLabel?: string;
    url?: string;
    variant: CtaLinkVariants;
Markus Kaarto's avatar
Markus Kaarto committed
  interface HyDocsContainer {}
  interface HyGridContainer {}
  interface HyGridItem {
    columns: GridColumns;
    columnslg: GridColumnsLg;
    columnssm: GridColumnsSm;
    contentalign: GridAlignVariants;
  }
  interface HyGridRow {}
  interface HyHeading {
Markus Kaarto's avatar
Markus Kaarto committed
    heading: HeadingVarians;
Markus Kaarto's avatar
Markus Kaarto committed
    negative: boolean;
Markus Kaarto's avatar
Markus Kaarto committed
    section: HeadingSectionVariants;
  }
Tuukka Turu's avatar
Tuukka Turu committed
  interface HyHero {
    colorVariant: HeroColorVariant;
    description: string;
    heading: string;
    image: string;
    scLabel?: string;
    url: string;
    urlTitle: string;
  }
Markus Kaarto's avatar
Markus Kaarto committed
  interface HyIcon {
    fill: string;
    icon: string;
    size: number;
  }
  interface HyImage {
    aspectRatioHeight: number;
    aspectRatioWidth: number;
    caption: string;
    imageAlt: string;
    imageUrl?: string;
  }
  interface HyIngress {}
  interface HyIntroduction {
    imageUrl?: string;
    reversed: boolean;
    scLabel?: string;
    textDescription: string;
    textTitle?: string;
    url?: string;
    urlTitle?: string;
    variant: IntroductionBgColors;
  }
  interface HyKeyFigure {
    description: string;
    heading: string;
    variant: KeyHighlightVariants;
  }
  interface HyKeyFigureGroup {
    dataItems: KeyFigureValue[] | string;
  }
  interface HyKeyHighlight {
    description: string;
    heading: string;
    variant: KeyHighlightVariants;
  }
  interface HyKeyHighlightGroup {
    dataItems: KeyHighlightValue[] | string;
    variant: KeyHighlightVariants;
  }
  interface HyLargeProcessFlow {
    dataItems: ProcessFlowValue[] | string;
  }
  interface HyLargeProcessFlowPhase {
    dataItems: PhaseValue[] | string;
  }
Markus Kaarto's avatar
Markus Kaarto committed
  interface HyLink {
    isExternal: boolean;
    linkContent: string;
Markus Kaarto's avatar
Markus Kaarto committed
    url?: string;
    variant: LinkVariants;
  }
  interface HyLinkBox {
    imageAlt: string;
    imageUrl: string;
    isExternal: boolean;
    textDescription: string;
    textTitle?: string;
    url?: string;
    variant: LinkBoxVariants;
  }
  interface HyLinkBoxList {
    dataItems: LinkBox[] | string;
    variant: LinkBoxVariants;
Markus Kaarto's avatar
Markus Kaarto committed
  }
  interface HyLinkList {
    dataItems: CtaLinkValue[] | string;
    listHeading: string;
  }
Ekaterina Kondareva's avatar
Ekaterina Kondareva committed
  interface HyMain {
    hasSidebar: boolean;
  }
Loading
Loading full blame...