@radix-ui/react-select 2.0.1-rc.8 → 2.1.0-rc.1
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 +81 -69
- package/dist/index.d.ts +81 -69
- package/dist/index.js +1063 -1229
- package/dist/index.js.map +7 -1
- package/dist/index.mjs +1076 -1200
- package/dist/index.mjs.map +7 -1
- package/package.json +21 -22
- package/dist/index.d.ts.map +0 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,13 +1,25 @@
|
|
|
1
|
-
import * as React from
|
|
2
|
-
import { DismissableLayer } from
|
|
3
|
-
import { FocusScope } from
|
|
4
|
-
import * as PopperPrimitive from
|
|
5
|
-
import { Portal as
|
|
6
|
-
import * as Radix from
|
|
7
|
-
import { Primitive } from
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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
|
-
|
|
25
|
-
type PrimitiveButtonProps = Radix.ComponentPropsWithoutRef<typeof Primitive.button>;
|
|
26
|
-
|
|
36
|
+
declare const Select: React.FC<SelectProps>;
|
|
37
|
+
declare type PrimitiveButtonProps = Radix.ComponentPropsWithoutRef<typeof Primitive.button>;
|
|
38
|
+
interface SelectTriggerProps extends PrimitiveButtonProps {
|
|
27
39
|
}
|
|
28
|
-
|
|
29
|
-
type PrimitiveSpanProps = Radix.ComponentPropsWithoutRef<typeof Primitive.span>;
|
|
30
|
-
|
|
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
|
-
|
|
34
|
-
|
|
45
|
+
declare const SelectValue: React.ForwardRefExoticComponent<SelectValueProps & React.RefAttributes<HTMLSpanElement>>;
|
|
46
|
+
interface SelectIconProps extends PrimitiveSpanProps {
|
|
35
47
|
}
|
|
36
|
-
|
|
37
|
-
type PortalProps = React.ComponentPropsWithoutRef<typeof
|
|
38
|
-
|
|
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
|
-
|
|
46
|
-
|
|
57
|
+
declare const SelectPortal: React.FC<SelectPortalProps>;
|
|
58
|
+
interface SelectContentProps extends SelectContentImplProps {
|
|
47
59
|
}
|
|
48
|
-
|
|
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
|
-
|
|
89
|
+
declare type PrimitiveDivProps = Radix.ComponentPropsWithoutRef<typeof Primitive.div>;
|
|
90
|
+
interface SelectViewportProps extends PrimitiveDivProps {
|
|
79
91
|
nonce?: string;
|
|
80
92
|
}
|
|
81
|
-
|
|
82
|
-
|
|
93
|
+
declare const SelectViewport: React.ForwardRefExoticComponent<SelectViewportProps & React.RefAttributes<HTMLDivElement>>;
|
|
94
|
+
interface SelectGroupProps extends PrimitiveDivProps {
|
|
83
95
|
}
|
|
84
|
-
|
|
85
|
-
|
|
96
|
+
declare const SelectGroup: React.ForwardRefExoticComponent<SelectGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
97
|
+
interface SelectLabelProps extends PrimitiveDivProps {
|
|
86
98
|
}
|
|
87
|
-
|
|
88
|
-
|
|
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
|
-
|
|
94
|
-
|
|
105
|
+
declare const SelectItem: React.ForwardRefExoticComponent<SelectItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
106
|
+
interface SelectItemTextProps extends PrimitiveSpanProps {
|
|
95
107
|
}
|
|
96
|
-
|
|
97
|
-
|
|
108
|
+
declare const SelectItemText: React.ForwardRefExoticComponent<SelectItemTextProps & React.RefAttributes<HTMLSpanElement>>;
|
|
109
|
+
interface SelectItemIndicatorProps extends PrimitiveSpanProps {
|
|
98
110
|
}
|
|
99
|
-
|
|
100
|
-
|
|
111
|
+
declare const SelectItemIndicator: React.ForwardRefExoticComponent<SelectItemIndicatorProps & React.RefAttributes<HTMLSpanElement>>;
|
|
112
|
+
interface SelectScrollUpButtonProps extends Omit<SelectScrollButtonImplProps, 'onAutoScroll'> {
|
|
101
113
|
}
|
|
102
|
-
|
|
103
|
-
|
|
114
|
+
declare const SelectScrollUpButton: React.ForwardRefExoticComponent<SelectScrollUpButtonProps & React.RefAttributes<HTMLDivElement>>;
|
|
115
|
+
interface SelectScrollDownButtonProps extends Omit<SelectScrollButtonImplProps, 'onAutoScroll'> {
|
|
104
116
|
}
|
|
105
|
-
|
|
117
|
+
declare const SelectScrollDownButton: React.ForwardRefExoticComponent<SelectScrollDownButtonProps & React.RefAttributes<HTMLDivElement>>;
|
|
106
118
|
interface SelectScrollButtonImplProps extends PrimitiveDivProps {
|
|
107
119
|
onAutoScroll(): void;
|
|
108
120
|
}
|
|
109
|
-
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
type PopperArrowProps = Radix.ComponentPropsWithoutRef<typeof PopperPrimitive.Arrow>;
|
|
113
|
-
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
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
|
-
|
|
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
|
|
2
|
-
import { DismissableLayer } from
|
|
3
|
-
import { FocusScope } from
|
|
4
|
-
import * as PopperPrimitive from
|
|
5
|
-
import { Portal as
|
|
6
|
-
import * as Radix from
|
|
7
|
-
import { Primitive } from
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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
|
-
|
|
25
|
-
type PrimitiveButtonProps = Radix.ComponentPropsWithoutRef<typeof Primitive.button>;
|
|
26
|
-
|
|
36
|
+
declare const Select: React.FC<SelectProps>;
|
|
37
|
+
declare type PrimitiveButtonProps = Radix.ComponentPropsWithoutRef<typeof Primitive.button>;
|
|
38
|
+
interface SelectTriggerProps extends PrimitiveButtonProps {
|
|
27
39
|
}
|
|
28
|
-
|
|
29
|
-
type PrimitiveSpanProps = Radix.ComponentPropsWithoutRef<typeof Primitive.span>;
|
|
30
|
-
|
|
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
|
-
|
|
34
|
-
|
|
45
|
+
declare const SelectValue: React.ForwardRefExoticComponent<SelectValueProps & React.RefAttributes<HTMLSpanElement>>;
|
|
46
|
+
interface SelectIconProps extends PrimitiveSpanProps {
|
|
35
47
|
}
|
|
36
|
-
|
|
37
|
-
type PortalProps = React.ComponentPropsWithoutRef<typeof
|
|
38
|
-
|
|
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
|
-
|
|
46
|
-
|
|
57
|
+
declare const SelectPortal: React.FC<SelectPortalProps>;
|
|
58
|
+
interface SelectContentProps extends SelectContentImplProps {
|
|
47
59
|
}
|
|
48
|
-
|
|
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
|
-
|
|
89
|
+
declare type PrimitiveDivProps = Radix.ComponentPropsWithoutRef<typeof Primitive.div>;
|
|
90
|
+
interface SelectViewportProps extends PrimitiveDivProps {
|
|
79
91
|
nonce?: string;
|
|
80
92
|
}
|
|
81
|
-
|
|
82
|
-
|
|
93
|
+
declare const SelectViewport: React.ForwardRefExoticComponent<SelectViewportProps & React.RefAttributes<HTMLDivElement>>;
|
|
94
|
+
interface SelectGroupProps extends PrimitiveDivProps {
|
|
83
95
|
}
|
|
84
|
-
|
|
85
|
-
|
|
96
|
+
declare const SelectGroup: React.ForwardRefExoticComponent<SelectGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
97
|
+
interface SelectLabelProps extends PrimitiveDivProps {
|
|
86
98
|
}
|
|
87
|
-
|
|
88
|
-
|
|
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
|
-
|
|
94
|
-
|
|
105
|
+
declare const SelectItem: React.ForwardRefExoticComponent<SelectItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
106
|
+
interface SelectItemTextProps extends PrimitiveSpanProps {
|
|
95
107
|
}
|
|
96
|
-
|
|
97
|
-
|
|
108
|
+
declare const SelectItemText: React.ForwardRefExoticComponent<SelectItemTextProps & React.RefAttributes<HTMLSpanElement>>;
|
|
109
|
+
interface SelectItemIndicatorProps extends PrimitiveSpanProps {
|
|
98
110
|
}
|
|
99
|
-
|
|
100
|
-
|
|
111
|
+
declare const SelectItemIndicator: React.ForwardRefExoticComponent<SelectItemIndicatorProps & React.RefAttributes<HTMLSpanElement>>;
|
|
112
|
+
interface SelectScrollUpButtonProps extends Omit<SelectScrollButtonImplProps, 'onAutoScroll'> {
|
|
101
113
|
}
|
|
102
|
-
|
|
103
|
-
|
|
114
|
+
declare const SelectScrollUpButton: React.ForwardRefExoticComponent<SelectScrollUpButtonProps & React.RefAttributes<HTMLDivElement>>;
|
|
115
|
+
interface SelectScrollDownButtonProps extends Omit<SelectScrollButtonImplProps, 'onAutoScroll'> {
|
|
104
116
|
}
|
|
105
|
-
|
|
117
|
+
declare const SelectScrollDownButton: React.ForwardRefExoticComponent<SelectScrollDownButtonProps & React.RefAttributes<HTMLDivElement>>;
|
|
106
118
|
interface SelectScrollButtonImplProps extends PrimitiveDivProps {
|
|
107
119
|
onAutoScroll(): void;
|
|
108
120
|
}
|
|
109
|
-
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
type PopperArrowProps = Radix.ComponentPropsWithoutRef<typeof PopperPrimitive.Arrow>;
|
|
113
|
-
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
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
|
-
|
|
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 };
|