@tamagui/select 2.0.0-rc.4 → 2.0.0-rc.40

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.
Files changed (242) hide show
  1. package/dist/cjs/BubbleSelect.cjs +28 -23
  2. package/dist/cjs/BubbleSelect.native.js +12 -10
  3. package/dist/cjs/BubbleSelect.native.js.map +1 -1
  4. package/dist/cjs/Select.cjs +402 -376
  5. package/dist/cjs/Select.native.js +428 -414
  6. package/dist/cjs/Select.native.js.map +1 -1
  7. package/dist/cjs/SelectContent.cjs +73 -66
  8. package/dist/cjs/SelectContent.native.js +12 -10
  9. package/dist/cjs/SelectContent.native.js.map +1 -1
  10. package/dist/cjs/SelectImpl.cjs +239 -176
  11. package/dist/cjs/SelectImpl.native.js +21 -16
  12. package/dist/cjs/SelectImpl.native.js.map +1 -1
  13. package/dist/cjs/SelectItem.cjs +189 -137
  14. package/dist/cjs/SelectItem.native.js +211 -164
  15. package/dist/cjs/SelectItem.native.js.map +1 -1
  16. package/dist/cjs/SelectItemText.cjs +82 -68
  17. package/dist/cjs/SelectItemText.native.js +81 -69
  18. package/dist/cjs/SelectItemText.native.js.map +1 -1
  19. package/dist/cjs/SelectScrollButton.cjs +104 -83
  20. package/dist/cjs/SelectScrollButton.native.js +17 -15
  21. package/dist/cjs/SelectScrollButton.native.js.map +1 -1
  22. package/dist/cjs/SelectTrigger.cjs +81 -77
  23. package/dist/cjs/SelectTrigger.native.js +43 -40
  24. package/dist/cjs/SelectTrigger.native.js.map +1 -1
  25. package/dist/cjs/SelectViewport.cjs +141 -103
  26. package/dist/cjs/SelectViewport.native.js +39 -37
  27. package/dist/cjs/SelectViewport.native.js.map +1 -1
  28. package/dist/cjs/constants.cjs +19 -17
  29. package/dist/cjs/constants.native.js +19 -17
  30. package/dist/cjs/constants.native.js.map +1 -1
  31. package/dist/cjs/context.cjs +38 -27
  32. package/dist/cjs/context.native.js +46 -38
  33. package/dist/cjs/context.native.js.map +1 -1
  34. package/dist/cjs/index.cjs +7 -5
  35. package/dist/cjs/index.native.js +7 -5
  36. package/dist/cjs/index.native.js.map +1 -1
  37. package/dist/cjs/types.cjs +7 -5
  38. package/dist/cjs/types.native.js +7 -5
  39. package/dist/cjs/types.native.js.map +1 -1
  40. package/dist/cjs/useSelectBreakpointActive.cjs +13 -11
  41. package/dist/cjs/useSelectBreakpointActive.native.js +17 -15
  42. package/dist/cjs/useSelectBreakpointActive.native.js.map +1 -1
  43. package/dist/esm/BubbleSelect.mjs +16 -13
  44. package/dist/esm/BubbleSelect.mjs.map +1 -1
  45. package/dist/esm/Select.mjs +356 -331
  46. package/dist/esm/Select.mjs.map +1 -1
  47. package/dist/esm/Select.native.js +381 -369
  48. package/dist/esm/Select.native.js.map +1 -1
  49. package/dist/esm/SelectContent.mjs +55 -39
  50. package/dist/esm/SelectContent.mjs.map +1 -1
  51. package/dist/esm/SelectImpl.mjs +208 -147
  52. package/dist/esm/SelectImpl.mjs.map +1 -1
  53. package/dist/esm/SelectImpl.native.js +4 -1
  54. package/dist/esm/SelectImpl.native.js.map +1 -1
  55. package/dist/esm/SelectItem.mjs +157 -107
  56. package/dist/esm/SelectItem.mjs.map +1 -1
  57. package/dist/esm/SelectItem.native.js +180 -135
  58. package/dist/esm/SelectItem.native.js.map +1 -1
  59. package/dist/esm/SelectItemText.mjs +50 -38
  60. package/dist/esm/SelectItemText.mjs.map +1 -1
  61. package/dist/esm/SelectItemText.native.js +50 -40
  62. package/dist/esm/SelectItemText.native.js.map +1 -1
  63. package/dist/esm/SelectScrollButton.mjs +74 -55
  64. package/dist/esm/SelectScrollButton.mjs.map +1 -1
  65. package/dist/esm/SelectScrollButton.native.js +5 -5
  66. package/dist/esm/SelectScrollButton.native.js.map +1 -1
  67. package/dist/esm/SelectTrigger.mjs +51 -49
  68. package/dist/esm/SelectTrigger.mjs.map +1 -1
  69. package/dist/esm/SelectTrigger.native.js +13 -12
  70. package/dist/esm/SelectTrigger.native.js.map +1 -1
  71. package/dist/esm/SelectViewport.mjs +108 -83
  72. package/dist/esm/SelectViewport.mjs.map +1 -1
  73. package/dist/esm/SelectViewport.native.js +7 -7
  74. package/dist/esm/SelectViewport.native.js.map +1 -1
  75. package/dist/esm/constants.mjs +7 -7
  76. package/dist/esm/constants.mjs.map +1 -1
  77. package/dist/esm/constants.native.js +7 -7
  78. package/dist/esm/constants.native.js.map +1 -1
  79. package/dist/esm/context.mjs +22 -14
  80. package/dist/esm/context.mjs.map +1 -1
  81. package/dist/esm/context.native.js +30 -25
  82. package/dist/esm/context.native.js.map +1 -1
  83. package/dist/esm/index.js +2 -2
  84. package/dist/esm/index.js.map +1 -6
  85. package/dist/esm/useSelectBreakpointActive.mjs +1 -1
  86. package/dist/esm/useSelectBreakpointActive.mjs.map +1 -1
  87. package/dist/esm/useSelectBreakpointActive.native.js +1 -1
  88. package/dist/esm/useSelectBreakpointActive.native.js.map +1 -1
  89. package/dist/jsx/BubbleSelect.mjs +16 -13
  90. package/dist/jsx/BubbleSelect.mjs.map +1 -1
  91. package/dist/jsx/BubbleSelect.native.js +12 -10
  92. package/dist/jsx/BubbleSelect.native.js.map +1 -1
  93. package/dist/jsx/Select.mjs +356 -331
  94. package/dist/jsx/Select.mjs.map +1 -1
  95. package/dist/jsx/Select.native.js +428 -414
  96. package/dist/jsx/Select.native.js.map +1 -1
  97. package/dist/jsx/SelectContent.mjs +55 -39
  98. package/dist/jsx/SelectContent.mjs.map +1 -1
  99. package/dist/jsx/SelectContent.native.js +12 -10
  100. package/dist/jsx/SelectContent.native.js.map +1 -1
  101. package/dist/jsx/SelectImpl.mjs +208 -147
  102. package/dist/jsx/SelectImpl.mjs.map +1 -1
  103. package/dist/jsx/SelectImpl.native.js +21 -16
  104. package/dist/jsx/SelectImpl.native.js.map +1 -1
  105. package/dist/jsx/SelectItem.mjs +157 -107
  106. package/dist/jsx/SelectItem.mjs.map +1 -1
  107. package/dist/jsx/SelectItem.native.js +211 -164
  108. package/dist/jsx/SelectItem.native.js.map +1 -1
  109. package/dist/jsx/SelectItemText.mjs +50 -38
  110. package/dist/jsx/SelectItemText.mjs.map +1 -1
  111. package/dist/jsx/SelectItemText.native.js +81 -69
  112. package/dist/jsx/SelectItemText.native.js.map +1 -1
  113. package/dist/jsx/SelectScrollButton.mjs +74 -55
  114. package/dist/jsx/SelectScrollButton.mjs.map +1 -1
  115. package/dist/jsx/SelectScrollButton.native.js +17 -15
  116. package/dist/jsx/SelectScrollButton.native.js.map +1 -1
  117. package/dist/jsx/SelectTrigger.mjs +51 -49
  118. package/dist/jsx/SelectTrigger.mjs.map +1 -1
  119. package/dist/jsx/SelectTrigger.native.js +43 -40
  120. package/dist/jsx/SelectTrigger.native.js.map +1 -1
  121. package/dist/jsx/SelectViewport.mjs +108 -83
  122. package/dist/jsx/SelectViewport.mjs.map +1 -1
  123. package/dist/jsx/SelectViewport.native.js +39 -37
  124. package/dist/jsx/SelectViewport.native.js.map +1 -1
  125. package/dist/jsx/constants.mjs +7 -7
  126. package/dist/jsx/constants.mjs.map +1 -1
  127. package/dist/jsx/constants.native.js +19 -17
  128. package/dist/jsx/constants.native.js.map +1 -1
  129. package/dist/jsx/context.mjs +22 -14
  130. package/dist/jsx/context.mjs.map +1 -1
  131. package/dist/jsx/context.native.js +46 -38
  132. package/dist/jsx/context.native.js.map +1 -1
  133. package/dist/jsx/index.js +2 -2
  134. package/dist/jsx/index.js.map +1 -6
  135. package/dist/jsx/index.native.js +7 -5
  136. package/dist/jsx/types.native.js +7 -5
  137. package/dist/jsx/useSelectBreakpointActive.mjs +1 -1
  138. package/dist/jsx/useSelectBreakpointActive.mjs.map +1 -1
  139. package/dist/jsx/useSelectBreakpointActive.native.js +17 -15
  140. package/dist/jsx/useSelectBreakpointActive.native.js.map +1 -1
  141. package/package.json +31 -35
  142. package/src/Select.tsx +16 -1
  143. package/src/SelectContent.tsx +47 -36
  144. package/src/SelectImpl.tsx +51 -49
  145. package/src/SelectItem.tsx +17 -7
  146. package/src/SelectScrollButton.tsx +1 -1
  147. package/src/SelectTrigger.tsx +1 -1
  148. package/src/SelectViewport.tsx +42 -22
  149. package/src/context.tsx +4 -0
  150. package/src/types.tsx +44 -4
  151. package/types/Select.d.ts +2 -2
  152. package/types/Select.d.ts.map +1 -1
  153. package/types/SelectContent.d.ts +1 -1
  154. package/types/SelectContent.d.ts.map +1 -1
  155. package/types/SelectImpl.d.ts.map +1 -1
  156. package/types/SelectItem.d.ts.map +1 -1
  157. package/types/SelectTrigger.d.ts +1 -1
  158. package/types/SelectViewport.d.ts.map +1 -1
  159. package/types/context.d.ts +1 -0
  160. package/types/context.d.ts.map +1 -1
  161. package/types/types.d.ts +33 -3
  162. package/types/types.d.ts.map +1 -1
  163. package/dist/cjs/BubbleSelect.js +0 -34
  164. package/dist/cjs/BubbleSelect.js.map +0 -6
  165. package/dist/cjs/Select.js +0 -402
  166. package/dist/cjs/Select.js.map +0 -6
  167. package/dist/cjs/SelectContent.js +0 -57
  168. package/dist/cjs/SelectContent.js.map +0 -6
  169. package/dist/cjs/SelectImpl.js +0 -222
  170. package/dist/cjs/SelectImpl.js.map +0 -6
  171. package/dist/cjs/SelectItem.js +0 -166
  172. package/dist/cjs/SelectItem.js.map +0 -6
  173. package/dist/cjs/SelectItemText.js +0 -64
  174. package/dist/cjs/SelectItemText.js.map +0 -6
  175. package/dist/cjs/SelectScrollButton.js +0 -105
  176. package/dist/cjs/SelectScrollButton.js.map +0 -6
  177. package/dist/cjs/SelectTrigger.js +0 -81
  178. package/dist/cjs/SelectTrigger.js.map +0 -6
  179. package/dist/cjs/SelectViewport.js +0 -114
  180. package/dist/cjs/SelectViewport.js.map +0 -6
  181. package/dist/cjs/constants.js +0 -27
  182. package/dist/cjs/constants.js.map +0 -6
  183. package/dist/cjs/context.js +0 -33
  184. package/dist/cjs/context.js.map +0 -6
  185. package/dist/cjs/index.js +0 -16
  186. package/dist/cjs/index.js.map +0 -6
  187. package/dist/cjs/types.js +0 -14
  188. package/dist/cjs/types.js.map +0 -6
  189. package/dist/cjs/useSelectBreakpointActive.js +0 -25
  190. package/dist/cjs/useSelectBreakpointActive.js.map +0 -6
  191. package/dist/esm/BubbleSelect.js +0 -17
  192. package/dist/esm/BubbleSelect.js.map +0 -6
  193. package/dist/esm/Select.js +0 -412
  194. package/dist/esm/Select.js.map +0 -6
  195. package/dist/esm/SelectContent.js +0 -39
  196. package/dist/esm/SelectContent.js.map +0 -6
  197. package/dist/esm/SelectImpl.js +0 -223
  198. package/dist/esm/SelectImpl.js.map +0 -6
  199. package/dist/esm/SelectItem.js +0 -148
  200. package/dist/esm/SelectItem.js.map +0 -6
  201. package/dist/esm/SelectItemText.js +0 -46
  202. package/dist/esm/SelectItemText.js.map +0 -6
  203. package/dist/esm/SelectScrollButton.js +0 -87
  204. package/dist/esm/SelectScrollButton.js.map +0 -6
  205. package/dist/esm/SelectTrigger.js +0 -61
  206. package/dist/esm/SelectTrigger.js.map +0 -6
  207. package/dist/esm/SelectViewport.js +0 -112
  208. package/dist/esm/SelectViewport.js.map +0 -6
  209. package/dist/esm/constants.js +0 -11
  210. package/dist/esm/constants.js.map +0 -6
  211. package/dist/esm/context.js +0 -19
  212. package/dist/esm/context.js.map +0 -6
  213. package/dist/esm/types.js +0 -1
  214. package/dist/esm/types.js.map +0 -6
  215. package/dist/esm/useSelectBreakpointActive.js +0 -9
  216. package/dist/esm/useSelectBreakpointActive.js.map +0 -6
  217. package/dist/jsx/BubbleSelect.js +0 -17
  218. package/dist/jsx/BubbleSelect.js.map +0 -6
  219. package/dist/jsx/Select.js +0 -412
  220. package/dist/jsx/Select.js.map +0 -6
  221. package/dist/jsx/SelectContent.js +0 -39
  222. package/dist/jsx/SelectContent.js.map +0 -6
  223. package/dist/jsx/SelectImpl.js +0 -223
  224. package/dist/jsx/SelectImpl.js.map +0 -6
  225. package/dist/jsx/SelectItem.js +0 -148
  226. package/dist/jsx/SelectItem.js.map +0 -6
  227. package/dist/jsx/SelectItemText.js +0 -46
  228. package/dist/jsx/SelectItemText.js.map +0 -6
  229. package/dist/jsx/SelectScrollButton.js +0 -87
  230. package/dist/jsx/SelectScrollButton.js.map +0 -6
  231. package/dist/jsx/SelectTrigger.js +0 -61
  232. package/dist/jsx/SelectTrigger.js.map +0 -6
  233. package/dist/jsx/SelectViewport.js +0 -112
  234. package/dist/jsx/SelectViewport.js.map +0 -6
  235. package/dist/jsx/constants.js +0 -11
  236. package/dist/jsx/constants.js.map +0 -6
  237. package/dist/jsx/context.js +0 -19
  238. package/dist/jsx/context.js.map +0 -6
  239. package/dist/jsx/types.js +0 -1
  240. package/dist/jsx/types.js.map +0 -6
  241. package/dist/jsx/useSelectBreakpointActive.js +0 -9
  242. package/dist/jsx/useSelectBreakpointActive.js.map +0 -6
