Skip to content
Snippets Groups Projects
components.d.ts 74.8 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 {
  AccordionVariants,
Tuukka Turu's avatar
Tuukka Turu committed
  BreadcrumbVariants,
Markus Kaarto's avatar
Markus Kaarto committed
  ButtonVariants,
  CheckboxVariants,
  CourseVariants,
Ekaterina Kondareva's avatar
Ekaterina Kondareva committed
  CtaLinkButtonVariants,
  CtaLinkVariants,
Tuukka Turu's avatar
Tuukka Turu committed
  FooterLinkItemColor,
  FooterLinkVariants,
Markus Kaarto's avatar
Markus Kaarto committed
  GridAlignVariants,
  GridColumns,
  GridColumnsLg,
  GridColumnsSm,
  HeadingSectionVariants,
  HeadingVarians,
Tuukka Turu's avatar
Tuukka Turu committed
  HeroColorVariant,
  IntroductionBgColors,
  ListItemVariants,
Ekaterina Kondareva's avatar
Ekaterina Kondareva committed
  PaginationItemVariants,
  PersonCardVariants,
  ProcessFlowBoxStepStates,
  SiteLogoSize,
} from './utils/utils';
import {Breadcrumb} from './components/hy-breadcrumbs/hy-breadcrumbs';
import {TagValue} from './components/courses/hy-content-list-item/hy-content-list-item';
import {DesktopLinks} from './components/site-header/hy-desktop-menu-links/hy-desktop-menu-links';
import {IDropdownItem} from './components/hy-dropdown/hy-dropdown';
import {IFilterGroupFilter} from './components/hy-filter-group/hy-filter-group';
Tuukka Turu's avatar
Tuukka Turu committed
import {FooterBaseLinks, FooterBaseSome} from './components/footer/hy-footer-base/hy-footer-base';
import {FooterInfoLinks} from './components/footer/hy-footer-info/hy-footer-info';
druid's avatar
druid committed
import {ListItemValue} from './components/hy-general-list/hy-general-list';
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 {AdditionalInfo, RelatedLink} from './components/hy-list-item/hy-list-item';
import {MenuLanguage} from './components/navigation/menu-language/menu-language';
import {ComponentLabels} from './components/site-header/site-header';
druid's avatar
druid committed
import {MainMenu} from './components/hy-menu-main-group/hy-menu-main-group';
import {ProcessFlowBoxValue} from './components/process/process';
import {ShortcutLinkValue} from './components/hy-shortcuts/hy-shortcuts';
import {DesktopLinks as DesktopLinks1} from './components/site-header/site-header';
export namespace Components {
Markus Kaarto's avatar
Markus Kaarto committed
  interface ColorBox {}
  interface HyAccordionContainer {
    accordionid?: string;
  }
  interface HyAccordionItem {
    accordiontitle?: string;
druid's avatar
druid committed
    headerstyle: string;
    variant: AccordionVariants;
Markus Kaarto's avatar
Markus Kaarto committed
  }
    headerstyle: string;
    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 {
    headerstyle: string;
    isExternal: boolean;
Ekaterina Kondareva's avatar
Ekaterina Kondareva committed
    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;
    headerstyle: string;
Markus Kaarto's avatar
Markus Kaarto committed
    /**
     * Value for horisontal alignment (justify-content)
     */
    justify: string;
    /**
     * All sides margin value in rems. Responsive when given Comma separated values.
     */
    m?: string;
    /**
     * Bottom margin in rems. Responsive when given Comma separated values.
     */
    mb?: string;
    /**
     * Left margin in rems. Responsive when given Comma separated values.
     */
    ml?: string;
    /**
     * Right margin in rems. Responsive when given Comma separated values.
     */
    mr?: string;
    /**
     * Top margin in rems. Responsive when given Comma separated values.
     */
    mt?: string;
Markus Kaarto's avatar
Markus Kaarto committed
    /**
     * 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;
  }
Tuukka Turu's avatar
Tuukka Turu committed
  interface HyBreadcrumbs {
    dataItems: Breadcrumb[] | string;
    headerstyle: string;
    variant: BreadcrumbVariants;
  }
Markus Kaarto's avatar
Markus Kaarto committed
  interface HyButton {
    /**
     * Aria label for the element
     */
    ariaLabel?: string;
    /**
     * Custom classes added to button element.
     */
    buttonClasses: string;
    /**
     * Button type. Defaults to submit.
     */
    buttonType: string;
Markus Kaarto's avatar
Markus Kaarto committed
    /**
     * Use this to programmatically disable the button, matches the native button functionality
     */
    disabled: boolean;
    /**
     * Icon to use on the left side
     */
Markus Kaarto's avatar
Markus Kaarto committed
    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;
  }
druid's avatar
druid committed
    /**
     * Checked attribute
     */
    checkboxChecked: boolean;
    /**
     * Unique id for checkbox element
     */
    checkboxId: string | number;
    /**
     * Label for input to describe
     */
    /**
     * Value for input element
     */
    checkboxValue: string | number;
    /**
     * Variant to deifne what style of checkbox to use
     */
    variant: CheckboxVariants;
Ekaterina Kondareva's avatar
Ekaterina Kondareva committed
  interface HyContentList {
    creditsLabel: string;
Ekaterina Kondareva's avatar
Ekaterina Kondareva committed
    dataItems: string;
    linkLabel: string;
  }
  interface HyContentListItem {
    courseCode?: string;
    courseCredits?: string;
    courseEndDate?: string;
    courseEnrollmentLink?: string;
    courseLinkLabel?: string;
    courseName?: string;
Ekaterina Kondareva's avatar
Ekaterina Kondareva committed
    courseStartDate?: string;
    courseStudyFormat?: string;
    courseTags: TagValue[] | string;
    courseTeachingLanguage?: string;
    variant: CourseVariants;
  }
  interface HyCrisisBanner {
    bannerDescription?: string;
    bannerTitle: string;
    linkTitle?: string;
    linkUrl?: string;
  }
    headerstyle: string;
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;
Markus Kaarto's avatar
Markus Kaarto committed
  }
    isExternal: boolean;
    linkContent: string;
    scLabel?: string;
    url?: string;
    variant: CtaLinkVariants;
  interface HyDesktopMenuLinks {
    dataDesktopLinks: DesktopLinks[] | string;
  }
