@tamagui/select 1.88.13 → 1.88.15

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 (110) hide show
  1. package/LICENSE +21 -0
  2. package/dist/cjs/Select.js.map +1 -1
  3. package/dist/cjs/Select.native.js.map +1 -1
  4. package/dist/cjs/SelectContent.js.map +1 -1
  5. package/dist/cjs/SelectImpl.js.map +1 -1
  6. package/dist/cjs/SelectItem.js.map +1 -1
  7. package/dist/cjs/SelectItem.native.js.map +1 -1
  8. package/dist/cjs/SelectItemText.js.map +1 -1
  9. package/dist/cjs/SelectItemText.native.js.map +1 -1
  10. package/dist/cjs/SelectTrigger.js.map +1 -1
  11. package/dist/cjs/SelectTrigger.native.js.map +1 -1
  12. package/dist/cjs/context.js.map +1 -1
  13. package/dist/cjs/context.native.js.map +1 -1
  14. package/dist/esm/BubbleSelect.mjs +23 -0
  15. package/dist/esm/Select.js +1 -6
  16. package/dist/esm/Select.js.map +1 -1
  17. package/dist/esm/Select.mjs +359 -0
  18. package/dist/esm/Select.native.js.map +1 -1
  19. package/dist/esm/SelectContent.js.map +1 -1
  20. package/dist/esm/SelectContent.mjs +47 -0
  21. package/dist/esm/SelectImpl.js.map +1 -1
  22. package/dist/esm/SelectImpl.mjs +233 -0
  23. package/dist/esm/SelectItem.js.map +1 -1
  24. package/dist/esm/SelectItem.mjs +121 -0
  25. package/dist/esm/SelectItem.native.js.map +1 -1
  26. package/dist/esm/SelectItemText.js.map +1 -1
  27. package/dist/esm/SelectItemText.mjs +52 -0
  28. package/dist/esm/SelectItemText.native.js.map +1 -1
  29. package/dist/esm/SelectScrollButton.mjs +100 -0
  30. package/dist/esm/SelectTrigger.js.map +1 -1
  31. package/dist/esm/SelectTrigger.mjs +53 -0
  32. package/dist/esm/SelectTrigger.native.js.map +1 -1
  33. package/dist/esm/SelectViewport.mjs +117 -0
  34. package/dist/esm/constants.mjs +8 -0
  35. package/dist/esm/context.js.map +1 -1
  36. package/dist/esm/context.mjs +23 -0
  37. package/dist/esm/context.native.js.map +1 -1
  38. package/dist/esm/index.mjs +2 -0
  39. package/dist/esm/types.mjs +0 -0
  40. package/dist/esm/useSelectBreakpointActive.mjs +10 -0
  41. package/dist/jsx/BubbleSelect.mjs +23 -0
  42. package/dist/jsx/Select.js +1 -6
  43. package/dist/jsx/Select.js.map +1 -1
  44. package/dist/jsx/Select.mjs +359 -0
  45. package/dist/jsx/Select.native.js.map +1 -1
  46. package/dist/jsx/SelectContent.js.map +1 -1
  47. package/dist/jsx/SelectContent.mjs +47 -0
  48. package/dist/jsx/SelectImpl.js.map +1 -1
  49. package/dist/jsx/SelectImpl.mjs +233 -0
  50. package/dist/jsx/SelectItem.js.map +1 -1
  51. package/dist/jsx/SelectItem.mjs +121 -0
  52. package/dist/jsx/SelectItem.native.js.map +1 -1
  53. package/dist/jsx/SelectItemText.js.map +1 -1
  54. package/dist/jsx/SelectItemText.mjs +52 -0
  55. package/dist/jsx/SelectItemText.native.js.map +1 -1
  56. package/dist/jsx/SelectScrollButton.mjs +100 -0
  57. package/dist/jsx/SelectTrigger.js.map +1 -1
  58. package/dist/jsx/SelectTrigger.mjs +53 -0
  59. package/dist/jsx/SelectTrigger.native.js.map +1 -1
  60. package/dist/jsx/SelectViewport.mjs +117 -0
  61. package/dist/jsx/constants.mjs +8 -0
  62. package/dist/jsx/context.js.map +1 -1
  63. package/dist/jsx/context.mjs +23 -0
  64. package/dist/jsx/context.native.js.map +1 -1
  65. package/dist/jsx/index.mjs +2 -0
  66. package/dist/jsx/types.mjs +0 -0
  67. package/dist/jsx/useSelectBreakpointActive.mjs +10 -0
  68. package/package.json +24 -24
  69. package/src/Select.tsx +5 -11
  70. package/src/SelectContent.native.tsx +1 -1
  71. package/src/SelectContent.tsx +3 -2
  72. package/src/SelectImpl.native.tsx +1 -1
  73. package/src/SelectImpl.tsx +2 -2
  74. package/src/SelectItem.tsx +3 -2
  75. package/src/SelectItemText.tsx +3 -2
  76. package/src/SelectScrollButton.native.tsx +1 -1
  77. package/src/SelectScrollButton.tsx +2 -2
  78. package/src/SelectTrigger.tsx +4 -3
  79. package/src/SelectViewport.native.tsx +1 -1
  80. package/src/SelectViewport.tsx +1 -1
  81. package/src/context.tsx +5 -1
  82. package/src/useSelectBreakpointActive.tsx +1 -1
  83. package/types/Select.d.ts +11 -11
  84. package/types/Select.d.ts.map +1 -1
  85. package/types/SelectContent.d.ts +2 -2
  86. package/types/SelectContent.d.ts.map +1 -1
  87. package/types/SelectContent.native.d.ts +1 -1
  88. package/types/SelectContent.native.d.ts.map +1 -1
  89. package/types/SelectImpl.d.ts +1 -1
  90. package/types/SelectImpl.d.ts.map +1 -1
  91. package/types/SelectImpl.native.d.ts +1 -1
  92. package/types/SelectImpl.native.d.ts.map +1 -1
  93. package/types/SelectItem.d.ts +1 -1
  94. package/types/SelectItem.d.ts.map +1 -1
  95. package/types/SelectItemText.d.ts +1 -1
  96. package/types/SelectItemText.d.ts.map +1 -1
  97. package/types/SelectScrollButton.d.ts +2 -2
  98. package/types/SelectScrollButton.d.ts.map +1 -1
  99. package/types/SelectScrollButton.native.d.ts +1 -1
  100. package/types/SelectScrollButton.native.d.ts.map +1 -1
  101. package/types/SelectTrigger.d.ts +6 -6
  102. package/types/SelectTrigger.d.ts.map +1 -1
  103. package/types/SelectViewport.d.ts +1 -1
  104. package/types/SelectViewport.d.ts.map +1 -1
  105. package/types/SelectViewport.native.d.ts +1 -1
  106. package/types/SelectViewport.native.d.ts.map +1 -1
  107. package/types/context.d.ts +1 -1
  108. package/types/context.d.ts.map +1 -1
  109. package/types/useSelectBreakpointActive.d.ts +1 -1
  110. package/types/useSelectBreakpointActive.d.ts.map +1 -1
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/SelectTrigger.tsx"],
4
- "mappings": "AAAA,SAAS,uBAAuB;AAEhC,SAAS,gBAA+B;AACxC,YAAY,WAAW;AAEvB,SAAS,kBAAkB,kCAAkC;AA4BvD;AAtBN,MAAM,eAAe,iBAIR,gBAAgB,MAAM;AAAA,EACjC,SAAuB,OAAwC,cAAc;AAC3E,UAAM,EAAE,eAAe,WAAW,IAAO,WAAW,IAAO,GAAG,aAAa,IAAI,OAEzE,UAAU,iBAAiB,cAAc,aAAa,GACtD,oBAAoB,2BAA2B,cAAc,aAAa,GAC1E,eAAe;AAAA,MACnB;AAAA,MACA,QAAQ,iBAAiB,KAAK;AAAA,IAChC;AAIA,WAAI,kBAAkB,wBACb,OAIP;AAAA,MAAC;AAAA;AAAA,QACC,eAAe;AAAA,QACf;AAAA,QACC,GAAI,CAAC,YAAY;AAAA,UAChB,cAAc;AAAA,UACd,UAAU;AAAA,UACV,YAAY;AAAA,UACZ,YAAY;AAAA,UACZ,WAAW;AAAA,UACX,YAAY;AAAA,YACV,cAAc;AAAA,YACd,cAAc;AAAA,YACd,cAAc;AAAA,UAChB;AAAA,UACA,aAAa;AAAA,QACf;AAAA,QACA,MAAM,kBAAkB;AAAA,QAExB,iBAAe,QAAQ;AAAA,QACvB,qBAAkB;AAAA,QAClB,KAAK,QAAQ;AAAA,QACb;AAAA,QACA,iBAAe,WAAW,KAAK;AAAA,QAC9B,GAAG;AAAA,QACJ,KAAK;AAAA,QACJ,GAA4C,kBAAkB,eAC3D;AAAA,UACE,GAAG,kBAAkB,aAAa,kBAAkB;AAAA,UACpD,cAAc;AACZ,oBAAQ,iBAAiB,OAAO,GAChC,kBAAkB,QAAQ,CAAC,QAAQ,IAAI;AAAA,UACzC;AAAA,QACF,IACA;AAAA,UACE,UAAU;AACR,8BAAkB,QAAQ,CAAC,QAAQ,IAAI;AAAA,UACzC;AAAA,QACF;AAAA;AAAA,IACN;AAAA,EAEJ;AACF;",
4
+ "mappings": "AAAA,SAAS,uBAAuB;AAGhC,SAAS,gBAAgB;AACzB,YAAY,WAAW;AAEvB,SAAS,kBAAkB,kCAAkC;AA4BvD;AAtBN,MAAM,eAAe,iBAIR,gBAAgB,MAAM;AAAA,EACjC,SAAuB,OAAwC,cAAc;AAC3E,UAAM,EAAE,eAAe,WAAW,IAAO,WAAW,IAAO,GAAG,aAAa,IAAI,OAEzE,UAAU,iBAAiB,cAAc,aAAa,GACtD,oBAAoB,2BAA2B,cAAc,aAAa,GAC1E,eAAe;AAAA,MACnB;AAAA,MACA,QAAQ,iBAAiB,KAAK;AAAA,IAChC;AAIA,WAAI,kBAAkB,wBACb,OAIP;AAAA,MAAC;AAAA;AAAA,QACC,eAAe;AAAA,QACf;AAAA,QACC,GAAI,CAAC,YAAY;AAAA,UAChB,cAAc;AAAA,UACd,UAAU;AAAA,UACV,YAAY;AAAA,UACZ,YAAY;AAAA,UACZ,WAAW;AAAA,UACX,YAAY;AAAA,YACV,cAAc;AAAA,YACd,cAAc;AAAA,YACd,cAAc;AAAA,UAChB;AAAA,UACA,aAAa;AAAA,QACf;AAAA,QACA,MAAM,kBAAkB;AAAA,QAExB,iBAAe,QAAQ;AAAA,QACvB,qBAAkB;AAAA,QAClB,KAAK,QAAQ;AAAA,QACb;AAAA,QACA,iBAAe,WAAW,KAAK;AAAA,QAC9B,GAAG;AAAA,QACJ,KAAK;AAAA,QACJ,GAA4C,kBAAkB,eAC3D;AAAA,UACE,GAAG,kBAAkB,aAAa,kBAAkB;AAAA,UACpD,cAAc;AACZ,oBAAQ,iBAAiB,OAAO,GAChC,kBAAkB,QAAQ,CAAC,QAAQ,IAAI;AAAA,UACzC;AAAA,QACF,IACA;AAAA,UACE,UAAU;AACR,8BAAkB,QAAQ,CAAC,QAAQ,IAAI;AAAA,UACzC;AAAA,QACF;AAAA;AAAA,IACN;AAAA,EAEJ;AACF;",
5
5
  "names": []
