@tamagui/select 1.88.21 → 1.88.23

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 (59) hide show
  1. package/dist/esm/BubbleSelect.native.js +4 -22
  2. package/dist/esm/BubbleSelect.native.js.map +1 -1
  3. package/dist/esm/Select.native.js +86 -84
  4. package/dist/esm/Select.native.js.map +2 -2
  5. package/dist/esm/SelectContent.native.js +2 -23
  6. package/dist/esm/SelectContent.native.js.map +1 -1
  7. package/dist/esm/SelectImpl.native.js +4 -25
  8. package/dist/esm/SelectImpl.native.js.map +1 -1
  9. package/dist/esm/SelectItem.native.js +17 -43
  10. package/dist/esm/SelectItem.native.js.map +1 -1
  11. package/dist/esm/SelectItemText.native.js +13 -38
  12. package/dist/esm/SelectItemText.native.js.map +1 -1
  13. package/dist/esm/SelectScrollButton.native.js +2 -24
  14. package/dist/esm/SelectScrollButton.native.js.map +1 -1
  15. package/dist/esm/SelectTrigger.native.js +10 -35
  16. package/dist/esm/SelectTrigger.native.js.map +1 -1
  17. package/dist/esm/SelectViewport.native.js +18 -37
  18. package/dist/esm/SelectViewport.native.js.map +1 -1
  19. package/dist/esm/constants.native.js +2 -29
  20. package/dist/esm/constants.native.js.map +1 -1
  21. package/dist/esm/context.native.js +7 -34
  22. package/dist/esm/context.native.js.map +1 -1
  23. package/dist/esm/index.native.js +2 -21
  24. package/dist/esm/index.native.js.map +1 -1
  25. package/dist/esm/types.native.js +0 -14
  26. package/dist/esm/types.native.js.map +2 -2
  27. package/dist/esm/useSelectBreakpointActive.native.js +4 -26
  28. package/dist/esm/useSelectBreakpointActive.native.js.map +1 -1
  29. package/dist/jsx/BubbleSelect.native.js +4 -22
  30. package/dist/jsx/BubbleSelect.native.js.map +1 -1
  31. package/dist/jsx/Select.native.js +86 -84
  32. package/dist/jsx/Select.native.js.map +2 -2
  33. package/dist/jsx/SelectContent.native.js +2 -23
  34. package/dist/jsx/SelectContent.native.js.map +1 -1
  35. package/dist/jsx/SelectImpl.native.js +4 -25
  36. package/dist/jsx/SelectImpl.native.js.map +1 -1
  37. package/dist/jsx/SelectItem.native.js +17 -43
  38. package/dist/jsx/SelectItem.native.js.map +1 -1
  39. package/dist/jsx/SelectItemText.native.js +13 -38
  40. package/dist/jsx/SelectItemText.native.js.map +1 -1
  41. package/dist/jsx/SelectScrollButton.native.js +2 -24
  42. package/dist/jsx/SelectScrollButton.native.js.map +1 -1
  43. package/dist/jsx/SelectTrigger.native.js +10 -35
  44. package/dist/jsx/SelectTrigger.native.js.map +1 -1
  45. package/dist/jsx/SelectViewport.native.js +18 -37
  46. package/dist/jsx/SelectViewport.native.js.map +1 -1
  47. package/dist/jsx/constants.native.js +2 -29
  48. package/dist/jsx/constants.native.js.map +1 -1
  49. package/dist/jsx/context.native.js +7 -34
  50. package/dist/jsx/context.native.js.map +1 -1
  51. package/dist/jsx/index.native.js +2 -21
  52. package/dist/jsx/index.native.js.map +1 -1
  53. package/dist/jsx/types.native.js +0 -14
  54. package/dist/jsx/types.native.js.map +2 -2
  55. package/dist/jsx/useSelectBreakpointActive.native.js +4 -26
  56. package/dist/jsx/useSelectBreakpointActive.native.js.map +1 -1
  57. package/package.json +23 -23
  58. package/types/Select.d.ts +12 -5
  59. package/types/Select.d.ts.map +1 -1
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/SelectItem.tsx"],
4
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,0BAAgC,kCAChC,mBAAiD,+BAEjD,mBAA2C,+BAC3C,QAAuB,2BAEvB,iBAAgE,sBAuKtD;AAhKV,MAAM,YAAY,cAQL,CAAC,2BAA2B,oBAAoB,QAC3D,oCAA4C,SAAS,GAa1C,aAAa,+BAAc;AAAA,EACtC,SAAoB,OAAqC,cAAc;AACrE,UAAM;AAAA,MACJ;AAAA,MACA;AAAA,MACA,WAAW;AAAA,MACX,W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A,YAC3B,iBAAe,WAAW,KAAK;AAAA,YAC/B,UAAU,WAAW,SAAY;AAAA,YAChC,GAAI,CAAC,MAAM,YAAY;AAAA,cACtB,cAAc;AAAA,cACd,YAAY;AAAA,cACZ,YAAY;AAAA,cACZ,QAAQ;AAAA,cACR;AAAA,cACA,eAAe;AAAA,cAEf,YAAY;AAAA,gBACV,cAAc;AAAA,gBACd,cAAc;AAAA,gBACd,cAAc;AAAA,gBACd,eAAe;AAAA,cACjB;AAAA,YACF;AAAA,YACC,GAAG;AAAA,YACH,GAAG;AAAA;AAAA,QACN;AAAA;AAAA,IAEJ;AAAA,EAEJ;AAAA,EACA;AAAA,IACE,cAAc;AAAA,EAChB;AACF;",
5
5
  "names": []