Markus Kaarto's avatar
Markus Kaarto committed
  interface HyDocsContainer {}
  interface HyDropdown {
    dropdownLabel: string;
    dropdownOptions: IDropdownItem[] | string;
  }
  interface HyDropdownPanel {
    isHidden: boolean;
  }
  interface HyDropdownPanelItem {
    dropdownItemId: string | number;
    dropdownItemLabel: string;
    dropdownItemValue: string | number;
    isLast?: boolean;
  }
  interface HyFilterGroup {
    filterGroupFilters: IFilterGroupFilter[] | string;
    filterGroupLabel: string;
  }
  interface HyFilterGroupItem {
    filterGroupItemId: string | number;
    filterGroupItemLabel: string;
  }
  interface HyFilterVisibilityTool {
    filterVisibilityToolType: 'toggle' | 'reset';
  }
  interface HyFilterVisibilityToolReset {}
  interface HyFilterVisibilityToolToggle {}
Tuukka Turu's avatar
Tuukka Turu committed
  interface HyFooter {}
  interface HyFooterAction {
    /**
     * Up button label.
     */
    upButtonLabel: string;
    /**
     * String of text for updated text to be displayed.
     */
    updatedText: string;
  }
  interface HyFooterBase {
    /**
     * Link item color
     */
    color: FooterLinkItemColor;
    /**
     * Copyright text
     */
    copyrightText: string;
    /**
     * Footer links to be displayed
     */
    dataFooterBaseLinks: FooterBaseLinks[] | string;
    /**
     * Footer some links
     */
    dataFooterBaseSome: FooterBaseSome[] | string;
    /**
     * Logo label
     */
    logoLabel?: string;
    /**
     * Logo url
     */
    logoUrl?: string;
    /**
     * Logo size
     */
    size: SiteLogoSize;
    /**
     * Label for some links
     */
    someLabel?: string;
  }
  interface HyFooterInfo {
    /**
     * Data for links to be displayed.
     */
    dataFooterInfoLinks: FooterInfoLinks[] | string;
    /**
     * Content area link button text.
     */
    linkText: string;
    /**
     * Content area link button url.
     */
    linkUrl: string;
    /**
     * Content area text.
     */
    textDescription: string;
    /**
     * Content area title.
     */
    textTitle: string;
  }
  interface HyFooterLinkItem {
    color: FooterLinkItemColor;
    isMobile: boolean;
    items: Array<any>;
    label: string;
    mainLink: boolean;
    url: string;
    variant: FooterLinkVariants;
Tuukka Turu's avatar
Tuukka Turu committed
  }
