@tamagui/sheet 1.39.6 → 1.39.8
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.
- package/dist/cjs/constants.js +3 -1
- package/dist/cjs/constants.js.map +1 -1
- package/dist/esm/constants.js +3 -1
- package/dist/esm/constants.js.map +1 -1
- package/dist/jsx/constants.js +3 -1
- package/dist/jsx/constants.js.map +1 -1
- package/dist/jsx/constants.mjs +3 -1
- package/dist/jsx/constants.mjs.map +1 -1
- package/package.json +13 -13
- package/src/constants.tsx +4 -1
- package/types/Sheet.d.ts +2 -2
- package/types/SheetScrollView.d.ts +1 -1
- package/types/SheetScrollView.d.ts.map +1 -1
- package/types/constants.d.ts +1 -1
- package/types/constants.d.ts.map +1 -1
- package/types/createSheet.d.ts +2 -2
package/dist/cjs/constants.js
CHANGED
|
@@ -27,11 +27,13 @@ __export(constants_exports, {
|
|
|
27
27
|
});
|
|
28
28
|
module.exports = __toCommonJS(constants_exports);
|
|
29
29
|
var import_core = require("@tamagui/core");
|
|
30
|
+
var import_react_native = require("react-native");
|
|
30
31
|
const constants = {};
|
|
31
32
|
const SHEET_NAME = "Sheet";
|
|
32
33
|
const SHEET_HANDLE_NAME = "SheetHandle";
|
|
33
34
|
const SHEET_OVERLAY_NAME = "SheetOverlay";
|
|
34
|
-
const
|
|
35
|
+
const screen = import_react_native.Dimensions.get("screen");
|
|
36
|
+
const HIDDEN_SIZE = Math.max(screen.height, screen.width) + 0.1;
|
|
35
37
|
const SHEET_HIDDEN_STYLESHEET = import_core.isClient ? document.createElement("style") : null;
|
|
36
38
|
if (SHEET_HIDDEN_STYLESHEET) {
|
|
37
39
|
document.head.appendChild(SHEET_HIDDEN_STYLESHEET);
|
|
@@ -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,kBAAyB;
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAyB;AACzB,0BAA2B;AAEpB,MAAM,YAAY,CAAC;AAEnB,MAAM,aAAa;AACnB,MAAM,oBAAoB;AAC1B,MAAM,qBAAqB;AAIlC,MAAM,SAAS,+BAAW,IAAI,QAAQ;AAC/B,MAAM,cAAc,KAAK,IAAI,OAAO,QAAQ,OAAO,KAAK,IAAI;AAE5D,MAAM,0BAA0B,uBAAW,SAAS,cAAc,OAAO,IAAI;AACpF,IAAI,yBAAyB;AAC3B,WAAS,KAAK,YAAY,uBAAuB;AACnD;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
package/dist/esm/constants.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { isClient } from "@tamagui/core";
|
|
2
|
+
import { Dimensions } from "react-native";
|
|
2
3
|
const constants = {};
|
|
3
4
|
const SHEET_NAME = "Sheet";
|
|
4
5
|
const SHEET_HANDLE_NAME = "SheetHandle";
|
|
5
6
|
const SHEET_OVERLAY_NAME = "SheetOverlay";
|
|
6
|
-
const
|
|
7
|
+
const screen = Dimensions.get("screen");
|
|
8
|
+
const HIDDEN_SIZE = Math.max(screen.height, screen.width) + 0.1;
|
|
7
9
|
const SHEET_HIDDEN_STYLESHEET = isClient ? document.createElement("style") : null;
|
|
8
10
|
if (SHEET_HIDDEN_STYLESHEET) {
|
|
9
11
|
document.head.appendChild(SHEET_HIDDEN_STYLESHEET);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/constants.tsx"],
|
|
4
|
-
"mappings": "AAAA,SAAS,gBAAgB;
|
|
4
|
+
"mappings": "AAAA,SAAS,gBAAgB;AACzB,SAAS,kBAAkB;AAEpB,MAAM,YAAY,CAAC;AAEnB,MAAM,aAAa;AACnB,MAAM,oBAAoB;AAC1B,MAAM,qBAAqB;AAIlC,MAAM,SAAS,WAAW,IAAI,QAAQ;AAC/B,MAAM,cAAc,KAAK,IAAI,OAAO,QAAQ,OAAO,KAAK,IAAI;AAE5D,MAAM,0BAA0B,WAAW,SAAS,cAAc,OAAO,IAAI;AACpF,IAAI,yBAAyB;AAC3B,WAAS,KAAK,YAAY,uBAAuB;AACnD;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
package/dist/jsx/constants.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { isClient } from "@tamagui/core";
|
|
2
|
+
import { Dimensions } from "react-native";
|
|
2
3
|
const constants = {};
|
|
3
4
|
const SHEET_NAME = "Sheet";
|
|
4
5
|
const SHEET_HANDLE_NAME = "SheetHandle";
|
|
5
6
|
const SHEET_OVERLAY_NAME = "SheetOverlay";
|
|
6
|
-
const
|
|
7
|
+
const screen = Dimensions.get("screen");
|
|
8
|
+
const HIDDEN_SIZE = Math.max(screen.height, screen.width) + 0.1;
|
|
7
9
|
const SHEET_HIDDEN_STYLESHEET = isClient ? document.createElement("style") : null;
|
|
8
10
|
if (SHEET_HIDDEN_STYLESHEET) {
|
|
9
11
|
document.head.appendChild(SHEET_HIDDEN_STYLESHEET);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/constants.tsx"],
|
|
4
|
-
"mappings": "AAAA,SAAS,gBAAgB;
|
|
4
|
+
"mappings": "AAAA,SAAS,gBAAgB;AACzB,SAAS,kBAAkB;AAEpB,MAAM,YAAY,CAAC;AAEnB,MAAM,aAAa;AACnB,MAAM,oBAAoB;AAC1B,MAAM,qBAAqB;AAIlC,MAAM,SAAS,WAAW,IAAI,QAAQ;AAC/B,MAAM,cAAc,KAAK,IAAI,OAAO,QAAQ,OAAO,KAAK,IAAI;AAE5D,MAAM,0BAA0B,WAAW,SAAS,cAAc,OAAO,IAAI;AACpF,IAAI,yBAAyB;AAC3B,WAAS,KAAK,YAAY,uBAAuB;AACnD;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
package/dist/jsx/constants.mjs
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { isClient } from "@tamagui/core";
|
|
2
|
+
import { Dimensions } from "react-native";
|
|
2
3
|
const constants = {};
|
|
3
4
|
const SHEET_NAME = "Sheet";
|
|
4
5
|
const SHEET_HANDLE_NAME = "SheetHandle";
|
|
5
6
|
const SHEET_OVERLAY_NAME = "SheetOverlay";
|
|
6
|
-
const
|
|
7
|
+
const screen = Dimensions.get("screen");
|
|
8
|
+
const HIDDEN_SIZE = Math.max(screen.height, screen.width) + 0.1;
|
|
7
9
|
const SHEET_HIDDEN_STYLESHEET = isClient ? document.createElement("style") : null;
|
|
8
10
|
if (SHEET_HIDDEN_STYLESHEET) {
|
|
9
11
|
document.head.appendChild(SHEET_HIDDEN_STYLESHEET);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/constants.tsx"],
|
|
4
|
-
"mappings": "AAAA,SAAS,gBAAgB;
|
|
4
|
+
"mappings": "AAAA,SAAS,gBAAgB;AACzB,SAAS,kBAAkB;AAEpB,MAAM,YAAY,CAAC;AAEnB,MAAM,aAAa;AACnB,MAAM,oBAAoB;AAC1B,MAAM,qBAAqB;AAIlC,MAAM,SAAS,WAAW,IAAI,QAAQ;AAC/B,MAAM,cAAc,KAAK,IAAI,OAAO,QAAQ,OAAO,KAAK,IAAI;AAE5D,MAAM,0BAA0B,WAAW,SAAS,cAAc,OAAO,IAAI;AACpF,IAAI,yBAAyB;AAC3B,WAAS,KAAK,YAAY,uBAAuB;AACnD;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/sheet",
|
|
3
|
-
"version": "1.39.
|
|
3
|
+
"version": "1.39.8",
|
|
4
4
|
"sideEffects": [
|
|
5
5
|
"*.css"
|
|
6
6
|
],
|
|
@@ -31,24 +31,24 @@
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@tamagui/animations-react-native": "1.39.
|
|
35
|
-
"@tamagui/compose-refs": "1.39.
|
|
36
|
-
"@tamagui/core": "1.39.
|
|
37
|
-
"@tamagui/create-context": "1.39.
|
|
38
|
-
"@tamagui/portal": "1.39.
|
|
39
|
-
"@tamagui/remove-scroll": "1.39.
|
|
40
|
-
"@tamagui/scroll-view": "1.39.
|
|
41
|
-
"@tamagui/stacks": "1.39.
|
|
42
|
-
"@tamagui/use-constant": "1.39.
|
|
43
|
-
"@tamagui/use-controllable-state": "1.39.
|
|
44
|
-
"@tamagui/use-keyboard-visible": "1.39.
|
|
34
|
+
"@tamagui/animations-react-native": "1.39.8",
|
|
35
|
+
"@tamagui/compose-refs": "1.39.8",
|
|
36
|
+
"@tamagui/core": "1.39.8",
|
|
37
|
+
"@tamagui/create-context": "1.39.8",
|
|
38
|
+
"@tamagui/portal": "1.39.8",
|
|
39
|
+
"@tamagui/remove-scroll": "1.39.8",
|
|
40
|
+
"@tamagui/scroll-view": "1.39.8",
|
|
41
|
+
"@tamagui/stacks": "1.39.8",
|
|
42
|
+
"@tamagui/use-constant": "1.39.8",
|
|
43
|
+
"@tamagui/use-controllable-state": "1.39.8",
|
|
44
|
+
"@tamagui/use-keyboard-visible": "1.39.8"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"react": "*",
|
|
48
48
|
"react-native": "*"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@tamagui/build": "1.39.
|
|
51
|
+
"@tamagui/build": "1.39.8",
|
|
52
52
|
"react": "^18.2.0",
|
|
53
53
|
"react-native": "^0.72.1"
|
|
54
54
|
},
|
package/src/constants.tsx
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { isClient } from '@tamagui/core'
|
|
2
|
+
import { Dimensions } from 'react-native'
|
|
2
3
|
|
|
3
4
|
export const constants = {}
|
|
4
5
|
|
|
@@ -7,7 +8,9 @@ export const SHEET_HANDLE_NAME = 'SheetHandle'
|
|
|
7
8
|
export const SHEET_OVERLAY_NAME = 'SheetOverlay'
|
|
8
9
|
|
|
9
10
|
// set all the way off screen
|
|
10
|
-
|
|
11
|
+
// + 0.1 ensures this is unique - see hasntMeasured ref
|
|
12
|
+
const screen = Dimensions.get('screen')
|
|
13
|
+
export const HIDDEN_SIZE = Math.max(screen.height, screen.width) + 0.1
|
|
11
14
|
|
|
12
15
|
export const SHEET_HIDDEN_STYLESHEET = isClient ? document.createElement('style') : null
|
|
13
16
|
if (SHEET_HIDDEN_STYLESHEET) {
|
package/types/Sheet.d.ts
CHANGED
|
@@ -336,7 +336,7 @@ export declare const Sheet: import("react").ForwardRefExoticComponent<{
|
|
|
336
336
|
readonly fullscreen?: boolean | undefined;
|
|
337
337
|
}>> & import("@tamagui/core").PseudoProps<Partial<import("react-native").ScrollViewProps & Omit<import("@tamagui/core").StackProps, keyof import("react-native").ScrollViewProps> & Omit<{}, "fullscreen"> & {
|
|
338
338
|
readonly fullscreen?: boolean | undefined;
|
|
339
|
-
}>> & import("react").RefAttributes<
|
|
339
|
+
}>> & import("react").RefAttributes<import("react-native").ScrollView>>;
|
|
340
340
|
};
|
|
341
341
|
Frame: import("react").ForwardRefExoticComponent<Omit<import("react-native").ViewProps, "style" | "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").TamaguiComponentPropsBase & {
|
|
342
342
|
style?: import("@tamagui/core").StyleProp<import("react-native").ViewStyle | import("react").CSSProperties | (import("react").CSSProperties & import("react-native").ViewStyle)>;
|
|
@@ -456,7 +456,7 @@ export declare const Sheet: import("react").ForwardRefExoticComponent<{
|
|
|
456
456
|
readonly fullscreen?: boolean | undefined;
|
|
457
457
|
}>> & import("@tamagui/core").PseudoProps<Partial<import("react-native").ScrollViewProps & Omit<import("@tamagui/core").StackProps, keyof import("react-native").ScrollViewProps> & Omit<{}, "fullscreen"> & {
|
|
458
458
|
readonly fullscreen?: boolean | undefined;
|
|
459
|
-
}>> & import("react").RefAttributes<
|
|
459
|
+
}>> & import("react").RefAttributes<import("react-native").ScrollView>>;
|
|
460
460
|
};
|
|
461
461
|
/** @deprecated use Overlay instead */
|
|
462
462
|
export declare const SheetOverlayFrame: import("@tamagui/core").TamaguiComponent<Omit<import("react-native").ViewProps, "style" | "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").TamaguiComponentPropsBase & {
|
|
@@ -6,5 +6,5 @@ export declare const SheetScrollView: import("react").ForwardRefExoticComponent<
|
|
|
6
6
|
readonly fullscreen?: boolean | undefined;
|
|
7
7
|
}>> & import("@tamagui/core").PseudoProps<Partial<import("react-native").ScrollViewProps & Omit<import("@tamagui/core").StackProps, keyof import("react-native").ScrollViewProps> & Omit<{}, "fullscreen"> & {
|
|
8
8
|
readonly fullscreen?: boolean | undefined;
|
|
9
|
-
}>> & import("react").RefAttributes<
|
|
9
|
+
}>> & import("react").RefAttributes<RNScrollView>>;
|
|
10
10
|
//# sourceMappingURL=SheetScrollView.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SheetScrollView.d.ts","sourceRoot":"","sources":["../src/SheetScrollView.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,UAAU,IAAI,YAAY,EAAE,MAAM,cAAc,CAAA;AAazD,eAAO,MAAM,eAAe;;;;;;
|
|
1
|
+
{"version":3,"file":"SheetScrollView.d.ts","sourceRoot":"","sources":["../src/SheetScrollView.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,UAAU,IAAI,YAAY,EAAE,MAAM,cAAc,CAAA;AAazD,eAAO,MAAM,eAAe;;;;;;kDA+G3B,CAAA"}
|
package/types/constants.d.ts
CHANGED
|
@@ -2,6 +2,6 @@ export declare const constants: {};
|
|
|
2
2
|
export declare const SHEET_NAME = "Sheet";
|
|
3
3
|
export declare const SHEET_HANDLE_NAME = "SheetHandle";
|
|
4
4
|
export declare const SHEET_OVERLAY_NAME = "SheetOverlay";
|
|
5
|
-
export declare const HIDDEN_SIZE
|
|
5
|
+
export declare const HIDDEN_SIZE: number;
|
|
6
6
|
export declare const SHEET_HIDDEN_STYLESHEET: HTMLStyleElement | null;
|
|
7
7
|
//# sourceMappingURL=constants.d.ts.map
|
package/types/constants.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,SAAS,IAAK,CAAA;AAE3B,eAAO,MAAM,UAAU,UAAU,CAAA;AACjC,eAAO,MAAM,iBAAiB,gBAAgB,CAAA;AAC9C,eAAO,MAAM,kBAAkB,iBAAiB,CAAA;AAKhD,eAAO,MAAM,WAAW,QAA8C,CAAA;AAEtE,eAAO,MAAM,uBAAuB,yBAAoD,CAAA"}
|
package/types/createSheet.d.ts
CHANGED
|
@@ -48,7 +48,7 @@ export declare function createSheet<H extends SheetStyledComponent | TamaguiComp
|
|
|
48
48
|
readonly fullscreen?: boolean | undefined;
|
|
49
49
|
}>> & import("@tamagui/core").PseudoProps<Partial<import("react-native").ScrollViewProps & Omit<StackProps, keyof import("react-native").ScrollViewProps> & Omit<{}, "fullscreen"> & {
|
|
50
50
|
readonly fullscreen?: boolean | undefined;
|
|
51
|
-
}>> & RefAttributes<
|
|
51
|
+
}>> & RefAttributes<import("react-native").ScrollView>>;
|
|
52
52
|
};
|
|
53
53
|
Frame: import("react").ForwardRefExoticComponent<import("react").PropsWithoutRef<SheetScopedProps<GetProps<F> & {
|
|
54
54
|
disableHideBottomOverflow?: boolean | undefined;
|
|
@@ -61,7 +61,7 @@ export declare function createSheet<H extends SheetStyledComponent | TamaguiComp
|
|
|
61
61
|
readonly fullscreen?: boolean | undefined;
|
|
62
62
|
}>> & import("@tamagui/core").PseudoProps<Partial<import("react-native").ScrollViewProps & Omit<StackProps, keyof import("react-native").ScrollViewProps> & Omit<{}, "fullscreen"> & {
|
|
63
63
|
readonly fullscreen?: boolean | undefined;
|
|
64
|
-
}>> & RefAttributes<
|
|
64
|
+
}>> & RefAttributes<import("react-native").ScrollView>>;
|
|
65
65
|
};
|
|
66
66
|
export {};
|
|
67
67
|
//# sourceMappingURL=createSheet.d.ts.map
|