6
6
  }
@@ -1,35 +1,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 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, {
1
+ import { useComposedRefs } from "@tamagui/compose-refs";
2
+ import { styled } from "@tamagui/core";
3
+ import { SizableText } from "@tamagui/text";
4
+ import * as React from "react";
5
+ import { useSelectContext, useSelectItemParentContext } from "./context";
6
+ import { useSelectItemContext } from "./SelectItem";
7
+ import { Fragment, jsx } from "react/jsx-runtime";
8
+ const ITEM_TEXT_NAME = "SelectItemText", SelectItemTextFrame = styled(SizableText, {
33
9
  name: ITEM_TEXT_NAME,
34
10
  variants: {
35
11
  unstyled: {
@@ -44,8 +20,8 @@ const ITEM_TEXT_NAME = "SelectItemText", SelectItemTextFrame = (0, import_core.s
44
20
  unstyled: process.env.TAMAGUI_HEADLESS === "1"
45
21
  }
46
22
  }), SelectItemText = SelectItemTextFrame.styleable(function(props, forwardedRef) {
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)(
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(
49
25
  SelectItemTextFrame,
50
26
  {
51
27
  className,
@@ -58,12 +34,11 @@ const ITEM_TEXT_NAME = "SelectItemText", SelectItemTextFrame = (0, import_core.s
58
34
  itemParentContext.initialValue === itemContext.value && !context.selectedIndex && context.setSelectedItem(contents.current);
59
35
  }, []), React.useEffect(() => itemParentContext.valueSubscribe((val) => {
60
36
  val === itemContext.value && context.setSelectedItem(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 });
37
+ }), [itemContext.value]), itemParentContext.shouldRenderWebNative ? /* @__PURE__ */ jsx(Fragment, { children: props.children }) : /* @__PURE__ */ jsx(Fragment, { children: contents.current });
62
38
  });
63
- // Annotate the CommonJS export names for ESM import in node:
64
- 0 && (module.exports = {
39
+ export {
65
40
  ITEM_TEXT_NAME,
66
41
  SelectItemText,
67
42
  SelectItemTextFrame
68
- });
43
+ };
69
44
  //# sourceMappingURL=SelectItemText.js.map
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/SelectItemText.tsx"],
4
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,0BAAgC,kCAEhC,cAAuB,0BACvB,cAA4B,0BAC5B,QAAuB,2BAEvB,iBAA6D,sBAC7D,oBAAqC,yBA4CjC;AArCG,MAAM,iBAAiB,kBAEjB,0BAAsB,oBAAO,yBAAa;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Descriptor;
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);
22
1
  const SelectScrollUpButton = (_) => null, SelectScrollDownButton = (_) => null;
23
- // Annotate the CommonJS export names for ESM import in node:
24
- 0 && (module.exports = {
2
+ export {
25
3
  SelectScrollDownButton,
26
4
  SelectScrollUpButton
27
- });
5
+ };
28
6
  //# sourceMappingURL=SelectScrollButton.native.js.map
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/SelectScrollButton.native.tsx"],
4
- "mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAGO,MAAM,uBAAuB,CAAC,MAA4C,MAGpE,yBAAyB,CAAC,MAA4C;",
4
+ "mappings": "AAGO,MAAM,uBAAuB,CAAC,MAA4C,MAGpE,yBAAyB,CAAC,MAA4C;",
5
5
  "names": []
6
6
  }
@@ -1,41 +1,17 @@
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");
1
+ import { useComposedRefs } from "@tamagui/compose-refs";
2
+ import { ListItem } from "@tamagui/list-item";
3
+ import * as React from "react";
4
+ import { useSelectContext, useSelectItemParentContext } from "./context";
5
+ import { jsx } from "react/jsx-runtime";
30
6
  const TRIGGER_NAME = "SelectTrigger", SelectTrigger = React.forwardRef(
31
7
  function(props, forwardedRef) {
32
8
  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
+ const { __scopeSelect, disabled = !1, unstyled = !1, ...triggerProps } = props, context = useSelectContext(TRIGGER_NAME, __scopeSelect), itemParentContext = useSelectItemParentContext(TRIGGER_NAME, __scopeSelect), composedRefs = useComposedRefs(
34
10
  forwardedRef,
35
11
  (_a = context.floatingContext) == null ? void 0 : _a.refs.setReference
36
12
  );
37
- return itemParentContext.shouldRenderWebNative ? null : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
38
- import_list_item.ListItem,
13
+ return itemParentContext.shouldRenderWebNative ? null : /* @__PURE__ */ jsx(
14
+ ListItem,
39
15
  {
40
16
  componentName: TRIGGER_NAME,
41
17
  unstyled,
@@ -69,8 +45,7 @@ const TRIGGER_NAME = "SelectTrigger", SelectTrigger = React.forwardRef(
69
45
  );
70
46
  }
71
47
  );
72
- // Annotate the CommonJS export names for ESM import in node:
73
- 0 && (module.exports = {
48
+ export {
74
49
  SelectTrigger
75
- });
50
+ };
76
51
  //# sourceMappingURL=SelectTrigger.js.map
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/SelectTrigger.tsx"],
4
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,0BAAgC,kCAGhC,mBAAyB,+BACzB,QAAuB,2BAEvB,iBAA6D,sBA4BvD;AAtBN,MAAM,eAAe,iBAIR,gBAAgB,MAAM;AAAA,EACjC,SAAuB,OAAwC,cAAc;AAjB/E;AAkBI,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,QACA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,cAAc;AAAA,YACd,cAAc;AAAA,UAChB;AAAA,UACA,aAAa;AAAA,UACb,MAAM,kBAAkB;AAAA,QAC1B;AAAA,QAEA,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,47 +1,28 @@
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");
1
+ import { AdaptParentContext } from "@tamagui/adapt";
2
+ import { Theme, useThemeName } from "@tamagui/core";
3
+ import { PortalItem } from "@tamagui/portal";
4
+ import * as React from "react";
5
+ import { VIEWPORT_NAME } from "./constants";
6
+ import {
7
+ ForwardSelectContext,
8
+ useSelectContext,
9
+ useSelectItemParentContext
10
+ } from "./context";
11
+ import { jsx } from "react/jsx-runtime";
30
12
  const SelectViewport = (props) => {
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,
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,
34
16
  {
35
17
  __scopeSelect,
36
18
  itemContext: itemParentContext,
37
19
  context,
38
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_adapt.AdaptParentContext.Provider, { value: adaptContext, children })
20
+ children: /* @__PURE__ */ jsx(AdaptParentContext.Provider, { value: adaptContext, children })
39
21
  }
40
22
  ) }) });