@@ -5,54 +5,56 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
7
  var __export = (target, all) => {
8
- for (var name in all) __defProp(target, name, {
9
- get: all[name],
10
- enumerable: !0
11
- });
12
- },
13
- __copyProps = (to, from, except, desc) => {
14
- if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: true
11
+ });
12
+ };
13
+ var __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from === "object" || typeof from === "function") {
15
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
15
16
  get: () => from[key],
16
17
  enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
18
  });
18
- return to;
19
- };
19
+ }
20
+ return to;
21
+ };
20
22
  var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
21
- value: !0
23
+ value: true
22
24
  }), mod);
23
25
  var SelectViewport_native_exports = {};
24
26
  __export(SelectViewport_native_exports, {
25
27
  SelectViewport: () => SelectViewport
26
28
  });
27
29
  module.exports = __toCommonJS(SelectViewport_native_exports);
28
- var import_jsx_runtime = require("react/jsx-runtime"),
29
- import_adapt = require("@tamagui/adapt"),
30
- import_core = require("@tamagui/core"),
31
- import_constants = require("./constants.native.js"),
32
- import_context = require("./context.native.js"),
33
- SelectViewport = function (props) {
34
- var {
35
- scope,
36
- children
37
- } = props,
38
- context = (0, import_context.useSelectContext)(scope),
39
- itemParentContext = (0, import_context.useSelectItemParentContext)(scope),
40
- themeName = (0, import_core.useThemeName)(),
41
- adaptContext = (0, import_adapt.useAdaptContext)();
42
- return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_adapt.AdaptPortalContents, {
43
- scope: context.adaptScope,
44
- children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_core.Theme, {
45
- name: themeName,
46
- children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_context.ForwardSelectContext, {
47
- itemContext: itemParentContext,
48
- context,
49
- children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_adapt.AdaptContext.Provider, {
50
- ...adaptContext,
51
- children
52
- })
30
+ var import_jsx_runtime = require("react/jsx-runtime");
31
+ var import_adapt = require("@tamagui/adapt");
32
+ var import_core = require("@tamagui/core");
33
+ var import_constants = require("./constants.native.js");
34
+ var import_context = require("./context.native.js");
35
+ var SelectViewport = function (props) {
36
+ var {
37
+ scope,
38
+ children
39
+ } = props;
40
+ var context = (0, import_context.useSelectContext)(scope);
41
+ var itemParentContext = (0, import_context.useSelectItemParentContext)(scope);
42
+ var themeName = (0, import_core.useThemeName)();
43
+ var adaptContext = (0, import_adapt.useAdaptContext)();
44
+ return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_adapt.AdaptPortalContents, {
45
+ scope: context.adaptScope,
46
+ children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_core.Theme, {
47
+ name: themeName,
48
+ children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_context.ForwardSelectContext, {
49
+ itemContext: itemParentContext,
50
+ context,
51
+ children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_adapt.AdaptContext.Provider, {
52
+ ...adaptContext,
53
+ children
53
54
  })
54
55
  })
55
- });
56
- };
56
+ })
57
+ });
58
+ };
57
59
  SelectViewport.displayName = import_constants.VIEWPORT_NAME;
