import * as solid_js from 'solid-js'; import { ValidComponent, JSX, Component, Accessor, Setter } from 'solid-js'; import { ElementOf, PolymorphicProps } from './polymorphic/index.js'; import { d as ButtonRootRenderProps } from './button-root-da654b3e.js'; interface PaginationEllipsisOptions { } interface PaginationEllipsisCommonProps { } interface PaginationEllipsisRenderProps extends PaginationEllipsisCommonProps { } type PaginationEllipsisProps = PaginationEllipsisOptions & Partial>>; declare function PaginationEllipsis(props: PolymorphicProps>): solid_js.JSX.Element; interface PaginationItemOptions { /** The page number of this item. (1-indexed) */ page: number; } interface PaginationItemCommonProps { onClick: JSX.EventHandlerUnion; } interface PaginationItemRenderProps extends PaginationItemCommonProps, ButtonRootRenderProps { "aria-current": "page" | undefined; "data-current": "" | undefined; } type PaginationItemProps = PaginationItemOptions & Partial>>; declare function PaginationItem(props: PolymorphicProps>): JSX.Element; interface PaginationItemsProps { } declare function PaginationItems(props: PaginationItemsProps): solid_js.JSX.Element; interface PaginationNextOptions { } interface PaginationNextCommonProps { onClick: JSX.EventHandlerUnion; } interface PaginationNextRenderProps extends PaginationNextCommonProps, ButtonRootRenderProps { } type PaginationNextProps = PaginationNextOptions & Partial>>; declare function PaginationNext(props: PolymorphicProps>): JSX.Element; interface PaginationPreviousOptions { } interface PaginationPreviousCommonProps { onClick: JSX.EventHandlerUnion; } interface PaginationPreviousRenderProps extends PaginationPreviousCommonProps, ButtonRootRenderProps { } type PaginationPreviousProps = PaginationPreviousOptions & Partial>>; declare function PaginationPrevious(props: PolymorphicProps>): JSX.Element; interface PaginationRootOptions { /** The controlled page number of the pagination. (1-indexed) */ page?: number; /** * The default page number when initially rendered. (1-indexed) * Useful when you do not need to control the page number. */ defaultPage?: number; /** Event handler called when the page number changes. */ onPageChange?: (page: number) => void; /** The number of pages for the pagination. */ count: number; /** The number of siblings to show around the current page item. */ siblingCount?: number; /** Whether to always show the first page item. */ showFirst?: boolean; /** Whether to always show the last page item. */ showLast?: boolean; /** * Whether to always show the same number of items (to avoid content shift). * Special value: "no-ellipsis" does not count the ellipsis as an item (used when ellipsis are disabled). */ fixedItems?: boolean | "no-ellipsis"; /** The component to render as an item in the `Pagination.List`. */ itemComponent: Component<{ page: number; }>; /** The component to render as an ellipsis item in the `Pagination.List`. */ ellipsisComponent: () => JSX.Element; /** Whether the pagination is disabled. */ disabled?: boolean; } interface PaginationRootCommonProps { id: string; children: JSX.Element; } interface PaginationRootRenderProps extends PaginationRootCommonProps { "data-disabled": "" | undefined; } type PaginationRootProps = PaginationRootOptions & Partial>>; /** * A list of page number that allows users to change the current page. */ declare function PaginationRoot(props: PolymorphicProps>): JSX.Element; interface PaginationContextValue { count: Accessor; siblingCount: Accessor; showFirst: Accessor; showLast: Accessor; fixedItems: Accessor; isDisabled: Accessor; renderItem: (page: number) => JSX.Element; renderEllipsis: () => JSX.Element; page: Accessor; setPage: Setter; } declare function usePaginationContext(): PaginationContextValue; declare const Pagination: typeof PaginationRoot & { Ellipsis: typeof PaginationEllipsis; Item: typeof PaginationItem; Items: typeof PaginationItems; Next: typeof PaginationNext; Previous: typeof PaginationPrevious; }; declare const index_Pagination: typeof Pagination; type index_PaginationContextValue = PaginationContextValue; type index_PaginationEllipsisCommonProps = PaginationEllipsisCommonProps; type index_PaginationEllipsisOptions = PaginationEllipsisOptions; type index_PaginationEllipsisProps = PaginationEllipsisProps; type index_PaginationEllipsisRenderProps = PaginationEllipsisRenderProps; type index_PaginationItemCommonProps = PaginationItemCommonProps; type index_PaginationItemOptions = PaginationItemOptions; type index_PaginationItemProps = PaginationItemProps; type index_PaginationItemRenderProps = PaginationItemRenderProps; type index_PaginationItemsProps = PaginationItemsProps; type index_PaginationNextCommonProps = PaginationNextCommonProps; type index_PaginationNextOptions = PaginationNextOptions; type index_PaginationNextProps = PaginationNextProps; type index_PaginationNextRenderProps = PaginationNextRenderProps; type index_PaginationPreviousCommonProps = PaginationPreviousCommonProps; type index_PaginationPreviousOptions = PaginationPreviousOptions; type index_PaginationPreviousProps = PaginationPreviousProps; type index_PaginationPreviousRenderProps = PaginationPreviousRenderProps; type index_PaginationRootCommonProps = PaginationRootCommonProps; type index_PaginationRootOptions = PaginationRootOptions; type index_PaginationRootProps = PaginationRootProps; type index_PaginationRootRenderProps = PaginationRootRenderProps; declare const index_usePaginationContext: typeof usePaginationContext; declare namespace index { export { PaginationEllipsis as Ellipsis, PaginationItem as Item, PaginationItems as Items, PaginationNext as Next, index_Pagination as Pagination, index_PaginationContextValue as PaginationContextValue, index_PaginationEllipsisCommonProps as PaginationEllipsisCommonProps, index_PaginationEllipsisOptions as PaginationEllipsisOptions, index_PaginationEllipsisProps as PaginationEllipsisProps, index_PaginationEllipsisRenderProps as PaginationEllipsisRenderProps, index_PaginationItemCommonProps as PaginationItemCommonProps, index_PaginationItemOptions as PaginationItemOptions, index_PaginationItemProps as PaginationItemProps, index_PaginationItemRenderProps as PaginationItemRenderProps, index_PaginationItemsProps as PaginationItemsProps, index_PaginationNextCommonProps as PaginationNextCommonProps, index_PaginationNextOptions as PaginationNextOptions, index_PaginationNextProps as PaginationNextProps, index_PaginationNextRenderProps as PaginationNextRenderProps, index_PaginationPreviousCommonProps as PaginationPreviousCommonProps, index_PaginationPreviousOptions as PaginationPreviousOptions, index_PaginationPreviousProps as PaginationPreviousProps, index_PaginationPreviousRenderProps as PaginationPreviousRenderProps, index_PaginationRootCommonProps as PaginationRootCommonProps, index_PaginationRootOptions as PaginationRootOptions, index_PaginationRootProps as PaginationRootProps, index_PaginationRootRenderProps as PaginationRootRenderProps, PaginationPrevious as Previous, PaginationRoot as Root, index_usePaginationContext as usePaginationContext, }; } export { PaginationRoot as A, Pagination as B, usePaginationContext as C, PaginationContextValue as D, PaginationEllipsisOptions as P, PaginationEllipsisCommonProps as a, PaginationEllipsisRenderProps as b, PaginationEllipsisProps as c, PaginationItemOptions as d, PaginationItemCommonProps as e, PaginationItemRenderProps as f, PaginationItemProps as g, PaginationItemsProps as h, index as i, PaginationNextOptions as j, PaginationNextCommonProps as k, PaginationNextRenderProps as l, PaginationNextProps as m, PaginationPreviousOptions as n, PaginationPreviousCommonProps as o, PaginationPreviousRenderProps as p, PaginationPreviousProps as q, PaginationRootOptions as r, PaginationRootCommonProps as s, PaginationRootRenderProps as t, PaginationRootProps as u, PaginationEllipsis as v, PaginationItem as w, PaginationItems as x, PaginationNext as y, PaginationPrevious as z };