1 | import type { Assign, CollectionItem } from "@ark-ui/react";
|
2 | import { Select as ArkSelect } from "@ark-ui/react/select";
|
3 | import type { JSX } from "react";
|
4 | import { type HTMLChakraProps, type SlotRecipeProps, type UnstyledProp } from "../../styled-system";
|
5 | declare const useSelectStyles: () => Record<string, import("../..").SystemStyleObject>;
|
6 | export { useSelectStyles };
|
7 | export interface SelectRootProviderBaseProps<T extends CollectionItem = any> extends Assign<ArkSelect.RootProviderBaseProps<T>, SlotRecipeProps<"select">>, UnstyledProp {
|
8 | }
|
9 | export interface SelectRootProviderProps<T extends CollectionItem = any> extends HTMLChakraProps<"div", SelectRootProviderBaseProps<T>> {
|
10 | }
|
11 | interface SelectRootProviderComponent {
|
12 | <T extends CollectionItem>(props: SelectRootProviderProps<T>): JSX.Element;
|
13 | }
|
14 | export declare const SelectRootProvider: SelectRootProviderComponent;
|
15 | export interface SelectRootBaseProps<T extends CollectionItem = any> extends Assign<ArkSelect.RootBaseProps<T>, SlotRecipeProps<"select">>, UnstyledProp {
|
16 | }
|
17 | export interface SelectRootProps<T extends CollectionItem = any> extends HTMLChakraProps<"div", SelectRootBaseProps<T>> {
|
18 | }
|
19 | export interface SelectRootComponent {
|
20 | <T extends CollectionItem>(props: SelectRootProps<T> & React.RefAttributes<HTMLDivElement>): JSX.Element;
|
21 | }
|
22 | export declare const SelectRoot: SelectRootComponent;
|
23 | export declare const SelectPropsProvider: React.Provider<SelectRootBaseProps>;
|
24 | export interface SelectTriggerProps extends HTMLChakraProps<"button", ArkSelect.TriggerBaseProps> {
|
25 | }
|
26 | export declare const SelectTrigger: import("react").ForwardRefExoticComponent<SelectTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
27 | export interface SelectPositionerProps extends HTMLChakraProps<"div", ArkSelect.PositionerBaseProps> {
|
28 | }
|
29 | export declare const SelectPositioner: import("react").ForwardRefExoticComponent<SelectPositionerProps & import("react").RefAttributes<HTMLDivElement>>;
|
30 | export interface SelectContentProps extends HTMLChakraProps<"div", ArkSelect.ContentBaseProps> {
|
31 | }
|
32 | export declare const SelectContent: import("react").ForwardRefExoticComponent<SelectContentProps & import("react").RefAttributes<HTMLDivElement>>;
|
33 | export interface SelectValueTextProps extends HTMLChakraProps<"span", ArkSelect.ValueTextBaseProps> {
|
34 | }
|
35 | export declare const SelectValueText: import("react").ForwardRefExoticComponent<SelectValueTextProps & import("react").RefAttributes<HTMLSpanElement>>;
|
36 | export interface SelectClearTriggerProps extends HTMLChakraProps<"button", ArkSelect.ClearTriggerBaseProps> {
|
37 | }
|
38 | export declare const SelectClearTrigger: import("react").ForwardRefExoticComponent<SelectClearTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
39 | export interface SelectItemGroupProps extends HTMLChakraProps<"div", ArkSelect.ItemGroupBaseProps> {
|
40 | }
|
41 | export declare const SelectItemGroup: import("react").ForwardRefExoticComponent<SelectItemGroupProps & import("react").RefAttributes<HTMLDivElement>>;
|
42 | export interface SelectItemGroupLabelProps extends HTMLChakraProps<"div", ArkSelect.ItemGroupLabelBaseProps> {
|
43 | }
|
44 | export declare const SelectItemGroupLabel: import("react").ForwardRefExoticComponent<SelectItemGroupLabelProps & import("react").RefAttributes<HTMLDivElement>>;
|
45 | export interface SelectItemProps extends HTMLChakraProps<"div", ArkSelect.ItemBaseProps> {
|
46 | }
|
47 | export declare const SelectItem: import("react").ForwardRefExoticComponent<SelectItemProps & import("react").RefAttributes<HTMLDivElement>>;
|
48 | export interface SelectItemTextProps extends HTMLChakraProps<"div", ArkSelect.ItemTextBaseProps> {
|
49 | }
|
50 | export declare const SelectItemText: import("react").ForwardRefExoticComponent<SelectItemTextProps & import("react").RefAttributes<HTMLDivElement>>;
|
51 | export interface SelectItemIndicatorProps extends HTMLChakraProps<"div", ArkSelect.ItemIndicatorBaseProps> {
|
52 | }
|
53 | export declare const SelectItemIndicator: import("react").ForwardRefExoticComponent<SelectItemIndicatorProps & import("react").RefAttributes<HTMLDivElement>>;
|
54 | export interface SelectIndicatorGroupProps extends HTMLChakraProps<"div"> {
|
55 | }
|
56 | export declare const SelectIndicatorGroup: import("react").ForwardRefExoticComponent<SelectIndicatorGroupProps & import("react").RefAttributes<HTMLDivElement>>;
|
57 | export interface SelectIndicatorProps extends HTMLChakraProps<"div", ArkSelect.ItemIndicatorBaseProps> {
|
58 | }
|
59 | export declare const SelectIndicator: import("react").ForwardRefExoticComponent<SelectItemIndicatorProps & import("react").RefAttributes<HTMLDivElement>>;
|
60 | export interface SelectControlProps extends HTMLChakraProps<"div", ArkSelect.ControlBaseProps> {
|
61 | }
|
62 | export declare const SelectControl: import("react").ForwardRefExoticComponent<SelectControlProps & import("react").RefAttributes<HTMLDivElement>>;
|
63 | export interface SelectLabelProps extends HTMLChakraProps<"label", ArkSelect.LabelBaseProps> {
|
64 | }
|
65 | export declare const SelectLabel: import("react").ForwardRefExoticComponent<SelectLabelProps & import("react").RefAttributes<HTMLLabelElement>>;
|
66 | export declare const SelectContext: <T extends unknown>(props: ArkSelect.ContextProps<T>) => import("react").ReactNode;
|
67 | export declare const SelectHiddenSelect: import("react").ForwardRefExoticComponent<ArkSelect.HiddenSelectProps & import("react").RefAttributes<HTMLSelectElement>>;
|
68 | export declare const SelectItemContext: (props: ArkSelect.ItemContextProps) => import("react").ReactNode;
|
69 | export interface SelectHighlightChangeDetails<T extends CollectionItem = any> extends ArkSelect.HighlightChangeDetails<T> {
|
70 | }
|
71 | export interface SelectValueChangeDetails<T extends CollectionItem = any> extends ArkSelect.ValueChangeDetails<T> {
|
72 | }
|
73 | export interface SelectOpenChangeDetails extends ArkSelect.OpenChangeDetails {
|
74 | }
|