@radix-ui/react-select 0.1.2-rc.49 → 0.1.2-rc.51
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 +0 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +36 -55
- package/dist/index.js.map +1 -1
- package/dist/index.module.js +3 -40
- package/dist/index.module.js.map +1 -1
- package/package.json +20 -20
package/dist/index.d.ts
CHANGED
|
@@ -4,10 +4,8 @@ import { FocusScope } from "@radix-ui/react-focus-scope";
|
|
|
4
4
|
import { Portal as _Portal1 } from "@radix-ui/react-portal";
|
|
5
5
|
import * as Radix from "@radix-ui/react-primitive";
|
|
6
6
|
import { Primitive } from "@radix-ui/react-primitive";
|
|
7
|
-
import { RemoveScroll } from "react-remove-scroll";
|
|
8
7
|
type Direction = 'ltr' | 'rtl';
|
|
9
8
|
export const createSelectScope: import("@radix-ui/react-context").CreateScope;
|
|
10
|
-
type RemoveScrollProps = React.ComponentProps<typeof RemoveScroll>;
|
|
11
9
|
export interface SelectProps {
|
|
12
10
|
children?: React.ReactNode;
|
|
13
11
|
value?: string;
|
|
@@ -19,10 +17,6 @@ export interface SelectProps {
|
|
|
19
17
|
dir?: Direction;
|
|
20
18
|
name?: string;
|
|
21
19
|
autoComplete?: string;
|
|
22
|
-
/**
|
|
23
|
-
* @see https://github.com/theKashey/react-remove-scroll#usage
|
|
24
|
-
*/
|
|
25
|
-
allowPinchZoom?: RemoveScrollProps['allowPinchZoom'];
|
|
26
20
|
}
|
|
27
21
|
export const Select: React.FC<SelectProps>;
|
|
28
22
|
type PrimitiveButtonProps = Radix.ComponentPropsWithoutRef<typeof Primitive.button>;
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"
|
|
1
|
+
{"mappings":";;;;;;AA2BA,iBAAiB,KAAK,GAAG,KAAK,CAAC;AAkB/B,OAAA,wFAEE,CAAC;AA6BH;IACE,QAAQ,C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AAM,+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"}
|
package/dist/index.js
CHANGED
|
@@ -23,61 +23,44 @@ var $cg2C9$radixuireactvisuallyhidden = require("@radix-ui/react-visually-hidden
|
|
|
23
23
|
var $cg2C9$ariahidden = require("aria-hidden");
|
|
24
24
|
var $cg2C9$reactremovescroll = require("react-remove-scroll");
|
|
25
25
|
|
|
26
|
-
function $parcel$
|
|
27
|
-
Object.
|
|
28
|
-
if (key === 'default' || key === '__esModule' || dest.hasOwnProperty(key)) {
|
|
29
|
-
return;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
Object.defineProperty(dest, key, {
|
|
33
|
-
enumerable: true,
|
|
34
|
-
get: function get() {
|
|
35
|
-
return source[key];
|
|
36
|
-
}
|
|
37
|
-
});
|
|
38
|
-
});
|
|
39
|
-
|
|
40
|
-
return dest;
|
|
26
|
+
function $parcel$export(e, n, v, s) {
|
|
27
|
+
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
41
28
|
}
|
|
42
29
|
function $parcel$interopDefault(a) {
|
|
43
30
|
return a && a.__esModule ? a.default : a;
|
|
44
31
|
}
|
|
45
|
-
function $parcel$export(e, n, v, s) {
|
|
46
|
-
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
47
|
-
}
|
|
48
|
-
var $1345bda09ffc1bc6$exports = {};
|
|
49
32
|
|
|
50
|
-
$parcel$export(
|
|
51
|
-
$parcel$export(
|
|
52
|
-
$parcel$export(
|
|
53
|
-
$parcel$export(
|
|
54
|
-
$parcel$export(
|
|
55
|
-
$parcel$export(
|
|
56
|
-
$parcel$export(
|
|
57
|
-
$parcel$export(
|
|
58
|
-
$parcel$export(
|
|
59
|
-
$parcel$export(
|
|
60
|
-
$parcel$export(
|
|
61
|
-
$parcel$export(
|
|
62
|
-
$parcel$export(
|
|
63
|
-
$parcel$export(
|
|
64
|
-
$parcel$export(
|
|
65
|
-
$parcel$export(
|
|
66
|
-
$parcel$export(
|
|
67
|
-
$parcel$export(
|
|
68
|
-
$parcel$export(
|
|
69
|
-
$parcel$export(
|
|
70
|
-
$parcel$export(
|
|
71
|
-
$parcel$export(
|
|
72
|
-
$parcel$export(
|
|
73
|
-
$parcel$export(
|
|
74
|
-
$parcel$export(
|
|
75
|
-
$parcel$export(
|
|
76
|
-
$parcel$export(
|
|
77
|
-
$parcel$export(
|
|
78
|
-
$parcel$export(
|
|
79
|
-
$parcel$export(
|
|
80
|
-
$parcel$export(
|
|
33
|
+
$parcel$export(module.exports, "createSelectScope", () => $1345bda09ffc1bc6$export$286727a75dc039bd);
|
|
34
|
+
$parcel$export(module.exports, "Select", () => $1345bda09ffc1bc6$export$ef9b1a59e592288f);
|
|
35
|
+
$parcel$export(module.exports, "SelectTrigger", () => $1345bda09ffc1bc6$export$3ac1e88a1c0b9f1);
|
|
36
|
+
$parcel$export(module.exports, "SelectValue", () => $1345bda09ffc1bc6$export$e288731fd71264f0);
|
|
37
|
+
$parcel$export(module.exports, "SelectIcon", () => $1345bda09ffc1bc6$export$99b400cabb58c515);
|
|
38
|
+
$parcel$export(module.exports, "SelectPortal", () => $1345bda09ffc1bc6$export$b2af6c9944296213);
|
|
39
|
+
$parcel$export(module.exports, "SelectContent", () => $1345bda09ffc1bc6$export$c973a4b3cb86a03d);
|
|
40
|
+
$parcel$export(module.exports, "SelectViewport", () => $1345bda09ffc1bc6$export$9ed6e7b40248d36d);
|
|
41
|
+
$parcel$export(module.exports, "SelectGroup", () => $1345bda09ffc1bc6$export$ee25a334c55de1f4);
|
|
42
|
+
$parcel$export(module.exports, "SelectLabel", () => $1345bda09ffc1bc6$export$f67338d29bd972f8);
|
|
43
|
+
$parcel$export(module.exports, "SelectItem", () => $1345bda09ffc1bc6$export$13ef48a934230896);
|
|
44
|
+
$parcel$export(module.exports, "SelectItemText", () => $1345bda09ffc1bc6$export$3572fb0fb821ff49);
|
|
45
|
+
$parcel$export(module.exports, "SelectItemIndicator", () => $1345bda09ffc1bc6$export$6b9198de19accfe6);
|
|
46
|
+
$parcel$export(module.exports, "SelectScrollUpButton", () => $1345bda09ffc1bc6$export$d8117927658af6d7);
|
|
47
|
+
$parcel$export(module.exports, "SelectScrollDownButton", () => $1345bda09ffc1bc6$export$ff951e476c12189);
|
|
48
|
+
$parcel$export(module.exports, "SelectSeparator", () => $1345bda09ffc1bc6$export$eba4b1df07cb1d3);
|
|
49
|
+
$parcel$export(module.exports, "Root", () => $1345bda09ffc1bc6$export$be92b6f5f03c0fe9);
|
|
50
|
+
$parcel$export(module.exports, "Trigger", () => $1345bda09ffc1bc6$export$41fb9f06171c75f4);
|
|
51
|
+
$parcel$export(module.exports, "Value", () => $1345bda09ffc1bc6$export$4c8d1a57a761ef94);
|
|
52
|
+
$parcel$export(module.exports, "Icon", () => $1345bda09ffc1bc6$export$f04a61298a47a40f);
|
|
53
|
+
$parcel$export(module.exports, "Portal", () => $1345bda09ffc1bc6$export$602eac185826482c);
|
|
54
|
+
$parcel$export(module.exports, "Content", () => $1345bda09ffc1bc6$export$7c6e2c02157bb7d2);
|
|
55
|
+
$parcel$export(module.exports, "Viewport", () => $1345bda09ffc1bc6$export$d5c6c08dc2d3ca7);
|
|
56
|
+
$parcel$export(module.exports, "Group", () => $1345bda09ffc1bc6$export$eb2fcfdbd7ba97d4);
|
|
57
|
+
$parcel$export(module.exports, "Label", () => $1345bda09ffc1bc6$export$b04be29aa201d4f5);
|
|
58
|
+
$parcel$export(module.exports, "Item", () => $1345bda09ffc1bc6$export$6d08773d2e66f8f2);
|
|
59
|
+
$parcel$export(module.exports, "ItemText", () => $1345bda09ffc1bc6$export$d6e5bf9c43ea9319);
|
|
60
|
+
$parcel$export(module.exports, "ItemIndicator", () => $1345bda09ffc1bc6$export$c3468e2714d175fa);
|
|
61
|
+
$parcel$export(module.exports, "ScrollUpButton", () => $1345bda09ffc1bc6$export$2f60d3ec9ad468f2);
|
|
62
|
+
$parcel$export(module.exports, "ScrollDownButton", () => $1345bda09ffc1bc6$export$bf1aedc3039c8d63);
|
|
63
|
+
$parcel$export(module.exports, "Separator", () => $1345bda09ffc1bc6$export$1ff3c3f08ae963c0);
|
|
81
64
|
|
|
82
65
|
|
|
83
66
|
|
|
@@ -122,7 +105,7 @@ const [$1345bda09ffc1bc6$var$createSelectContext, $1345bda09ffc1bc6$export$28672
|
|
|
122
105
|
const [$1345bda09ffc1bc6$var$SelectProvider, $1345bda09ffc1bc6$var$useSelectContext] = $1345bda09ffc1bc6$var$createSelectContext($1345bda09ffc1bc6$var$SELECT_NAME);
|
|
123
106
|
const [$1345bda09ffc1bc6$var$SelectNativeOptionsProvider, $1345bda09ffc1bc6$var$useSelectNativeOptionsContext] = $1345bda09ffc1bc6$var$createSelectContext($1345bda09ffc1bc6$var$SELECT_NAME);
|
|
124
107
|
const $1345bda09ffc1bc6$export$ef9b1a59e592288f = (props)=>{
|
|
125
|
-
const { __scopeSelect: __scopeSelect , children: children , open: openProp , defaultOpen: defaultOpen , onOpenChange: onOpenChange , value: valueProp , defaultValue: defaultValue , onValueChange: onValueChange , dir: dir , name: name , autoComplete: autoComplete
|
|
108
|
+
const { __scopeSelect: __scopeSelect , children: children , open: openProp , defaultOpen: defaultOpen , onOpenChange: onOpenChange , value: valueProp , defaultValue: defaultValue , onValueChange: onValueChange , dir: dir , name: name , autoComplete: autoComplete } = props;
|
|
126
109
|
const [trigger, setTrigger] = $cg2C9$react.useState(null);
|
|
127
110
|
const [valueNode, setValueNode] = $cg2C9$react.useState(null);
|
|
128
111
|
const [valueNodeHasChildren, setValueNodeHasChildren] = $cg2C9$react.useState(false);
|
|
@@ -160,8 +143,7 @@ const $1345bda09ffc1bc6$export$ef9b1a59e592288f = (props)=>{
|
|
|
160
143
|
open: open,
|
|
161
144
|
onOpenChange: setOpen,
|
|
162
145
|
dir: direction,
|
|
163
|
-
triggerPointerDownPosRef: triggerPointerDownPosRef
|
|
164
|
-
allowPinchZoom: allowPinchZoom
|
|
146
|
+
triggerPointerDownPosRef: triggerPointerDownPosRef
|
|
165
147
|
}, /*#__PURE__*/ $cg2C9$react.createElement($1345bda09ffc1bc6$var$Collection.Provider, {
|
|
166
148
|
scope: __scopeSelect
|
|
167
149
|
}, /*#__PURE__*/ $cg2C9$react.createElement($1345bda09ffc1bc6$var$SelectNativeOptionsProvider, {
|
|
@@ -608,7 +590,7 @@ const $1345bda09ffc1bc6$var$SelectContentImpl = /*#__PURE__*/ $cg2C9$react.forwa
|
|
|
608
590
|
searchRef: searchRef
|
|
609
591
|
}, /*#__PURE__*/ $cg2C9$react.createElement($cg2C9$reactremovescroll.RemoveScroll, {
|
|
610
592
|
as: $cg2C9$radixuireactslot.Slot,
|
|
611
|
-
allowPinchZoom:
|
|
593
|
+
allowPinchZoom: true
|
|
612
594
|
}, /*#__PURE__*/ $cg2C9$react.createElement("div", {
|
|
613
595
|
ref: setContentWrapper,
|
|
614
596
|
style: {
|
|
@@ -1184,7 +1166,6 @@ const $1345bda09ffc1bc6$export$bf1aedc3039c8d63 = $1345bda09ffc1bc6$export$ff951
|
|
|
1184
1166
|
const $1345bda09ffc1bc6$export$1ff3c3f08ae963c0 = $1345bda09ffc1bc6$export$eba4b1df07cb1d3;
|
|
1185
1167
|
|
|
1186
1168
|
|
|
1187
|
-
$parcel$exportWildcard(module.exports, $1345bda09ffc1bc6$exports);
|
|
1188
1169
|
|
|
1189
1170
|
|
|
1190
1171
|
//# sourceMappingURL=index.js.map
|