58
60
  //# sourceMappingURL=SelectViewport.native.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["SelectViewport_native_exports","__export","SelectViewport","module","exports","__toCommonJS","import_jsx_runtime","require","import_adapt","import_core","import_constants","import_context","props","scope","children","context","useSelectContext","itemParentContext","useSelectItemParentContext","themeName","useThemeName","adaptContext","useAdaptContext","jsx","AdaptPortalContents","adaptScope","Theme","name","ForwardSelectContext","itemContext","AdaptContext","Provider","displayName","VIEWPORT_NAME"],"sources":["../../src/SelectViewport.native.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,6BAAA;AAAAC,QAAA,CAAAD,6BAAA;EAAAE,cAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAC,YAAA,CAAAL,6BAAA;AAAA,IAAAM,kBAAA,GAA4BC,OAAA;EAC5BC,YAAA,GAAmED,OAAA;EACnEE,WAAA,GAAoCF,OAAA;EACpCG,gBAAA,GAA8BH,OAAA;EAC9BI,cAAA,GAAmFJ,OAAA;EACxEL,cAAA,GAAiB,SAAAA,CAASU,KAAA,EAAO;IACxC,IAAI;QAAEC,KAAA;QAAOC;MAAS,IAAIF,KAAA;MACtBG,OAAA,OAAUJ,cAAA,CAAAK,gBAAA,EAAiBH,KAAK;MAChCI,iBAAA,OAAoBN,cAAA,CAAAO,0BAAA,EAA2BL,KAAK;MACpDM,SAAA,OAAYV,WAAA,CAAAW,YAAA,EAAa;MAEzBC,YAAA,OAAeb,YAAA,CAAAc,eAAA,EAAgB;IACnC,OAAqB,mBAAAhB,kBAAA,CAAAiB,GAAA,EAAKf,YAAA,CAAAgB,mBAAA,EAAqB;MAC3CX,KAAA,EAAOE,OAAA,CAAQU,UAAA;MACfX,QAAA,EAAwB,mBAAAR,kBAAA,CAAAiB,GAAA,EAAKd,WAAA,CAAAiB,KAAA,EAAO;QAChCC,IAAA,EAAMR,SAAA;QACNL,QAAA,EAAwB,mBAAAR,kBAAA,CAAAiB,GAAA,EAAKZ,cAAA,CAAAiB,oBAAA,EAAsB;UAC/CC,WAAA,EAAaZ,iBAAA;UACbF,OAAA;UACAD,QAAA,EAAwB,mBAAAR,kBAAA,CAAAiB,GAAA,EAAKf,YAAA,CAAAsB,YAAA,CAAaC,QAAA,EAAU;YAChD,GAAGV,YAAA;YACHP;UACJ,CAAC;QACL,CAAC;MACL,CAAC;IACL,CAAC;EACL;AACAZ,cAAA,CAAe8B,WAAA,GAActB,gBAAA,CAAAuB,aAAA","ignoreList":[]}
