@tamagui/select 1.26.0 → 1.26.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.
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/constants.tsx"],
4
- "mappings": "AAAO,MAAM,cAAc;AACpB,MAAM,iBAAiB;AACvB,MAAM,wBAAwB;AAC9B,MAAM,yBAAyB;AAC/B,MAAM,aAAa;AACnB,MAAM,qBAAqB;AAC3B,MAAM,gBAAgB;",
5
- "names": []
6
- }
@@ -1,16 +0,0 @@
1
- import { jsx } from "react/jsx-runtime";
2
- import { createContextScope } from "@tamagui/create-context";
3
- import { SELECT_NAME } from "./constants";
4
- const [createSelectContext, createSelectScope] = createContextScope(SELECT_NAME);
5
- const [SelectProvider, useSelectContext] = createSelectContext(SELECT_NAME);
6
- const ForwardSelectContext = (props) => {
7
- return /* @__PURE__ */ jsx(SelectProvider, { isInSheet: true, scope: props.__scopeSelect, ...props.context, children: props.children });
8
- };
9
- export {
10
- ForwardSelectContext,
11
- SelectProvider,
12
- createSelectContext,
13
- createSelectScope,
14
- useSelectContext
15
- };
16
- //# sourceMappingURL=context.mjs.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/context.tsx"],
4
- "mappings": "AAeI;AAfJ,SAAS,0BAA0B;AAEnC,SAAS,mBAAmB;AAGrB,MAAM,CAAC,qBAAqB,iBAAiB,IAClD,mBAAmB,WAAW;AAEzB,MAAM,CAAC,gBAAgB,gBAAgB,IAC5C,oBAAwC,WAAW;AAE9C,MAAM,uBAAuB,CAClC,UACG;AACH,SACE,oBAAC,kBAAe,WAAS,MAAC,OAAO,MAAM,eAAgB,GAAG,MAAM,SAC7D,gBAAM,UACT;AAEJ;",
5
- "names": []
6
- }
@@ -1,3 +0,0 @@
1
- export * from "./Select";
2
- export * from "./context";
3
- //# sourceMappingURL=index.mjs.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/index.tsx"],
4
- "mappings": "AAAA,cAAc;AAOd,cAAc;",
5
- "names": []
6
- }
@@ -1 +0,0 @@
1
- //# sourceMappingURL=types.mjs.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": [],
4
- "mappings": "",
5
- "names": []
6
- }
@@ -1,18 +0,0 @@
1
- import { useMedia } from "@tamagui/core";
2
- const useSelectBreakpointActive = (sheetBreakpoint) => {
3
- const media = useMedia();
4
- if (!sheetBreakpoint)
5
- return false;
6
- if (sheetBreakpoint === true)
7
- return true;
8
- return sheetBreakpoint ? media[sheetBreakpoint] : false;
9
- };
10
- const useShowSelectSheet = (context) => {
11
- const breakpointActive = useSelectBreakpointActive(context.sheetBreakpoint);
12
- return context.open === false ? false : breakpointActive;
13
- };
14
- export {
15
- useSelectBreakpointActive,
16
- useShowSelectSheet
17
- };
18
- //# sourceMappingURL=useSelectBreakpointActive.mjs.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/useSelectBreakpointActive.tsx"],
4
- "mappings": "AAAA,SAAS,gBAAgB;AAIlB,MAAM,4BAA4B,CACvC,oBACG;AACH,QAAM,QAAQ,SAAS;AACvB,MAAI,CAAC;AAAiB,WAAO;AAC7B,MAAI,oBAAoB;AAAM,WAAO;AACrC,SAAO,kBAAkB,MAAM,eAAe,IAAI;AACpD;AAEO,MAAM,qBAAqB,CAAC,YAAgC;AACjE,QAAM,mBAAmB,0BAA0B,QAAQ,eAAe;AAC1E,SAAO,QAAQ,SAAS,QAAQ,QAAQ;AAC1C;",
5
- "names": []
6
- }