41
23
  };
42
- SelectViewport.displayName = import_constants.VIEWPORT_NAME;
43
- // Annotate the CommonJS export names for ESM import in node:
44
- 0 && (module.exports = {
24
+ SelectViewport.displayName = VIEWPORT_NAME;
25
+ export {
45
26
  SelectViewport
46
- });
27
+ };
47
28
  //# 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;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;",
4
+ "mappings": "AAAA,SAAS,0BAA0B;AACnC,SAAS,OAAO,oBAAoB;AACpC,SAAS,kBAAkB;AAC3B,YAAY,WAAW;AAEvB,SAAS,qBAAqB;AAC9B;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAmBG;AAhBH,MAAM,iBAAiB,CAAC,UAA4C;AACzE,QAAM,EAAE,eAAe,SAAS,IAAI,OAC9B,UAAU,iBAAiB,eAAe,aAAa,GACvD,oBAAoB,2BAA2B,eAAe,aAAa,GAC3E,YAAY,aAAa,GACzB,eAAe,MAAM,WAAW,kBAAkB;AAGxD,SACE,oBAAC,cAAW,UAAU,GAAG,QAAQ,QAAQ,iBACvC,8BAAC,SAAM,MAAM,WACX;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA,aAAa;AAAA,MACb;AAAA,MAEA,8BAAC,mBAAmB,UAAnB,EAA4B,OAAO,cACjC,UACH;AAAA;AAAA,EACF,GACF,GACF;AAEJ;AAEA,eAAe,cAAc;",
5
5
  "names": []