6
6
  }
@@ -0,0 +1,53 @@
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.mjs";
5
+ import { jsx } from "react/jsx-runtime";
6
+ const TRIGGER_NAME = "SelectTrigger",
7
+ SelectTrigger = React.forwardRef(function (props, forwardedRef) {
8
+ const {
9
+ __scopeSelect,
10
+ disabled = !1,
11
+ unstyled = !1,
12
+ ...triggerProps
13
+ } = props,
14
+ context = useSelectContext(TRIGGER_NAME, __scopeSelect),
15
+ itemParentContext = useSelectItemParentContext(TRIGGER_NAME, __scopeSelect),
16
+ composedRefs = useComposedRefs(forwardedRef, context.floatingContext?.refs.setReference);
17
+ return itemParentContext.shouldRenderWebNative ? null : /* @__PURE__ */jsx(ListItem, {
18
+ componentName: TRIGGER_NAME,
19
+ unstyled,
20
+ ...(!unstyled && {
21
+ backgrounded: !0,
22
+ radiused: !0,
23
+ hoverTheme: !0,
24
+ pressTheme: !0,
25
+ focusable: !0,
26
+ focusStyle: {
27
+ outlineStyle: "solid",
28
+ outlineWidth: 2,
29
+ outlineColor: "$outlineColor"
30
+ },
31
+ borderWidth: 1
32
+ }),
33
+ size: itemParentContext.size,
34
+ "aria-expanded": context.open,
35
+ "aria-autocomplete": "none",
36
+ dir: context.dir,
37
+ disabled,
38
+ "data-disabled": disabled ? "" : void 0,
39
+ ...triggerProps,
40
+ ref: composedRefs,
41
+ ...(itemParentContext.interactions ? {
42
+ ...itemParentContext.interactions.getReferenceProps(),
43
+ onMouseDown() {
44
+ context.floatingContext?.update(), itemParentContext.setOpen(!context.open);
45
+ }
46
+ } : {
47
+ onPress() {
48
+ itemParentContext.setOpen(!context.open);
49
+ }
50
+ })
51
+ });
52
+ });
53
+ export { SelectTrigger };
@@ -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,kCAEhC,mBAAwC,+BACxC,QAAuB,2BAEvB,iBAA6D,sBA4BvD;AAtBN,MAAM,eAAe,iBAIR,gBAAgB,MAAM;AAAA,EACjC,SAAuB,OAAwC,cAAc;AAhB/E;AAiBI,UAAM,EAAE,eAAe,WAAW,IAAO,WAAW,IAAO,GAAG,aAAa,IAAI,OAEzE,cAAU,iCAAiB,cAAc,aAAa,GACtD,wBAAoB,2CAA2B,cAAc,aAAa,GAC1E,mBAAe;AAAA,MACnB;AAAA,OACA,aAAQ,oBAAR,mBAAyB,KAAK;AAAA,IAChC;AAIA,WAAI,kBAAkB,wBACb,OAIP;AAAA,MAAC;AAAA;AAAA,QACC,eAAe;AAAA,QACf;AAAA,QACC,GAAI,CAAC,YAAY;AAAA,UAChB,cAAc;AAAA,UACd,UAAU;AAAA,UACV,YAAY;AAAA,UACZ,YAAY;AAAA,UACZ,WAAW;AAAA,UACX,YAAY;AAAA,YACV,cAAc;AAAA,YACd,cAAc;AAAA,YACd,cAAc;AAAA,UAChB;AAAA,UACA,aAAa;AAAA,QACf;AAAA,QACA,MAAM,kBAAkB;AAAA,QAExB,iBAAe,QAAQ;AAAA,QACvB,qBAAkB;AAAA,QAClB,KAAK,QAAQ;AAAA,QACb;AAAA,QACA,iBAAe,WAAW,KAAK;AAAA,QAC9B,GAAG;AAAA,QACJ,KAAK;AAAA,QAUC,UAAU;AACR,4BAAkB,QAAQ,CAAC,QAAQ,IAAI;AAAA,QACzC;AAAA;AAAA,IAER;AAAA,EAEJ;AACF;",
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,QACC,GAAI,CAAC,YAAY;AAAA,UAChB,cAAc;AAAA,UACd,UAAU;AAAA,UACV,YAAY;AAAA,UACZ,YAAY;AAAA,UACZ,WAAW;AAAA,UACX,YAAY;AAAA,YACV,cAAc;AAAA,YACd,cAAc;AAAA,YACd,cAAc;AAAA,UAChB;AAAA,UACA,aAAa;AAAA,QACf;AAAA,QACA,MAAM,kBAAkB;AAAA,QAExB,iBAAe,QAAQ;AAAA,QACvB,qBAAkB;AAAA,QAClB,KAAK,QAAQ;AAAA,QACb;AAAA,QACA,iBAAe,WAAW,KAAK;AAAA,QAC9B,GAAG;AAAA,QACJ,KAAK;AAAA,QAUC,UAAU;AACR,4BAAkB,QAAQ,CAAC,QAAQ,IAAI;AAAA,QACzC;AAAA;AAAA,IAER;AAAA,EAEJ;AACF;",
5
5
  "names": []
