@tamagui/select 1.99.0 → 1.99.1

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.
@@ -0,0 +1,4 @@
1
+ const SelectContent = ({
2
+ children
3
+ }) => children;
4
+ export { SelectContent };
@@ -0,0 +1,5 @@
1
+ import { Fragment, jsx } from "react/jsx-runtime";
2
+ const SelectInlineImpl = props => (process.env.NODE_ENV === "development" && console.warn("Sheet not implemented inline on native"), /* @__PURE__ */jsx(Fragment, {
3
+ children: props.children
4
+ }));
5
+ export { SelectInlineImpl };
@@ -0,0 +1,3 @@
1
+ const SelectScrollUpButton = _ => null,
2
+ SelectScrollDownButton = _ => null;
3
+ export { SelectScrollDownButton, SelectScrollUpButton };
@@ -0,0 +1,34 @@
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.mjs";
6
+ import { ForwardSelectContext, useSelectContext, useSelectItemParentContext } from "./context.mjs";
7
+ import { jsx } from "react/jsx-runtime";
8
+ const SelectViewport = props => {
9
+ const {
10
+ __scopeSelect,
11
+ children
12
+ } = props,
13
+ context = useSelectContext(VIEWPORT_NAME, __scopeSelect),
14
+ itemParentContext = useSelectItemParentContext(VIEWPORT_NAME, __scopeSelect),
15
+ themeName = useThemeName(),
16
+ adaptContext = React.useContext(AdaptParentContext);
17
+ return /* @__PURE__ */jsx(PortalItem, {
18
+ hostName: `${context.scopeKey}SheetContents`,
19
+ children: /* @__PURE__ */jsx(Theme, {
20
+ name: themeName,
21
+ children: /* @__PURE__ */jsx(ForwardSelectContext, {
22
+ __scopeSelect,
23
+ itemContext: itemParentContext,
24
+ context,
25
+ children: /* @__PURE__ */jsx(AdaptParentContext.Provider, {
26
+ value: adaptContext,
27
+ children
28
+ })
29
+ })
30
+ })
31
+ });
32
+ };
33
+ SelectViewport.displayName = VIEWPORT_NAME;
34
+ export { SelectViewport };
@@ -0,0 +1,4 @@
1
+ const SelectContent = ({
2
+ children
3
+ }) => children;
4
+ export { SelectContent };
@@ -0,0 +1,5 @@
1
+ import { Fragment, jsx } from "react/jsx-runtime";
2
+ const SelectInlineImpl = props => (process.env.NODE_ENV === "development" && console.warn("Sheet not implemented inline on native"), /* @__PURE__ */jsx(Fragment, {
3
+ children: props.children
4
+ }));
5
+ export { SelectInlineImpl };
@@ -0,0 +1,3 @@
1
+ const SelectScrollUpButton = _ => null,
2
+ SelectScrollDownButton = _ => null;
3
+ export { SelectScrollDownButton, SelectScrollUpButton };
@@ -0,0 +1,34 @@
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.mjs";
6
+ import { ForwardSelectContext, useSelectContext, useSelectItemParentContext } from "./context.mjs";
7
+ import { jsx } from "react/jsx-runtime";
8
+ const SelectViewport = props => {
9
+ const {
10
+ __scopeSelect,
11
+ children
12
+ } = props,
13
+ context = useSelectContext(VIEWPORT_NAME, __scopeSelect),
14
+ itemParentContext = useSelectItemParentContext(VIEWPORT_NAME, __scopeSelect),
15
+ themeName = useThemeName(),
16
+ adaptContext = React.useContext(AdaptParentContext);
17
+ return /* @__PURE__ */jsx(PortalItem, {
18
+ hostName: `${context.scopeKey}SheetContents`,
19
+ children: /* @__PURE__ */jsx(Theme, {
20
+ name: themeName,
21
+ children: /* @__PURE__ */jsx(ForwardSelectContext, {
22
+ __scopeSelect,
23
+ itemContext: itemParentContext,
24
+ context,
25
+ children: /* @__PURE__ */jsx(AdaptParentContext.Provider, {
26
+ value: adaptContext,
27
+ children
28
+ })
29
+ })
30
+ })
31
+ });
32
+ };
33
+ SelectViewport.displayName = VIEWPORT_NAME;
34
+ export { SelectViewport };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/select",
3
- "version": "1.99.0",
3
+ "version": "1.99.1",
4
4
  "removeSideEffects": "true",
5
5
  "source": "src/index.tsx",
6
6
  "types": "./types/index.d.ts",
@@ -33,27 +33,27 @@
33
33
  "@floating-ui/react": "^0.26.6",
34
34
  "@floating-ui/react-dom": "^2.0.6",
35
35
  "@floating-ui/react-native": "^0.10.3",
36
- "@tamagui/adapt": "1.99.0",
37
- "@tamagui/animate-presence": "1.99.0",
38
- "@tamagui/compose-refs": "1.99.0",
39
- "@tamagui/constants": "1.99.0",
40
- "@tamagui/core": "1.99.0",
41
- "@tamagui/create-context": "1.99.0",
42
- "@tamagui/dismissable": "1.99.0",
43
- "@tamagui/focus-scope": "1.99.0",
44
- "@tamagui/get-token": "1.99.0",
45
- "@tamagui/helpers": "1.99.0",
46
- "@tamagui/list-item": "1.99.0",
47
- "@tamagui/portal": "1.99.0",
48
- "@tamagui/remove-scroll": "1.99.0",
49
- "@tamagui/separator": "1.99.0",
50
- "@tamagui/sheet": "1.99.0",
51
- "@tamagui/stacks": "1.99.0",
52
- "@tamagui/text": "1.99.0",
53
- "@tamagui/use-controllable-state": "1.99.0",
54
- "@tamagui/use-debounce": "1.99.0",
55
- "@tamagui/use-event": "1.99.0",
56
- "@tamagui/use-previous": "1.99.0"
36
+ "@tamagui/adapt": "1.99.1",
37
+ "@tamagui/animate-presence": "1.99.1",
38
+ "@tamagui/compose-refs": "1.99.1",
39
+ "@tamagui/constants": "1.99.1",
40
+ "@tamagui/core": "1.99.1",
41
+ "@tamagui/create-context": "1.99.1",
42
+ "@tamagui/dismissable": "1.99.1",
43
+ "@tamagui/focus-scope": "1.99.1",
44
+ "@tamagui/get-token": "1.99.1",
45
+ "@tamagui/helpers": "1.99.1",
46
+ "@tamagui/list-item": "1.99.1",
47
+ "@tamagui/portal": "1.99.1",
48
+ "@tamagui/remove-scroll": "1.99.1",
49
+ "@tamagui/separator": "1.99.1",
50
+ "@tamagui/sheet": "1.99.1",
51
+ "@tamagui/stacks": "1.99.1",
52
+ "@tamagui/text": "1.99.1",
53
+ "@tamagui/use-controllable-state": "1.99.1",
54
+ "@tamagui/use-debounce": "1.99.1",
55
+ "@tamagui/use-event": "1.99.1",
56
+ "@tamagui/use-previous": "1.99.1"
57
57
  },
58
58
  "peerDependencies": {
59
59
  "react": "*",
@@ -61,7 +61,7 @@
61
61
  "react-native": "*"
62
62
  },
63
63
  "devDependencies": {
64
- "@tamagui/build": "1.99.0",
64
+ "@tamagui/build": "1.99.1",
65
65
  "react": "^18.2.0",
66
66
  "react-dom": "^18.2.0",
67
67
  "react-native": "0.74.1"