1
+ {"version":3,"names":["SelectViewport_native_exports","__export","SelectViewport","module","exports","__toCommonJS","import_jsx_runtime","require","import_adapt","import_core","import_constants","import_context","props","scope","children","context","useSelectContext","itemParentContext","useSelectItemParentContext","themeName","useThemeName","adaptContext","useAdaptContext","jsx","AdaptPortalContents","adaptScope","Theme","name","ForwardSelectContext","itemContext","AdaptContext","Provider","displayName","VIEWPORT_NAME"],"sources":["../../src/SelectViewport.native.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,6BAAA;AAAAC,QAAA,CAAAD,6BAAA;EAAAE,cAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAC,YAAA,CAAAL,6BAAA;AAAA,IAAAM,kBAAA,GAA4BC,OAAA;AAC5B,IAAAC,YAAA,GAAmED,OAAA;AACnE,IAAAE,WAAA,GAAoCF,OAAA;AACpC,IAAAG,gBAAA,GAA8BH,OAAA;AAC9B,IAAAI,cAAA,GAAmFJ,OAAA;AAC5E,IAAIL,cAAA,GAAiB,SAAAA,CAASU,KAAA,EAAO;EACxC,IAAI;IAAEC,KAAA;IAAOC;EAAS,IAAIF,KAAA;EAC1B,IAAIG,OAAA,OAAUJ,cAAA,CAAAK,gBAAA,EAAiBH,KAAK;EACpC,IAAII,iBAAA,OAAoBN,cAAA,CAAAO,0BAAA,EAA2BL,KAAK;EACxD,IAAIM,SAAA,OAAYV,WAAA,CAAAW,YAAA,EAAa;EAE7B,IAAIC,YAAA,OAAeb,YAAA,CAAAc,eAAA,EAAgB;EACnC,OAAqB,mBAAAhB,kBAAA,CAAAiB,GAAA,EAAKf,YAAA,CAAAgB,mBAAA,EAAqB;IAC3CX,KAAA,EAAOE,OAAA,CAAQU,UAAA;IACfX,QAAA,EAAwB,mBAAAR,kBAAA,CAAAiB,GAAA,EAAKd,WAAA,CAAAiB,KAAA,EAAO;MAChCC,IAAA,EAAMR,SAAA;MACNL,QAAA,EAAwB,mBAAAR,kBAAA,CAAAiB,GAAA,EAAKZ,cAAA,CAAAiB,oBAAA,EAAsB;QAC/CC,WAAA,EAAaZ,iBAAA;QACbF,OAAA;QACAD,QAAA,EAAwB,mBAAAR,kBAAA,CAAAiB,GAAA,EAAKf,YAAA,CAAAsB,YAAA,CAAaC,QAAA,EAAU;UAChD,GAAGV,YAAA;UACHP;QACJ,CAAC;MACL,CAAC;IACL,CAAC;EACL,CAAC;AACL;AACAZ,cAAA,CAAe8B,WAAA,GAActB,gBAAA,CAAAuB,aAAA","ignoreList":[]}
@@ -3,20 +3,22 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
5
  var __export = (target, all) => {
6
- for (var name in all) __defProp(target, name, {
7
- get: all[name],
8
- enumerable: !0
9
- });
10
- },
11
- __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
6
+ for (var name in all) __defProp(target, name, {
7
+ get: all[name],
8
+ enumerable: true
9
+ });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
13
14
  get: () => from[key],
14
15
  enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
15
16
  });