6
6
  }
@@ -0,0 +1,117 @@
1
+ import { FloatingFocusManager } from "@floating-ui/react";
2
+ import { AnimatePresence } from "@tamagui/animate-presence";
3
+ import { composeRefs } from "@tamagui/compose-refs";
4
+ import { isWeb, useIsomorphicLayoutEffect } from "@tamagui/constants";
5
+ import { styled } from "@tamagui/core";
6
+ import { PortalItem } from "@tamagui/portal";
7
+ import { ThemeableStack } from "@tamagui/stacks";
8
+ import { VIEWPORT_NAME } from "./constants.mjs";
9
+ import { ForwardSelectContext, useSelectContext, useSelectItemParentContext } from "./context.mjs";
10
+ import { useSelectBreakpointActive } from "./useSelectBreakpointActive.mjs";
11
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
12
+ const SelectViewportFrame = styled(ThemeableStack, {
13
+ name: VIEWPORT_NAME,
14
+ variants: {
15
+ unstyled: {
16
+ false: {
17
+ size: "$2",
18
+ backgroundColor: "$background",
19
+ elevate: !0,
20
+ bordered: !0,
21
+ userSelect: "none",
22
+ outlineWidth: 0
23
+ }
24
+ },
25
+ size: {
26
+ "...size": (val, {
27
+ tokens
28
+ }) => ({
29
+ borderRadius: tokens.radius[val] ?? val
30
+ })
31
+ }
32
+ },
33
+ defaultVariants: {
34
+ unstyled: process.env.TAMAGUI_HEADLESS === "1"
35
+ }
36
+ }),
37
+ SelectViewport = SelectViewportFrame.styleable(function (props, forwardedRef) {
38
+ const {
39
+ __scopeSelect,
40
+ children,
41
+ disableScroll,
42
+ ...viewportProps
43
+ } = props,
44
+ context = useSelectContext(VIEWPORT_NAME, __scopeSelect),
45
+ itemContext = useSelectItemParentContext(VIEWPORT_NAME, __scopeSelect),
46
+ breakpointActive = useSelectBreakpointActive(context.sheetBreakpoint);
47
+ if (useIsomorphicLayoutEffect(() => {
48
+ context.update && context.update();
49
+ }, [breakpointActive]), itemContext.shouldRenderWebNative) return /* @__PURE__ */jsx(Fragment, {
50
+ children
51
+ });
52
+ if (breakpointActive || !isWeb) return /* @__PURE__ */jsx(PortalItem, {
53
+ hostName: `${context.scopeKey}SheetContents`,
54
+ children: /* @__PURE__ */jsx(ForwardSelectContext, {
55
+ __scopeSelect,
56
+ itemContext,
57
+ context,
58
+ children
59
+ })
60
+ });
61
+ if (!itemContext.interactions) return process.env.NODE_ENV === "development" && console.warn("No interactions provided to Select, potentially missing Adapt"), null;
62
+ const {
63
+ style,
64
+ // remove this, it was set to "Select" always
65
+ className,
66
+ ...floatingProps
67
+ } = itemContext.interactions.getFloatingProps(),
68
+ composedRefs = composeRefs(forwardedRef, context.floatingContext?.refs.setFloating),
69
+ {
70
+ scrollbarWidth,
71
+ listStyleType,
72
+ overflow,
73
+ ...restStyle
74
+ } = style;
75
+ return /* @__PURE__ */jsxs(Fragment, {
76
+ children: [!disableScroll && !props.unstyled && /* @__PURE__ */jsx("style", {
77
+ dangerouslySetInnerHTML: {
78
+ __html: selectViewportCSS
79
+ }
80
+ }), /* @__PURE__ */jsx(AnimatePresence, {
81
+ children: context.open ? /* @__PURE__ */jsx(FloatingFocusManager, {
82
+ context: context.floatingContext,
83
+ modal: !1,
84
+ children: /* @__PURE__ */jsx(SelectViewportFrame, {
85
+ disableClassName: !0,
86
+ size: itemContext.size,
87
+ role: "presentation",
88
+ ...viewportProps,
89
+ ...floatingProps,
90
+ ...restStyle,
91
+ ...(!props.unstyled && {
92
+ overflow: disableScroll ? void 0 : overflow ?? "scroll"
93
+ }),
94
+ ref: composedRefs,
95
+ children
96
+ }, "select-viewport")
97
+ }) : null
98
+ }), !context.open && /* @__PURE__ */jsx("div", {
99
+ style: {
100
+ display: "none"
101
+ },
102
+ children: props.children
103
+ })]
104
+ });
105
+ }),
106
+ selectViewportCSS = `
107
+ .is_SelectViewport {
108
+ scrollbar-width: none;
109
+ -webkit-overflow-scrolling: touch;
110
+ overscroll-behavior: contain;
111
+ }
112
+
113
+ .is_SelectViewport::-webkit-scrollbar{
114
+ display:none
115
+ }
116
+ `;
117
+ export { SelectViewport, SelectViewportFrame };
@@ -0,0 +1,8 @@
1
+ const SELECT_NAME = "Select",
2
+ WINDOW_PADDING = 8,
3
+ SCROLL_ARROW_VELOCITY = 8,
4
+ SCROLL_ARROW_THRESHOLD = 8,
5
+ MIN_HEIGHT = 80,
6
+ FALLBACK_THRESHOLD = 16,
7
+ VIEWPORT_NAME = "SelectViewport";
8
+ export { FALLBACK_THRESHOLD, MIN_HEIGHT, SCROLL_ARROW_THRESHOLD, SCROLL_ARROW_VELOCITY, SELECT_NAME, VIEWPORT_NAME, WINDOW_PADDING };
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/context.tsx"],
4
- "mappings": "AAAA,SAAS,0BAA0B;AAEnC,SAAS,mBAAmB;AA4BtB;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;",
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
  }
