@public-ui/components
Version:
Contains all web components that belong to KoliBri - The accessible HTML-Standard.
20 lines (19 loc) • 1.1 kB
TypeScript
import type { Generic } from 'adopted-style-sheets';
import type { PropCollapsible, PropHasCompactButton, PropHasIconsWhenExpanded, PropHideLabel, PropLabel } from '../props';
import type { ButtonOrLinkOrTextWithChildrenProps, Orientation, Stringified } from '../types';
type RequiredProps = {
links: Stringified<ButtonOrLinkOrTextWithChildrenProps[]>;
} & PropLabel;
type OptionalProps = {
orientation: Orientation;
} & PropCollapsible & PropHasCompactButton & PropHideLabel & PropHasIconsWhenExpanded;
type RequiredStates = {
links: ButtonOrLinkOrTextWithChildrenProps[];
orientation: Orientation;
expandedChildren: ButtonOrLinkOrTextWithChildrenProps[][];
} & PropCollapsible & PropHasCompactButton & PropLabel & PropHideLabel & PropHasIconsWhenExpanded;
type OptionalStates = NonNullable<unknown>;
export type NavProps = Generic.Element.Members<RequiredProps, OptionalProps>;
export type NavStates = Generic.Element.Members<RequiredStates, OptionalStates>;
export type NavAPI = Generic.Element.ComponentApi<RequiredProps, OptionalProps, RequiredStates, OptionalStates>;
export {};