16
- return to;
17
- };
17
+ }
18
+ return to;
19
+ };
18
20
  var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
19
- value: !0
21
+ value: true
20
22
  }), mod);
21
23
  var constants_exports = {};
22
24
  __export(constants_exports, {
@@ -29,10 +31,10 @@ __export(constants_exports, {
29
31
  WINDOW_PADDING: () => WINDOW_PADDING
30
32
  });
31
33
  module.exports = __toCommonJS(constants_exports);
32
- const SELECT_NAME = "Select",
33
- WINDOW_PADDING = 8,
34
- SCROLL_ARROW_VELOCITY = 8,
35
- SCROLL_ARROW_THRESHOLD = 8,
36
- MIN_HEIGHT = 80,
37
- FALLBACK_THRESHOLD = 16,
38
- VIEWPORT_NAME = "SelectViewport";
34
+ const SELECT_NAME = "Select";
35
+ const WINDOW_PADDING = 8;
36
+ const SCROLL_ARROW_VELOCITY = 8;
37
+ const SCROLL_ARROW_THRESHOLD = 8;
38
+ const MIN_HEIGHT = 80;
39
+ const FALLBACK_THRESHOLD = 16;
40
+ const VIEWPORT_NAME = "SelectViewport";
@@ -5,20 +5,22 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
7
  var __export = (target, all) => {
8
- for (var name in all) __defProp(target, name, {
9
- get: all[name],
10
- enumerable: !0
11
- });
12
- },
13
- __copyProps = (to, from, except, desc) => {
14
- if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: true
11
+ });
12
+ };
13
+ var __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from === "object" || typeof from === "function") {
15
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
15
16
  get: () => from[key],
16
17
  enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
18
  });
18
- return to;
19
- };
19
+ }
20
+ return to;
21
+ };
20
22
  var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
21
- value: !0
23
+ value: true
22
24
  }), mod);
23
25
  var constants_exports = {};
24
26
  __export(constants_exports, {
@@ -31,11 +33,11 @@ __export(constants_exports, {
31
33
  WINDOW_PADDING: () => WINDOW_PADDING
32
34
  });
33
35
  module.exports = __toCommonJS(constants_exports);
34
- var SELECT_NAME = "Select",
35
- WINDOW_PADDING = 8,
36
- SCROLL_ARROW_VELOCITY = 8,
37
- SCROLL_ARROW_THRESHOLD = 8,
38
- MIN_HEIGHT = 80,
39
- FALLBACK_THRESHOLD = 16,
40
- VIEWPORT_NAME = "SelectViewport";
36
+ var SELECT_NAME = "Select";
37
+ var WINDOW_PADDING = 8;
38
+ var SCROLL_ARROW_VELOCITY = 8;
39
+ var SCROLL_ARROW_THRESHOLD = 8;
40
+ var MIN_HEIGHT = 80;
41
+ var FALLBACK_THRESHOLD = 16;
42
+ var VIEWPORT_NAME = "SelectViewport";
41
43
  //# sourceMappingURL=constants.native.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","constants_exports","__export","FALLBACK_THRESHOLD","MIN_HEIGHT","SCROLL_ARROW_THRESHOLD","SCROLL_ARROW_VELOCITY","SELECT_NAME","VIEWPORT_NAME","WINDOW_PADDING","module","exports"],"sources":["../../src/constants.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,iBAAA;AAAAC,QAAA,CAAAD,iBAAA;EAAAE,kBAAA,EAAAA,CAAA,KAAAA,kBAAA;EAAAC,UAAA,EAAAA,CAAA,KAAAA,UAAA;EAAAC,sBAAA,EAAAA,CAAA,KAAAA,sBAAA;EAAAC,qBAAA,EAAAA,CAAA,KAAAA,qBAAA;EAAAC,WAAA,EAAAA,CAAA,KAAAA,WAAA;EAAAC,aAAA,EAAAA,CAAA,KAAAA,aAAA;EAAAC,cAAA,EAAAA,CAAA,KAAAA;AAAA;AAAOC,MAAM,CAAAC,OAAA,GAAAf,YAAc,CACdK,iBAAiB","ignoreList":[]}
1
+ {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","constants_exports","__export","FALLBACK_THRESHOLD","MIN_HEIGHT","SCROLL_ARROW_THRESHOLD","SCROLL_ARROW_VELOCITY","SELECT_NAME","VIEWPORT_NAME","WINDOW_PADDING","module","exports"],"sources":["../../src/constants.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,iBAAA;AAAAC,QAAA,CAAAD,iBAAA;EAAAE,kBAAA,EAAAA,CAAA,KAAAA,kBAAA;EAAAC,UAAA,EAAAA,CAAA,KAAAA,UAAA;EAAAC,sBAAA,EAAAA,CAAA,KAAAA,sBAAA;EAAAC,qBAAA,EAAAA,CAAA,KAAAA,qBAAA;EAAAC,WAAA,EAAAA,CAAA,KAAAA,WAAA;EAAAC,aAAA,EAAAA,CAAA,KAAAA,aAAA;EAAAC,cAAA,EAAAA,CAAA,KAAAA;AAAA;AAAOC,MAAM,CAAAC,OAAA,GAAAf,YAAc,CAAAK,iBAAA;AACpB,IAAAM,WAAM,WAAiB;AACvB,IAAAE,cAAM;AACN,IAAAH,qBAAM;AACN,IAAAD,sBAAmB;AACnB,IAAAD,UAAM;AACN,IAAAD,kBAAsB","ignoreList":[]}
@@ -3,47 +3,57 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
5
  var __export = (target, all) => {
6
- for (var name in all) __defProp(target, name, {
7
- get: all[name],
8
- enumerable: !0
9
- });
10
- },
11
- __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
6
+ for (var name in all) __defProp(target, name, {
7
+ get: all[name],
8
+ enumerable: true
9
+ });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
13
14
  get: () => from[key],
14
15
  enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
15
16
  });
16
- return to;
17
- };
17
+ }
18
+ return to;
19
+ };
18
20
  var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
19
- value: !0
21
+ value: true
20
22
  }), mod);
