import * as solid_js from 'solid-js'; import { Accessor, ValidComponent, JSX, Setter } from 'solid-js'; import { Orientation } from '@kobalte/utils'; import { ElementOf, PolymorphicProps } from './polymorphic/index.js'; import { b as CollectionBase, a as CollectionNode } from './types-f8ae18e5.js'; import { f as SingleSelection, L as ListState } from './create-list-state-d9a0f1f2.js'; interface CreateSingleSelectListStateProps extends CollectionBase, Omit { /** Filter function to generate a filtered list of nodes. */ filter?: (nodes: Iterable) => Iterable; } interface SingleSelectListState extends ListState { /** The value of the currently selected item. */ selectedItem: Accessor; /** The key for the currently selected item. */ selectedKey: Accessor; /** Sets the selected key. */ setSelectedKey(key: string): void; } /** * Provides state management for list-like components with single selection. * Handles building a collection of items from props, and manages selection state. */ declare function createSingleSelectListState(props: CreateSingleSelectListStateProps): SingleSelectListState; interface TabsContentOptions { /** The unique key that associates the tab panel with a tab. */ value: string; /** * Used to force mounting when more control is needed. * Useful when controlling animation with SolidJS animation libraries. */ forceMount?: boolean; } interface TabsContentCommonProps { id: string; ref: T | ((el: T) => void); } interface TabsContentRenderProps extends TabsContentCommonProps { role: "tabpanel"; tabIndex: number | undefined; "aria-labelledby": string | undefined; "data-orientation": Orientation; "data-selected": string | undefined; } type TabsContentProps = TabsContentOptions & Partial>>; /** * Contains the content associated with a tab trigger. */ declare function TabsContent(props: PolymorphicProps>): solid_js.JSX.Element; interface TabsIndicatorOptions { } interface TabsIndicatorCommonProps { style?: JSX.CSSProperties | string; } interface TabsIndicatorRenderProps extends TabsIndicatorCommonProps { role: "presentation"; "data-orientation": Orientation; } type TabsIndicatorProps = TabsIndicatorOptions & Partial>>; /** * The visual indicator displayed at the bottom of the tab list to indicate the selected tab. * It provides the base style needed to display a smooth transition to the new selected tab. */ declare function TabsIndicator(props: PolymorphicProps>): JSX.Element; interface TabsListOptions { } interface TabsListCommonProps { ref: T | ((el: T) => void); onKeyDown: JSX.EventHandlerUnion; onMouseDown: JSX.EventHandlerUnion; onFocusIn: JSX.EventHandlerUnion; onFocusOut: JSX.EventHandlerUnion; } interface TabsListRenderProps extends TabsListCommonProps { role: "tablist"; "aria-orientation": Orientation; "data-orientation": Orientation; } type TabsListProps = TabsListOptions & Partial>>; /** * Contains the tabs that are aligned along the edge of the active tab panel. */ declare function TabsList(props: PolymorphicProps>): JSX.Element; type TabsActivationMode = "automatic" | "manual"; interface TabsRootOptions { /** The controlled value of the tab to activate. */ value?: string; /** * The value of the tab that should be active when initially rendered. * Useful when you do not need to control the state. */ defaultValue?: string; /** Event handler called when the value changes. */ onChange?: (value: string) => void; /** The orientation of the tabs. */ orientation?: Orientation; /** Whether tabs are activated automatically on focus or manually. */ activationMode?: TabsActivationMode; /** Whether the tabs are disabled. */ disabled?: boolean; } interface TabsRootCommonProps { id?: string; } interface TabsRootRenderProps extends TabsRootCommonProps { "data-orientation": Orientation; } type TabsRootProps = TabsRootOptions & Partial>>; /** * A set of layered sections of content, known as tab panels, that display one panel of content at a time. * `Tabs` contains all the parts of a tabs component and provide context for its children. */ declare function TabsRoot(props: PolymorphicProps>): solid_js.JSX.Element; interface TabsTriggerOptions { /** The unique key that associates the tab with a tab panel. */ value: string; /** Whether the tab should be disabled. */ disabled?: boolean; } interface TabsTriggerCommonProps { id: string; ref: T | ((el: T) => void); type: "button"; onPointerDown: JSX.EventHandlerUnion; onPointerUp: JSX.EventHandlerUnion; onClick: JSX.EventHandlerUnion; onKeyDown: JSX.EventHandlerUnion; onMouseDown: JSX.EventHandlerUnion; onFocus: JSX.EventHandlerUnion; } interface TabsTriggerRenderProps extends TabsTriggerCommonProps { role: "tab"; tabIndex: number | undefined; disabled: boolean; "aria-selected": boolean; "aria-disabled": boolean | undefined; "aria-controls": string | undefined; "data-key": string | undefined; "data-orientation": Orientation; "data-selected": string | undefined; "data-highlighted": string | undefined; "data-disabled": string | undefined; } type TabsTriggerProps = TabsTriggerOptions & Partial>>; /** * The button that activates its associated tab panel. */ declare function TabsTrigger(props: PolymorphicProps>): JSX.Element; interface TabsContextValue { isDisabled: Accessor; orientation: Accessor; activationMode: Accessor; triggerIdsMap: Accessor>; contentIdsMap: Accessor>; listState: Accessor; selectedTab: Accessor; setSelectedTab: Setter; generateTriggerId: (value: string) => string; generateContentId: (value: string) => string; } declare function useTabsContext(): TabsContextValue; declare const Tabs: typeof TabsRoot & { Content: typeof TabsContent; Indicator: typeof TabsIndicator; List: typeof TabsList; Trigger: typeof TabsTrigger; }; declare const index_Tabs: typeof Tabs; type index_TabsContentCommonProps = TabsContentCommonProps; type index_TabsContentOptions = TabsContentOptions; type index_TabsContentProps = TabsContentProps; type index_TabsContentRenderProps = TabsContentRenderProps; type index_TabsContextValue = TabsContextValue; type index_TabsIndicatorCommonProps = TabsIndicatorCommonProps; type index_TabsIndicatorOptions = TabsIndicatorOptions; type index_TabsIndicatorProps = TabsIndicatorProps; type index_TabsIndicatorRenderProps = TabsIndicatorRenderProps; type index_TabsListCommonProps = TabsListCommonProps; type index_TabsListOptions = TabsListOptions; type index_TabsListProps = TabsListProps; type index_TabsListRenderProps = TabsListRenderProps; type index_TabsRootCommonProps = TabsRootCommonProps; type index_TabsRootOptions = TabsRootOptions; type index_TabsRootProps = TabsRootProps; type index_TabsRootRenderProps = TabsRootRenderProps; type index_TabsTriggerCommonProps = TabsTriggerCommonProps; type index_TabsTriggerOptions = TabsTriggerOptions; type index_TabsTriggerProps = TabsTriggerProps; type index_TabsTriggerRenderProps = TabsTriggerRenderProps; declare const index_useTabsContext: typeof useTabsContext; declare namespace index { export { TabsContent as Content, TabsIndicator as Indicator, TabsList as List, TabsRoot as Root, index_Tabs as Tabs, index_TabsContentCommonProps as TabsContentCommonProps, index_TabsContentOptions as TabsContentOptions, index_TabsContentProps as TabsContentProps, index_TabsContentRenderProps as TabsContentRenderProps, index_TabsContextValue as TabsContextValue, index_TabsIndicatorCommonProps as TabsIndicatorCommonProps, index_TabsIndicatorOptions as TabsIndicatorOptions, index_TabsIndicatorProps as TabsIndicatorProps, index_TabsIndicatorRenderProps as TabsIndicatorRenderProps, index_TabsListCommonProps as TabsListCommonProps, index_TabsListOptions as TabsListOptions, index_TabsListProps as TabsListProps, index_TabsListRenderProps as TabsListRenderProps, index_TabsRootCommonProps as TabsRootCommonProps, index_TabsRootOptions as TabsRootOptions, index_TabsRootProps as TabsRootProps, index_TabsRootRenderProps as TabsRootRenderProps, index_TabsTriggerCommonProps as TabsTriggerCommonProps, index_TabsTriggerOptions as TabsTriggerOptions, index_TabsTriggerProps as TabsTriggerProps, index_TabsTriggerRenderProps as TabsTriggerRenderProps, TabsTrigger as Trigger, index_useTabsContext as useTabsContext, }; } export { Tabs as A, useTabsContext as B, CreateSingleSelectListStateProps as C, TabsContextValue as D, SingleSelectListState as S, TabsContentOptions as T, TabsContentCommonProps as a, TabsContentRenderProps as b, createSingleSelectListState as c, TabsContentProps as d, TabsIndicatorOptions as e, TabsIndicatorCommonProps as f, TabsIndicatorRenderProps as g, TabsIndicatorProps as h, index as i, TabsListOptions as j, TabsListCommonProps as k, TabsListRenderProps as l, TabsListProps as m, TabsRootOptions as n, TabsRootCommonProps as o, TabsRootRenderProps as p, TabsRootProps as q, TabsTriggerOptions as r, TabsTriggerCommonProps as s, TabsTriggerRenderProps as t, TabsTriggerProps as u, TabsContent as v, TabsIndicator as w, TabsList as x, TabsRoot as y, TabsTrigger as z };