@radix-ui/react-select 2.0.1-rc.9 → 2.1.0-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -1,13 +1,25 @@
1
- import * as React from "react";
2
- import { DismissableLayer } from "@radix-ui/react-dismissable-layer";
3
- import { FocusScope } from "@radix-ui/react-focus-scope";
4
- import * as PopperPrimitive from "@radix-ui/react-popper";
5
- import { Portal as _Portal1 } from "@radix-ui/react-portal";
6
- import * as Radix from "@radix-ui/react-primitive";
7
- import { Primitive } from "@radix-ui/react-primitive";
8
- type Direction = 'ltr' | 'rtl';
9
- export const createSelectScope: import("@radix-ui/react-context").CreateScope;
10
- export interface SelectProps {
1
+ import * as React from 'react';
2
+ import { DismissableLayer } from '@radix-ui/react-dismissable-layer';
3
+ import { FocusScope } from '@radix-ui/react-focus-scope';
4
+ import * as PopperPrimitive from '@radix-ui/react-popper';
5
+ import { Portal as Portal$1 } from '@radix-ui/react-portal';
6
+ import * as Radix from '@radix-ui/react-primitive';
7
+ import { Primitive } from '@radix-ui/react-primitive';
8
+
9
+ declare type Scope<C = any> = {
10
+ [scopeName: string]: React.Context<C>[];
11
+ } | undefined;
12
+ declare type ScopeHook = (scope: Scope) => {
13
+ [__scopeProp: string]: Scope;
14
+ };
15
+ interface CreateScope {
16
+ scopeName: string;
17
+ (): ScopeHook;
18
+ }
19
+
20
+ declare type Direction = 'ltr' | 'rtl';
21
+ declare const createSelectScope: CreateScope;
22
+ interface SelectProps {
11
23
  children?: React.ReactNode;
12
24
  value?: string;
13
25
  defaultValue?: string;
@@ -21,34 +33,34 @@ export interface SelectProps {
21
33
  disabled?: boolean;
22
34
  required?: boolean;
23
35
  }
24
- export const Select: React.FC<SelectProps>;
25
- type PrimitiveButtonProps = Radix.ComponentPropsWithoutRef<typeof Primitive.button>;
26
- export interface SelectTriggerProps extends PrimitiveButtonProps {
36
+ declare const Select: React.FC<SelectProps>;
37
+ declare type PrimitiveButtonProps = Radix.ComponentPropsWithoutRef<typeof Primitive.button>;
38
+ interface SelectTriggerProps extends PrimitiveButtonProps {
27
39
  }
28
- export const SelectTrigger: React.ForwardRefExoticComponent<SelectTriggerProps & React.RefAttributes<HTMLButtonElement>>;
29
- type PrimitiveSpanProps = Radix.ComponentPropsWithoutRef<typeof Primitive.span>;
30
- export interface SelectValueProps extends Omit<PrimitiveSpanProps, 'placeholder'> {
40
+ declare const SelectTrigger: React.ForwardRefExoticComponent<SelectTriggerProps & React.RefAttributes<HTMLButtonElement>>;
41
+ declare type PrimitiveSpanProps = Radix.ComponentPropsWithoutRef<typeof Primitive.span>;
42
+ interface SelectValueProps extends Omit<PrimitiveSpanProps, 'placeholder'> {
31
43
  placeholder?: React.ReactNode;
32
44
  }
33
- export const SelectValue: React.ForwardRefExoticComponent<SelectValueProps & React.RefAttributes<HTMLSpanElement>>;
34
- export interface SelectIconProps extends PrimitiveSpanProps {
45
+ declare const SelectValue: React.ForwardRefExoticComponent<SelectValueProps & React.RefAttributes<HTMLSpanElement>>;
46
+ interface SelectIconProps extends PrimitiveSpanProps {
35
47
  }
36
- export const SelectIcon: React.ForwardRefExoticComponent<SelectIconProps & React.RefAttributes<HTMLSpanElement>>;
37
- type PortalProps = React.ComponentPropsWithoutRef<typeof _Portal1>;
38
- export interface SelectPortalProps {
48
+ declare const SelectIcon: React.ForwardRefExoticComponent<SelectIconProps & React.RefAttributes<HTMLSpanElement>>;
49
+ declare type PortalProps = React.ComponentPropsWithoutRef<typeof Portal$1>;
50
+ interface SelectPortalProps {
39
51
  children?: React.ReactNode;
40
52
  /**
41
53
  * Specify a container element to portal the content into.
42
54
  */
43
55
  container?: PortalProps['container'];
44
56
  }
45
- export const SelectPortal: React.FC<SelectPortalProps>;
46
- export interface SelectContentProps extends SelectContentImplProps {
57
+ declare const SelectPortal: React.FC<SelectPortalProps>;
58
+ interface SelectContentProps extends SelectContentImplProps {
47
59
  }
48
- export const SelectContent: React.ForwardRefExoticComponent<SelectContentProps & React.RefAttributes<HTMLDivElement>>;
49
- type DismissableLayerProps = React.ComponentPropsWithoutRef<typeof DismissableLayer>;
50
- type FocusScopeProps = Radix.ComponentPropsWithoutRef<typeof FocusScope>;
51
- type SelectPopperPrivateProps = {
60
+ declare const SelectContent: React.ForwardRefExoticComponent<SelectContentProps & React.RefAttributes<HTMLDivElement>>;
61
+ declare type DismissableLayerProps = React.ComponentPropsWithoutRef<typeof DismissableLayer>;
62
+ declare type FocusScopeProps = Radix.ComponentPropsWithoutRef<typeof FocusScope>;
63
+ declare type SelectPopperPrivateProps = {
52
64
  onPlaced?: PopperContentProps['onPlaced'];
53
65
  };
54
66
  interface SelectContentImplProps extends Omit<SelectPopperPositionProps, keyof SelectPopperPrivateProps>, Omit<SelectItemAlignedPositionProps, keyof SelectPopperPrivateProps> {
@@ -71,63 +83,63 @@ interface SelectContentImplProps extends Omit<SelectPopperPositionProps, keyof S
71
83
  }
72
84
  interface SelectItemAlignedPositionProps extends PrimitiveDivProps, SelectPopperPrivateProps {
73
85
  }
74
- type PopperContentProps = React.ComponentPropsWithoutRef<typeof PopperPrimitive.Content>;
86
+ declare type PopperContentProps = React.ComponentPropsWithoutRef<typeof PopperPrimitive.Content>;
75
87
  interface SelectPopperPositionProps extends PopperContentProps, SelectPopperPrivateProps {
76
88
  }
77
- type PrimitiveDivProps = Radix.ComponentPropsWithoutRef<typeof Primitive.div>;
78
- export interface SelectViewportProps extends PrimitiveDivProps {
89
+ declare type PrimitiveDivProps = Radix.ComponentPropsWithoutRef<typeof Primitive.div>;
90
+ interface SelectViewportProps extends PrimitiveDivProps {
79
91
  nonce?: string;
80
92
  }
81
- export const SelectViewport: React.ForwardRefExoticComponent<SelectViewportProps & React.RefAttributes<HTMLDivElement>>;
82
- export interface SelectGroupProps extends PrimitiveDivProps {
93
+ declare const SelectViewport: React.ForwardRefExoticComponent<SelectViewportProps & React.RefAttributes<HTMLDivElement>>;
94
+ interface SelectGroupProps extends PrimitiveDivProps {
83
95
  }
84
- export const SelectGroup: React.ForwardRefExoticComponent<SelectGroupProps & React.RefAttributes<HTMLDivElement>>;
85
- export interface SelectLabelProps extends PrimitiveDivProps {
96
+ declare const SelectGroup: React.ForwardRefExoticComponent<SelectGroupProps & React.RefAttributes<HTMLDivElement>>;
97
+ interface SelectLabelProps extends PrimitiveDivProps {
86
98
  }
87
- export const SelectLabel: React.ForwardRefExoticComponent<SelectLabelProps & React.RefAttributes<HTMLDivElement>>;
88
- export interface SelectItemProps extends PrimitiveDivProps {
99
+ declare const SelectLabel: React.ForwardRefExoticComponent<SelectLabelProps & React.RefAttributes<HTMLDivElement>>;
100
+ interface SelectItemProps extends PrimitiveDivProps {
89
101
  value: string;
90
102
  disabled?: boolean;
91
103
  textValue?: string;
92
104
  }
93
- export const SelectItem: React.ForwardRefExoticComponent<SelectItemProps & React.RefAttributes<HTMLDivElement>>;
94
- export interface SelectItemTextProps extends PrimitiveSpanProps {
105
+ declare const SelectItem: React.ForwardRefExoticComponent<SelectItemProps & React.RefAttributes<HTMLDivElement>>;
106
+ interface SelectItemTextProps extends PrimitiveSpanProps {
95
107
  }
96
- export const SelectItemText: React.ForwardRefExoticComponent<SelectItemTextProps & React.RefAttributes<HTMLSpanElement>>;
97
- export interface SelectItemIndicatorProps extends PrimitiveSpanProps {
108
+ declare const SelectItemText: React.ForwardRefExoticComponent<SelectItemTextProps & React.RefAttributes<HTMLSpanElement>>;
109
+ interface SelectItemIndicatorProps extends PrimitiveSpanProps {
98
110
  }
99
- export const SelectItemIndicator: React.ForwardRefExoticComponent<SelectItemIndicatorProps & React.RefAttributes<HTMLSpanElement>>;
100
- export interface SelectScrollUpButtonProps extends Omit<SelectScrollButtonImplProps, 'onAutoScroll'> {
111
+ declare const SelectItemIndicator: React.ForwardRefExoticComponent<SelectItemIndicatorProps & React.RefAttributes<HTMLSpanElement>>;
112
+ interface SelectScrollUpButtonProps extends Omit<SelectScrollButtonImplProps, 'onAutoScroll'> {
101
113
  }
102
- export const SelectScrollUpButton: React.ForwardRefExoticComponent<SelectScrollUpButtonProps & React.RefAttributes<HTMLDivElement>>;
103
- export interface SelectScrollDownButtonProps extends Omit<SelectScrollButtonImplProps, 'onAutoScroll'> {
114
+ declare const SelectScrollUpButton: React.ForwardRefExoticComponent<SelectScrollUpButtonProps & React.RefAttributes<HTMLDivElement>>;
115
+ interface SelectScrollDownButtonProps extends Omit<SelectScrollButtonImplProps, 'onAutoScroll'> {
104
116
  }
105
- export const SelectScrollDownButton: React.ForwardRefExoticComponent<SelectScrollDownButtonProps & React.RefAttributes<HTMLDivElement>>;
117
+ declare const SelectScrollDownButton: React.ForwardRefExoticComponent<SelectScrollDownButtonProps & React.RefAttributes<HTMLDivElement>>;
106
118
  interface SelectScrollButtonImplProps extends PrimitiveDivProps {
107
119
  onAutoScroll(): void;
108
120
  }
109
- export interface SelectSeparatorProps extends PrimitiveDivProps {
110
- }
111
- export const SelectSeparator: React.ForwardRefExoticComponent<SelectSeparatorProps & React.RefAttributes<HTMLDivElement>>;
112
- type PopperArrowProps = Radix.ComponentPropsWithoutRef<typeof PopperPrimitive.Arrow>;
113
- export interface SelectArrowProps extends PopperArrowProps {
114
- }
115
- export const SelectArrow: React.ForwardRefExoticComponent<SelectArrowProps & React.RefAttributes<SVGSVGElement>>;
116
- export const Root: React.FC<SelectProps>;
117
- export const Trigger: React.ForwardRefExoticComponent<SelectTriggerProps & React.RefAttributes<HTMLButtonElement>>;
118
- export const Value: React.ForwardRefExoticComponent<SelectValueProps & React.RefAttributes<HTMLSpanElement>>;
119
- export const Icon: React.ForwardRefExoticComponent<SelectIconProps & React.RefAttributes<HTMLSpanElement>>;
120
- export const Portal: React.FC<SelectPortalProps>;
121
- export const Content: React.ForwardRefExoticComponent<SelectContentProps & React.RefAttributes<HTMLDivElement>>;
122
- export const Viewport: React.ForwardRefExoticComponent<SelectViewportProps & React.RefAttributes<HTMLDivElement>>;
123
- export const Group: React.ForwardRefExoticComponent<SelectGroupProps & React.RefAttributes<HTMLDivElement>>;
124
- export const Label: React.ForwardRefExoticComponent<SelectLabelProps & React.RefAttributes<HTMLDivElement>>;
125
- export const Item: React.ForwardRefExoticComponent<SelectItemProps & React.RefAttributes<HTMLDivElement>>;
126
- export const ItemText: React.ForwardRefExoticComponent<SelectItemTextProps & React.RefAttributes<HTMLSpanElement>>;
127
- export const ItemIndicator: React.ForwardRefExoticComponent<SelectItemIndicatorProps & React.RefAttributes<HTMLSpanElement>>;
128
- export const ScrollUpButton: React.ForwardRefExoticComponent<SelectScrollUpButtonProps & React.RefAttributes<HTMLDivElement>>;
129
- export const ScrollDownButton: React.ForwardRefExoticComponent<SelectScrollDownButtonProps & React.RefAttributes<HTMLDivElement>>;
130
- export const Separator: React.ForwardRefExoticComponent<SelectSeparatorProps & React.RefAttributes<HTMLDivElement>>;
131
- export const Arrow: React.ForwardRefExoticComponent<SelectArrowProps & React.RefAttributes<SVGSVGElement>>;
121
+ interface SelectSeparatorProps extends PrimitiveDivProps {
122
+ }
123
+ declare const SelectSeparator: React.ForwardRefExoticComponent<SelectSeparatorProps & React.RefAttributes<HTMLDivElement>>;
124
+ declare type PopperArrowProps = Radix.ComponentPropsWithoutRef<typeof PopperPrimitive.Arrow>;
125
+ interface SelectArrowProps extends PopperArrowProps {
126
+ }
127
+ declare const SelectArrow: React.ForwardRefExoticComponent<SelectArrowProps & React.RefAttributes<SVGSVGElement>>;
128
+ declare const Root: React.FC<SelectProps>;
129
+ declare const Trigger: React.ForwardRefExoticComponent<SelectTriggerProps & React.RefAttributes<HTMLButtonElement>>;
130
+ declare const Value: React.ForwardRefExoticComponent<SelectValueProps & React.RefAttributes<HTMLSpanElement>>;
131
+ declare const Icon: React.ForwardRefExoticComponent<SelectIconProps & React.RefAttributes<HTMLSpanElement>>;
132
+ declare const Portal: React.FC<SelectPortalProps>;
133
+ declare const Content: React.ForwardRefExoticComponent<SelectContentProps & React.RefAttributes<HTMLDivElement>>;
134
+ declare const Viewport: React.ForwardRefExoticComponent<SelectViewportProps & React.RefAttributes<HTMLDivElement>>;
135
+ declare const Group: React.ForwardRefExoticComponent<SelectGroupProps & React.RefAttributes<HTMLDivElement>>;
136
+ declare const Label: React.ForwardRefExoticComponent<SelectLabelProps & React.RefAttributes<HTMLDivElement>>;
137
+ declare const Item: React.ForwardRefExoticComponent<SelectItemProps & React.RefAttributes<HTMLDivElement>>;
138
+ declare const ItemText: React.ForwardRefExoticComponent<SelectItemTextProps & React.RefAttributes<HTMLSpanElement>>;
139
+ declare const ItemIndicator: React.ForwardRefExoticComponent<SelectItemIndicatorProps & React.RefAttributes<HTMLSpanElement>>;
140
+ declare const ScrollUpButton: React.ForwardRefExoticComponent<SelectScrollUpButtonProps & React.RefAttributes<HTMLDivElement>>;
141
+ declare const ScrollDownButton: React.ForwardRefExoticComponent<SelectScrollDownButtonProps & React.RefAttributes<HTMLDivElement>>;
142
+ declare const Separator: React.ForwardRefExoticComponent<SelectSeparatorProps & React.RefAttributes<HTMLDivElement>>;
143
+ declare const Arrow: React.ForwardRefExoticComponent<SelectArrowProps & React.RefAttributes<SVGSVGElement>>;
132
144
 
133
- //# sourceMappingURL=index.d.ts.map
145
+ export { Arrow, Content, Group, Icon, Item, ItemIndicator, ItemText, Label, Portal, Root, ScrollDownButton, ScrollUpButton, Select, SelectArrow, type SelectArrowProps, SelectContent, type SelectContentProps, SelectGroup, type SelectGroupProps, SelectIcon, type SelectIconProps, SelectItem, SelectItemIndicator, type SelectItemIndicatorProps, type SelectItemProps, SelectItemText, type SelectItemTextProps, SelectLabel, type SelectLabelProps, SelectPortal, type SelectPortalProps, type SelectProps, SelectScrollDownButton, type SelectScrollDownButtonProps, SelectScrollUpButton, type SelectScrollUpButtonProps, SelectSeparator, type SelectSeparatorProps, SelectTrigger, type SelectTriggerProps, SelectValue, type SelectValueProps, SelectViewport, type SelectViewportProps, Separator, Trigger, Value, Viewport, createSelectScope };
package/dist/index.d.ts CHANGED
@@ -1,13 +1,25 @@
1
- import * as React from "react";
2
- import { DismissableLayer } from "@radix-ui/react-dismissable-layer";
3
- import { FocusScope } from "@radix-ui/react-focus-scope";
4
- import * as PopperPrimitive from "@radix-ui/react-popper";
5
- import { Portal as _Portal1 } from "@radix-ui/react-portal";
6
- import * as Radix from "@radix-ui/react-primitive";
7
- import { Primitive } from "@radix-ui/react-primitive";
8
- type Direction = 'ltr' | 'rtl';
9
- export const createSelectScope: import("@radix-ui/react-context").CreateScope;
10
- export interface SelectProps {
1
+ import * as React from 'react';
2
+ import { DismissableLayer } from '@radix-ui/react-dismissable-layer';
3
+ import { FocusScope } from '@radix-ui/react-focus-scope';
4
+ import * as PopperPrimitive from '@radix-ui/react-popper';
5
+ import { Portal as Portal$1 } from '@radix-ui/react-portal';
6
+ import * as Radix from '@radix-ui/react-primitive';
7
+ import { Primitive } from '@radix-ui/react-primitive';
8
+
9
+ declare type Scope<C = any> = {
10
+ [scopeName: string]: React.Context<C>[];
11
+ } | undefined;
12
+ declare type ScopeHook = (scope: Scope) => {
13
+ [__scopeProp: string]: Scope;
14
+ };
15
+ interface CreateScope {
16
+ scopeName: string;
17
+ (): ScopeHook;
18
+ }
19
+
20
+ declare type Direction = 'ltr' | 'rtl';
21
+ declare const createSelectScope: CreateScope;
22
+ interface SelectProps {
11
23
  children?: React.ReactNode;
12
24
  value?: string;
13
25
  defaultValue?: string;
@@ -21,34 +33,34 @@ export interface SelectProps {
21
33
  disabled?: boolean;
22
34
  required?: boolean;
23
35
  }
24
- export const Select: React.FC<SelectProps>;
25
- type PrimitiveButtonProps = Radix.ComponentPropsWithoutRef<typeof Primitive.button>;
26
- export interface SelectTriggerProps extends PrimitiveButtonProps {
36
+ declare const Select: React.FC<SelectProps>;
37
+ declare type PrimitiveButtonProps = Radix.ComponentPropsWithoutRef<typeof Primitive.button>;
38
+ interface SelectTriggerProps extends PrimitiveButtonProps {
27
39
  }
28
- export const SelectTrigger: React.ForwardRefExoticComponent<SelectTriggerProps & React.RefAttributes<HTMLButtonElement>>;
29
- type PrimitiveSpanProps = Radix.ComponentPropsWithoutRef<typeof Primitive.span>;
30
- export interface SelectValueProps extends Omit<PrimitiveSpanProps, 'placeholder'> {
40
+ declare const SelectTrigger: React.ForwardRefExoticComponent<SelectTriggerProps & React.RefAttributes<HTMLButtonElement>>;
41
+ declare type PrimitiveSpanProps = Radix.ComponentPropsWithoutRef<typeof Primitive.span>;
42
+ interface SelectValueProps extends Omit<PrimitiveSpanProps, 'placeholder'> {
31
43
  placeholder?: React.ReactNode;
32
44
  }
33
- export const SelectValue: React.ForwardRefExoticComponent<SelectValueProps & React.RefAttributes<HTMLSpanElement>>;
34
- export interface SelectIconProps extends PrimitiveSpanProps {
45
+ declare const SelectValue: React.ForwardRefExoticComponent<SelectValueProps & React.RefAttributes<HTMLSpanElement>>;
46
+ interface SelectIconProps extends PrimitiveSpanProps {
35
47
  }
36
- export const SelectIcon: React.ForwardRefExoticComponent<SelectIconProps & React.RefAttributes<HTMLSpanElement>>;
37
- type PortalProps = React.ComponentPropsWithoutRef<typeof _Portal1>;
38
- export interface SelectPortalProps {
48
+ declare const SelectIcon: React.ForwardRefExoticComponent<SelectIconProps & React.RefAttributes<HTMLSpanElement>>;
49
+ declare type PortalProps = React.ComponentPropsWithoutRef<typeof Portal$1>;
50
+ interface SelectPortalProps {
39
51
  children?: React.ReactNode;
40
52
  /**
41
53
  * Specify a container element to portal the content into.
42
54
  */
43
55
  container?: PortalProps['container'];
44
56
  }
45
- export const SelectPortal: React.FC<SelectPortalProps>;
46
- export interface SelectContentProps extends SelectContentImplProps {
57
+ declare const SelectPortal: React.FC<SelectPortalProps>;
58
+ interface SelectContentProps extends SelectContentImplProps {
47
59
  }
48
- export const SelectContent: React.ForwardRefExoticComponent<SelectContentProps & React.RefAttributes<HTMLDivElement>>;
49
- type DismissableLayerProps = React.ComponentPropsWithoutRef<typeof DismissableLayer>;
50
- type FocusScopeProps = Radix.ComponentPropsWithoutRef<typeof FocusScope>;
51
- type SelectPopperPrivateProps = {
60
+ declare const SelectContent: React.ForwardRefExoticComponent<SelectContentProps & React.RefAttributes<HTMLDivElement>>;
61
+ declare type DismissableLayerProps = React.ComponentPropsWithoutRef<typeof DismissableLayer>;
62
+ declare type FocusScopeProps = Radix.ComponentPropsWithoutRef<typeof FocusScope>;
63
+ declare type SelectPopperPrivateProps = {
52
64
  onPlaced?: PopperContentProps['onPlaced'];
53
65
  };
54
66
  interface SelectContentImplProps extends Omit<SelectPopperPositionProps, keyof SelectPopperPrivateProps>, Omit<SelectItemAlignedPositionProps, keyof SelectPopperPrivateProps> {
@@ -71,63 +83,63 @@ interface SelectContentImplProps extends Omit<SelectPopperPositionProps, keyof S
71
83
  }
72
84
  interface SelectItemAlignedPositionProps extends PrimitiveDivProps, SelectPopperPrivateProps {
73
85
  }
74
- type PopperContentProps = React.ComponentPropsWithoutRef<typeof PopperPrimitive.Content>;
86
+ declare type PopperContentProps = React.ComponentPropsWithoutRef<typeof PopperPrimitive.Content>;
75
87
  interface SelectPopperPositionProps extends PopperContentProps, SelectPopperPrivateProps {
76
88
  }
77
- type PrimitiveDivProps = Radix.ComponentPropsWithoutRef<typeof Primitive.div>;
78
- export interface SelectViewportProps extends PrimitiveDivProps {
89
+ declare type PrimitiveDivProps = Radix.ComponentPropsWithoutRef<typeof Primitive.div>;
90
+ interface SelectViewportProps extends PrimitiveDivProps {
79
91
  nonce?: string;
80
92
  }
81
- export const SelectViewport: React.ForwardRefExoticComponent<SelectViewportProps & React.RefAttributes<HTMLDivElement>>;
82
- export interface SelectGroupProps extends PrimitiveDivProps {
93
+ declare const SelectViewport: React.ForwardRefExoticComponent<SelectViewportProps & React.RefAttributes<HTMLDivElement>>;
94
+ interface SelectGroupProps extends PrimitiveDivProps {
83
95
  }
84
- export const SelectGroup: React.ForwardRefExoticComponent<SelectGroupProps & React.RefAttributes<HTMLDivElement>>;
85
- export interface SelectLabelProps extends PrimitiveDivProps {
96
+ declare const SelectGroup: React.ForwardRefExoticComponent<SelectGroupProps & React.RefAttributes<HTMLDivElement>>;
97
+ interface SelectLabelProps extends PrimitiveDivProps {
86
98
  }
87
- export const SelectLabel: React.ForwardRefExoticComponent<SelectLabelProps & React.RefAttributes<HTMLDivElement>>;
88
- export interface SelectItemProps extends PrimitiveDivProps {
99
+ declare const SelectLabel: React.ForwardRefExoticComponent<SelectLabelProps & React.RefAttributes<HTMLDivElement>>;
100
+ interface SelectItemProps extends PrimitiveDivProps {
89
101
  value: string;
90
102
  disabled?: boolean;
91
103
  textValue?: string;
92
104
  }
93
- export const SelectItem: React.ForwardRefExoticComponent<SelectItemProps & React.RefAttributes<HTMLDivElement>>;
94
- export interface SelectItemTextProps extends PrimitiveSpanProps {
105
+ declare const SelectItem: React.ForwardRefExoticComponent<SelectItemProps & React.RefAttributes<HTMLDivElement>>;
106
+ interface SelectItemTextProps extends PrimitiveSpanProps {
95
107
  }
96
- export const SelectItemText: React.ForwardRefExoticComponent<SelectItemTextProps & React.RefAttributes<HTMLSpanElement>>;
97
- export interface SelectItemIndicatorProps extends PrimitiveSpanProps {
108
+ declare const SelectItemText: React.ForwardRefExoticComponent<SelectItemTextProps & React.RefAttributes<HTMLSpanElement>>;
109
+ interface SelectItemIndicatorProps extends PrimitiveSpanProps {
98
110
  }
99
- export const SelectItemIndicator: React.ForwardRefExoticComponent<SelectItemIndicatorProps & React.RefAttributes<HTMLSpanElement>>;
100
- export interface SelectScrollUpButtonProps extends Omit<SelectScrollButtonImplProps, 'onAutoScroll'> {
111
+ declare const SelectItemIndicator: React.ForwardRefExoticComponent<SelectItemIndicatorProps & React.RefAttributes<HTMLSpanElement>>;
112
+ interface SelectScrollUpButtonProps extends Omit<SelectScrollButtonImplProps, 'onAutoScroll'> {
101
113
  }
102
- export const SelectScrollUpButton: React.ForwardRefExoticComponent<SelectScrollUpButtonProps & React.RefAttributes<HTMLDivElement>>;
103
- export interface SelectScrollDownButtonProps extends Omit<SelectScrollButtonImplProps, 'onAutoScroll'> {
114
+ declare const SelectScrollUpButton: React.ForwardRefExoticComponent<SelectScrollUpButtonProps & React.RefAttributes<HTMLDivElement>>;
115
+ interface SelectScrollDownButtonProps extends Omit<SelectScrollButtonImplProps, 'onAutoScroll'> {
104
116
  }
105
- export const SelectScrollDownButton: React.ForwardRefExoticComponent<SelectScrollDownButtonProps & React.RefAttributes<HTMLDivElement>>;
117
+ declare const SelectScrollDownButton: React.ForwardRefExoticComponent<SelectScrollDownButtonProps & React.RefAttributes<HTMLDivElement>>;
106
118
  interface SelectScrollButtonImplProps extends PrimitiveDivProps {
107
119
  onAutoScroll(): void;
108
120
  }
109
- export interface SelectSeparatorProps extends PrimitiveDivProps {
110
- }
111
- export const SelectSeparator: React.ForwardRefExoticComponent<SelectSeparatorProps & React.RefAttributes<HTMLDivElement>>;
112
- type PopperArrowProps = Radix.ComponentPropsWithoutRef<typeof PopperPrimitive.Arrow>;
113
- export interface SelectArrowProps extends PopperArrowProps {
114
- }
115
- export const SelectArrow: React.ForwardRefExoticComponent<SelectArrowProps & React.RefAttributes<SVGSVGElement>>;
116
- export const Root: React.FC<SelectProps>;
117
- export const Trigger: React.ForwardRefExoticComponent<SelectTriggerProps & React.RefAttributes<HTMLButtonElement>>;
118
- export const Value: React.ForwardRefExoticComponent<SelectValueProps & React.RefAttributes<HTMLSpanElement>>;
119
- export const Icon: React.ForwardRefExoticComponent<SelectIconProps & React.RefAttributes<HTMLSpanElement>>;
120
- export const Portal: React.FC<SelectPortalProps>;
121
- export const Content: React.ForwardRefExoticComponent<SelectContentProps & React.RefAttributes<HTMLDivElement>>;
122
- export const Viewport: React.ForwardRefExoticComponent<SelectViewportProps & React.RefAttributes<HTMLDivElement>>;
123
- export const Group: React.ForwardRefExoticComponent<SelectGroupProps & React.RefAttributes<HTMLDivElement>>;
124
- export const Label: React.ForwardRefExoticComponent<SelectLabelProps & React.RefAttributes<HTMLDivElement>>;
125
- export const Item: React.ForwardRefExoticComponent<SelectItemProps & React.RefAttributes<HTMLDivElement>>;
126
- export const ItemText: React.ForwardRefExoticComponent<SelectItemTextProps & React.RefAttributes<HTMLSpanElement>>;
127
- export const ItemIndicator: React.ForwardRefExoticComponent<SelectItemIndicatorProps & React.RefAttributes<HTMLSpanElement>>;
128
- export const ScrollUpButton: React.ForwardRefExoticComponent<SelectScrollUpButtonProps & React.RefAttributes<HTMLDivElement>>;
129
- export const ScrollDownButton: React.ForwardRefExoticComponent<SelectScrollDownButtonProps & React.RefAttributes<HTMLDivElement>>;
130
- export const Separator: React.ForwardRefExoticComponent<SelectSeparatorProps & React.RefAttributes<HTMLDivElement>>;
131
- export const Arrow: React.ForwardRefExoticComponent<SelectArrowProps & React.RefAttributes<SVGSVGElement>>;
121
+ interface SelectSeparatorProps extends PrimitiveDivProps {
122
+ }
123
+ declare const SelectSeparator: React.ForwardRefExoticComponent<SelectSeparatorProps & React.RefAttributes<HTMLDivElement>>;
124
+ declare type PopperArrowProps = Radix.ComponentPropsWithoutRef<typeof PopperPrimitive.Arrow>;
125
+ interface SelectArrowProps extends PopperArrowProps {
126
+ }
127
+ declare const SelectArrow: React.ForwardRefExoticComponent<SelectArrowProps & React.RefAttributes<SVGSVGElement>>;
128
+ declare const Root: React.FC<SelectProps>;
129
+ declare const Trigger: React.ForwardRefExoticComponent<SelectTriggerProps & React.RefAttributes<HTMLButtonElement>>;
130
+ declare const Value: React.ForwardRefExoticComponent<SelectValueProps & React.RefAttributes<HTMLSpanElement>>;
131
+ declare const Icon: React.ForwardRefExoticComponent<SelectIconProps & React.RefAttributes<HTMLSpanElement>>;
132
+ declare const Portal: React.FC<SelectPortalProps>;
133
+ declare const Content: React.ForwardRefExoticComponent<SelectContentProps & React.RefAttributes<HTMLDivElement>>;
134
+ declare const Viewport: React.ForwardRefExoticComponent<SelectViewportProps & React.RefAttributes<HTMLDivElement>>;
135
+ declare const Group: React.ForwardRefExoticComponent<SelectGroupProps & React.RefAttributes<HTMLDivElement>>;
136
+ declare const Label: React.ForwardRefExoticComponent<SelectLabelProps & React.RefAttributes<HTMLDivElement>>;
137
+ declare const Item: React.ForwardRefExoticComponent<SelectItemProps & React.RefAttributes<HTMLDivElement>>;
138
+ declare const ItemText: React.ForwardRefExoticComponent<SelectItemTextProps & React.RefAttributes<HTMLSpanElement>>;
139
+ declare const ItemIndicator: React.ForwardRefExoticComponent<SelectItemIndicatorProps & React.RefAttributes<HTMLSpanElement>>;
140
+ declare const ScrollUpButton: React.ForwardRefExoticComponent<SelectScrollUpButtonProps & React.RefAttributes<HTMLDivElement>>;
141
+ declare const ScrollDownButton: React.ForwardRefExoticComponent<SelectScrollDownButtonProps & React.RefAttributes<HTMLDivElement>>;
142
+ declare const Separator: React.ForwardRefExoticComponent<SelectSeparatorProps & React.RefAttributes<HTMLDivElement>>;
143
+ declare const Arrow: React.ForwardRefExoticComponent<SelectArrowProps & React.RefAttributes<SVGSVGElement>>;
132
144
 
133
- //# sourceMappingURL=index.d.ts.map
145
+ export { Arrow, Content, Group, Icon, Item, ItemIndicator, ItemText, Label, Portal, Root, ScrollDownButton, ScrollUpButton, Select, SelectArrow, type SelectArrowProps, SelectContent, type SelectContentProps, SelectGroup, type SelectGroupProps, SelectIcon, type SelectIconProps, SelectItem, SelectItemIndicator, type SelectItemIndicatorProps, type SelectItemProps, SelectItemText, type SelectItemTextProps, SelectLabel, type SelectLabelProps, SelectPortal, type SelectPortalProps, type SelectProps, SelectScrollDownButton, type SelectScrollDownButtonProps, SelectScrollUpButton, type SelectScrollUpButtonProps, SelectSeparator, type SelectSeparatorProps, SelectTrigger, type SelectTriggerProps, SelectValue, type SelectValueProps, SelectViewport, type SelectViewportProps, Separator, Trigger, Value, Viewport, createSelectScope };