/* 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-public-runtime'; import { ExpandCollapseButtonDetails } from './components/ontario-accordion/expandCollapseButtonDetails.interface'; import { Accordion, AccordionChangeDetail } from './components/ontario-accordion/accordion.interface'; import { Language } from './utils/common/language-types'; import { HeadingContentType, HeadingLevelOptions, HighlightColourOptions, } from './utils/components/callout-aside/callout-aside.interface'; import { BackMode } from './components/ontario-back-button/ontario-back-button'; import { BadgeColour } from './components/ontario-badge/ontario-badge.types'; import { ButtonType, HtmlType } from './components/ontario-button/ontario-button.types'; import { HeadingLevel, Hint, HintContentType, MenuItem } from './utils/common/common.interface'; import { HeaderColour, HorizontalImagePositionType, HorizontalImageSizeType, LayoutDirection, } from './components/ontario-card/ontario-card-types'; import { CardsPerRow } from './components/ontario-card-collection/ontario-collection-card-types'; import { Caption } from './utils/common/input-caption/caption.interface'; import { HintExpander } from './components/ontario-hint-expander/hint-expander.interface'; import { CheckboxOption } from './components/ontario-checkbox/checkbox-option.interface'; import { InputFocusBlurEvent, InputInputEvent, InputInteractionEvent, RadioAndCheckboxChangeEvent, } from './utils/events/event-handler.interface'; import { DateInputFieldType, DateInputPlaceholder, DateValidatorReturnType, } from './components/ontario-date-input/ontario-date-input-interface'; import { DropdownOption } from './components/ontario-dropdown-list/dropdown-option.interface'; import { CaptionType } from './utils/common/input-caption/input-caption.types'; import { FooterLinks, OntarioFooterType, ThreeColumnOptions, TwoColumnOptions, } from './components/ontario-footer/ontario-footer-interface'; import { FooterSocialLinksProps } from './components/ontario-footer/components'; import { ApplicationHeaderInfo, HeaderMenuToggleDetail, LanguageToggleOptions, OntarioHeaderType, } from './components/ontario-header/ontario-header.interface'; import { IconColour, IconSize } from './components/ontario-icon/icon.types'; import { OntarioInPageNavigationHeadingLevel } from './components/ontario-in-page-navigation/ontario-in-page-navigation.types'; import { HeaderLanguageToggleEventDetails } from './utils/events/common-events.interface'; import { PageAlertType } from './components/ontario-page-alert/ontario-page-alert.types'; import { RadioOption } from './components/ontario-radio-buttons/radio-option.interface'; import { AutocompleteSuggestionSelectedEvent, Suggestion, } from './components/ontario-search-box/ontario-search-box.interface'; import { Segment } from './utils/components/search-box-autocomplete'; import { SummaryListActionLink, SummaryListColumnRatio, SummaryListHeadingLevel, } from './components/ontario-summary-list/ontario-summary-list-types'; import { TableColumnOptions, TableRowOptions } from './components/ontario-table/table.interface'; import { TaskStatus } from './utils/common/task-statuses.enum'; import { TaskHeadingLevel } from './components/ontario-task/ontario-task'; import { TaskListHeadingLevel } from './components/ontario-task-list/ontario-task-list'; export { ExpandCollapseButtonDetails } from './components/ontario-accordion/expandCollapseButtonDetails.interface'; export { Accordion, AccordionChangeDetail } from './components/ontario-accordion/accordion.interface'; export { Language } from './utils/common/language-types'; export { HeadingContentType, HeadingLevelOptions, HighlightColourOptions, } from './utils/components/callout-aside/callout-aside.interface'; export { BackMode } from './components/ontario-back-button/ontario-back-button'; export { BadgeColour } from './components/ontario-badge/ontario-badge.types'; export { ButtonType, HtmlType } from './components/ontario-button/ontario-button.types'; export { HeadingLevel, Hint, HintContentType, MenuItem } from './utils/common/common.interface'; export { HeaderColour, HorizontalImagePositionType, HorizontalImageSizeType, LayoutDirection, } from './components/ontario-card/ontario-card-types'; export { CardsPerRow } from './components/ontario-card-collection/ontario-collection-card-types'; export { Caption } from './utils/common/input-caption/caption.interface'; export { HintExpander } from './components/ontario-hint-expander/hint-expander.interface'; export { CheckboxOption } from './components/ontario-checkbox/checkbox-option.interface'; export { InputFocusBlurEvent, InputInputEvent, InputInteractionEvent, RadioAndCheckboxChangeEvent, } from './utils/events/event-handler.interface'; export { DateInputFieldType, DateInputPlaceholder, DateValidatorReturnType, } from './components/ontario-date-input/ontario-date-input-interface'; export { DropdownOption } from './components/ontario-dropdown-list/dropdown-option.interface'; export { CaptionType } from './utils/common/input-caption/input-caption.types'; export { FooterLinks, OntarioFooterType, ThreeColumnOptions, TwoColumnOptions, } from './components/ontario-footer/ontario-footer-interface'; export { FooterSocialLinksProps } from './components/ontario-footer/components'; export { ApplicationHeaderInfo, HeaderMenuToggleDetail, LanguageToggleOptions, OntarioHeaderType, } from './components/ontario-header/ontario-header.interface'; export { IconColour, IconSize } from './components/ontario-icon/icon.types'; export { OntarioInPageNavigationHeadingLevel } from './components/ontario-in-page-navigation/ontario-in-page-navigation.types'; export { HeaderLanguageToggleEventDetails } from './utils/events/common-events.interface'; export { PageAlertType } from './components/ontario-page-alert/ontario-page-alert.types'; export { RadioOption } from './components/ontario-radio-buttons/radio-option.interface'; export { AutocompleteSuggestionSelectedEvent, Suggestion, } from './components/ontario-search-box/ontario-search-box.interface'; export { Segment } from './utils/components/search-box-autocomplete'; export { SummaryListActionLink, SummaryListColumnRatio, SummaryListHeadingLevel, } from './components/ontario-summary-list/ontario-summary-list-types'; export { TableColumnOptions, TableRowOptions } from './components/ontario-table/table.interface'; export { TaskStatus } from './utils/common/task-statuses.enum'; export { TaskHeadingLevel } from './components/ontario-task/ontario-task'; export { TaskListHeadingLevel } from './components/ontario-task-list/ontario-task-list'; export namespace Components { /** * Ontario Accordion presents collapsible sections of content. * For component guidance, see: * - https://designsystem.ontario.ca/components/detail/accordions.html * - https://designsystem.ontario.ca/developer-docs/components/ontario-accordion/ */ interface OntarioAccordion { /** * Used to include individual accordion data for the accordion component. Accepts an array of Accordion (@see Accordion) items or a JSON string of that array. The `content` is rendered either as plain text or HTML depending on `accordionContentType`. * @see Accordion * * @example */ accordionData: string | Accordion[]; /** * Custom Expand/Collapse button text. * @example */ expandCollapseButton?: string | ExpandCollapseButtonDetails; /** * The language of the component. This is used for translations, and is by default set through event listeners checking for a language property from the header. If none are passed, it will default to English. */ language?: Language; /** * The name of the accordion component. This is not optional. */ name: string; } /** * Ontario Aside is used for related, non-essential information that supports content beside the main task flow. * For component selection guidance, see: * - https://designsystem.ontario.ca/components/detail/callouts-asides.html * - https://designsystem.ontario.ca/components/detail/page-alerts.html * - https://designsystem.ontario.ca/developer-docs/components/ontario-aside/ */ interface OntarioAside { /** * Optional text to be displayed as the content for the aside component. If a string is passed, it will automatically be nested in a paragraph tag. HTML content can also be passed as the child/children of the aside component if additional/different elements for the content are needed. * @example

This is the first sentence of the aside content.

This is the second sentence of the aside content.

*/ content?: string; /** * Text or HTML to be displayed as the heading of the aside. If the heading content should be displayed as HTML, the `headingContentType` needs to be set to `html`. */ headingContent?: string; /** * The type of the heading content. If no prop is passed, it will default to string. * @default 'string' */ headingContentType: HeadingContentType; /** * The heading level of the aside heading. */ headingType?: HeadingLevelOptions; /** * Optional prop to choose the border colour of the aside. If none is passed, the default colour will be teal. * @default 'teal' */ highlightColour?: HighlightColourOptions; } /** * Ontario Back Button renders a consistent, accessible back action shell. * This component is intentionally navigation-strategy agnostic. * Consumers choose whether back behaviour uses browser history, explicit href navigation, or event-only routing. * For component guidance, see: * - https://designsystem.ontario.ca/components/detail/back-button.html * - https://designsystem.ontario.ca/developer-docs/components/ontario-back-button/ */ interface OntarioBackButton { /** * Optional navigation strategy override: - `history`: emits event, then calls browser history back. - `href`: emits event, then navigates using `href`. - `event`: emits event only. When omitted, runtime mode is inferred: - uses `href` mode if `href` exists - otherwise defaults to `history` */ backMode?: BackMode; /** * Disables user interaction. Policy note: This is intended for temporary/transient states only (for example, save-in-progress or step-transition lock), not as a general-purpose way to gate back navigation in normal usage. Whether going back is actually valid should be determined by application logic/validation before this prop is ever set to `true`, not used as a substitute for that validation. * @default false */ disabled?: boolean; /** * Optional destination URL used by href mode. */ href?: string; /** * Optional visible text override for the back action. If not provided, translated defaults are used: - `Back` for English - `Retour` for French */ label?: string; /** * The language of the component. If no language is passed, it defaults to English (`en`). */ language?: Language; } /** * Ontario Back to Top helps users quickly return to the top of long pages. * For component guidance, see: * - https://designsystem.ontario.ca/components/detail/back-to-top.html * - https://designsystem.ontario.ca/developer-docs/components/ontario-back-to-top/ */ interface OntarioBackToTop { /** * The language of the component. This is used for translations, and is by default set through event listeners checking for a language property from the header. If no language prop is passed, it will default to English. */ language?: Language; } /** * Ontario Badge displays concise status labels and metadata. * For component guidance, see: * - https://designsystem.ontario.ca/components/detail/badges.html * - https://designsystem.ontario.ca/developer-docs/components/ontario-badge/ */ interface OntarioBadge { /** * An aria label for screen readers. Used to provide more context to screen readers if necessary. This property is optional. * @example In progress */ ariaLabelText?: string; /** * The colour of the badge. * @default 'teal' */ colour: BadgeColour; /** * The label for the badge. Offical guidance is to keep the label length within 15 characters. */ label: string; } /** * Ontario Blockquote displays quoted content with optional attribution. * For component guidance, see: * - https://designsystem.ontario.ca/components/detail/blockquote.html * - https://designsystem.ontario.ca/developer-docs/components/ontario-blockquote/ */ interface OntarioBlockquote { /** * Optional text to be displayed as the attribution (the author) of the quote. */ attribution?: string; /** * Optional text to be displayed for additional information about the attribution/author. */ byline?: string; /** * Text to be displayed as the quote. Note that wrapping the quotes in quotations is not needed - this is handled through the component styles */ quote: string; } /** * Ontario Button triggers actions and supports button or link behavior. * This component intentionally does not expose a `disabled` prop. * To support accessible and understandable form completion: * - keep actions available * - use validation and error messaging to guide corrections instead of disabling * For component guidance, see: * - https://designsystem.ontario.ca/components/detail/buttons.html * - https://designsystem.ontario.ca/developer-docs/components/ontario-button/ * Disabled/read-only policy source: * - https://designsystem.ontario.ca/components/detail/buttons.html#disabled-buttons */ interface OntarioButton { /** * Provides more context as to what the button interaction is doing. This should only be used for accessibility purposes, if the button interaction requires more description than what the text provides. This is optional. * @example Open */ ariaLabelText?: string; /** * The unique identifier of the button. This is optional - if no ID is passed, one will be generated. */ elementId?: string; /** * When provided, the component renders as a native anchor for navigation use cases. This takes precedence over `htmlType`, so form-submission behaviour is disabled in link mode. */ href?: string; /** * The native HTML button type the button should use. If no `htmlType` is passed, it will default to `'button'`. This prop only affects the component when it renders as a native `