@tamagui/scroll-view 1.5.8 → 1.5.10
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/ScrollView.js +11 -5
- package/dist/cjs/ScrollView.js.map +3 -3
- package/dist/esm/ScrollView.js +9 -3
- package/dist/esm/ScrollView.js.map +2 -2
- package/dist/esm/ScrollView.mjs +9 -3
- package/dist/esm/ScrollView.mjs.map +2 -2
- package/dist/jsx/ScrollView.js +9 -3
- package/dist/jsx/ScrollView.js.map +2 -2
- package/dist/jsx/ScrollView.mjs +9 -3
- package/dist/jsx/ScrollView.mjs.map +2 -2
- package/package.json +4 -3
- package/src/ScrollView.tsx +9 -2
- package/types/ScrollView.d.ts +9 -9
- package/types/ScrollView.d.ts.map +1 -1
package/dist/cjs/ScrollView.js
CHANGED
|
@@ -21,19 +21,25 @@ __export(ScrollView_exports, {
|
|
|
21
21
|
ScrollView: () => ScrollView
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(ScrollView_exports);
|
|
24
|
-
var
|
|
25
|
-
var
|
|
24
|
+
var import_stacks = require("@tamagui/stacks");
|
|
25
|
+
var import_web = require("@tamagui/web");
|
|
26
26
|
var import_react_native = require("react-native");
|
|
27
|
-
(0,
|
|
27
|
+
(0, import_web.setupReactNative)({
|
|
28
28
|
ScrollView: import_react_native.ScrollView
|
|
29
29
|
});
|
|
30
|
-
const ScrollView = (0,
|
|
30
|
+
const ScrollView = (0, import_web.styled)(
|
|
31
31
|
import_react_native.ScrollView,
|
|
32
32
|
{
|
|
33
33
|
name: "ScrollView",
|
|
34
|
-
scrollEnabled: true
|
|
34
|
+
scrollEnabled: true,
|
|
35
|
+
variants: {
|
|
36
|
+
fullscreen: {
|
|
37
|
+
true: import_stacks.fullscreenStyle
|
|
38
|
+
}
|
|
39
|
+
}
|
|
35
40
|
},
|
|
36
41
|
{
|
|
42
|
+
// this maybe not necesssary since setupReactNative is called?
|
|
37
43
|
isReactNative: true
|
|
38
44
|
}
|
|
39
45
|
);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/ScrollView.tsx"],
|
|
4
|
-
"sourcesContent": ["import {
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,
|
|
6
|
-
"names": ["
|
|
4
|
+
"sourcesContent": ["import { fullscreenStyle } from '@tamagui/stacks'\nimport { GetProps, setupReactNative, styled } from '@tamagui/web'\nimport { ScrollView as ScrollViewNative } from 'react-native'\n\nsetupReactNative({\n ScrollView: ScrollViewNative,\n})\n\nexport const ScrollView = styled(\n ScrollViewNative,\n {\n name: 'ScrollView',\n scrollEnabled: true,\n\n variants: {\n fullscreen: {\n true: fullscreenStyle,\n },\n } as const,\n },\n {\n // this maybe not necesssary since setupReactNative is called?\n isReactNative: true,\n }\n)\n\nexport type ScrollViewProps = GetProps<typeof ScrollView>\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAAgC;AAChC,iBAAmD;AACnD,0BAA+C;AAAA,IAE/C,6BAAiB;AAAA,EACf,YAAY,oBAAAA;AACd,CAAC;AAEM,MAAM,iBAAa;AAAA,EACxB,oBAAAA;AAAA,EACA;AAAA,IACE,MAAM;AAAA,IACN,eAAe;AAAA,IAEf,UAAU;AAAA,MACR,YAAY;AAAA,QACV,MAAM;AAAA,MACR;AAAA,IACF;AAAA,EACF;AAAA,EACA;AAAA;AAAA,IAEE,eAAe;AAAA,EACjB;AACF;",
|
|
6
|
+
"names": ["ScrollViewNative"]
|
|
7
7
|
}
|
package/dist/esm/ScrollView.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { setupReactNative } from "@tamagui/
|
|
1
|
+
import { fullscreenStyle } from "@tamagui/stacks";
|
|
2
|
+
import { setupReactNative, styled } from "@tamagui/web";
|
|
3
3
|
import { ScrollView as ScrollViewNative } from "react-native";
|
|
4
4
|
setupReactNative({
|
|
5
5
|
ScrollView: ScrollViewNative
|
|
@@ -8,9 +8,15 @@ const ScrollView = styled(
|
|
|
8
8
|
ScrollViewNative,
|
|
9
9
|
{
|
|
10
10
|
name: "ScrollView",
|
|
11
|
-
scrollEnabled: true
|
|
11
|
+
scrollEnabled: true,
|
|
12
|
+
variants: {
|
|
13
|
+
fullscreen: {
|
|
14
|
+
true: fullscreenStyle
|
|
15
|
+
}
|
|
16
|
+
}
|
|
12
17
|
},
|
|
13
18
|
{
|
|
19
|
+
// this maybe not necesssary since setupReactNative is called?
|
|
14
20
|
isReactNative: true
|
|
15
21
|
}
|
|
16
22
|
);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/ScrollView.tsx"],
|
|
4
|
-
"sourcesContent": ["import {
|
|
5
|
-
"mappings": "AAAA,
|
|
4
|
+
"sourcesContent": ["import { fullscreenStyle } from '@tamagui/stacks'\nimport { GetProps, setupReactNative, styled } from '@tamagui/web'\nimport { ScrollView as ScrollViewNative } from 'react-native'\n\nsetupReactNative({\n ScrollView: ScrollViewNative,\n})\n\nexport const ScrollView = styled(\n ScrollViewNative,\n {\n name: 'ScrollView',\n scrollEnabled: true,\n\n variants: {\n fullscreen: {\n true: fullscreenStyle,\n },\n } as const,\n },\n {\n // this maybe not necesssary since setupReactNative is called?\n isReactNative: true,\n }\n)\n\nexport type ScrollViewProps = GetProps<typeof ScrollView>\n"],
|
|
5
|
+
"mappings": "AAAA,SAAS,uBAAuB;AAChC,SAAmB,kBAAkB,cAAc;AACnD,SAAS,cAAc,wBAAwB;AAE/C,iBAAiB;AAAA,EACf,YAAY;AACd,CAAC;AAEM,MAAM,aAAa;AAAA,EACxB;AAAA,EACA;AAAA,IACE,MAAM;AAAA,IACN,eAAe;AAAA,IAEf,UAAU;AAAA,MACR,YAAY;AAAA,QACV,MAAM;AAAA,MACR;AAAA,IACF;AAAA,EACF;AAAA,EACA;AAAA;AAAA,IAEE,eAAe;AAAA,EACjB;AACF;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/dist/esm/ScrollView.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { setupReactNative } from "@tamagui/
|
|
1
|
+
import { fullscreenStyle } from "@tamagui/stacks";
|
|
2
|
+
import { setupReactNative, styled } from "@tamagui/web";
|
|
3
3
|
import { ScrollView as ScrollViewNative } from "react-native";
|
|
4
4
|
setupReactNative({
|
|
5
5
|
ScrollView: ScrollViewNative
|
|
@@ -8,9 +8,15 @@ const ScrollView = styled(
|
|
|
8
8
|
ScrollViewNative,
|
|
9
9
|
{
|
|
10
10
|
name: "ScrollView",
|
|
11
|
-
scrollEnabled: true
|
|
11
|
+
scrollEnabled: true,
|
|
12
|
+
variants: {
|
|
13
|
+
fullscreen: {
|
|
14
|
+
true: fullscreenStyle
|
|
15
|
+
}
|
|
16
|
+
}
|
|
12
17
|
},
|
|
13
18
|
{
|
|
19
|
+
// this maybe not necesssary since setupReactNative is called?
|
|
14
20
|
isReactNative: true
|
|
15
21
|
}
|
|
16
22
|
);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/ScrollView.tsx"],
|
|
4
|
-
"sourcesContent": ["import {
|
|
5
|
-
"mappings": "AAAA,
|
|
4
|
+
"sourcesContent": ["import { fullscreenStyle } from '@tamagui/stacks'\nimport { GetProps, setupReactNative, styled } from '@tamagui/web'\nimport { ScrollView as ScrollViewNative } from 'react-native'\n\nsetupReactNative({\n ScrollView: ScrollViewNative,\n})\n\nexport const ScrollView = styled(\n ScrollViewNative,\n {\n name: 'ScrollView',\n scrollEnabled: true,\n\n variants: {\n fullscreen: {\n true: fullscreenStyle,\n },\n } as const,\n },\n {\n // this maybe not necesssary since setupReactNative is called?\n isReactNative: true,\n }\n)\n\nexport type ScrollViewProps = GetProps<typeof ScrollView>\n"],
|
|
5
|
+
"mappings": "AAAA,SAAS,uBAAuB;AAChC,SAAmB,kBAAkB,cAAc;AACnD,SAAS,cAAc,wBAAwB;AAE/C,iBAAiB;AAAA,EACf,YAAY;AACd,CAAC;AAEM,MAAM,aAAa;AAAA,EACxB;AAAA,EACA;AAAA,IACE,MAAM;AAAA,IACN,eAAe;AAAA,IAEf,UAAU;AAAA,MACR,YAAY;AAAA,QACV,MAAM;AAAA,MACR;AAAA,IACF;AAAA,EACF;AAAA,EACA;AAAA;AAAA,IAEE,eAAe;AAAA,EACjB;AACF;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/dist/jsx/ScrollView.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { setupReactNative } from "@tamagui/
|
|
1
|
+
import { fullscreenStyle } from "@tamagui/stacks";
|
|
2
|
+
import { setupReactNative, styled } from "@tamagui/web";
|
|
3
3
|
import { ScrollView as ScrollViewNative } from "react-native";
|
|
4
4
|
setupReactNative({
|
|
5
5
|
ScrollView: ScrollViewNative
|
|
@@ -8,9 +8,15 @@ const ScrollView = styled(
|
|
|
8
8
|
ScrollViewNative,
|
|
9
9
|
{
|
|
10
10
|
name: "ScrollView",
|
|
11
|
-
scrollEnabled: true
|
|
11
|
+
scrollEnabled: true,
|
|
12
|
+
variants: {
|
|
13
|
+
fullscreen: {
|
|
14
|
+
true: fullscreenStyle
|
|
15
|
+
}
|
|
16
|
+
}
|
|
12
17
|
},
|
|
13
18
|
{
|
|
19
|
+
// this maybe not necesssary since setupReactNative is called?
|
|
14
20
|
isReactNative: true
|
|
15
21
|
}
|
|
16
22
|
);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/ScrollView.tsx"],
|
|
4
|
-
"sourcesContent": ["import {
|
|
5
|
-
"mappings": "AAAA,
|
|
4
|
+
"sourcesContent": ["import { fullscreenStyle } from '@tamagui/stacks'\nimport { GetProps, setupReactNative, styled } from '@tamagui/web'\nimport { ScrollView as ScrollViewNative } from 'react-native'\n\nsetupReactNative({\n ScrollView: ScrollViewNative,\n})\n\nexport const ScrollView = styled(\n ScrollViewNative,\n {\n name: 'ScrollView',\n scrollEnabled: true,\n\n variants: {\n fullscreen: {\n true: fullscreenStyle,\n },\n } as const,\n },\n {\n // this maybe not necesssary since setupReactNative is called?\n isReactNative: true,\n }\n)\n\nexport type ScrollViewProps = GetProps<typeof ScrollView>\n"],
|
|
5
|
+
"mappings": "AAAA,SAAS,uBAAuB;AAChC,SAAmB,kBAAkB,cAAc;AACnD,SAAS,cAAc,wBAAwB;AAE/C,iBAAiB;AAAA,EACf,YAAY;AACd,CAAC;AAEM,MAAM,aAAa;AAAA,EACxB;AAAA,EACA;AAAA,IACE,MAAM;AAAA,IACN,eAAe;AAAA,IAEf,UAAU;AAAA,MACR,YAAY;AAAA,QACV,MAAM;AAAA,MACR;AAAA,IACF;AAAA,EACF;AAAA,EACA;AAAA;AAAA,IAEE,eAAe;AAAA,EACjB;AACF;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/dist/jsx/ScrollView.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { setupReactNative } from "@tamagui/
|
|
1
|
+
import { fullscreenStyle } from "@tamagui/stacks";
|
|
2
|
+
import { setupReactNative, styled } from "@tamagui/web";
|
|
3
3
|
import { ScrollView as ScrollViewNative } from "react-native";
|
|
4
4
|
setupReactNative({
|
|
5
5
|
ScrollView: ScrollViewNative
|
|
@@ -8,9 +8,15 @@ const ScrollView = styled(
|
|
|
8
8
|
ScrollViewNative,
|
|
9
9
|
{
|
|
10
10
|
name: "ScrollView",
|
|
11
|
-
scrollEnabled: true
|
|
11
|
+
scrollEnabled: true,
|
|
12
|
+
variants: {
|
|
13
|
+
fullscreen: {
|
|
14
|
+
true: fullscreenStyle
|
|
15
|
+
}
|
|
16
|
+
}
|
|
12
17
|
},
|
|
13
18
|
{
|
|
19
|
+
// this maybe not necesssary since setupReactNative is called?
|
|
14
20
|
isReactNative: true
|
|
15
21
|
}
|
|
16
22
|
);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/ScrollView.tsx"],
|
|
4
|
-
"sourcesContent": ["import {
|
|
5
|
-
"mappings": "AAAA,
|
|
4
|
+
"sourcesContent": ["import { fullscreenStyle } from '@tamagui/stacks'\nimport { GetProps, setupReactNative, styled } from '@tamagui/web'\nimport { ScrollView as ScrollViewNative } from 'react-native'\n\nsetupReactNative({\n ScrollView: ScrollViewNative,\n})\n\nexport const ScrollView = styled(\n ScrollViewNative,\n {\n name: 'ScrollView',\n scrollEnabled: true,\n\n variants: {\n fullscreen: {\n true: fullscreenStyle,\n },\n } as const,\n },\n {\n // this maybe not necesssary since setupReactNative is called?\n isReactNative: true,\n }\n)\n\nexport type ScrollViewProps = GetProps<typeof ScrollView>\n"],
|
|
5
|
+
"mappings": "AAAA,SAAS,uBAAuB;AAChC,SAAmB,kBAAkB,cAAc;AACnD,SAAS,cAAc,wBAAwB;AAE/C,iBAAiB;AAAA,EACf,YAAY;AACd,CAAC;AAEM,MAAM,aAAa;AAAA,EACxB;AAAA,EACA;AAAA,IACE,MAAM;AAAA,IACN,eAAe;AAAA,IAEf,UAAU;AAAA,MACR,YAAY;AAAA,QACV,MAAM;AAAA,MACR;AAAA,IACF;AAAA,EACF;AAAA,EACA;AAAA;AAAA,IAEE,eAAe;AAAA,EACjB;AACF;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/scroll-view",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.10",
|
|
4
4
|
"sideEffects": [
|
|
5
5
|
"*.css"
|
|
6
6
|
],
|
|
@@ -21,14 +21,15 @@
|
|
|
21
21
|
"lint:fix": "../../node_modules/.bin/rome check --apply-suggested src"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@tamagui/
|
|
24
|
+
"@tamagui/stacks": "^1.5.10",
|
|
25
|
+
"@tamagui/web": "^1.5.10"
|
|
25
26
|
},
|
|
26
27
|
"peerDependencies": {
|
|
27
28
|
"react": "*",
|
|
28
29
|
"react-dom": "*"
|
|
29
30
|
},
|
|
30
31
|
"devDependencies": {
|
|
31
|
-
"@tamagui/build": "^1.5.
|
|
32
|
+
"@tamagui/build": "^1.5.10",
|
|
32
33
|
"react": "^18.2.0",
|
|
33
34
|
"react-dom": "^18.2.0"
|
|
34
35
|
},
|
package/src/ScrollView.tsx
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { setupReactNative } from '@tamagui/
|
|
1
|
+
import { fullscreenStyle } from '@tamagui/stacks'
|
|
2
|
+
import { GetProps, setupReactNative, styled } from '@tamagui/web'
|
|
3
3
|
import { ScrollView as ScrollViewNative } from 'react-native'
|
|
4
4
|
|
|
5
5
|
setupReactNative({
|
|
@@ -11,8 +11,15 @@ export const ScrollView = styled(
|
|
|
11
11
|
{
|
|
12
12
|
name: 'ScrollView',
|
|
13
13
|
scrollEnabled: true,
|
|
14
|
+
|
|
15
|
+
variants: {
|
|
16
|
+
fullscreen: {
|
|
17
|
+
true: fullscreenStyle,
|
|
18
|
+
},
|
|
19
|
+
} as const,
|
|
14
20
|
},
|
|
15
21
|
{
|
|
22
|
+
// this maybe not necesssary since setupReactNative is called?
|
|
16
23
|
isReactNative: true,
|
|
17
24
|
}
|
|
18
25
|
)
|
package/types/ScrollView.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { GetProps } from '@tamagui/
|
|
2
|
-
export declare const ScrollView: import("@tamagui/
|
|
3
|
-
|
|
4
|
-
} & import("@tamagui/
|
|
5
|
-
|
|
6
|
-
}>> & import("@tamagui/
|
|
7
|
-
|
|
8
|
-
}
|
|
9
|
-
|
|
1
|
+
import { GetProps } from '@tamagui/web';
|
|
2
|
+
export declare const ScrollView: import("@tamagui/web").TamaguiComponent<import("react-native").ScrollViewProps & Omit<import("@tamagui/web").StackProps, keyof import("react-native").ScrollViewProps> & Omit<{}, "fullscreen"> & {
|
|
3
|
+
readonly fullscreen?: boolean | undefined;
|
|
4
|
+
} & import("@tamagui/web").MediaProps<Partial<import("react-native").ScrollViewProps & Omit<import("@tamagui/web").StackProps, keyof import("react-native").ScrollViewProps> & Omit<{}, "fullscreen"> & {
|
|
5
|
+
readonly fullscreen?: boolean | undefined;
|
|
6
|
+
}>> & import("@tamagui/web").PseudoProps<Partial<import("react-native").ScrollViewProps & Omit<import("@tamagui/web").StackProps, keyof import("react-native").ScrollViewProps> & Omit<{}, "fullscreen"> & {
|
|
7
|
+
readonly fullscreen?: boolean | undefined;
|
|
8
|
+
}>>, import("@tamagui/web").TamaguiElement, import("react-native").ScrollViewProps & Omit<import("@tamagui/web").StackProps, keyof import("react-native").ScrollViewProps>, {
|
|
9
|
+
readonly fullscreen?: boolean | undefined;
|
|
10
10
|
}>;
|
|
11
11
|
export type ScrollViewProps = GetProps<typeof ScrollView>;
|
|
12
12
|
//# sourceMappingURL=ScrollView.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScrollView.d.ts","sourceRoot":"","sources":["../src/ScrollView.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ScrollView.d.ts","sourceRoot":"","sources":["../src/ScrollView.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAA4B,MAAM,cAAc,CAAA;AAOjE,eAAO,MAAM,UAAU;;;;;;;;EAgBtB,CAAA;AAED,MAAM,MAAM,eAAe,GAAG,QAAQ,CAAC,OAAO,UAAU,CAAC,CAAA"}
|