6
6
  }
@@ -1,32 +1,5 @@
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);
27
1
  const SELECT_NAME = "Select", WINDOW_PADDING = 8, SCROLL_ARROW_VELOCITY = 8, SCROLL_ARROW_THRESHOLD = 8, MIN_HEIGHT = 80, FALLBACK_THRESHOLD = 16, VIEWPORT_NAME = "SelectViewport";
28
- // Annotate the CommonJS export names for ESM import in node:
29
- 0 && (module.exports = {
2
+ export {
30
3
  FALLBACK_THRESHOLD,
31
4
  MIN_HEIGHT,
32
5
  SCROLL_ARROW_THRESHOLD,
@@ -34,5 +7,5 @@ const SELECT_NAME = "Select", WINDOW_PADDING = 8, SCROLL_ARROW_VELOCITY = 8, SCR
34
7
  SELECT_NAME,
35
8
  VIEWPORT_NAME,
36
9
  WINDOW_PADDING
37
- });
10
+ };
38
11
  //# sourceMappingURL=constants.js.map
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/constants.tsx"],
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;",
4
+ "mappings": "AAAO,MAAM,cAAc,UACd,iBAAiB,GACjB,wBAAwB,GACxB,yBAAyB,GACzB,aAAa,IACb,qBAAqB,IACrB,gBAAgB;",
5
5
  "names": []
6
6
  }