@@ -0,0 +1,23 @@
1
+ import { createContextScope } from "@tamagui/create-context";
2
+ import { SELECT_NAME } from "./constants.mjs";
3
+ import { jsx } from "react/jsx-runtime";
4
+ const [createSelectContext, createSelectScope] = createContextScope(SELECT_NAME),
5
+ [SelectProvider, useSelectContext] = createSelectContext(SELECT_NAME),
6
+ [createSelectItemParentContext, createSelectItemParentScope] = createContextScope(SELECT_NAME),
7
+ [SelectItemParentProvider, useSelectItemParentContext] = createSelectContext(SELECT_NAME),
8
+ ForwardSelectContext = ({
9
+ __scopeSelect,
10
+ context,
11
+ itemContext,
12
+ children
13
+ }) => /* @__PURE__ */jsx(SelectProvider, {
14
+ isInSheet: !0,
15
+ scope: __scopeSelect,
16
+ ...context,
17
+ children: /* @__PURE__ */jsx(SelectItemParentProvider, {
18
+ scope: __scopeSelect,
19
+ ...itemContext,
20
+ children
21
+ })
22
+ });
23
+ export { ForwardSelectContext, SelectItemParentProvider, SelectProvider, createSelectContext, createSelectItemParentContext, createSelectItemParentScope, createSelectScope, useSelectContext, useSelectItemParentContext };
@@ -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,wBA4BtB;AAzBC,MAAM,CAAC,qBAAqB,iBAAiB,QAAI,0CAAmB,4BAAW,GAEzE,CAAC,gBAAgB,gBAAgB,IAC5C,oBAAwC,4BAAW,GAIxC,CAAC,+BAA+B,2BAA2B,QACtE,0CAAmB,4BAAW,GAEnB,CAAC,0BAA0B,0BAA0B,IAChE,oBAAkD,4BAAW,GAElD,uBAAuB,CAAC;AAAA,EACnC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,MAMI,4CAAC,kBAAe,WAAS,IAAC,OAAO,eAAgB,GAAG,SAClD,sDAAC,4BAAyB,OAAO,eAAgB,GAAG,aACjD,UACH,GACF;",
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;",
5
5
  "names": []
