@tamagui/select 1.88.1 → 1.88.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/cjs/Select.js +3 -11
- package/dist/cjs/Select.js.map +1 -1
- package/dist/cjs/SelectContent.js +0 -4
- package/dist/cjs/SelectImpl.js +4 -11
- package/dist/cjs/SelectImpl.js.map +1 -1
- package/dist/cjs/SelectItem.js +2 -9
- package/dist/cjs/SelectItem.js.map +1 -1
- package/dist/cjs/SelectItemText.js +0 -6
- package/dist/cjs/SelectScrollButton.js +5 -14
- package/dist/cjs/SelectScrollButton.js.map +2 -2
- package/dist/cjs/SelectTrigger.js +2 -8
- package/dist/cjs/SelectTrigger.js.map +2 -2
- package/dist/cjs/SelectViewport.js +1 -7
- package/dist/cjs/SelectViewport.js.map +1 -1
- package/dist/cjs/constants.js +0 -10
- package/dist/cjs/context.js +0 -12
- package/dist/cjs/index.js +0 -5
- package/dist/cjs/useSelectBreakpointActive.js +0 -5
- package/dist/esm/BubbleSelect.native.js +22 -4
- package/dist/esm/BubbleSelect.native.js.map +1 -1
- package/dist/esm/Select.native.js +87 -92
- package/dist/esm/Select.native.js.map +2 -2
- package/dist/esm/SelectContent.native.js +23 -2
- package/dist/esm/SelectContent.native.js.map +1 -1
- package/dist/esm/SelectImpl.native.js +25 -4
- package/dist/esm/SelectImpl.native.js.map +1 -1
- package/dist/esm/SelectItem.native.js +47 -20
- package/dist/esm/SelectItem.native.js.map +1 -1
- package/dist/esm/SelectItemText.native.js +38 -13
- package/dist/esm/SelectItemText.native.js.map +1 -1
- package/dist/esm/SelectScrollButton.native.js +24 -2
- package/dist/esm/SelectScrollButton.native.js.map +1 -1
- package/dist/esm/SelectTrigger.native.js +37 -11
- package/dist/esm/SelectTrigger.native.js.map +1 -1
- package/dist/esm/SelectViewport.native.js +37 -18
- package/dist/esm/SelectViewport.native.js.map +1 -1
- package/dist/esm/constants.native.js +29 -2
- package/dist/esm/constants.native.js.map +1 -1
- package/dist/esm/context.native.js +34 -7
- package/dist/esm/context.native.js.map +1 -1
- package/dist/esm/index.native.js +21 -2
- package/dist/esm/index.native.js.map +1 -1
- package/dist/esm/types.native.js +14 -0
- package/dist/esm/types.native.js.map +2 -2
- package/dist/esm/useSelectBreakpointActive.native.js +26 -4
- package/dist/esm/useSelectBreakpointActive.native.js.map +1 -1
- package/dist/jsx/BubbleSelect.native.js +22 -4
- package/dist/jsx/BubbleSelect.native.js.map +1 -1
- package/dist/jsx/Select.js +128 -97
- package/dist/jsx/Select.js.map +1 -1
- package/dist/jsx/Select.native.js +193 -168
- package/dist/jsx/Select.native.js.map +2 -2
- package/dist/jsx/SelectContent.js +10 -5
- package/dist/jsx/SelectContent.js.map +1 -1
- package/dist/jsx/SelectContent.native.js +23 -2
- package/dist/jsx/SelectContent.native.js.map +1 -1
- package/dist/jsx/SelectImpl.js +32 -39
- package/dist/jsx/SelectImpl.js.map +1 -1
- package/dist/jsx/SelectImpl.native.js +25 -3
- package/dist/jsx/SelectImpl.native.js.map +1 -1
- package/dist/jsx/SelectItem.js +33 -25
- package/dist/jsx/SelectItem.js.map +1 -1
- package/dist/jsx/SelectItem.native.js +73 -39
- package/dist/jsx/SelectItem.native.js.map +1 -1
- package/dist/jsx/SelectItemText.js +12 -22
- package/dist/jsx/SelectItemText.js.map +1 -1
- package/dist/jsx/SelectItemText.native.js +47 -32
- package/dist/jsx/SelectItemText.native.js.map +1 -1
- package/dist/jsx/SelectScrollButton.js +50 -40
- package/dist/jsx/SelectScrollButton.js.map +1 -1
- package/dist/jsx/SelectScrollButton.native.js +24 -2
- package/dist/jsx/SelectScrollButton.native.js.map +1 -1
- package/dist/jsx/SelectTrigger.js +37 -33
- package/dist/jsx/SelectTrigger.js.map +1 -1
- package/dist/jsx/SelectTrigger.native.js +63 -34
- package/dist/jsx/SelectTrigger.native.js.map +1 -1
- package/dist/jsx/SelectViewport.js +39 -30
- package/dist/jsx/SelectViewport.js.map +1 -1
- package/dist/jsx/SelectViewport.native.js +43 -19
- package/dist/jsx/SelectViewport.native.js.map +1 -1
- package/dist/jsx/constants.native.js +29 -2
- package/dist/jsx/constants.native.js.map +1 -1
- package/dist/jsx/context.js +2 -1
- package/dist/jsx/context.js.map +1 -1
- package/dist/jsx/context.native.js +34 -6
- package/dist/jsx/context.native.js.map +1 -1
- package/dist/jsx/index.native.js +21 -2
- package/dist/jsx/index.native.js.map +1 -1
- package/dist/jsx/types.native.js +14 -0
- package/dist/jsx/types.native.js.map +2 -2
- package/dist/jsx/useSelectBreakpointActive.native.js +26 -4
- package/dist/jsx/useSelectBreakpointActive.native.js.map +1 -1
- package/package.json +22 -22
|
@@ -1,11 +1,35 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
10
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
return to;
|
|
15
|
+
};
|
|
16
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
17
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
18
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
19
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
20
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
21
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
|
|
22
|
+
mod
|
|
23
|
+
)), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
24
|
+
var SelectItemText_exports = {};
|
|
25
|
+
__export(SelectItemText_exports, {
|
|
26
|
+
ITEM_TEXT_NAME: () => ITEM_TEXT_NAME,
|
|
27
|
+
SelectItemText: () => SelectItemText,
|
|
28
|
+
SelectItemTextFrame: () => SelectItemTextFrame
|
|
29
|
+
});
|
|
30
|
+
module.exports = __toCommonJS(SelectItemText_exports);
|
|
31
|
+
var import_compose_refs = require("@tamagui/compose-refs"), import_core = require("@tamagui/core"), import_text = require("@tamagui/text"), React = __toESM(require("react")), import_context = require("./context"), import_SelectItem = require("./SelectItem"), import_jsx_runtime = require("react/jsx-runtime");
|
|
32
|
+
const ITEM_TEXT_NAME = "SelectItemText", SelectItemTextFrame = (0, import_core.styled)(import_text.SizableText, {
|
|
9
33
|
name: ITEM_TEXT_NAME,
|
|
10
34
|
variants: {
|
|
11
35
|
unstyled: {
|
|
@@ -20,8 +44,8 @@ const ITEM_TEXT_NAME = "SelectItemText", SelectItemTextFrame = styled(SizableTex
|
|
|
20
44
|
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
21
45
|
}
|
|
22
46
|
}), SelectItemText = SelectItemTextFrame.styleable(function(props, forwardedRef) {
|
|
23
|
-
const { __scopeSelect, className, ...itemTextProps } = props, context = useSelectContext(ITEM_TEXT_NAME, __scopeSelect), itemParentContext = useSelectItemParentContext(ITEM_TEXT_NAME, __scopeSelect), ref = React.useRef(null), composedRefs = useComposedRefs(forwardedRef, ref), itemContext = useSelectItemContext(ITEM_TEXT_NAME, __scopeSelect), contents = React.useRef();
|
|
24
|
-
return contents.current = /* @__PURE__ */ jsx(
|
|
47
|
+
const { __scopeSelect, className, ...itemTextProps } = props, context = (0, import_context.useSelectContext)(ITEM_TEXT_NAME, __scopeSelect), itemParentContext = (0, import_context.useSelectItemParentContext)(ITEM_TEXT_NAME, __scopeSelect), ref = React.useRef(null), composedRefs = (0, import_compose_refs.useComposedRefs)(forwardedRef, ref), itemContext = (0, import_SelectItem.useSelectItemContext)(ITEM_TEXT_NAME, __scopeSelect), contents = React.useRef();
|
|
48
|
+
return contents.current = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
25
49
|
SelectItemTextFrame,
|
|
26
50
|
{
|
|
27
51
|
className,
|
|
@@ -34,11 +58,12 @@ const ITEM_TEXT_NAME = "SelectItemText", SelectItemTextFrame = styled(SizableTex
|
|
|
34
58
|
itemParentContext.initialValue === itemContext.value && !context.selectedIndex && context.setSelectedItem(contents.current);
|
|
35
59
|
}, []), React.useEffect(() => itemParentContext.valueSubscribe((val) => {
|
|
36
60
|
val === itemContext.value && context.setSelectedItem(contents.current);
|
|
37
|
-
}), [itemContext.value]), itemParentContext.shouldRenderWebNative ? /* @__PURE__ */ jsx(Fragment, { children: props.children }) : /* @__PURE__ */ jsx(Fragment, { children: contents.current });
|
|
61
|
+
}), [itemContext.value]), itemParentContext.shouldRenderWebNative ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: props.children }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: contents.current });
|
|
38
62
|
});
|
|
39
|
-
export
|
|
63
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
64
|
+
0 && (module.exports = {
|
|
40
65
|
ITEM_TEXT_NAME,
|
|
41
66
|
SelectItemText,
|
|
42
67
|
SelectItemTextFrame
|
|
43
|
-
};
|
|
68
|
+
});
|
|
44
69
|
//# sourceMappingURL=SelectItemText.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/SelectItemText.tsx"],
|
|
4
|
-
"mappings": "AAAA
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,0BAAgC,kCAChC,cAAqD,0BACrD,cAA4B,0BAC5B,QAAuB,2BAEvB,iBAA6D,sBAC7D,oBAAqC,yBA4CjC;AArCG,MAAM,iBAAiB,kBAEjB,0BAAsB,oBAAO,yBAAa;AAAA,EACrD,MAAM;AAAA,EAEN,UAAU;AAAA,IACR,UAAU;AAAA,MACR,OAAO;AAAA,QACL,YAAY;AAAA,QACZ,OAAO;AAAA,QACP,SAAS;AAAA,MACX;AAAA,IACF;AAAA,EACF;AAAA,EAEA,iBAAiB;AAAA,IACf,UAAU,QAAQ,IAAI,qBAAqB;AAAA,EAC7C;AACF,CAAC,GAIY,iBAAiB,oBAAoB,UAAU,SAC1D,OACA,cACA;AACA,QAAM,EAAE,eAAe,WAAW,GAAG,cAAc,IAAI,OACjD,cAAU,iCAAiB,gBAAgB,aAAa,GACxD,wBAAoB,2CAA2B,gBAAgB,aAAa,GAC5E,MAAM,MAAM,OAAkC,IAAI,GAClD,mBAAe,qCAAgB,cAAc,GAAG,GAChD,kBAAc,wCAAqB,gBAAgB,aAAa,GAChE,WAAW,MAAM,OAAwB;AA4B/C,SAxBA,SAAS,UACP;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA,MAAM,kBAAkB;AAAA,MACxB,IAAI,YAAY;AAAA,MACf,GAAG;AAAA,MACJ,KAAK;AAAA;AAAA,EACP,GAGF,MAAM,UAAU,MAAM;AACpB,IAAI,kBAAkB,iBAAiB,YAAY,SAAS,CAAC,QAAQ,iBACnE,QAAQ,gBAAgB,SAAS,OAAO;AAAA,EAE5C,GAAG,CAAC,CAAC,GAEL,MAAM,UAAU,MACP,kBAAkB,eAAe,CAAC,QAAQ;AAC/C,IAAI,QAAQ,YAAY,SACtB,QAAQ,gBAAgB,SAAS,OAAO;AAAA,EAE5C,CAAC,GACA,CAAC,YAAY,KAAK,CAAC,GAElB,kBAAkB,wBACb,2EAAG,gBAAM,UAAS,IAIzB,2EACG,mBAAS,SAUZ;AAEJ,CAAC;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
|
@@ -1,6 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
9
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
13
|
+
return to;
|
|
14
|
+
};
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
16
|
+
var SelectScrollButton_native_exports = {};
|
|
17
|
+
__export(SelectScrollButton_native_exports, {
|
|
18
|
+
SelectScrollDownButton: () => SelectScrollDownButton,
|
|
19
|
+
SelectScrollUpButton: () => SelectScrollUpButton
|
|
20
|
+
});
|
|
21
|
+
module.exports = __toCommonJS(SelectScrollButton_native_exports);
|
|
1
22
|
const SelectScrollUpButton = (_) => null, SelectScrollDownButton = (_) => null;
|
|
2
|
-
export
|
|
23
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
24
|
+
0 && (module.exports = {
|
|
3
25
|
SelectScrollDownButton,
|
|
4
26
|
SelectScrollUpButton
|
|
5
|
-
};
|
|
27
|
+
});
|
|
6
28
|
//# sourceMappingURL=SelectScrollButton.native.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/SelectScrollButton.native.tsx"],
|
|
4
|
-
"mappings": "AAGO,MAAM,uBAAuB,CAAC,MAA4C,MAGpE,yBAAyB,CAAC,MAA4C;",
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAGO,MAAM,uBAAuB,CAAC,MAA4C,MAGpE,yBAAyB,CAAC,MAA4C;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
|
@@ -1,16 +1,41 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
10
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
return to;
|
|
15
|
+
};
|
|
16
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
17
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
18
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
19
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
20
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
21
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
|
|
22
|
+
mod
|
|
23
|
+
)), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
24
|
+
var SelectTrigger_exports = {};
|
|
25
|
+
__export(SelectTrigger_exports, {
|
|
26
|
+
SelectTrigger: () => SelectTrigger
|
|
27
|
+
});
|
|
28
|
+
module.exports = __toCommonJS(SelectTrigger_exports);
|
|
29
|
+
var import_compose_refs = require("@tamagui/compose-refs"), import_list_item = require("@tamagui/list-item"), React = __toESM(require("react")), import_context = require("./context"), import_jsx_runtime = require("react/jsx-runtime");
|
|
6
30
|
const TRIGGER_NAME = "SelectTrigger", SelectTrigger = React.forwardRef(
|
|
7
31
|
function(props, forwardedRef) {
|
|
8
|
-
|
|
32
|
+
var _a;
|
|
33
|
+
const { __scopeSelect, disabled = !1, unstyled = !1, ...triggerProps } = props, context = (0, import_context.useSelectContext)(TRIGGER_NAME, __scopeSelect), itemParentContext = (0, import_context.useSelectItemParentContext)(TRIGGER_NAME, __scopeSelect), composedRefs = (0, import_compose_refs.useComposedRefs)(
|
|
9
34
|
forwardedRef,
|
|
10
|
-
context.floatingContext
|
|
35
|
+
(_a = context.floatingContext) == null ? void 0 : _a.refs.setReference
|
|
11
36
|
);
|
|
12
|
-
return itemParentContext.shouldRenderWebNative ? null : /* @__PURE__ */ jsx(
|
|
13
|
-
ListItem,
|
|
37
|
+
return itemParentContext.shouldRenderWebNative ? null : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
38
|
+
import_list_item.ListItem,
|
|
14
39
|
{
|
|
15
40
|
componentName: TRIGGER_NAME,
|
|
16
41
|
unstyled,
|
|
@@ -42,7 +67,8 @@ const TRIGGER_NAME = "SelectTrigger", SelectTrigger = React.forwardRef(
|
|
|
42
67
|
);
|
|
43
68
|
}
|
|
44
69
|
);
|
|
45
|
-
export
|
|
70
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
71
|
+
0 && (module.exports = {
|
|
46
72
|
SelectTrigger
|
|
47
|
-
};
|
|
73
|
+
});
|
|
48
74
|
//# sourceMappingURL=SelectTrigger.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/SelectTrigger.tsx"],
|
|
4
|
-
"mappings": "AAAA
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,0BAAgC,kCAEhC,mBAAwC,+BACxC,QAAuB,2BAEvB,iBAA6D,sBA4BvD;AAtBN,MAAM,eAAe,iBAIR,gBAAgB,MAAM;AAAA,EACjC,SAAuB,OAAwC,cAAc;AAhB/E;AAiBI,UAAM,EAAE,eAAe,WAAW,IAAO,WAAW,IAAO,GAAG,aAAa,IAAI,OAEzE,cAAU,iCAAiB,cAAc,aAAa,GACtD,wBAAoB,2CAA2B,cAAc,aAAa,GAC1E,mBAAe;AAAA,MACnB;AAAA,OACA,aAAQ,oBAAR,mBAAyB,KAAK;AAAA,IAChC;AAIA,WAAI,kBAAkB,wBACb,OAIP;AAAA,MAAC;AAAA;AAAA,QACC,eAAe;AAAA,QACf;AAAA,QACC,GAAI,CAAC,YAAY;AAAA,UAChB,cAAc;AAAA,UACd,UAAU;AAAA,UACV,YAAY;AAAA,UACZ,YAAY;AAAA,UACZ,WAAW;AAAA,UACX,YAAY;AAAA,YACV,cAAc;AAAA,YACd,cAAc;AAAA,YACd,cAAc;AAAA,UAChB;AAAA,UACA,aAAa;AAAA,QACf;AAAA,QACA,MAAM,kBAAkB;AAAA,QAExB,iBAAe,QAAQ;AAAA,QACvB,qBAAkB;AAAA,QAClB,KAAK,QAAQ;AAAA,QACb;AAAA,QACA,iBAAe,WAAW,KAAK;AAAA,QAC9B,GAAG;AAAA,QACJ,KAAK;AAAA,QAUC,UAAU;AACR,4BAAkB,QAAQ,CAAC,QAAQ,IAAI;AAAA,QACzC;AAAA;AAAA,IAER;AAAA,EAEJ;AACF;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
|
@@ -1,28 +1,47 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
} from
|
|
11
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
10
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
return to;
|
|
15
|
+
};
|
|
16
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
17
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
18
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
19
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
20
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
21
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
|
|
22
|
+
mod
|
|
23
|
+
)), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
24
|
+
var SelectViewport_native_exports = {};
|
|
25
|
+
__export(SelectViewport_native_exports, {
|
|
26
|
+
SelectViewport: () => SelectViewport
|
|
27
|
+
});
|
|
28
|
+
module.exports = __toCommonJS(SelectViewport_native_exports);
|
|
29
|
+
var import_adapt = require("@tamagui/adapt"), import_core = require("@tamagui/core"), import_portal = require("@tamagui/portal"), React = __toESM(require("react")), import_constants = require("./constants"), import_context = require("./context"), import_jsx_runtime = require("react/jsx-runtime");
|
|
12
30
|
const SelectViewport = (props) => {
|
|
13
|
-
const { __scopeSelect, children } = props, context = useSelectContext(VIEWPORT_NAME, __scopeSelect), itemParentContext = useSelectItemParentContext(VIEWPORT_NAME, __scopeSelect), themeName = useThemeName(), adaptContext = React.useContext(AdaptParentContext);
|
|
14
|
-
return /* @__PURE__ */ jsx(PortalItem, { hostName: `${context.scopeKey}SheetContents`, children: /* @__PURE__ */ jsx(Theme, { name: themeName, children: /* @__PURE__ */ jsx(
|
|
15
|
-
ForwardSelectContext,
|
|
31
|
+
const { __scopeSelect, children } = props, context = (0, import_context.useSelectContext)(import_constants.VIEWPORT_NAME, __scopeSelect), itemParentContext = (0, import_context.useSelectItemParentContext)(import_constants.VIEWPORT_NAME, __scopeSelect), themeName = (0, import_core.useThemeName)(), adaptContext = React.useContext(import_adapt.AdaptParentContext);
|
|
32
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_portal.PortalItem, { hostName: `${context.scopeKey}SheetContents`, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.Theme, { name: themeName, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
33
|
+
import_context.ForwardSelectContext,
|
|
16
34
|
{
|
|
17
35
|
__scopeSelect,
|
|
18
36
|
itemContext: itemParentContext,
|
|
19
37
|
context,
|
|
20
|
-
children: /* @__PURE__ */ jsx(AdaptParentContext.Provider, { value: adaptContext, children })
|
|
38
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_adapt.AdaptParentContext.Provider, { value: adaptContext, children })
|
|
21
39
|
}
|
|
22
40
|
) }) });
|
|
23
41
|
};
|
|
24
|
-
SelectViewport.displayName = VIEWPORT_NAME;
|
|
25
|
-
export
|
|
42
|
+
SelectViewport.displayName = import_constants.VIEWPORT_NAME;
|
|
43
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
44
|
+
0 && (module.exports = {
|
|
26
45
|
SelectViewport
|
|
27
|
-
};
|
|
46
|
+
});
|
|
28
47
|
//# sourceMappingURL=SelectViewport.native.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/SelectViewport.native.tsx"],
|
|
4
|
-
"mappings": "AAAA
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAmC,2BACnC,cAAoC,0BACpC,gBAA2B,4BAC3B,QAAuB,2BAEvB,mBAA8B,wBAC9B,iBAIO,sBAmBG;AAhBH,MAAM,iBAAiB,CAAC,UAA4C;AACzE,QAAM,EAAE,eAAe,SAAS,IAAI,OAC9B,cAAU,iCAAiB,gCAAe,aAAa,GACvD,wBAAoB,2CAA2B,gCAAe,aAAa,GAC3E,gBAAY,0BAAa,GACzB,eAAe,MAAM,WAAW,+BAAkB;AAGxD,SACE,4CAAC,4BAAW,UAAU,GAAG,QAAQ,QAAQ,iBACvC,sDAAC,qBAAM,MAAM,WACX;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA,aAAa;AAAA,MACb;AAAA,MAEA,sDAAC,gCAAmB,UAAnB,EAA4B,OAAO,cACjC,UACH;AAAA;AAAA,EACF,GACF,GACF;AAEJ;AAEA,eAAe,cAAc;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
|
@@ -1,5 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
9
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
13
|
+
return to;
|
|
14
|
+
};
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
16
|
+
var constants_exports = {};
|
|
17
|
+
__export(constants_exports, {
|
|
18
|
+
FALLBACK_THRESHOLD: () => FALLBACK_THRESHOLD,
|
|
19
|
+
MIN_HEIGHT: () => MIN_HEIGHT,
|
|
20
|
+
SCROLL_ARROW_THRESHOLD: () => SCROLL_ARROW_THRESHOLD,
|
|
21
|
+
SCROLL_ARROW_VELOCITY: () => SCROLL_ARROW_VELOCITY,
|
|
22
|
+
SELECT_NAME: () => SELECT_NAME,
|
|
23
|
+
VIEWPORT_NAME: () => VIEWPORT_NAME,
|
|
24
|
+
WINDOW_PADDING: () => WINDOW_PADDING
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(constants_exports);
|
|
1
27
|
const SELECT_NAME = "Select", WINDOW_PADDING = 8, SCROLL_ARROW_VELOCITY = 8, SCROLL_ARROW_THRESHOLD = 8, MIN_HEIGHT = 80, FALLBACK_THRESHOLD = 16, VIEWPORT_NAME = "SelectViewport";
|
|
2
|
-
export
|
|
28
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
29
|
+
0 && (module.exports = {
|
|
3
30
|
FALLBACK_THRESHOLD,
|
|
4
31
|
MIN_HEIGHT,
|
|
5
32
|
SCROLL_ARROW_THRESHOLD,
|
|
@@ -7,5 +34,5 @@ export {
|
|
|
7
34
|
SELECT_NAME,
|
|
8
35
|
VIEWPORT_NAME,
|
|
9
36
|
WINDOW_PADDING
|
|
10
|
-
};
|
|
37
|
+
});
|
|
11
38
|
//# sourceMappingURL=constants.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/constants.tsx"],
|
|
4
|
-
"mappings": "AAAO,MAAM,cAAc,UACd,iBAAiB,GACjB,wBAAwB,GACxB,yBAAyB,GACzB,aAAa,IACb,qBAAqB,IACrB,gBAAgB;",
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,cAAc,UACd,iBAAiB,GACjB,wBAAwB,GACxB,yBAAyB,GACzB,aAAa,IACb,qBAAqB,IACrB,gBAAgB;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
|
@@ -1,13 +1,40 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
9
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
13
|
+
return to;
|
|
14
|
+
};
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
16
|
+
var context_exports = {};
|
|
17
|
+
__export(context_exports, {
|
|
18
|
+
ForwardSelectContext: () => ForwardSelectContext,
|
|
19
|
+
SelectItemParentProvider: () => SelectItemParentProvider,
|
|
20
|
+
SelectProvider: () => SelectProvider,
|
|
21
|
+
createSelectContext: () => createSelectContext,
|
|
22
|
+
createSelectItemParentContext: () => createSelectItemParentContext,
|
|
23
|
+
createSelectItemParentScope: () => createSelectItemParentScope,
|
|
24
|
+
createSelectScope: () => createSelectScope,
|
|
25
|
+
useSelectContext: () => useSelectContext,
|
|
26
|
+
useSelectItemParentContext: () => useSelectItemParentContext
|
|
27
|
+
});
|
|
28
|
+
module.exports = __toCommonJS(context_exports);
|
|
29
|
+
var import_create_context = require("@tamagui/create-context"), import_constants = require("./constants"), import_jsx_runtime = require("react/jsx-runtime");
|
|
30
|
+
const [createSelectContext, createSelectScope] = (0, import_create_context.createContextScope)(import_constants.SELECT_NAME), [SelectProvider, useSelectContext] = createSelectContext(import_constants.SELECT_NAME), [createSelectItemParentContext, createSelectItemParentScope] = (0, import_create_context.createContextScope)(import_constants.SELECT_NAME), [SelectItemParentProvider, useSelectItemParentContext] = createSelectContext(import_constants.SELECT_NAME), ForwardSelectContext = ({
|
|
5
31
|
__scopeSelect,
|
|
6
32
|
context,
|
|
7
33
|
itemContext,
|
|
8
34
|
children
|
|
9
|
-
}) => /* @__PURE__ */ jsx(SelectProvider, { isInSheet: !0, scope: __scopeSelect, ...context, children: /* @__PURE__ */ jsx(SelectItemParentProvider, { scope: __scopeSelect, ...itemContext, children }) });
|
|
10
|
-
export
|
|
35
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SelectProvider, { isInSheet: !0, scope: __scopeSelect, ...context, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SelectItemParentProvider, { scope: __scopeSelect, ...itemContext, children }) });
|
|
36
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
37
|
+
0 && (module.exports = {
|
|
11
38
|
ForwardSelectContext,
|
|
12
39
|
SelectItemParentProvider,
|
|
13
40
|
SelectProvider,
|
|
@@ -17,5 +44,5 @@ export {
|
|
|
17
44
|
createSelectScope,
|
|
18
45
|
useSelectContext,
|
|
19
46
|
useSelectItemParentContext
|
|
20
|
-
};
|
|
47
|
+
});
|
|
21
48
|
//# sourceMappingURL=context.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/context.tsx"],
|
|
4
|
-
"mappings": "AAAA,
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,4BAAmC,oCAEnC,mBAA4B,wBA4BtB;AAzBC,MAAM,CAAC,qBAAqB,iBAAiB,QAAI,0CAAmB,4BAAW,GAEzE,CAAC,gBAAgB,gBAAgB,IAC5C,oBAAwC,4BAAW,GAIxC,CAAC,+BAA+B,2BAA2B,QACtE,0CAAmB,4BAAW,GAEnB,CAAC,0BAA0B,0BAA0B,IAChE,oBAAkD,4BAAW,GAElD,uBAAuB,CAAC;AAAA,EACnC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,MAMI,4CAAC,kBAAe,WAAS,IAAC,OAAO,eAAgB,GAAG,SAClD,sDAAC,4BAAyB,OAAO,eAAgB,GAAG,aACjD,UACH,GACF;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
package/dist/esm/index.native.js
CHANGED
|
@@ -1,3 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
10
|
+
return to;
|
|
11
|
+
}, __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
12
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
13
|
+
var src_exports = {};
|
|
14
|
+
module.exports = __toCommonJS(src_exports);
|
|
15
|
+
__reExport(src_exports, require("./Select"), module.exports);
|
|
16
|
+
__reExport(src_exports, require("./context"), module.exports);
|
|
17
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
18
|
+
0 && (module.exports = {
|
|
19
|
+
...require("./Select"),
|
|
20
|
+
...require("./context")
|
|
21
|
+
});
|
|
3
22
|
//# sourceMappingURL=index.js.map
|
package/dist/esm/types.native.js
CHANGED
|
@@ -1 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
10
|
+
return to;
|
|
11
|
+
};
|
|
12
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
13
|
+
var types_exports = {};
|
|
14
|
+
module.exports = __toCommonJS(types_exports);
|
|
1
15
|
//# sourceMappingURL=types.js.map
|
|
@@ -1,13 +1,35 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
9
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
13
|
+
return to;
|
|
14
|
+
};
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
16
|
+
var useSelectBreakpointActive_exports = {};
|
|
17
|
+
__export(useSelectBreakpointActive_exports, {
|
|
18
|
+
useSelectBreakpointActive: () => useSelectBreakpointActive,
|
|
19
|
+
useShowSelectSheet: () => useShowSelectSheet
|
|
20
|
+
});
|
|
21
|
+
module.exports = __toCommonJS(useSelectBreakpointActive_exports);
|
|
22
|
+
var import_core = require("@tamagui/core");
|
|
2
23
|
const useSelectBreakpointActive = (sheetBreakpoint) => {
|
|
3
|
-
const media = useMedia();
|
|
24
|
+
const media = (0, import_core.useMedia)();
|
|
4
25
|
return sheetBreakpoint ? sheetBreakpoint === !0 ? !0 : sheetBreakpoint ? media[sheetBreakpoint] : !1 : !1;
|
|
5
26
|
}, useShowSelectSheet = (context) => {
|
|
6
27
|
const breakpointActive = useSelectBreakpointActive(context.sheetBreakpoint);
|
|
7
28
|
return context.open === !1 ? !1 : breakpointActive;
|
|
8
29
|
};
|
|
9
|
-
export
|
|
30
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
31
|
+
0 && (module.exports = {
|
|
10
32
|
useSelectBreakpointActive,
|
|
11
33
|
useShowSelectSheet
|
|
12
|
-
};
|
|
34
|
+
});
|
|
13
35
|
//# sourceMappingURL=useSelectBreakpointActive.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/useSelectBreakpointActive.tsx"],
|
|
4
|
-
"mappings": "AAAA,
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAyB;AAIlB,MAAM,4BAA4B,CACvC,oBACG;AACH,QAAM,YAAQ,sBAAS;AACvB,SAAK,kBACD,oBAAoB,KAAa,KAC9B,kBAAkB,MAAM,eAAe,IAAI,KAFrB;AAG/B,GAEa,qBAAqB,CAAC,YAAgC;AACjE,QAAM,mBAAmB,0BAA0B,QAAQ,eAAe;AAC1E,SAAO,QAAQ,SAAS,KAAQ,KAAQ;AAC1C;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
|
@@ -1,8 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __copyProps = (to, from, except, desc) => {
|
|
8
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
9
|
+
for (let key of __getOwnPropNames(from))
|
|
10
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
return to;
|
|
12
|
+
};
|
|
13
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
14
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
15
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
16
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
17
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
18
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
|
|
19
|
+
mod
|
|
20
|
+
));
|
|
21
|
+
var import_compose_refs = require("@tamagui/compose-refs"), import_use_previous = require("@tamagui/use-previous"), React = __toESM(require("react"));
|
|
4
22
|
const BubbleSelect = React.forwardRef((props, forwardedRef) => {
|
|
5
|
-
const { value, ...selectProps } = props, ref = React.useRef(null), composedRefs = useComposedRefs(forwardedRef, ref), prevValue = usePrevious(value);
|
|
23
|
+
const { value, ...selectProps } = props, ref = React.useRef(null), composedRefs = (0, import_compose_refs.useComposedRefs)(forwardedRef, ref), prevValue = (0, import_use_previous.usePrevious)(value);
|
|
6
24
|
return React.useEffect(() => {
|
|
7
25
|
const select = ref.current, selectProto = window.HTMLSelectElement.prototype, setValue = Object.getOwnPropertyDescriptor(
|
|
8
26
|
selectProto,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/BubbleSelect.tsx"],
|
|
4
|
-
"mappings": "AAAA,
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;AAAA,0BAAgC,kCAChC,sBAA4B,kCAC5B,QAAuB;AAGvB,MAAM,eAAe,MAAM,WAGzB,CAAC,OAAO,iBAAiB;AACzB,QAAM,EAAE,OAAO,GAAG,YAAY,IAAI,OAC5B,MAAM,MAAM,OAA0B,IAAI,GAC1C,mBAAe,qCAAgB,cAAc,GAAG,GAChD,gBAAY,iCAAY,KAAK;AAGnC,eAAM,UAAU,MAAM;AACpB,UAAM,SAAS,IAAI,SACb,cAAc,OAAO,kBAAkB,WAKvC,WAJa,OAAO;AAAA,MACxB;AAAA,MACA;AAAA,IACF,EAC4B;AAC5B,QAAI,cAAc,SAAS,UAAU;AACnC,YAAM,QAAQ,IAAI,MAAM,UAAU,EAAE,SAAS,GAAK,CAAC;AACnD,eAAS,KAAK,QAAQ,KAAK,GAC3B,OAAO,cAAc,KAAK;AAAA,IAC5B;AAAA,EACF,GAAG,CAAC,WAAW,KAAK,CAAC,GAed;AAMT,CAAC;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|