@@ -1,40 +1,13 @@
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 = ({
1
+ import { createContextScope } from "@tamagui/create-context";
2
+ import { SELECT_NAME } from "./constants";
3
+ import { jsx } from "react/jsx-runtime";
4
+ const [createSelectContext, createSelectScope] = createContextScope(SELECT_NAME), [SelectProvider, useSelectContext] = createSelectContext(SELECT_NAME), [createSelectItemParentContext, createSelectItemParentScope] = createContextScope(SELECT_NAME), [SelectItemParentProvider, useSelectItemParentContext] = createSelectContext(SELECT_NAME), ForwardSelectContext = ({
31
5
  __scopeSelect,
32
6
  context,
33
7
  itemContext,
34
8
  children
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 = {
9
+ }) => /* @__PURE__ */ jsx(SelectProvider, { isInSheet: !0, scope: __scopeSelect, ...context, children: /* @__PURE__ */ jsx(SelectItemParentProvider, { scope: __scopeSelect, ...itemContext, children }) });
10
+ export {
38
11
  ForwardSelectContext,
39
12
  SelectItemParentProvider,
40
13
  SelectProvider,
@@ -44,5 +17,5 @@ const [createSelectContext, createSelectScope] = (0, import_create_context.creat
44
17
  createSelectScope,
45
18
  useSelectContext,
46
19
  useSelectItemParentContext
47
- });
20
+ };
48
21
  //# sourceMappingURL=context.js.map
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/context.tsx"],
4
- "mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,4BAAmC,oCAEnC,mBAA4B,wBAgCtB;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;",
4
+ "mappings": "AAAA,SAAS,0BAA0B;AAEnC,SAAS,mBAAmB;AAgCtB;AAzBC,MAAM,CAAC,qBAAqB,iBAAiB,IAAI,mBAAmB,WAAW,GAEzE,CAAC,gBAAgB,gBAAgB,IAC5C,oBAAwC,WAAW,GAIxC,CAAC,+BAA+B,2BAA2B,IACtE,mBAAmB,WAAW,GAEnB,CAAC,0BAA0B,0BAA0B,IAChE,oBAAkD,WAAW,GAElD,uBAAuB,CAAC;AAAA,EACnC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,MAMI,oBAAC,kBAAe,WAAS,IAAC,OAAO,eAAgB,GAAG,SAClD,8BAAC,4BAAyB,OAAO,eAAgB,GAAG,aACjD,UACH,GACF;",
5
5
  "names": []
6
6
  }
@@ -1,22 +1,3 @@
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
- });
1
+ export * from "./Select";
2
+ export * from "./context";
22
3
  //# sourceMappingURL=index.js.map
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/index.tsx"],
4
- "mappings": ";;;;;;;;;;;;AAAA;AAAA;AAAA,wBAAc,qBAAd;AAOA,wBAAc,sBAPd;",
4
+ "mappings": "AAAA,cAAc;AAOd,cAAc;",
5
5
  "names": []
6
6
  }
@@ -1,15 +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 __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);
15
1
  //# sourceMappingURL=types.js.map
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../src/types.tsx"],
4
- "mappings": ";;;;;;;;;;;;AAAA;AAAA;",
3
+ "sources": [],
4
+ "mappings": "",
5
5
  "names": []
6
6
  }
@@ -1,35 +1,13 @@
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");
1
+ import { useMedia } from "@tamagui/core";
23
2
  const useSelectBreakpointActive = (sheetBreakpoint) => {
24
- const media = (0, import_core.useMedia)();
3
+ const media = useMedia();
25
4
  return sheetBreakpoint ? sheetBreakpoint === !0 ? !0 : sheetBreakpoint ? media[sheetBreakpoint] : !1 : !1;
26
5
  }, useShowSelectSheet = (context) => {
27
6
  const breakpointActive = useSelectBreakpointActive(context.sheetBreakpoint);
28
7
  return context.open === !1 ? !1 : breakpointActive;
29
8
  };
30
- // Annotate the CommonJS export names for ESM import in node:
31
- 0 && (module.exports = {
9
+ export {
32
10
  useSelectBreakpointActive,
33
11
  useShowSelectSheet
34
- });
12
+ };
35
13
  //# sourceMappingURL=useSelectBreakpointActive.js.map
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/useSelectBreakpointActive.tsx"],
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;",
4
+ "mappings": "AAAA,SAAS,gBAAgB;AAIlB,MAAM,4BAA4B,CACvC,oBACG;AACH,QAAM,QAAQ,SAAS;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,26 +1,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 __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"));
1
+ import { useComposedRefs } from "@tamagui/compose-refs";
2
+ import { usePrevious } from "@tamagui/use-previous";
3
+ import * as React from "react";
22
4
  const BubbleSelect = React.forwardRef((props, forwardedRef) => {
23
- const { value, ...selectProps } = props, ref = React.useRef(null), composedRefs = (0, import_compose_refs.useComposedRefs)(forwardedRef, ref), prevValue = (0, import_use_previous.usePrevious)(value);
5
+ const { value, ...selectProps } = props, ref = React.useRef(null), composedRefs = useComposedRefs(forwardedRef, ref), prevValue = usePrevious(value);
24
6
  return React.useEffect(() => {
25
7
  const select = ref.current, selectProto = window.HTMLSelectElement.prototype, setValue = Object.getOwnPropertyDescriptor(
26
8
  selectProto,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/BubbleSelect.tsx"],
4
- "mappings": ";;;;;;;;;;;;;;;;;;;;AAAA,0BA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