6
6
  }
@@ -0,0 +1,2 @@
1
+ export * from "./Select.mjs";
2
+ export * from "./context.mjs";
File without changes
@@ -0,0 +1,10 @@
1
+ import { useMedia } from "@tamagui/core";
2
+ const useSelectBreakpointActive = sheetBreakpoint => {
3
+ const media = useMedia();
4
+ return sheetBreakpoint ? sheetBreakpoint === !0 ? !0 : sheetBreakpoint ? media[sheetBreakpoint] : !1 : !1;
5
+ },
6
+ useShowSelectSheet = context => {
7
+ const breakpointActive = useSelectBreakpointActive(context.sheetBreakpoint);
8
+ return context.open === !1 ? !1 : breakpointActive;
9
+ };
10
+ export { useSelectBreakpointActive, useShowSelectSheet };
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@tamagui/select",
3
- "version": "1.88.13",
3
+ "version": "1.88.15",
4
4
  "sideEffects": [
5
5
  "*.css"
6
6
  ],
7
- "source": "src/index.ts",
7
+ "source": "src/index.tsx",
8
8
  "types": "./types/index.d.ts",
9
9
  "main": "dist/cjs",
10
10
  "module": "dist/esm",
@@ -35,27 +35,27 @@
35
35
  "@floating-ui/react": "^0.26.6",
36
36
  "@floating-ui/react-dom": "^2.0.6",
37
37
  "@floating-ui/react-native": "^0.10.3",
38
- "@tamagui/adapt": "1.88.13",
39
- "@tamagui/animate-presence": "1.88.13",
40
- "@tamagui/compose-refs": "1.88.13",
41
- "@tamagui/constants": "1.88.13",
42
- "@tamagui/core": "1.88.13",
43
- "@tamagui/create-context": "1.88.13",
44
- "@tamagui/dismissable": "1.88.13",
45
- "@tamagui/focus-scope": "1.88.13",
46
- "@tamagui/get-token": "1.88.13",
47
- "@tamagui/helpers": "1.88.13",
48
- "@tamagui/list-item": "1.88.13",
49
- "@tamagui/portal": "1.88.13",
50
- "@tamagui/remove-scroll": "1.88.13",
51
- "@tamagui/separator": "1.88.13",
52
- "@tamagui/sheet": "1.88.13",
53
- "@tamagui/stacks": "1.88.13",
54
- "@tamagui/text": "1.88.13",
55
- "@tamagui/use-controllable-state": "1.88.13",
56
- "@tamagui/use-debounce": "1.88.13",
57
- "@tamagui/use-event": "1.88.13",
58
- "@tamagui/use-previous": "1.88.13",
38
+ "@tamagui/adapt": "1.88.15",
39
+ "@tamagui/animate-presence": "1.88.15",
40
+ "@tamagui/compose-refs": "1.88.15",
41
+ "@tamagui/constants": "1.88.15",
42
+ "@tamagui/core": "1.88.15",
43
+ "@tamagui/create-context": "1.88.15",
44
+ "@tamagui/dismissable": "1.88.15",
45
+ "@tamagui/focus-scope": "1.88.15",
46
+ "@tamagui/get-token": "1.88.15",
47
+ "@tamagui/helpers": "1.88.15",
48
+ "@tamagui/list-item": "1.88.15",
49
+ "@tamagui/portal": "1.88.15",
50
+ "@tamagui/remove-scroll": "1.88.15",
51
+ "@tamagui/separator": "1.88.15",
52
+ "@tamagui/sheet": "1.88.15",
53
+ "@tamagui/stacks": "1.88.15",
54
+ "@tamagui/text": "1.88.15",
55
+ "@tamagui/use-controllable-state": "1.88.15",
56
+ "@tamagui/use-debounce": "1.88.15",
57
+ "@tamagui/use-event": "1.88.15",
58
+ "@tamagui/use-previous": "1.88.15",
59
59
  "react-dom": "^18.2.0"
