@tamagui/core 1.121.0 → 1.121.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.
- package/package.json +14 -14
- package/types/createOptimizedView.d.ts +0 -2
- package/types/createOptimizedView.d.ts.map +0 -1
- package/types/createOptimizedView.native.d.ts +0 -17
- package/types/createOptimizedView.native.d.ts.map +0 -1
- package/types/getBaseViews.d.ts +0 -2
- package/types/getBaseViews.d.ts.map +0 -1
- package/types/getBaseViews.native.d.ts +0 -8
- package/types/getBaseViews.native.d.ts.map +0 -1
- package/types/helpers/getBoundingClientRect.d.ts +0 -2
- package/types/helpers/getBoundingClientRect.d.ts.map +0 -1
- package/types/helpers/getRect.d.ts +0 -9
- package/types/helpers/getRect.d.ts.map +0 -1
- package/types/hooks/useElementLayout.d.ts +0 -21
- package/types/hooks/useElementLayout.d.ts.map +0 -1
- package/types/index.d.ts +0 -16
- package/types/index.d.ts.map +0 -1
- package/types/inject-styles.d.ts +0 -7
- package/types/inject-styles.d.ts.map +0 -1
- package/types/reactNativeTypes.d.ts +0 -2
- package/types/reactNativeTypes.d.ts.map +0 -1
- package/types/vendor/Pressability.d.ts +0 -3
- package/types/vendor/Pressability.d.ts.map +0 -1
- package/types/vendor/Pressability.native.d.ts +0 -3
- package/types/vendor/Pressability.native.d.ts.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/core",
|
|
3
|
-
"version": "1.121.
|
|
3
|
+
"version": "1.121.1",
|
|
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": "./src/index.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 --watch",
|
|
20
|
+
"build": "tamagui-build --skip-types",
|
|
21
|
+
"watch": "tamagui-build --skip-types --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.1",
|
|
39
|
+
"@tamagui/react-native-use-responder-events": "1.121.1",
|
|
40
|
+
"@tamagui/use-event": "1.121.1",
|
|
41
|
+
"@tamagui/web": "1.121.1"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@tamagui/build": "1.121.
|
|
44
|
+
"@tamagui/build": "1.121.1",
|
|
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": "./src/index.tsx",
|
|
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": "./src/index.tsx",
|
|
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": "./src/index.tsx",
|
|
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": "./src/inject-styles.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": "./src/reactNativeTypes.ts",
|
|
83
83
|
"import": "./dist/esm/reactNativeTypes.mjs",
|
|
84
84
|
"require": "./dist/cjs/reactNativeTypes.cjs",
|
|
85
85
|
"react-native": "./dist/cjs/reactNativeTypes.native.js"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createOptimizedView.d.ts","sourceRoot":"","sources":["../src/createOptimizedView.tsx"],"names":[],"mappings":"AAAA,wBAAgB,mBAAmB,CACjC,QAAQ,EAAE,GAAG,EACb,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC9B,SAAS,EAAE,GAAG,QACZ"}
|
|
@@ -1,17 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createOptimizedView.native.d.ts","sourceRoot":"","sources":["../src/createOptimizedView.native.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB;;;;;;;;GAQG;AAEH,wBAAgB,mBAAmB,CACjC,QAAQ,EAAE,GAAG,EACb,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC9B,SAAS,EAAE,GAAG;;;;cAiHf;AAED,wBAAgB,4BAA4B,CAAC,IAAI,KAAA,wTAuIhD"}
|
package/types/getBaseViews.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getBaseViews.d.ts","sourceRoot":"","sources":["../src/getBaseViews.ts"],"names":[],"mappings":"AAAA,wBAAgB,YAAY,IAEX,GAAG,CACnB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getBaseViews.native.d.ts","sourceRoot":"","sources":["../src/getBaseViews.native.ts"],"names":[],"mappings":"AAAA,wBAAgB,YAAY;;;;;;EAsB3B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getBoundingClientRect.d.ts","sourceRoot":"","sources":["../../src/helpers/getBoundingClientRect.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB,SAAU,WAAW,GAAG,IAAI,KAAG,SAAS,GAAG,OAG5E,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getRect.d.ts","sourceRoot":"","sources":["../../src/helpers/getRect.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,OAAO,SAAU,WAAW;;;;;;;aAKxC,CAAA"}
|
|
@@ -1,21 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useElementLayout.d.ts","sourceRoot":"","sources":["../../src/hooks/useElementLayout.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,cAAc,CAAA;AAC5D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAMtC,MAAM,MAAM,WAAW,GAAG;IACxB,CAAC,EAAE,MAAM,CAAA;IACT,CAAC,EAAE,MAAM,CAAA;IACT,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,MAAM,CAAA;IACZ,GAAG,EAAE,MAAM,CAAA;CACZ,CAAA;AAED,MAAM,MAAM,WAAW,GAAG;IACxB,WAAW,EAAE;QACX,MAAM,EAAE,WAAW,CAAA;QACnB,MAAM,EAAE,GAAG,CAAA;KACZ,CAAA;IACD,SAAS,EAAE,MAAM,CAAA;CAClB,CAAA;AA4BD,eAAO,MAAM,cAAc,WAAkB,WAAW,KAAG,OAAO,CAAC,WAAW,CAY7E,CAAA;AAID,eAAO,MAAM,aAAa,SAClB,WAAW,cACL,WAAW,GAAG,IAAI,YACpB,CACR,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,MAAM,EACZ,GAAG,EAAE,MAAM,KACR,IAAI,SAmBV,CAAA;AA+BD,wBAAgB,gBAAgB,CAC9B,GAAG,EAAE,SAAS,CAAC,wBAAwB,CAAC,EACxC,QAAQ,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,WAAW,KAAK,IAAI,CAAC,GAAG,IAAI,QA8B7C"}
|
package/types/index.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
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
|
package/types/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,kBAAkB,EAClB,cAAc,EACd,SAAS,EACT,gBAAgB,EAChB,cAAc,EACd,kBAAkB,EAClB,iBAAiB,EACjB,SAAS,EACT,kBAAkB,EACnB,MAAM,cAAc,CAAA;AAcrB,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAA;AAKlE,KAAK,oBAAoB,GAAG,IAAI,CAAC,WAAW,EAAE,MAAM,kBAAkB,CAAC,CAAA;AACvE,MAAM,WAAW,0BACf,SAAQ,kBAAkB,EACxB,oBAAoB;CAAG;AAE3B,KAAK,aAAa,GAAG,gBAAgB,CACnC,SAAS,EACT,cAAc,EACd,0BAA0B,EAC1B,cAAc,EACd,EAAE,CACH,CAAA;AAED,KAAK,oBAAoB,GAAG,IAAI,CAAC,WAAW,EAAE,MAAM,SAAS,CAAC,CAAA;AAC9D,MAAM,WAAW,0BACf,SAAQ,iBAAiB,EACvB,oBAAoB;CAAG;AAE3B,KAAK,aAAa,GAAG,gBAAgB,CACnC,SAAS,EACT,kBAAkB,EAClB,0BAA0B,EAC1B,kBAAkB,EAClB,EAAE,CACH,CAAA;AAGD,cAAc,cAAc,CAAA;AAG5B,cAAc,oBAAoB,CAAA;AAmLlC,eAAO,MAAM,IAAI,EAAqB,aAAa,CAAA;AACnD,eAAO,MAAM,KAAK,EAAsB,aAAa,CAAA;AACrD,eAAO,MAAM,IAAI,EAAqB,aAAa,CAAA"}
|
package/types/inject-styles.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"inject-styles.d.ts","sourceRoot":"","sources":["../src/inject-styles.ts"],"names":[],"mappings":"AAIA,UAAU,mBAAmB;IAC3B,QAAQ,EAAE,MAAM,CAAA;IAChB,GAAG,EAAE,MAAM,CAAA;CACZ;AAED,eAAO,MAAM,YAAY,sBAAuB,mBAAmB,SAUlE,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"reactNativeTypes.d.ts","sourceRoot":"","sources":["../src/reactNativeTypes.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Pressability.d.ts","sourceRoot":"","sources":["../../src/vendor/Pressability.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,EAAS,GAAG,CAAA;AACrC,eAAO,MAAM,eAAe,MAAO,GAAG,OAAS,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Pressability.native.d.ts","sourceRoot":"","sources":["../../src/vendor/Pressability.native.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,KAC4C,CAAA;AACrE,eAAO,MAAM,eAAe,KAC4C,CAAA"}
|