21
23
  var context_exports = {};
22
24
  __export(context_exports, {
23
25
  ForwardSelectContext: () => ForwardSelectContext,
24
26
  SelectItemParentProvider: () => SelectItemParentProvider,
25
27
  SelectProvider: () => SelectProvider,
28
+ SelectZIndexContext: () => SelectZIndexContext,
26
29
  useSelectContext: () => useSelectContext,
27
30
  useSelectItemParentContext: () => useSelectItemParentContext
28
31
  });
29
32
  module.exports = __toCommonJS(context_exports);
30
- var import_core = require("@tamagui/core"),
31
- import_native = require("@tamagui/native"),
32
- import_jsx_runtime = require("react/jsx-runtime");
33
+ var import_core = require("@tamagui/core");
34
+ var import_native = require("@tamagui/native");
35
+ var import_react = require("react");
36
+ var import_jsx_runtime = require("react/jsx-runtime");
37
+ const SelectZIndexContext = (0, import_react.createContext)(void 0);
38
+ const {
39
+ Provider: SelectProvider,
40
+ useStyledContext: useSelectContext
41
+ } = (0, import_core.createStyledContext)(null, "Select");
33
42
  const {
34
- Provider: SelectProvider,
35
- useStyledContext: useSelectContext
36
- } = (0, import_core.createStyledContext)(null, "Select"),
37
- {
38
- Provider: SelectItemParentProvider,
39
- useStyledContext: useSelectItemParentContext
40
- } = (0, import_core.createStyledContext)(null, "SelectItem"),
41
- ForwardSelectContext = ({
42
- context,
43
- itemContext,
44
- children
45
- }) => (0, import_native.getPortal)().state.type === "teleport" ? children : /* @__PURE__ */(0, import_jsx_runtime.jsx)(SelectProvider, {
46
- isInSheet: !0,
43
+ Provider: SelectItemParentProvider,
44
+ useStyledContext: useSelectItemParentContext
45
+ } = (0, import_core.createStyledContext)(null, "SelectItem");
46
+ const ForwardSelectContext = ({
47
+ context,
48
+ itemContext,
49
+ children
50
+ }) => {
51
+ const portalState = (0, import_native.getPortal)().state;
52
+ if (portalState.type === "teleport") {
53
+ return children;
54
+ }
55
+ return /* @__PURE__ */(0, import_jsx_runtime.jsx)(SelectProvider, {
56
+ isInSheet: true,
47
57
  scope: context.scopeName,
48
58
  ...context,
49
59
  children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(SelectItemParentProvider, {
@@ -51,4 +61,5 @@ const {
51
61
  ...itemContext,
52
62
  children
53
63
  })
54
- });
64
+ });
65
+ };
@@ -5,57 +5,65 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
7
  var __export = (target, all) => {
8
- for (var name in all) __defProp(target, name, {
9
- get: all[name],
10
- enumerable: !0
11
- });
12
- },
13
- __copyProps = (to, from, except, desc) => {
14
- if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: true
11
+ });
12
+ };
13
+ var __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from === "object" || typeof from === "function") {
15
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
15
16
  get: () => from[key],
16
17
  enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
18
  });
18
- return to;
19
- };
19
+ }
20
+ return to;
21
+ };
20
22
  var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
21
- value: !0
23
+ value: true
22
24
  }), mod);
23
25
  var context_exports = {};
24
26
  __export(context_exports, {
25
27
  ForwardSelectContext: () => ForwardSelectContext,
26
28
  SelectItemParentProvider: () => SelectItemParentProvider,
27
29
  SelectProvider: () => SelectProvider,
30
+ SelectZIndexContext: () => SelectZIndexContext,
28
31
  useSelectContext: () => useSelectContext,
29
32
  useSelectItemParentContext: () => useSelectItemParentContext
30
33
  });
31
34
  module.exports = __toCommonJS(context_exports);
32
- var import_jsx_runtime = require("react/jsx-runtime"),
33
- import_core = require("@tamagui/core"),
34
- import_native = require("@tamagui/native"),
35
- {
36
- Provider: SelectProvider,
37
- useStyledContext: useSelectContext
38
- } = (0, import_core.createStyledContext)(null, "Select"),
39
- {
40
- Provider: SelectItemParentProvider,
41
- useStyledContext: useSelectItemParentContext
42
- } = (0, import_core.createStyledContext)(null, "SelectItem"),
43
- ForwardSelectContext = function (param) {
44
- var {
45
- context,
46
- itemContext,
47
- children
48
- } = param,
49
- portalState = (0, import_native.getPortal)().state;
50
- return portalState.type === "teleport" ? children : /* @__PURE__ */(0, import_jsx_runtime.jsx)(SelectProvider, {
51
- isInSheet: !0,
35
+ var import_jsx_runtime = require("react/jsx-runtime");
36
+ var import_core = require("@tamagui/core");
37
+ var import_native = require("@tamagui/native");
38
+ var import_react = require("react");
39
+ var SelectZIndexContext = /* @__PURE__ */(0, import_react.createContext)(void 0);
40
+ var {
41
+ Provider: SelectProvider,
42
+ useStyledContext: useSelectContext
43
+ } = (0, import_core.createStyledContext)(null, "Select");
44
+ var {
45
+ Provider: SelectItemParentProvider,
46
+ useStyledContext: useSelectItemParentContext
47
+ } = (0, import_core.createStyledContext)(null, "SelectItem");
48
+ var ForwardSelectContext = function (param) {
49
+ var {
50
+ context,
51
+ itemContext,
52
+ children
53
+ } = param;
54
+ var portalState = (0, import_native.getPortal)().state;
55
+ if (portalState.type === "teleport") {
56
+ return children;
57
+ }
58
+ return /* @__PURE__ */(0, import_jsx_runtime.jsx)(SelectProvider, {
59
+ isInSheet: true,
60
+ scope: context.scopeName,
61
+ ...context,
62
+ children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(SelectItemParentProvider, {
52
63
  scope: context.scopeName,
53
- ...context,
54
- children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(SelectItemParentProvider, {
55
- scope: context.scopeName,
56
- ...itemContext,
57
- children
58
- })
59
- });
60
- };
64
+ ...itemContext,
65
+ children
66
+ })
67
+ });
68
+ };
61
69
  //# sourceMappingURL=context.native.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","context_exports","__export","ForwardSelectContext","SelectItemParentProvider","SelectProvider","useSelectContext","useSelectItemParentContext","module","exports","import_jsx_runtime","require","import_core","import_native","Provider","useStyledContext","createStyledContext","param","context","itemContext","children","portalState","getPortal","state","type","jsx","isInSheet","scope","scopeName"],"sources":["../../src/context.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,eAAA;AAAAC,QAAA,CAAAD,eAAA;EAAAE,oBAAA,EAAAA,CAAA,KAAAA,oBAAA;EAAAC,wBAAA,EAAAA,CAAA,KAAAA,wBAAA;EAAAC,cAAA,EAAAA,CAAA,KAAAA,cAAA;EAAAC,gBAAA,EAAAA,CAAA,KAAAA,gBAAA;EAAAC,0BAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAb,YAAoC,CAAAK,eACpC;AAGO,IAAAS,kBAAkB,GAAAC,OAAA,oBAAkC;EAAAC,WAAA,GAAiBD,OAAA,CAC1E;EAAAE,aAAA,GAAwCF,OAAa,kBAI1C;EAAA;IAAAG,QAAA,EAAAT,cAAA;IAAAU,gBAAA,EAAAT;EAAA,QAAAM,WAAA,CAAAI,mBAAA;EAAA;IAAAF,QAAA,EAAAV,wBAAA;IAAAW,gBAAA,EAAAR;EAAA,QAAAK,WAAA,CAAAI,mBAAA;EAAAb,oBAAA,YAAAA,CAAAc,KAAA;IACX;QAAAC,OAAU;QAAAC,WAAA;QAAAC;MAAA,IAAAH,KAAA;MAAAI,WAAA,OAAAR,aAAA,CAAAS,SAAA,IAAAC,KAAA;IACV,OAAAF,WAAkB,CAAAG,IAAA,kBAAAJ,QAAA,sBAAAV,kBAAA,CAAAe,GAAA,EAAApB,cAAA;MACpBqB,SAAI;MAGFC,KAAA,EAAAT,OAAA,CAAAU,SAAA;MACA,GAAAV,OAAA;MACAE,QAAA,qBAAAV,kBAAA,CAAAe,GAAA,EAAArB,wBAAA;QACFuB,KAOsB,EAAAT,OAAA,CAAAU,SAAA","ignoreList":[]}