60
60
  },
61
61
  "peerDependencies": {
@@ -63,7 +63,7 @@
63
63
  "react-native": "*"
64
64
  },
65
65
  "devDependencies": {
66
- "@tamagui/build": "1.88.13",
66
+ "@tamagui/build": "1.88.15",
67
67
  "react": "^18.2.0",
68
68
  "react-native": "^0.72.6"
69
69
  },
package/src/Select.tsx CHANGED
@@ -1,18 +1,12 @@
1
1
  import { Adapt, useAdaptParent } from '@tamagui/adapt'
2
2
  import { useComposedRefs } from '@tamagui/compose-refs'
3
3
  import { isWeb, useIsomorphicLayoutEffect } from '@tamagui/constants'
4
- import {
5
- FontSizeTokens,
6
- GetProps,
7
- TamaguiElement,
8
- getVariableValue,
9
- styled,
10
- useEvent,
11
- useGet,
12
- } from '@tamagui/core'
4
+ import type { FontSizeTokens, GetProps, TamaguiElement } from '@tamagui/core'
5
+ import { getVariableValue, styled, useEvent, useGet } from '@tamagui/core'
13
6
  import { getSpace } from '@tamagui/get-token'
14
7
  import { withStaticProperties } from '@tamagui/helpers'
15
- import { ListItem, ListItemProps } from '@tamagui/list-item'
8
+ import type { ListItemProps } from '@tamagui/list-item'
9
+ import { ListItem } from '@tamagui/list-item'
16
10
  import { PortalHost } from '@tamagui/portal'
17
11
  import { Separator } from '@tamagui/separator'
18
12
  import { Sheet, SheetController } from '@tamagui/sheet'
@@ -37,7 +31,7 @@ import { ITEM_TEXT_NAME, SelectItemText } from './SelectItemText'
37
31
  import { SelectScrollDownButton, SelectScrollUpButton } from './SelectScrollButton'
38
32
  import { SelectTrigger } from './SelectTrigger'
39
33
  import { SelectViewport } from './SelectViewport'