druid's avatar
druid committed
  interface HyGeneralList {
    dataItems: ListItemValue[] | string;
  }
druid's avatar
druid committed
  interface HyGeneralListItem {
    description?: string;
    imageAlt: string;
    imageUrl: string;
    itemTitle?: string;
    label?: string;
    type?: string;
    url?: string;
  }
Markus Kaarto's avatar
Markus Kaarto committed
  interface HyGridContainer {}
  interface HyGridItem {
    columns: GridColumns;
    columnslg: GridColumnsLg;
    columnssm: GridColumnsSm;
    contentalign: GridAlignVariants;
  }
  interface HyGridRow {}
  interface HyHeading {
    headerstyle: string;
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;
    headerstyle: string;
Tuukka Turu's avatar
Tuukka Turu committed
    heading: string;
    image: string;
    isExternal: boolean;
Tuukka Turu's avatar
Tuukka Turu committed
    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 {
    headerstyle: string;
  }
  interface HyIntroduction {
Tuukka Turu's avatar
Tuukka Turu committed
    headerstyle: string;
    imageUrl?: string;
    isExternal: boolean;
    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;
    headerstyle: string;
  }
  interface HyKeyHighlight {
    description: string;
    heading: string;
    variant: KeyHighlightVariants;
  }
  interface HyKeyHighlightGroup {
    dataItems: KeyHighlightValue[] | string;
    headerstyle: string;
  interface HyLargeProcessFlow {
    dataItems: ProcessFlowValue[] | string;
    headerstyle: 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 {
Ekaterina Kondareva's avatar
Ekaterina Kondareva committed
    headerstyle: string;
Markus Kaarto's avatar
Markus Kaarto committed
    imageAlt: string;
    imageUrl: string;
    isExternal: boolean;
    scLabel?: string;
Markus Kaarto's avatar
Markus Kaarto committed
    textDescription: string;
    textTitle?: string;
    url?: string;
    variant: LinkBoxVariants;
  }
  interface HyLinkBoxList {
    dataItems: LinkBox[] | string;
    headerstyle: string;
Markus Kaarto's avatar
Markus Kaarto committed
  }
  interface HyLinkList {
    dataItems: CtaLinkValue[] | string;
    headerstyle: string;
    listHeading: string;
  }
    additionalInfo?: AdditionalInfo[] | string;
    headerstyle: string;
    imageLabel?: string;
    itemDescription?: any;
    itemImageAlt?: string;
    itemImageUrl?: string;
    itemTitle?: string;
    itemType?: string;
    outGoingUrlLabel?: string;
    relatedLinks?: RelatedLink[] | string;
    relatedLinksBlockTitle?: string;
Loading
Loading full blame...