1
+ {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","context_exports","__export","ForwardSelectContext","SelectItemParentProvider","SelectProvider","SelectZIndexContext","useSelectContext","useSelectItemParentContext","module","exports","import_jsx_runtime","require","import_core","import_native","import_react","createContext","Provider","useStyledContext","createStyledContext","param","context","itemContext","children","portalState","getPortal","state","type","jsx","isInSheet","scope","scopeName"],"sources":["../../src/context.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,eAAA;AAAAC,QAAA,CAAAD,eAAA;EAAAE,oBAAA,EAAAA,CAAA,KAAAA,oBAAA;EAAAC,wBAAA,EAAAA,CAAA,KAAAA,wBAAA;EAAAC,cAAA,EAAAA,CAAA,KAAAA,cAAA;EAAAC,mBAAA,EAAAA,CAAA,KAAAA,mBAAA;EAAAC,gBAAA,EAAAA,CAAA,KAAAA,gBAAA;EAAAC,0BAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAd,YAAoC,CAAAK,eAAA;AACpC,IAAAU,kBAA0B,GAAAC,OAAA;AAC1B,IAAAC,WAAA,GAAAD,OAA8B;AAmCxB,IAAAE,aAAA,GAAAF,OAAA;AA/BC,IAAAG,YAAM,GAAAH,OAAA,QAAsB;AAE5B,IAAAN,mBAAkB,kBAAgB,IAAAS,YAAkB,CAAAC,aAAiB,OAC1E;AAIK;EAAMC,QAAA,EAAAZ,cAAA;EAAAa,gBAAA,EAAAX;AAAA,QAAAM,WAAA,CAAAM,mBAAA;AAAA,IACX;EAAAF,QAAU,EAAAb,wBAAA;EAAAc,gBAAA,EAAAV;AAAA,QAAAK,WAAA,CAAAM,mBAAA;AAAA,IACVhB,oBAAkB,YAAAA,CAAAiB,KAAA;EACpB;IAAIC,OAAA;IAAAC,WAAA;IAAAC;EAAA,IAAkDH,KAAa;EAE5D,IAAMI,WAAA,OAAAV,aAAwB,CAAAW,SAAA,IAAAC,KAAA;EACnC,IAAAF,WAAA,CAAAG,IAAA;IACA,OAAAJ,QAAA;EACA;EACF,OAIM,mBAAAZ,kBAAA,CAAAiB,GAAA,EAAAvB,cAAA;IAGJwB,SAAM;IACNC,KAAI,EAAAT,OAAY,CAAAU,SAAS;IACvB,GAAAV,OAAO;IACTE,QAAA,qBAAAZ,kBAAA,CAAAiB,GAAA,EAAAxB,wBAAA;MAGA0B,KACE,EAAAT,OAAA,CAAAU,SAAA;MAMJ,GAAAT,WAAA","ignoreList":[]}
@@ -3,15 +3,17 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
5
  var __copyProps = (to, from, except, desc) => {
6
- if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
6
+ if (from && typeof from === "object" || typeof from === "function") {
7
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
7
8
  get: () => from[key],
8
9
  enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
9
10
  });
10
- return to;
11
- },
12
- __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
11
+ }
12
+ return to;
13
+ };
14
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
13
15
  var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
14
- value: !0
16
+ value: true
15
17
  }), mod);
16
18
  var index_exports = {};
17
19
  module.exports = __toCommonJS(index_exports);
@@ -5,15 +5,17 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
7
  var __copyProps = (to, from, except, desc) => {
8
- if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
8
+ if (from && typeof from === "object" || typeof from === "function") {
9
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
9
10
  get: () => from[key],
10
11
  enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
11
12
  });
12
- return to;
13
- },
14
- __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
13
+ }
14
+ return to;
15
+ };
16
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
15
17
  var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
16
- value: !0
18
+ value: true
17
19
  }), mod);
18
20
  var index_exports = {};
19
21
  module.exports = __toCommonJS(index_exports);
