@tamagui/core 1.121.1 → 1.121.2
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/package.json +14 -14
- package/types/createOptimizedView.d.ts +2 -0
- package/types/createOptimizedView.native.d.ts +17 -0
- package/types/getBaseViews.d.ts +2 -0
- package/types/getBaseViews.native.d.ts +8 -0
- package/types/helpers/getBoundingClientRect.d.ts +2 -0
- package/types/helpers/getRect.d.ts +9 -0
- package/types/hooks/useElementLayout.d.ts +21 -0
- package/types/index.d.ts +16 -0
- package/types/inject-styles.d.ts +7 -0
- package/types/reactNativeTypes.d.ts +2 -0
- package/types/vendor/Pressability.d.ts +3 -0
- package/types/vendor/Pressability.native.d.ts +3 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/core",
|
|
3
|
-
"version": "1.121.
|
|
3
|
+
"version": "1.121.2",
|
|
4
4
|
"source": "src/index.tsx",
|
|
5
5
|
"main": "dist/cjs",
|
|
6
6
|
"module": "dist/esm",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"bundle.native": "./src/index.tsx",
|
|
9
9
|
"bundle.native.test": "./src/index.tsx"
|
|
10
10
|
},
|
|
11
|
-
"types": "./
|
|
11
|
+
"types": "./types/index.d.ts",
|
|
12
12
|
"license": "MIT",
|
|
13
13
|
"author": {
|
|
14
14
|
"name": "Nate Wienert"
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
"*.css"
|
|
18
18
|
],
|
|
19
19
|
"scripts": {
|
|
20
|
-
"build": "tamagui-build
|
|
21
|
-
"watch": "tamagui-build --
|
|
20
|
+
"build": "tamagui-build",
|
|
21
|
+
"watch": "tamagui-build --watch",
|
|
22
22
|
"lint": "biome check src",
|
|
23
23
|
"lint:fix": "biome check --write src",
|
|
24
24
|
"clean": "tamagui-build clean",
|
|
@@ -35,13 +35,13 @@
|
|
|
35
35
|
"native-test.d.ts"
|
|
36
36
|
],
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@tamagui/react-native-use-pressable": "1.121.
|
|
39
|
-
"@tamagui/react-native-use-responder-events": "1.121.
|
|
40
|
-
"@tamagui/use-event": "1.121.
|
|
41
|
-
"@tamagui/web": "1.121.
|
|
38
|
+
"@tamagui/react-native-use-pressable": "1.121.2",
|
|
39
|
+
"@tamagui/react-native-use-responder-events": "1.121.2",
|
|
40
|
+
"@tamagui/use-event": "1.121.2",
|
|
41
|
+
"@tamagui/web": "1.121.2"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@tamagui/build": "1.121.
|
|
44
|
+
"@tamagui/build": "1.121.2",
|
|
45
45
|
"@testing-library/react": "^16.1.0",
|
|
46
46
|
"csstype": "^3.0.10",
|
|
47
47
|
"typescript": "^5.7.2",
|
|
@@ -55,31 +55,31 @@
|
|
|
55
55
|
"import": "./dist/esm/index.native.js",
|
|
56
56
|
"require": "./dist/cjs/index.native.js"
|
|
57
57
|
},
|
|
58
|
-
"types": "./
|
|
58
|
+
"types": "./types/index.d.ts",
|
|
59
59
|
"import": "./dist/esm/index.mjs",
|
|
60
60
|
"require": "./dist/cjs/index.cjs",
|
|
61
61
|
"default": "./dist/cjs/index.native.js"
|
|
62
62
|
},
|
|
63
63
|
"./native": {
|
|
64
|
-
"types": "./
|
|
64
|
+
"types": "./types/index.d.ts",
|
|
65
65
|
"import": "./dist/native.mjs",
|
|
66
66
|
"require": "./dist/native.js",
|
|
67
67
|
"react-native": "./dist/native.js"
|
|
68
68
|
},
|
|
69
69
|
"./native-test": {
|
|
70
|
-
"types": "./
|
|
70
|
+
"types": "./types/index.d.ts",
|
|
71
71
|
"import": "./dist/test.native.js",
|
|
72
72
|
"require": "./dist/test.native.js",
|
|
73
73
|
"react-native": "./dist/test.native.js"
|
|
74
74
|
},
|
|
75
75
|
"./inject-styles": {
|
|
76
|
-
"types": "./
|
|
76
|
+
"types": "./types/inject-styles.d.ts",
|
|
77
77
|
"import": "./dist/esm/inject-styles.mjs",
|
|
78
78
|
"require": "./dist/cjs/inject-styles.cjs",
|
|
79
79
|
"react-native": "./dist/cjs/inject-styles.native.js"
|
|
80
80
|
},
|
|
81
81
|
"./reactNativeTypes": {
|
|
82
|
-
"types": "./
|
|
82
|
+
"types": "./types/reactNativeTypes.d.ts",
|
|
83
83
|
"import": "./dist/esm/reactNativeTypes.mjs",
|
|
84
84
|
"require": "./dist/cjs/reactNativeTypes.cjs",
|
|
85
85
|
"react-native": "./dist/cjs/reactNativeTypes.native.js"
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the MIT license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*
|
|
8
|
+
* @flow strict-local
|
|
9
|
+
* @format
|
|
10
|
+
*/
|
|
11
|
+
export declare function createOptimizedView(children: any, viewProps: Record<string, any>, baseViews: any): React.DetailedReactHTMLElement<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement> | React.CElement<{
|
|
12
|
+
value: boolean;
|
|
13
|
+
}, React.Component<{
|
|
14
|
+
value: boolean;
|
|
15
|
+
}, any, any>>;
|
|
16
|
+
export declare function getAccessibilityRoleFromRole(role: any): "none" | "alert" | "button" | "checkbox" | "combobox" | "grid" | "header" | "image" | "link" | "list" | "menu" | "menubar" | "menuitem" | "progressbar" | "radio" | "radiogroup" | "scrollbar" | "search" | "adjustable" | "spinbutton" | "summary" | "switch" | "tab" | "tablist" | "timer" | "toolbar" | undefined;
|
|
17
|
+
//# sourceMappingURL=createOptimizedView.native.d.ts.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { TamaguiComponentStateRef } from '@tamagui/web';
|
|
2
|
+
import type { RefObject } from 'react';
|
|
3
|
+
export type LayoutValue = {
|
|
4
|
+
x: number;
|
|
5
|
+
y: number;
|
|
6
|
+
width: number;
|
|
7
|
+
height: number;
|
|
8
|
+
left: number;
|
|
9
|
+
top: number;
|
|
10
|
+
};
|
|
11
|
+
export type LayoutEvent = {
|
|
12
|
+
nativeEvent: {
|
|
13
|
+
layout: LayoutValue;
|
|
14
|
+
target: any;
|
|
15
|
+
};
|
|
16
|
+
timeStamp: number;
|
|
17
|
+
};
|
|
18
|
+
export declare const measureElement: (target: HTMLElement) => Promise<LayoutEvent>;
|
|
19
|
+
export declare const measureLayout: (node: HTMLElement, relativeTo: HTMLElement | null, callback: (x: number, y: number, width: number, height: number, left: number, top: number) => void) => void;
|
|
20
|
+
export declare function useElementLayout(ref: RefObject<TamaguiComponentStateRef>, onLayout?: ((e: LayoutEvent) => void) | null): void;
|
|
21
|
+
//# sourceMappingURL=useElementLayout.d.ts.map
|
package/types/index.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { StackNonStyleProps, StackStyleBase, TamaDefer, TamaguiComponent, TamaguiElement, TamaguiTextElement, TextNonStyleProps, TextProps, TextStylePropsBase } from '@tamagui/web';
|
|
2
|
+
import type { RNTextProps, RNViewProps } from './reactNativeTypes';
|
|
3
|
+
type RNExclusiveViewProps = Omit<RNViewProps, keyof StackNonStyleProps>;
|
|
4
|
+
export interface RNTamaguiViewNonStyleProps extends StackNonStyleProps, RNExclusiveViewProps {
|
|
5
|
+
}
|
|
6
|
+
type RNTamaguiView = TamaguiComponent<TamaDefer, TamaguiElement, RNTamaguiViewNonStyleProps, StackStyleBase, {}>;
|
|
7
|
+
type RNExclusiveTextProps = Omit<RNTextProps, keyof TextProps>;
|
|
8
|
+
export interface RNTamaguiTextNonStyleProps extends TextNonStyleProps, RNExclusiveTextProps {
|
|
9
|
+
}
|
|
10
|
+
type RNTamaguiText = TamaguiComponent<TamaDefer, TamaguiTextElement, RNTamaguiTextNonStyleProps, TextStylePropsBase, {}>;
|
|
11
|
+
export * from '@tamagui/web';
|
|
12
|
+
export * from './reactNativeTypes';
|
|
13
|
+
export declare const View: RNTamaguiView;
|
|
14
|
+
export declare const Stack: RNTamaguiView;
|
|
15
|
+
export declare const Text: RNTamaguiText;
|
|
16
|
+
//# sourceMappingURL=index.d.ts.map
|