@radix-ui/react-select 0.1.2-rc.7 → 1.0.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.ts +10 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1170 -3
- package/dist/index.js.map +1 -1
- package/dist/index.module.js +1133 -3
- package/dist/index.module.js.map +1 -1
- package/package.json +23 -21
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { DismissableLayer } from "@radix-ui/react-dismissable-layer";
|
|
3
3
|
import { FocusScope } from "@radix-ui/react-focus-scope";
|
|
4
|
+
import { Portal as _Portal1 } from "@radix-ui/react-portal";
|
|
4
5
|
import * as Radix from "@radix-ui/react-primitive";
|
|
5
6
|
import { Primitive } from "@radix-ui/react-primitive";
|
|
6
7
|
type Direction = 'ltr' | 'rtl';
|
|
7
8
|
export const createSelectScope: import("@radix-ui/react-context").CreateScope;
|
|
8
9
|
export interface SelectProps {
|
|
10
|
+
children?: React.ReactNode;
|
|
9
11
|
value?: string;
|
|
10
12
|
defaultValue?: string;
|
|
11
13
|
onValueChange?(value: string): void;
|
|
@@ -15,7 +17,6 @@ export interface SelectProps {
|
|
|
15
17
|
dir?: Direction;
|
|
16
18
|
name?: string;
|
|
17
19
|
autoComplete?: string;
|
|
18
|
-
children?: React.ReactNode;
|
|
19
20
|
}
|
|
20
21
|
export const Select: React.FC<SelectProps>;
|
|
21
22
|
type PrimitiveButtonProps = Radix.ComponentPropsWithoutRef<typeof Primitive.button>;
|
|
@@ -23,12 +24,18 @@ export interface SelectTriggerProps extends PrimitiveButtonProps {
|
|
|
23
24
|
}
|
|
24
25
|
export const SelectTrigger: React.ForwardRefExoticComponent<SelectTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
25
26
|
type PrimitiveSpanProps = Radix.ComponentPropsWithoutRef<typeof Primitive.span>;
|
|
26
|
-
export interface SelectValueProps extends PrimitiveSpanProps {
|
|
27
|
+
export interface SelectValueProps extends Omit<PrimitiveSpanProps, 'placeholder'> {
|
|
28
|
+
placeholder?: React.ReactNode;
|
|
27
29
|
}
|
|
28
30
|
export const SelectValue: React.ForwardRefExoticComponent<SelectValueProps & React.RefAttributes<HTMLSpanElement>>;
|
|
29
31
|
export interface SelectIconProps extends PrimitiveSpanProps {
|
|
30
32
|
}
|
|
31
33
|
export const SelectIcon: React.ForwardRefExoticComponent<SelectIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
34
|
+
type PortalProps = React.ComponentPropsWithoutRef<typeof _Portal1>;
|
|
35
|
+
export interface SelectPortalProps extends Omit<PortalProps, 'asChild'> {
|
|
36
|
+
children?: React.ReactNode;
|
|
37
|
+
}
|
|
38
|
+
export const SelectPortal: React.FC<SelectPortalProps>;
|
|
32
39
|
export interface SelectContentProps extends SelectContentImplProps {
|
|
33
40
|
}
|
|
34
41
|
export const SelectContent: React.ForwardRefExoticComponent<SelectContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -79,6 +86,7 @@ export const Root: React.FC<SelectProps>;
|
|
|
79
86
|
export const Trigger: React.ForwardRefExoticComponent<SelectTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
80
87
|
export const Value: React.ForwardRefExoticComponent<SelectValueProps & React.RefAttributes<HTMLSpanElement>>;
|
|
81
88
|
export const Icon: React.ForwardRefExoticComponent<SelectIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
89
|
+
export const Portal: React.FC<SelectPortalProps>;
|
|
82
90
|
export const Content: React.ForwardRefExoticComponent<SelectContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
83
91
|
export const Viewport: React.ForwardRefExoticComponent<SelectViewportProps & React.RefAttributes<HTMLDivElement>>;
|
|
84
92
|
export const Group: React.ForwardRefExoticComponent<SelectGroupProps & React.RefAttributes<HTMLDivElement>>;
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|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AAQ,iBAAiB;CAAG;AAE3D,OAAA,MAAM,4GAKL,CAAC;AA6HF,OAAA,MAAM,2BAAa,CAAC;AACpB,OAAA,MAAM,qGAAuB,CAAC;AAC9B,OAAA,MAAM,+FAAmB,CAAC;AAC1B,OAAA,MAAM,6FAAiB,CAAC;AACxB,OAAA,MAAM,mCAAqB,CAAC;AAC5B,OAAA,MAAM,kGAAuB,CAAC;AAC9B,OAAA,MAAM,oGAAyB,CAAC;AAChC,OAAA,MAAM,8FAAmB,CAAC;AAC1B,OAAA,MAAM,8FAAmB,CAAC;AAC1B,OAAA,MAAM,4FAAiB,CAAC;AACxB,OAAA,MAAM,qGAAyB,CAAC;AAChC,OAAA,MAAM,+GAAmC,CAAC;AAC1C,OAAA,MAAM,gHAAqC,CAAC;AAC5C,OAAA,MAAM,oHAAyC,CAAC;AAChD,OAAA,MAAM,sGAA2B,CAAC","sources":["packages/react/select/src/packages/react/select/src/Select.tsx","packages/react/select/src/packages/react/select/src/index.ts","packages/react/select/src/index.ts"],"sourcesContent":[null,null,"export {\n createSelectScope,\n //\n Select,\n SelectTrigger,\n SelectValue,\n SelectIcon,\n SelectPortal,\n SelectContent,\n SelectViewport,\n SelectGroup,\n SelectLabel,\n SelectItem,\n SelectItemText,\n SelectItemIndicator,\n SelectScrollUpButton,\n SelectScrollDownButton,\n SelectSeparator,\n //\n Root,\n Trigger,\n Value,\n Icon,\n Portal,\n Content,\n Viewport,\n Group,\n Label,\n Item,\n ItemText,\n ItemIndicator,\n ScrollUpButton,\n ScrollDownButton,\n Separator,\n} from './Select';\nexport type {\n SelectProps,\n SelectTriggerProps,\n SelectValueProps,\n SelectIconProps,\n SelectPortalProps,\n SelectContentProps,\n SelectViewportProps,\n SelectGroupProps,\n SelectLabelProps,\n SelectItemProps,\n SelectItemTextProps,\n SelectItemIndicatorProps,\n SelectScrollUpButtonProps,\n SelectScrollDownButtonProps,\n SelectSeparatorProps,\n} from './Select';\n"],"names":[],"version":3,"file":"index.d.ts.map"}
|