40
- import { ScopedProps, SelectImplProps, SelectProps } from './types'
34
+ import type { ScopedProps, SelectImplProps, SelectProps } from './types'
41
35
  import {
42
36
  useSelectBreakpointActive,
43
37
  useShowSelectSheet,
@@ -1,4 +1,4 @@
1
- import { SelectContentProps } from './types'
1
+ import type { SelectContentProps } from './types'
2
2
 
3
3
  export const SelectContent = ({ children }: SelectContentProps) => {
4
4
  return children
@@ -1,10 +1,11 @@
1
1
  import { FloatingOverlay, FloatingPortal } from '@floating-ui/react'
2
2
  import { Theme, useIsTouchDevice, useThemeName } from '@tamagui/core'
3
- import { FocusScope, FocusScopeProps } from '@tamagui/focus-scope'
3
+ import type { FocusScopeProps } from '@tamagui/focus-scope'
4
+ import { FocusScope } from '@tamagui/focus-scope'
4
5
  import { useMemo } from 'react'
5
6
 
6
7
  import { useSelectContext, useSelectItemParentContext } from './context'
7
- import { SelectContentProps } from './types'
8
+ import type { SelectContentProps } from './types'
8
9
  import { useShowSelectSheet } from './useSelectBreakpointActive'
9
10
 
10
11
  /* -------------------------------------------------------------------------------------------------
@@ -1,4 +1,4 @@
1
- import { SelectImplProps } from './types'
1
+ import type { SelectImplProps } from './types'
2
2
 
3
3
  /**
4
4
  * TODO can just make it a sheet for native
@@ -1,5 +1,5 @@
1
+ import type { SideObject } from '@floating-ui/react'
1
2
  import {
2
- SideObject,
3
3
  flip,
4
4
  inner,
5
5
  offset,
@@ -26,7 +26,7 @@ import {
26
26
  useSelectContext,
27
27
  useSelectItemParentContext,
28
28
  } from './context'
29
- import { SelectImplProps } from './types'
29
+ import type { SelectImplProps } from './types'
30
30
 
31
31
  // TODO use id for focusing from label
32
32
  export const SelectInlineImpl = (props: SelectImplProps) => {
@@ -1,10 +1,11 @@
1
1
  import { useComposedRefs } from '@tamagui/compose-refs'
2
2
  import { isWeb, useIsomorphicLayoutEffect } from '@tamagui/constants'
3
- import { ListItemFrame, ListItemProps, useListItem } from '@tamagui/list-item'
3
+ import type { ListItemProps } from '@tamagui/list-item'
4
+ import { ListItemFrame, useListItem } from '@tamagui/list-item'
4
5
  import * as React from 'react'
5
6
 
6
7
  import { createSelectContext, useSelectItemParentContext } from './context'
7
- import { ScopedProps } from './types'
8
+ import type { ScopedProps } from './types'
8
9
 
9
10
  /* -------------------------------------------------------------------------------------------------
10
11
  * SelectItem
@@ -1,11 +1,12 @@
1
1
  import { useComposedRefs } from '@tamagui/compose-refs'
2
- import { GetProps, TamaguiTextElement, styled } from '@tamagui/core'
2
+ import type { GetProps, TamaguiTextElement } from '@tamagui/core'
3
+ import { styled } from '@tamagui/core'
3
4
  import { SizableText } from '@tamagui/text'
4
5
  import * as React from 'react'
5
6
 
6
7
  import { useSelectContext, useSelectItemParentContext } from './context'
7
8
  import { useSelectItemContext } from './SelectItem'
8
- import { ScopedProps } from './types'
9
+ import type { ScopedProps } from './types'
9
10
 
10
11
  /* -------------------------------------------------------------------------------------------------
11
12
  * SelectItemText
@@ -1,4 +1,4 @@
1
- import { ScopedProps, SelectScrollButtonProps } from './types'
1
+ import type { ScopedProps, SelectScrollButtonProps } from './types'
2
2
 
3
3
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
4
4
  export const SelectScrollUpButton = (_: ScopedProps<SelectScrollButtonProps>) => null
@@ -1,12 +1,12 @@
1
1
  import { autoUpdate, offset, useFloating } from '@floating-ui/react'
2
2
  import { useComposedRefs } from '@tamagui/compose-refs'
3
- import { TamaguiElement } from '@tamagui/core'
3
+ import type { TamaguiElement } from '@tamagui/core'
4
4
  import { YStack } from '@tamagui/stacks'
5
5
  import * as React from 'react'
6
6
  import { flushSync } from 'react-dom'
7
7
 
8
8
  import { useSelectContext } from './context'
9
- import {
9
+ import type {
10
10
  ScopedProps,
11
11
  SelectScrollButtonImplProps,
12
12
  SelectScrollButtonProps,
@@ -1,10 +1,11 @@
1
1
  import { useComposedRefs } from '@tamagui/compose-refs'
2
- import { TamaguiElement } from '@tamagui/core'
3
- import { ListItem, ListItemProps } from '@tamagui/list-item'
2
+ import type { TamaguiElement } from '@tamagui/core'
3
+ import type { ListItemProps } from '@tamagui/list-item'
4
+ import { ListItem } from '@tamagui/list-item'
4
5
  import * as React from 'react'
5
6
 
6
7
  import { useSelectContext, useSelectItemParentContext } from './context'
7
- import { ScopedProps } from './types'
8
+ import type { ScopedProps } from './types'
8
9
 
9
10
  /* -------------------------------------------------------------------------------------------------
10
11
  * SelectTrigger
@@ -9,7 +9,7 @@ import {
9
9
  useSelectContext,
10
10
  useSelectItemParentContext,
11
11
  } from './context'
12
- import { ScopedProps, SelectViewportProps } from './types'
12
+ import type { ScopedProps, SelectViewportProps } from './types'
13
13
 
14
14
  export const SelectViewport = (props: ScopedProps<SelectViewportProps>) => {
15
15
  const { __scopeSelect, children } = props
@@ -12,7 +12,7 @@ import {
12
12
  useSelectContext,
13
13
  useSelectItemParentContext,
14
14
  } from './context'
15
- import { ScopedProps, SelectViewportExtraProps, SelectViewportProps } from './types'
15
+ import type { ScopedProps, SelectViewportExtraProps, SelectViewportProps } from './types'
16
16
  import { useSelectBreakpointActive } from './useSelectBreakpointActive'
17
17
 
18
18
  /* -------------------------------------------------------------------------------------------------
package/src/context.tsx CHANGED
@@ -1,7 +1,11 @@
1
1
  import { createContextScope } from '@tamagui/create-context'
2
2
 
3
3
  import { SELECT_NAME } from './constants'
4
- import { ScopedProps, SelectContextValue, SelectItemParentContextValue } from './types'
4
+ import type {
5
+ ScopedProps,
6
+ SelectContextValue,
7
+ SelectItemParentContextValue,
8
+ } from './types'
5
9
 
6
10
  export const [createSelectContext, createSelectScope] = createContextScope(SELECT_NAME)
7
11
 
@@ -1,6 +1,6 @@
1
1
  import { useMedia } from '@tamagui/core'
2
2
 
3
- import { SelectContextValue } from './types'
3
+ import type { SelectContextValue } from './types'
4
4
 
5
5
  export const useSelectBreakpointActive = (
6
6
  sheetBreakpoint: SelectContextValue['sheetBreakpoint']
package/types/Select.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import { FontSizeTokens, TamaguiElement } from '@tamagui/core';
2
- import { ListItemProps } from '@tamagui/list-item';
1
+ import type { FontSizeTokens, TamaguiElement } from '@tamagui/core';
2
+ import type { ListItemProps } from '@tamagui/list-item';
3
3
  import * as React from 'react';
4
- import { ScopedProps, SelectProps } from './types';
4
+ import type { ScopedProps, SelectProps } from './types';
5
5
  export interface SelectValueExtraProps {
6
6
  placeholder?: React.ReactNode;
7
7
  }
@@ -154,12 +154,12 @@ export declare const Select: ((props: ScopedProps<SelectProps>) => JSX.Element)
154
154
  active?: boolean | undefined;
155
155
  }>> & Omit<import("@tamagui/text").TextParentStyles, "TextComponent" | "noTextWrap"> & import("@tamagui/core").ThemeableProps & {
156
156
  icon?: (JSX.Element | React.FunctionComponent<{
157
- color?: string | undefined;
158
- size?: number | undefined;
157
+ color?: any;
158
+ size?: any;
159
159
  }> | null) | undefined;
160
160
  iconAfter?: (JSX.Element | React.FunctionComponent<{
161
- color?: string | undefined;
162
- size?: number | undefined;
161
+ color?: any;
162
+ size?: any;
163
163
  }> | null) | undefined;
164
164
  scaleIcon?: number | undefined;
165
165
  spaceFlex?: number | boolean | undefined;
@@ -226,12 +226,12 @@ export declare const Select: ((props: ScopedProps<SelectProps>) => JSX.Element)
226
226
  active?: boolean | undefined;
227
227
  }>> & Omit<import("@tamagui/text").TextParentStyles, "TextComponent" | "noTextWrap"> & import("@tamagui/core").ThemeableProps & {
228
228
  icon?: (JSX.Element | React.FunctionComponent<{
229
- color?: string | undefined;
230
- size?: number | undefined;
229
+ color?: any;
230
+ size?: any;
231
231
  }> | null) | undefined;
232
232
  iconAfter?: (JSX.Element | React.FunctionComponent<{
233
- color?: string | undefined;
234
- size?: number | undefined;
233
+ color?: any;
234
+ size?: any;
235
235
  }> | null) | undefined;
236
236
  scaleIcon?: number | undefined;
237
237
  spaceFlex?: number | boolean | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../src/Select.tsx"],"names":[],"mappings":"AAGA,OAAO,EACL,cAAc,EAEd,cAAc,EAKf,MAAM,eAAe,CAAA;AAGtB,OAAO,EAAY,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAO5D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAkB9B,OAAO,EAAE,WAAW,EAAmB,WAAW,EAAE,MAAM,SAAS,CAAA;AAiBnE,MAAM,WAAW,qBAAqB;IACpC,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC9B;AA0DD,eAAO,MAAM,UAAU;;;8CAKrB,CAAA;AA2CF,eAAO,MAAM,gBAAgB;;;8CAG3B,CAAA;AAyGF,MAAM,MAAM,gBAAgB,GAAG,aAAa,CAAA;AAgC5C,eAAO,MAAM,eAAe;;8CAE1B,CAAA;AAoCF,eAAO,MAAM,MAAM,WACT,YAAY,WAAW,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgLjC,CAAA"}
1
+ {"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../src/Select.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAY,cAAc,EAAE,MAAM,eAAe,CAAA;AAI7E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAQvD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAkB9B,OAAO,KAAK,EAAE,WAAW,EAAmB,WAAW,EAAE,MAAM,SAAS,CAAA;AAiBxE,MAAM,WAAW,qBAAqB;IACpC,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC9B;AA0DD,eAAO,MAAM,UAAU;;;8CAKrB,CAAA;AA2CF,eAAO,MAAM,gBAAgB;;;8CAG3B,CAAA;AAyGF,MAAM,MAAM,gBAAgB,GAAG,aAAa,CAAA;AAgC5C,eAAO,MAAM,eAAe;;8CAE1B,CAAA;AAoCF,eAAO,MAAM,MAAM,WACT,YAAY,WAAW,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgLjC,CAAA"}
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { FocusScopeProps } from '@tamagui/focus-scope';
3
- import { SelectContentProps } from './types';
2
+ import type { FocusScopeProps } from '@tamagui/focus-scope';
3
+ import type { SelectContentProps } from './types';
4
4
  export declare const SelectContent: ({ children, __scopeSelect, zIndex, ...focusScopeProps }: SelectContentProps & FocusScopeProps) => JSX.Element | null;
5
5
  //# sourceMappingURL=SelectContent.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SelectContent.d.ts","sourceRoot":"","sources":["../src/SelectContent.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAc,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAIlE,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAS5C,eAAO,MAAM,aAAa,4DAKvB,kBAAkB,GAAG,eAAe,uBAyCtC,CAAA"}
1
+ {"version":3,"file":"SelectContent.d.ts","sourceRoot":"","sources":["../src/SelectContent.tsx"],"names":[],"mappings":";AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAK3D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AASjD,eAAO,MAAM,aAAa,4DAKvB,kBAAkB,GAAG,eAAe,uBAyCtC,CAAA"}
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
- import { SelectContentProps } from './types';
2
+ import type { SelectContentProps } from './types';
3
3
  export declare const SelectContent: ({ children }: SelectContentProps) => import("react").ReactNode;
4
4
  //# sourceMappingURL=SelectContent.native.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SelectContent.native.d.ts","sourceRoot":"","sources":["../src/SelectContent.native.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAE5C,eAAO,MAAM,aAAa,iBAAkB,kBAAkB,8BAE7D,CAAA"}
1
+ {"version":3,"file":"SelectContent.native.d.ts","sourceRoot":"","sources":["../src/SelectContent.native.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAEjD,eAAO,MAAM,aAAa,iBAAkB,kBAAkB,8BAE7D,CAAA"}
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
- import { SelectImplProps } from './types';
2
+ import type { SelectImplProps } from './types';
3
3
  export declare const SelectInlineImpl: (props: SelectImplProps) => JSX.Element;
4
4
  //# sourceMappingURL=SelectImpl.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SelectImpl.d.ts","sourceRoot":"","sources":["../src/SelectImpl.tsx"],"names":[],"mappings":";AA4BA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAGzC,eAAO,MAAM,gBAAgB,UAAW,eAAe,gBA0VtD,CAAA"}
1
+ {"version":3,"file":"SelectImpl.d.ts","sourceRoot":"","sources":["../src/SelectImpl.tsx"],"names":[],"mappings":";AA4BA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAG9C,eAAO,MAAM,gBAAgB,UAAW,eAAe,gBA0VtD,CAAA"}
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { SelectImplProps } from './types';
2
+ import type { SelectImplProps } from './types';
3
3
  /**
4
4
  * TODO can just make it a sheet for native
5
5
  * later on can have `native` prop
@@ -1 +1 @@
1
- {"version":3,"file":"SelectImpl.native.d.ts","sourceRoot":"","sources":["../src/SelectImpl.native.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAEzC;;;GAGG;AAEH,eAAO,MAAM,gBAAgB,UAAW,eAAe,gBAKtD,CAAA"}
1
+ {"version":3,"file":"SelectImpl.native.d.ts","sourceRoot":"","sources":["../src/SelectImpl.native.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAE9C;;;GAGG;AAEH,eAAO,MAAM,gBAAgB,UAAW,eAAe,gBAKtD,CAAA"}