@@ -1 +1 @@
1
- {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","index_exports","module","exports","__reExport","require"],"sources":["../../src/index.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,aAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAP,YAAc,CAAAK,aAAA;AAEdG,UAAA,CAAAH,aAAA,EAAcI,OAAA,wBAAAH,MAFd,CAAAC,OAAA","ignoreList":[]}
1
+ {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","index_exports","module","exports","__reExport","require"],"sources":["../../src/index.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,aAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAP,YAAc,CAAAK,aAAA;AAEdG,UAAA,CAAAH,aAAA,EAAcI,OAAA,wBAAAH,MAFd,CAAAC,OAAA","ignoreList":[]}
@@ -3,14 +3,16 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
5
  var __copyProps = (to, from, except, desc) => {
6
- if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
7
- get: () => from[key],
8
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
9
- });
6
+ if (from && typeof from === "object" || typeof from === "function") {
7
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
8
+ get: () => from[key],
9
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
10
+ });
11
+ }
10
12
  return to;
11
13
  };
12
14
  var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
13
- value: !0
15
+ value: true
14
16
  }), mod);
15
17
  var types_exports = {};
16
18
  module.exports = __toCommonJS(types_exports);
@@ -5,14 +5,16 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
7
  var __copyProps = (to, from, except, desc) => {
8
- if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
9
- get: () => from[key],
10
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
11
- });
8
+ if (from && typeof from === "object" || typeof from === "function") {
9
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
10
+ get: () => from[key],
11
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
12
+ });
13
+ }
12
14
  return to;
13
15
  };
14
16
  var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
15
- value: !0
17
+ value: true
16
18
  }), mod);
17
19
  var types_exports = {};
18
20
  module.exports = __toCommonJS(types_exports);
@@ -1 +1 @@
1
- {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","types_exports"],"sources":["../../src/types.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,aAAA","ignoreList":[]}
1
+ {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","types_exports"],"sources":["../../src/types.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,aAAA","ignoreList":[]}
@@ -3,20 +3,22 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
5
  var __export = (target, all) => {
6
- for (var name in all) __defProp(target, name, {
7
- get: all[name],
8
- enumerable: !0
9
- });
10
- },
11
- __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
6
+ for (var name in all) __defProp(target, name, {
7
+ get: all[name],
8
+ enumerable: true
9
+ });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
13
14
  get: () => from[key],
14
15
  enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
15
16
  });
16
- return to;
17
- };
17
+ }
18
+ return to;
19
+ };
18
20
  var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
19
- value: !0
21
+ value: true
20
22
  }), mod);
21
23
  var useSelectBreakpointActive_exports = {};
22
24
  __export(useSelectBreakpointActive_exports, {
@@ -26,5 +28,5 @@ module.exports = __toCommonJS(useSelectBreakpointActive_exports);
26
28
  var import_adapt = require("@tamagui/adapt");
27
29
  const useShowSelectSheet = context => {
28
30
  const breakpointActive = (0, import_adapt.useAdaptIsActive)(context.adaptScope);
29
- return context.open === !1 ? !1 : breakpointActive;
31
+ return context.open === false ? false : breakpointActive;
30
32
  };
@@ -5,29 +5,31 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
7
  var __export = (target, all) => {
8
- for (var name in all) __defProp(target, name, {
9
- get: all[name],
10
- enumerable: !0
11
- });
12
- },
13
- __copyProps = (to, from, except, desc) => {
14
- if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: true
11
+ });
12
+ };
13
+ var __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from === "object" || typeof from === "function") {
15
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
15
16
  get: () => from[key],
16
17
  enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
18
  });
18
- return to;
19
- };
19
+ }
20
+ return to;
21
+ };
20
22
  var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
21
- value: !0
23
+ value: true
22
24
  }), mod);
23
25
  var useSelectBreakpointActive_exports = {};
24
26
  __export(useSelectBreakpointActive_exports, {
25
27
  useShowSelectSheet: () => useShowSelectSheet
26
28
  });
27
29
  module.exports = __toCommonJS(useSelectBreakpointActive_exports);
28
- var import_adapt = require("@tamagui/adapt"),
29
- useShowSelectSheet = function (context) {
30
- var breakpointActive = (0, import_adapt.useAdaptIsActive)(context.adaptScope);
31
- return context.open === !1 ? !1 : breakpointActive;
32
- };
30
+ var import_adapt = require("@tamagui/adapt");
31
+ var useShowSelectSheet = function (context) {
32
+ var breakpointActive = (0, import_adapt.useAdaptIsActive)(context.adaptScope);
33
+ return context.open === false ? false : breakpointActive;
34
+ };
33
35
  //# sourceMappingURL=useSelectBreakpointActive.native.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","useSelectBreakpointActive_exports","__export","useShowSelectSheet","module","exports","import_adapt","require","context","breakpointActive","useAdaptIsActive","adaptScope","open"],"sources":["../../src/useSelectBreakpointActive.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,iCAAA;AAAAC,QAAA,CAAAD,iCAAA;EAAAE,kBAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAT,YAAiC,CAAAK,iCAAA;AAG1B,IAAAK,YAAM,GAAAC,OAAA,CAAqB,gBAAiC;EAAAJ,kBAAA,YAAAA,CAAAK,OAAA;IACjE,IAAAC,gBAAM,OAAAH,YAAmB,CAAAI,gBAAA,EAAAF,OAAiB,CAAAG,UAAQ;IAClD,OAAOH,OAAA,CAAQI,IAAA,KAAS,KAAQ,KAAQH,gBAAA;EAC1C","ignoreList":[]}
1
+ {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","useSelectBreakpointActive_exports","__export","useShowSelectSheet","module","exports","import_adapt","require","context","breakpointActive","useAdaptIsActive","adaptScope","open"],"sources":["../../src/useSelectBreakpointActive.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,iCAAA;AAAAC,QAAA,CAAAD,iCAAA;EAAAE,kBAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAT,YAAiC,CAAAK,iCAAA;AAG1B,IAAAK,YAAM,GAAAC,OAAA,CAAqB,gBAAiC;AACjE,IAAAJ,kBAAM,YAAAA,CAAmBK,OAAA;EACzB,IAAAC,gBAAe,IAAS,GAAAH,YAAQ,CAAQI,gBAAA,EAAAF,OAAA,CAAAG,UAAA;EAC1C,OAAAH,OAAA,CAAAI,IAAA,qBAAAH,gBAAA","ignoreList":[]}