@tamagui/select 1.115.4 → 1.116.0
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.cjs +117 -122
- package/dist/cjs/Select.cjs.map +2 -2
- package/dist/cjs/Select.native.js +100 -101
- package/dist/cjs/Select.native.js.map +2 -2
- package/dist/cjs/SelectViewport.cjs +4 -6
- package/dist/cjs/SelectViewport.cjs.map +1 -1
- package/dist/cjs/SelectViewport.native.cjs +8 -22
- package/dist/cjs/SelectViewport.native.cjs.map +1 -1
- package/dist/cjs/SelectViewport.native.js +7 -16
- package/dist/cjs/SelectViewport.native.js.map +2 -2
- package/dist/cjs/useSelectBreakpointActive.cjs +5 -10
- package/dist/cjs/useSelectBreakpointActive.cjs.map +1 -1
- package/dist/cjs/useSelectBreakpointActive.native.js +2 -7
- package/dist/cjs/useSelectBreakpointActive.native.js.map +2 -2
- package/dist/esm/Select.js +110 -118
- package/dist/esm/Select.js.map +1 -1
- package/dist/esm/Select.mjs +118 -123
- package/dist/esm/Select.mjs.map +1 -1
- package/dist/esm/Select.native.js +103 -106
- package/dist/esm/Select.native.js.map +2 -2
- package/dist/esm/SelectViewport.js +5 -6
- package/dist/esm/SelectViewport.js.map +1 -1
- package/dist/esm/SelectViewport.mjs +4 -6
- package/dist/esm/SelectViewport.mjs.map +1 -1
- package/dist/esm/SelectViewport.native.js +5 -8
- package/dist/esm/SelectViewport.native.js.map +2 -2
- package/dist/esm/useSelectBreakpointActive.js +3 -7
- package/dist/esm/useSelectBreakpointActive.js.map +1 -1
- package/dist/esm/useSelectBreakpointActive.mjs +6 -10
- package/dist/esm/useSelectBreakpointActive.mjs.map +1 -1
- package/dist/esm/useSelectBreakpointActive.native.js +3 -7
- package/dist/esm/useSelectBreakpointActive.native.js.map +2 -2
- package/dist/jsx/Select.js +110 -118
- package/dist/jsx/Select.js.map +1 -1
- package/dist/jsx/Select.mjs +118 -123
- package/dist/jsx/Select.mjs.map +1 -1
- package/dist/jsx/Select.native.js +103 -106
- package/dist/jsx/Select.native.js.map +2 -2
- package/dist/jsx/SelectViewport.js +5 -6
- package/dist/jsx/SelectViewport.js.map +1 -1
- package/dist/jsx/SelectViewport.mjs +4 -6
- package/dist/jsx/SelectViewport.mjs.map +1 -1
- package/dist/jsx/SelectViewport.native.js +5 -8
- package/dist/jsx/SelectViewport.native.js.map +2 -2
- package/dist/jsx/useSelectBreakpointActive.js +3 -7
- package/dist/jsx/useSelectBreakpointActive.js.map +1 -1
- package/dist/jsx/useSelectBreakpointActive.mjs +6 -10
- package/dist/jsx/useSelectBreakpointActive.mjs.map +1 -1
- package/dist/jsx/useSelectBreakpointActive.native.js +3 -7
- package/dist/jsx/useSelectBreakpointActive.native.js.map +2 -2
- package/package.json +23 -23
- package/src/Select.tsx +174 -186
- package/src/SelectViewport.native.tsx +7 -10
- package/src/SelectViewport.tsx +7 -9
- package/src/types.tsx +0 -1
- package/src/useSelectBreakpointActive.tsx +2 -12
- package/types/Select.d.ts +5 -3
- package/types/Select.d.ts.map +1 -1
- package/types/SelectViewport.d.ts.map +1 -1
- package/types/SelectViewport.native.d.ts.map +1 -1
- package/types/types.d.ts +0 -1
- package/types/types.d.ts.map +1 -1
- package/types/useSelectBreakpointActive.d.ts +0 -1
- package/types/useSelectBreakpointActive.d.ts.map +1 -1
|
@@ -25,15 +25,14 @@ __export(SelectViewport_exports, {
|
|
|
25
25
|
});
|
|
26
26
|
module.exports = __toCommonJS(SelectViewport_exports);
|
|
27
27
|
var import_react = require("@floating-ui/react"),
|
|
28
|
+
import_adapt = require("@tamagui/adapt"),
|
|
28
29
|
import_animate_presence = require("@tamagui/animate-presence"),
|
|
29
30
|
import_compose_refs = require("@tamagui/compose-refs"),
|
|
30
31
|
import_constants = require("@tamagui/constants"),
|
|
31
32
|
import_core = require("@tamagui/core"),
|
|
32
|
-
import_portal = require("@tamagui/portal"),
|
|
33
33
|
import_stacks = require("@tamagui/stacks"),
|
|
34
34
|
import_constants2 = require("./constants.cjs"),
|
|
35
35
|
import_context = require("./context.cjs"),
|
|
36
|
-
import_useSelectBreakpointActive = require("./useSelectBreakpointActive.cjs"),
|
|
37
36
|
import_jsx_runtime = require("react/jsx-runtime");
|
|
38
37
|
const SelectViewportFrame = (0, import_core.styled)(import_stacks.ThemeableStack, {
|
|
39
38
|
name: import_constants2.VIEWPORT_NAME,
|
|
@@ -69,14 +68,13 @@ const SelectViewportFrame = (0, import_core.styled)(import_stacks.ThemeableStack
|
|
|
69
68
|
} = props,
|
|
70
69
|
context = (0, import_context.useSelectContext)(import_constants2.VIEWPORT_NAME, __scopeSelect),
|
|
71
70
|
itemContext = (0, import_context.useSelectItemParentContext)(import_constants2.VIEWPORT_NAME, __scopeSelect),
|
|
72
|
-
|
|
71
|
+
isAdapted = (0, import_adapt.useAdaptIsActive)();
|
|
73
72
|
if ((0, import_constants.useIsomorphicLayoutEffect)(() => {
|
|
74
73
|
context.update && context.update();
|
|
75
|
-
}, [
|
|
74
|
+
}, [isAdapted]), itemContext.shouldRenderWebNative) return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {
|
|
76
75
|
children
|
|
77
76
|
});
|
|
78
|
-
if (
|
|
79
|
-
hostName: `${context.scopeKey}SheetContents`,
|
|
77
|
+
if (isAdapted || !import_constants.isWeb) return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_adapt.AdaptPortalContents, {
|
|
80
78
|
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_context.ForwardSelectContext, {
|
|
81
79
|
__scopeSelect,
|
|
82
80
|
itemContext,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/SelectViewport.tsx"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAqC,+BACrC,0BAAgC,sCAChC,sBAA4B,kCAC5B,mBAAiD,+BACjD,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K,+DAA+D,GAGvE;AAGT,UAAM;AAAA,MACJ;AAAA;AAAA,MAEA;AAAA,MACA,GAAG;AAAA,IACL,IAAI,YAAY,aAAa,iBAAiB,GAExC,mBAAe;AAAA,MACnB;AAAA,MACA,QAAQ,iBAAiB,KAAK;AAAA,IAChC;AAEA,WACE,4EACG;AAAA,OAAC,iBAAiB,CAAC,MAAM,YACxB;AAAA,QAAC;AAAA;AAAA,UACC,yBAAyB;AAAA,YACvB,QAAQ;AAAA,UACV;AAAA;AAAA,MACF;AAAA,MAEF,4CAAC,2CACE,kBAAQ,OACP,4CAAC,qCAAqB,SAAS,QAAQ,iBAAkB,OAAO,IAC9D;AAAA,QAAC;AAAA;AAAA,UAEC,MAAM,YAAY;AAAA,UAClB,MAAK;AAAA,UACJ,GAAG;AAAA,UACH,GAAG;AAAA,UACH,GAAG;AAAA,UACH,GAAI,CAAC,MAAM,YAAY;AAAA,YACtB,WAAW,gBAAgB,SAAa,MAAM,YAAY;AAAA,UAC5D;AAAA,UACA,KAAK;AAAA,UAEJ;AAAA;AAAA,QAXG;AAAA,MAYN,GACF,IACE,MACN;AAAA,MAGC,CAAC,QAAQ,QAAQ,4CAAC,SAAI,OAAO,EAAE,SAAS,OAAO,GAAI,gBAAM,UAAS;AAAA,OACrE;AAAA,EAEJ;AACF,GAEM,oBAAoB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;",
|
|
5
5
|
"names": ["import_constants"]
|
|
6
6
|
}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
1
|
var __defProp = Object.defineProperty;
|
|
3
2
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var
|
|
6
|
-
__hasOwnProp = Object.prototype.hasOwnProperty;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
5
|
var __export = (target, all) => {
|
|
8
6
|
for (var name in all) __defProp(target, name, {
|
|
9
7
|
get: all[name],
|
|
@@ -17,18 +15,9 @@ var __export = (target, all) => {
|
|
|
17
15
|
});
|
|
18
16
|
return to;
|
|
19
17
|
};
|
|
20
|
-
var
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
26
|
-
value: mod,
|
|
27
|
-
enumerable: !0
|
|
28
|
-
}) : target, mod)),
|
|
29
|
-
__toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
30
|
-
value: !0
|
|
31
|
-
}), mod);
|
|
18
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
19
|
+
value: !0
|
|
20
|
+
}), mod);
|
|
32
21
|
var SelectViewport_native_exports = {};
|
|
33
22
|
__export(SelectViewport_native_exports, {
|
|
34
23
|
SelectViewport: () => SelectViewport
|
|
@@ -36,8 +25,6 @@ __export(SelectViewport_native_exports, {
|
|
|
36
25
|
module.exports = __toCommonJS(SelectViewport_native_exports);
|
|
37
26
|
var import_adapt = require("@tamagui/adapt"),
|
|
38
27
|
import_core = require("@tamagui/core"),
|
|
39
|
-
import_portal = require("@tamagui/portal"),
|
|
40
|
-
React = __toESM(require("react")),
|
|
41
28
|
import_constants = require("./constants.cjs"),
|
|
42
29
|
import_context = require("./context.cjs"),
|
|
43
30
|
import_jsx_runtime = require("react/jsx-runtime");
|
|
@@ -49,17 +36,16 @@ const SelectViewport = props => {
|
|
|
49
36
|
context = (0, import_context.useSelectContext)(import_constants.VIEWPORT_NAME, __scopeSelect),
|
|
50
37
|
itemParentContext = (0, import_context.useSelectItemParentContext)(import_constants.VIEWPORT_NAME, __scopeSelect),
|
|
51
38
|
themeName = (0, import_core.useThemeName)(),
|
|
52
|
-
adaptContext =
|
|
53
|
-
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(
|
|
54
|
-
hostName: `${context.scopeKey}SheetContents`,
|
|
39
|
+
adaptContext = (0, import_adapt.useAdaptContext)();
|
|
40
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_adapt.AdaptPortalContents, {
|
|
55
41
|
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_core.Theme, {
|
|
56
42
|
name: themeName,
|
|
57
43
|
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_context.ForwardSelectContext, {
|
|
58
44
|
__scopeSelect,
|
|
59
45
|
itemContext: itemParentContext,
|
|
60
46
|
context,
|
|
61
|
-
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_adapt.
|
|
62
|
-
|
|
47
|
+
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_adapt.AdaptContext.Provider, {
|
|
48
|
+
...adaptContext,
|
|
63
49
|
children
|
|
64
50
|
})
|
|
65
51
|
})
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/SelectViewport.native.tsx"],
|
|
4
|
-
"mappings": "
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAmE,2BACnE,cAAoC,0BAEpC,mBAA8B,wBAC9B,iBAIO,sBAoBG;AAjBH,MAAM,iBAAiB,CAAC,UAAkD;AAC/E,QAAM,EAAE,eAAe,SAAS,IAAI,OAC9B,cAAU,iCAAiB,gCAAe,aAAa,GACvD,wBAAoB,2CAA2B,gCAAe,aAAa,GAC3E,gBAAY,0BAAa,GAGzB,mBAAe,8BAAgB;AAErC,SACE,4CAAC,oCACC,sDAAC,qBAAM,MAAM,WACX;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA,aAAa;AAAA,MACb;AAAA,MAEA,sDAAC,0BAAa,UAAb,EAAuB,GAAG,cAAe,UAAS;AAAA;AAAA,EACrD,GACF,GACF;AAEJ;AAEA,eAAe,cAAc;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
2
|
var __defProp = Object.defineProperty;
|
|
4
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
6
|
var __export = (target, all) => {
|
|
8
7
|
for (var name in all)
|
|
9
8
|
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
@@ -13,31 +12,23 @@ var __export = (target, all) => {
|
|
|
13
12
|
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
13
|
return to;
|
|
15
14
|
};
|
|
16
|
-
var
|
|
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);
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
24
16
|
var SelectViewport_native_exports = {};
|
|
25
17
|
__export(SelectViewport_native_exports, {
|
|
26
18
|
SelectViewport: () => SelectViewport
|
|
27
19
|
});
|
|
28
20
|
module.exports = __toCommonJS(SelectViewport_native_exports);
|
|
29
|
-
var import_jsx_runtime = require("react/jsx-runtime"), import_adapt = require("@tamagui/adapt"), import_core = require("@tamagui/core"),
|
|
30
|
-
var { __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 =
|
|
31
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
32
|
-
hostName: `${context.scopeKey}SheetContents`,
|
|
21
|
+
var import_jsx_runtime = require("react/jsx-runtime"), import_adapt = require("@tamagui/adapt"), import_core = require("@tamagui/core"), import_constants = require("./constants"), import_context = require("./context"), SelectViewport = function(props) {
|
|
22
|
+
var { __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 = (0, import_adapt.useAdaptContext)();
|
|
23
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_adapt.AdaptPortalContents, {
|
|
33
24
|
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.Theme, {
|
|
34
25
|
name: themeName,
|
|
35
26
|
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_context.ForwardSelectContext, {
|
|
36
27
|
__scopeSelect,
|
|
37
28
|
itemContext: itemParentContext,
|
|
38
29
|
context,
|
|
39
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_adapt.
|
|
40
|
-
|
|
30
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_adapt.AdaptContext.Provider, {
|
|
31
|
+
...adaptContext,
|
|
41
32
|
children
|
|
42
33
|
})
|
|
43
34
|
})
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Users/n8/tamagui/code/ui/select/src/SelectViewport.native.tsx"],
|
|
4
|
-
"mappings": "
|
|
5
|
-
"names": ["SelectViewport", "props", "__scopeSelect", "children", "context", "useSelectContext", "VIEWPORT_NAME", "itemParentContext", "useSelectItemParentContext", "themeName", "useThemeName", "adaptContext", "
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;uDAAA,eAAmE,2BACnE,cAAoC,0BAEpC,mBAA8B,wBAC9B,iBAIO,sBAGMA,iBAAiB,SAACC,OAAAA;AAC7B,MAAM,EAAEC,eAAeC,SAAQ,IAAKF,OAC9BG,cAAUC,iCAAiBC,gCAAeJ,aAAAA,GAC1CK,wBAAoBC,2CAA2BF,gCAAeJ,aAAAA,GAC9DO,gBAAYC,0BAAAA,GAGZC,mBAAeC,8BAAAA;AAErB,SACE,uCAAAC,KAACC,kCAAAA;cACC,uCAAAD,KAACE,mBAAAA;MAAMC,MAAMP;gBACX,uCAAAI,KAACI,qCAAAA;QACCf;QACAgB,aAAaX;QACbH;kBAEA,uCAAAS,KAACM,0BAAaC,UAAQ;UAAE,GAAGT;;;;;;AAKrC;AAEAX,eAAeqB,cAAcf;",
|
|
5
|
+
"names": ["SelectViewport", "props", "__scopeSelect", "children", "context", "useSelectContext", "VIEWPORT_NAME", "itemParentContext", "useSelectItemParentContext", "themeName", "useThemeName", "adaptContext", "useAdaptContext", "_jsx", "AdaptPortalContents", "Theme", "name", "ForwardSelectContext", "itemContext", "AdaptContext", "Provider", "displayName"]
|
|
6
6
|
}
|
|
@@ -20,16 +20,11 @@ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
|
20
20
|
}), mod);
|
|
21
21
|
var useSelectBreakpointActive_exports = {};
|
|
22
22
|
__export(useSelectBreakpointActive_exports, {
|
|
23
|
-
useSelectBreakpointActive: () => useSelectBreakpointActive,
|
|
24
23
|
useShowSelectSheet: () => useShowSelectSheet
|
|
25
24
|
});
|
|
26
25
|
module.exports = __toCommonJS(useSelectBreakpointActive_exports);
|
|
27
|
-
var
|
|
28
|
-
const
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
useShowSelectSheet = context => {
|
|
33
|
-
const breakpointActive = useSelectBreakpointActive(context.sheetBreakpoint);
|
|
34
|
-
return context.open === !1 ? !1 : breakpointActive;
|
|
35
|
-
};
|
|
26
|
+
var import_adapt = require("@tamagui/adapt");
|
|
27
|
+
const useShowSelectSheet = context => {
|
|
28
|
+
const breakpointActive = (0, import_adapt.useAdaptIsActive)();
|
|
29
|
+
return context.open === !1 ? !1 : breakpointActive;
|
|
30
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/useSelectBreakpointActive.tsx"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAiC;AAG1B,MAAM,qBAAqB,CAAC,YAAgC;AACjE,QAAM,uBAAmB,+BAAiB;AAC1C,SAAO,QAAQ,SAAS,KAAQ,KAAQ;AAC1C;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
|
@@ -15,20 +15,15 @@ var __export = (target, all) => {
|
|
|
15
15
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
16
16
|
var useSelectBreakpointActive_exports = {};
|
|
17
17
|
__export(useSelectBreakpointActive_exports, {
|
|
18
|
-
useSelectBreakpointActive: () => useSelectBreakpointActive,
|
|
19
18
|
useShowSelectSheet: () => useShowSelectSheet
|
|
20
19
|
});
|
|
21
20
|
module.exports = __toCommonJS(useSelectBreakpointActive_exports);
|
|
22
|
-
var
|
|
23
|
-
var
|
|
24
|
-
return sheetBreakpoint ? sheetBreakpoint === !0 ? !0 : sheetBreakpoint ? media[sheetBreakpoint] : !1 : !1;
|
|
25
|
-
}, useShowSelectSheet = function(context) {
|
|
26
|
-
var breakpointActive = useSelectBreakpointActive(context.sheetBreakpoint);
|
|
21
|
+
var import_adapt = require("@tamagui/adapt"), useShowSelectSheet = function(context) {
|
|
22
|
+
var breakpointActive = (0, import_adapt.useAdaptIsActive)();
|
|
27
23
|
return context.open === !1 ? !1 : breakpointActive;
|
|
28
24
|
};
|
|
29
25
|
// Annotate the CommonJS export names for ESM import in node:
|
|
30
26
|
0 && (module.exports = {
|
|
31
|
-
useSelectBreakpointActive,
|
|
32
27
|
useShowSelectSheet
|
|
33
28
|
});
|
|
34
29
|
//# sourceMappingURL=useSelectBreakpointActive.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Users/n8/tamagui/code/ui/select/src/useSelectBreakpointActive.tsx"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;AAAA
|
|
5
|
-
"names": ["
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;AAAA;;;;;mBAAiC,2BAGpBA,qBAAqB,SAACC,SAAAA;AACjC,MAAMC,uBAAmBC,+BAAAA;AACzB,SAAOF,QAAQG,SAAS,KAAQ,KAAQF;AAC1C;",
|
|
5
|
+
"names": ["useShowSelectSheet", "context", "breakpointActive", "useAdaptIsActive", "open"]
|
|
6
6
|
}
|
package/dist/esm/Select.js
CHANGED
|
@@ -1,20 +1,18 @@
|
|
|
1
|
-
import { Adapt,
|
|
1
|
+
import { Adapt, AdaptParent, useAdaptIsActive } from "@tamagui/adapt";
|
|
2
2
|
import { useComposedRefs } from "@tamagui/compose-refs";
|
|
3
3
|
import { isWeb, useIsomorphicLayoutEffect } from "@tamagui/constants";
|
|
4
4
|
import { getVariableValue, styled, useEvent, useGet } from "@tamagui/core";
|
|
5
|
+
|
|
5
6
|
import { getSpace } from "@tamagui/get-token";
|
|
6
7
|
import { withStaticProperties } from "@tamagui/helpers";
|
|
7
8
|
import { ListItem } from "@tamagui/list-item";
|
|
8
|
-
import { PortalHost } from "@tamagui/portal";
|
|
9
9
|
import { Separator } from "@tamagui/separator";
|
|
10
|
-
|
|
11
10
|
import { Sheet, SheetController } from "@tamagui/sheet";
|
|
12
11
|
import { ThemeableStack, XStack, YStack } from "@tamagui/stacks";
|
|
13
12
|
import { Paragraph, SizableText } from "@tamagui/text";
|
|
14
13
|
import { useControllableState } from "@tamagui/use-controllable-state";
|
|
15
|
-
import * as React from "react";
|
|
16
14
|
import { useDebounce } from "@tamagui/use-debounce";
|
|
17
|
-
import
|
|
15
|
+
import * as React from "react";
|
|
18
16
|
import {
|
|
19
17
|
SelectItemParentProvider,
|
|
20
18
|
SelectProvider,
|
|
@@ -29,10 +27,7 @@ import { ITEM_TEXT_NAME, SelectItemText } from "./SelectItemText";
|
|
|
29
27
|
import { SelectScrollDownButton, SelectScrollUpButton } from "./SelectScrollButton";
|
|
30
28
|
import { SelectTrigger } from "./SelectTrigger";
|
|
31
29
|
import { SelectViewport } from "./SelectViewport";
|
|
32
|
-
import {
|
|
33
|
-
useSelectBreakpointActive,
|
|
34
|
-
useShowSelectSheet
|
|
35
|
-
} from "./useSelectBreakpointActive";
|
|
30
|
+
import { useShowSelectSheet } from "./useSelectBreakpointActive";
|
|
36
31
|
import { Fragment, jsx } from "react/jsx-runtime";
|
|
37
32
|
const VALUE_NAME = "SelectValue", SelectValueFrame = styled(SizableText, {
|
|
38
33
|
name: VALUE_NAME,
|
|
@@ -182,7 +177,7 @@ SelectLabel.displayName = LABEL_NAME;
|
|
|
182
177
|
const SelectSeparator = styled(Separator, {
|
|
183
178
|
name: "SelectSeparator"
|
|
184
179
|
}), SelectSheetController = (props) => {
|
|
185
|
-
const context = useSelectContext("SelectSheetController", props.__scopeSelect), showSheet = useShowSelectSheet(context),
|
|
180
|
+
const context = useSelectContext("SelectSheetController", props.__scopeSelect), showSheet = useShowSelectSheet(context), isAdapted = useAdaptIsActive(), getShowSheet = useGet(showSheet);
|
|
186
181
|
return /* @__PURE__ */ jsx(
|
|
187
182
|
SheetController,
|
|
188
183
|
{
|
|
@@ -190,117 +185,14 @@ const SelectSeparator = styled(Separator, {
|
|
|
190
185
|
getShowSheet() && props.onOpenChange(val);
|
|
191
186
|
},
|
|
192
187
|
open: context.open,
|
|
193
|
-
hidden:
|
|
188
|
+
hidden: isAdapted === !1,
|
|
194
189
|
children: props.children
|
|
195
190
|
}
|
|
196
191
|
);
|
|
197
192
|
}, SelectSheetImpl = (props) => /* @__PURE__ */ jsx(Fragment, { children: props.children }), Select = withStaticProperties(
|
|
198
|
-
(props)
|
|
199
|
-
const
|
|
200
|
-
|
|
201
|
-
native,
|
|
202
|
-
children,
|
|
203
|
-
open: openProp,
|
|
204
|
-
defaultOpen,
|
|
205
|
-
onOpenChange,
|
|
206
|
-
value: valueProp,
|
|
207
|
-
defaultValue,
|
|
208
|
-
onValueChange,
|
|
209
|
-
disablePreventBodyScroll,
|
|
210
|
-
size: sizeProp = "$true",
|
|
211
|
-
onActiveChange,
|
|
212
|
-
dir,
|
|
213
|
-
id
|
|
214
|
-
} = props, internalId = React.useId(), scopeKey = __scopeSelect ? Object.keys(__scopeSelect)[0] ?? internalId : internalId, { when, AdaptProvider } = useAdaptParent({
|
|
215
|
-
Contents: React.useCallback(
|
|
216
|
-
() => /* @__PURE__ */ jsx(PortalHost, { name: `${scopeKey}SheetContents` }),
|
|
217
|
-
[scopeKey]
|
|
218
|
-
)
|
|
219
|
-
}), sheetBreakpoint = when, SelectImpl = useSelectBreakpointActive(sheetBreakpoint) || !isWeb ? SelectSheetImpl : SelectInlineImpl, forceUpdate = React.useReducer(() => ({}), {})[1], [selectedItem, setSelectedItem] = React.useState(null), [open, setOpen] = useControllableState({
|
|
220
|
-
prop: openProp,
|
|
221
|
-
defaultProp: defaultOpen || !1,
|
|
222
|
-
onChange: onOpenChange
|
|
223
|
-
}), [value, setValue] = useControllableState({
|
|
224
|
-
prop: valueProp,
|
|
225
|
-
defaultProp: defaultValue || "",
|
|
226
|
-
onChange: onValueChange,
|
|
227
|
-
transition: !0
|
|
228
|
-
});
|
|
229
|
-
React.useEffect(() => {
|
|
230
|
-
open && emitValue(value);
|
|
231
|
-
}, [open]), React.useEffect(() => {
|
|
232
|
-
emitValue(value);
|
|
233
|
-
}, [value]);
|
|
234
|
-
const [activeIndex, setActiveIndex] = React.useState(0), [emitValue, valueSubscribe] = useEmitter(), [emitActiveIndex, activeIndexSubscribe] = useEmitter(), selectedIndexRef = React.useRef(null), activeIndexRef = React.useRef(null), listContentRef = React.useRef([]), [selectedIndex, setSelectedIndex] = React.useState(0), [valueNode, setValueNode] = React.useState(null);
|
|
235
|
-
useIsomorphicLayoutEffect(() => {
|
|
236
|
-
selectedIndexRef.current = selectedIndex, activeIndexRef.current = activeIndex;
|
|
237
|
-
});
|
|
238
|
-
const shouldRenderWebNative = isWeb && (native === !0 || native === "web" || Array.isArray(native) && native.includes("web")), setActiveIndexDebounced = useDebounce(
|
|
239
|
-
(index) => {
|
|
240
|
-
setActiveIndex((prev) => prev !== index ? (typeof index == "number" && emitActiveIndex(index), index) : prev);
|
|
241
|
-
},
|
|
242
|
-
1,
|
|
243
|
-
{},
|
|
244
|
-
[]
|
|
245
|
-
);
|
|
246
|
-
return /* @__PURE__ */ jsx(AdaptProvider, { children: /* @__PURE__ */ jsx(
|
|
247
|
-
SelectItemParentProvider,
|
|
248
|
-
{
|
|
249
|
-
scope: __scopeSelect,
|
|
250
|
-
initialValue: React.useMemo(() => value, [open]),
|
|
251
|
-
size: sizeProp,
|
|
252
|
-
activeIndexSubscribe,
|
|
253
|
-
valueSubscribe,
|
|
254
|
-
setOpen,
|
|
255
|
-
id,
|
|
256
|
-
onChange: React.useCallback((val) => {
|
|
257
|
-
setValue(val), emitValue(val);
|
|
258
|
-
}, []),
|
|
259
|
-
onActiveChange: useEvent((...args) => {
|
|
260
|
-
onActiveChange?.(...args);
|
|
261
|
-
}),
|
|
262
|
-
setSelectedIndex,
|
|
263
|
-
setValueAtIndex: React.useCallback((index, value2) => {
|
|
264
|
-
listContentRef.current[index] = value2;
|
|
265
|
-
}, []),
|
|
266
|
-
shouldRenderWebNative,
|
|
267
|
-
children: /* @__PURE__ */ jsx(
|
|
268
|
-
SelectProvider,
|
|
269
|
-
{
|
|
270
|
-
scope: __scopeSelect,
|
|
271
|
-
disablePreventBodyScroll,
|
|
272
|
-
dir,
|
|
273
|
-
blockSelection: !1,
|
|
274
|
-
fallback: !1,
|
|
275
|
-
selectedItem,
|
|
276
|
-
setSelectedItem,
|
|
277
|
-
forceUpdate,
|
|
278
|
-
valueNode,
|
|
279
|
-
onValueNodeChange: setValueNode,
|
|
280
|
-
scopeKey,
|
|
281
|
-
sheetBreakpoint,
|
|
282
|
-
activeIndex,
|
|
283
|
-
selectedIndex,
|
|
284
|
-
setActiveIndex: setActiveIndexDebounced,
|
|
285
|
-
value,
|
|
286
|
-
open,
|
|
287
|
-
native,
|
|
288
|
-
children: /* @__PURE__ */ jsx(SelectSheetController, { onOpenChange: setOpen, __scopeSelect, children: shouldRenderWebNative ? children : /* @__PURE__ */ jsx(
|
|
289
|
-
SelectImpl,
|
|
290
|
-
{
|
|
291
|
-
activeIndexRef,
|
|
292
|
-
listContentRef,
|
|
293
|
-
selectedIndexRef,
|
|
294
|
-
...props,
|
|
295
|
-
open,
|
|
296
|
-
value,
|
|
297
|
-
children
|
|
298
|
-
}
|
|
299
|
-
) })
|
|
300
|
-
}
|
|
301
|
-
)
|
|
302
|
-
}
|
|
303
|
-
) });
|
|
193
|
+
function(props) {
|
|
194
|
+
const internalId = React.useId(), scopeKey = props.__scopeSelect ? Object.keys(props.__scopeSelect)[0] ?? internalId : internalId;
|
|
195
|
+
return /* @__PURE__ */ jsx(AdaptParent, { scope: `${scopeKey}SheetContents`, portal: !0, children: /* @__PURE__ */ jsx(SelectInner, { scopeKey, ...props }) });
|
|
304
196
|
},
|
|
305
197
|
{
|
|
306
198
|
Adapt,
|
|
@@ -329,7 +221,107 @@ function useEmitter() {
|
|
|
329
221
|
}), []);
|
|
330
222
|
return [emit, subscribe];
|
|
331
223
|
}
|
|
332
|
-
|
|
224
|
+
function SelectInner(props) {
|
|
225
|
+
const {
|
|
226
|
+
__scopeSelect,
|
|
227
|
+
native,
|
|
228
|
+
children,
|
|
229
|
+
open: openProp,
|
|
230
|
+
defaultOpen,
|
|
231
|
+
onOpenChange,
|
|
232
|
+
value: valueProp,
|
|
233
|
+
defaultValue,
|
|
234
|
+
onValueChange,
|
|
235
|
+
disablePreventBodyScroll,
|
|
236
|
+
size: sizeProp = "$true",
|
|
237
|
+
onActiveChange,
|
|
238
|
+
dir,
|
|
239
|
+
id
|
|
240
|
+
} = props, SelectImpl = useAdaptIsActive() || !isWeb ? SelectSheetImpl : SelectInlineImpl, forceUpdate = React.useReducer(() => ({}), {})[1], [selectedItem, setSelectedItem] = React.useState(null), [open, setOpen] = useControllableState({
|
|
241
|
+
prop: openProp,
|
|
242
|
+
defaultProp: defaultOpen || !1,
|
|
243
|
+
onChange: onOpenChange
|
|
244
|
+
}), [value, setValue] = useControllableState({
|
|
245
|
+
prop: valueProp,
|
|
246
|
+
defaultProp: defaultValue || "",
|
|
247
|
+
onChange: onValueChange,
|
|
248
|
+
transition: !0
|
|
249
|
+
});
|
|
250
|
+
React.useEffect(() => {
|
|
251
|
+
open && emitValue(value);
|
|
252
|
+
}, [open]), React.useEffect(() => {
|
|
253
|
+
emitValue(value);
|
|
254
|
+
}, [value]);
|
|
255
|
+
const [activeIndex, setActiveIndex] = React.useState(0), [emitValue, valueSubscribe] = useEmitter(), [emitActiveIndex, activeIndexSubscribe] = useEmitter(), selectedIndexRef = React.useRef(null), activeIndexRef = React.useRef(null), listContentRef = React.useRef([]), [selectedIndex, setSelectedIndex] = React.useState(0), [valueNode, setValueNode] = React.useState(null);
|
|
256
|
+
useIsomorphicLayoutEffect(() => {
|
|
257
|
+
selectedIndexRef.current = selectedIndex, activeIndexRef.current = activeIndex;
|
|
258
|
+
});
|
|
259
|
+
const shouldRenderWebNative = isWeb && (native === !0 || native === "web" || Array.isArray(native) && native.includes("web")), setActiveIndexDebounced = useDebounce(
|
|
260
|
+
(index) => {
|
|
261
|
+
setActiveIndex((prev) => prev !== index ? (typeof index == "number" && emitActiveIndex(index), index) : prev);
|
|
262
|
+
},
|
|
263
|
+
1,
|
|
264
|
+
{},
|
|
265
|
+
[]
|
|
266
|
+
);
|
|
267
|
+
return /* @__PURE__ */ jsx(
|
|
268
|
+
SelectItemParentProvider,
|
|
269
|
+
{
|
|
270
|
+
scope: __scopeSelect,
|
|
271
|
+
initialValue: React.useMemo(() => value, [open]),
|
|
272
|
+
size: sizeProp,
|
|
273
|
+
activeIndexSubscribe,
|
|
274
|
+
valueSubscribe,
|
|
275
|
+
setOpen,
|
|
276
|
+
id,
|
|
277
|
+
onChange: React.useCallback((val) => {
|
|
278
|
+
setValue(val), emitValue(val);
|
|
279
|
+
}, []),
|
|
280
|
+
onActiveChange: useEvent((...args) => {
|
|
281
|
+
onActiveChange?.(...args);
|
|
282
|
+
}),
|
|
283
|
+
setSelectedIndex,
|
|
284
|
+
setValueAtIndex: React.useCallback((index, value2) => {
|
|
285
|
+
listContentRef.current[index] = value2;
|
|
286
|
+
}, []),
|
|
287
|
+
shouldRenderWebNative,
|
|
288
|
+
children: /* @__PURE__ */ jsx(
|
|
289
|
+
SelectProvider,
|
|
290
|
+
{
|
|
291
|
+
scope: __scopeSelect,
|
|
292
|
+
disablePreventBodyScroll,
|
|
293
|
+
dir,
|
|
294
|
+
blockSelection: !1,
|
|
295
|
+
fallback: !1,
|
|
296
|
+
selectedItem,
|
|
297
|
+
setSelectedItem,
|
|
298
|
+
forceUpdate,
|
|
299
|
+
valueNode,
|
|
300
|
+
onValueNodeChange: setValueNode,
|
|
301
|
+
scopeKey: props.scopeKey,
|
|
302
|
+
activeIndex,
|
|
303
|
+
selectedIndex,
|
|
304
|
+
setActiveIndex: setActiveIndexDebounced,
|
|
305
|
+
value,
|
|
306
|
+
open,
|
|
307
|
+
native,
|
|
308
|
+
children: /* @__PURE__ */ jsx(SelectSheetController, { onOpenChange: setOpen, __scopeSelect, children: shouldRenderWebNative ? children : /* @__PURE__ */ jsx(
|
|
309
|
+
SelectImpl,
|
|
310
|
+
{
|
|
311
|
+
activeIndexRef,
|
|
312
|
+
listContentRef,
|
|
313
|
+
selectedIndexRef,
|
|
314
|
+
...props,
|
|
315
|
+
open,
|
|
316
|
+
value,
|
|
317
|
+
children
|
|
318
|
+
}
|
|
319
|
+
) })
|
|
320
|
+
}
|
|
321
|
+
)
|
|
322
|
+
}
|
|
323
|
+
);
|
|
324
|
+
}
|
|
333
325
|
export {
|
|
334
326
|
Select,
|
|
335
327
|
SelectGroupFrame,
|
package/dist/esm/Select.js.map
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Select.tsx"],
|
|
4
|
-
"mappings": "AAAA,SAAS,OAAO,
|
|
4
|
+
"mappings": "AAAA,SAAS,OAAO,aAAa,wBAAwB;AACrD,SAAS,uBAAuB;AAChC,SAAS,OAAO,iCAAiC;AAEjD,SAAS,kBAAkB,QAAQ,UAAU,cAAc;AAC3D,OAAkC;AAClC,SAAS,gBAAgB;AACzB,SAAS,4BAA4B;AAErC,SAAS,gBAAgB;AACzB,SAAS,iBAAiB;AAC1B,SAAS,OAAO,uBAAuB;AACvC,SAAS,gBAAgB,QAAQ,cAAc;AAC/C,SAAS,WAAW,mBAAmB;AACvC,SAAS,4BAA4B;AACrC,SAAS,mBAAmB;AAC5B,YAAY,WAAW;AACvB;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,qBAAqB;AAC9B,SAAS,wBAAwB;AACjC,SAAS,YAAY,4BAA4B;AACjD,SAAS,gBAAgB,sBAAsB;AAC/C,SAAS,wBAAwB,4BAA4B;AAC7D,SAAS,qBAAqB;AAC9B,SAAS,sBAAsB;AAE/B,SAAS,0BAA0B;AAsC7B,SAmQG,UAnQH;AAhCN,MAAM,aAAa,eAEb,mBAAmB,OAAO,aAAa;AAAA,EAC3C,MAAM;AAAA,E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