@tamagui/web 1.79.7 → 1.79.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/helpers/scheme.js +1 -0
- package/dist/cjs/helpers/scheme.js.map +6 -0
- package/dist/cjs/helpers/scheme.native.js +2 -0
- package/dist/cjs/helpers/scheme.native.js.map +6 -0
- package/dist/cjs/internalWithTheme.js +4 -4
- package/dist/cjs/internalWithTheme.js.map +1 -1
- package/dist/cjs/internalWithTheme.native.js +4 -4
- package/dist/cjs/internalWithTheme.native.js.map +1 -1
- package/dist/esm/helpers/scheme.js +1 -0
- package/dist/esm/helpers/scheme.js.map +6 -0
- package/dist/esm/helpers/scheme.native.js +1 -0
- package/dist/esm/helpers/scheme.native.js.map +6 -0
- package/dist/esm/internalWithTheme.js +3 -4
- package/dist/esm/internalWithTheme.js.map +1 -1
- package/dist/esm/internalWithTheme.native.js +3 -4
- package/dist/esm/internalWithTheme.native.js.map +1 -1
- package/package.json +10 -10
- package/src/internalWithTheme.tsx +3 -6
- package/types/helpers/scheme.d.ts.map +1 -0
- package/types/internalWithTheme.d.ts +1 -1
- package/types/internalWithTheme.d.ts.map +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=scheme.js.map
|
|
@@ -17,10 +17,10 @@ __export(internalWithTheme_exports, {
|
|
|
17
17
|
internalWithTheme: () => internalWithTheme
|
|
18
18
|
});
|
|
19
19
|
module.exports = __toCommonJS(internalWithTheme_exports);
|
|
20
|
-
var
|
|
21
|
-
const internalWithTheme = (Component, styleProvider
|
|
22
|
-
const theme = (0, import_useTheme.useTheme)();
|
|
23
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Component, { style:
|
|
20
|
+
var import_useTheme = require("./hooks/useTheme"), import_jsx_runtime = require("react/jsx-runtime");
|
|
21
|
+
const internalWithTheme = (Component, styleProvider) => (props) => {
|
|
22
|
+
const { expressions, ...rest } = props, theme = (0, import_useTheme.useTheme)();
|
|
23
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Component, { style: styleProvider(theme, props.expressions), ...rest });
|
|
24
24
|
};
|
|
25
25
|
// Annotate the CommonJS export names for ESM import in node:
|
|
26
26
|
0 && (module.exports = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/internalWithTheme.tsx"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,sBAAyB,6BAQd;AAJJ,MAAM,oBAAoB,CAAC,WAAgB,kBACzC,CAAC,UAAU;AAChB,QAAM,EAAE,aAAa,GAAG,KAAK,IAAI,OAC3B,YAAQ,0BAAS;AACvB,SAAO,4CAAC,aAAU,OAAO,cAAc,OAAO,MAAM,WAAW,GAAI,GAAG,MAAM;AAC9E;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
|
@@ -18,10 +18,10 @@ __export(internalWithTheme_exports, {
|
|
|
18
18
|
internalWithTheme: () => internalWithTheme
|
|
19
19
|
});
|
|
20
20
|
module.exports = __toCommonJS(internalWithTheme_exports);
|
|
21
|
-
var
|
|
22
|
-
const internalWithTheme = (Component, styleProvider
|
|
23
|
-
const theme = (0, import_useTheme.useTheme)();
|
|
24
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Component, { style:
|
|
21
|
+
var import_useTheme = require("./hooks/useTheme"), import_jsx_runtime = require("react/jsx-runtime");
|
|
22
|
+
const internalWithTheme = (Component, styleProvider) => (props) => {
|
|
23
|
+
const { expressions, ...rest } = props, theme = (0, import_useTheme.useTheme)();
|
|
24
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Component, { style: styleProvider(theme, props.expressions), ...rest });
|
|
25
25
|
};
|
|
26
26
|
// Annotate the CommonJS export names for ESM import in node:
|
|
27
27
|
0 && (module.exports = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/internalWithTheme.tsx"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,sBAAyB,6BAQd;AAJJ,MAAM,oBAAoB,CAAC,WAAgB,kBACzC,CAAC,UAAU;AAChB,QAAM,EAAE,aAAa,GAAG,KAAK,IAAI,OAC3B,YAAQ,0BAAS;AACvB,SAAO,4CAAC,aAAU,OAAO,cAAc,OAAO,MAAM,WAAW,GAAI,GAAG,MAAM;AAC9E;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=scheme.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=scheme.js.map
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { useMemo } from "react";
|
|
2
1
|
import { useTheme } from "./hooks/useTheme";
|
|
3
2
|
import { jsx } from "react/jsx-runtime";
|
|
4
|
-
const internalWithTheme = (Component, styleProvider
|
|
5
|
-
const theme = useTheme();
|
|
6
|
-
return /* @__PURE__ */ jsx(Component, { style:
|
|
3
|
+
const internalWithTheme = (Component, styleProvider) => (props) => {
|
|
4
|
+
const { expressions, ...rest } = props, theme = useTheme();
|
|
5
|
+
return /* @__PURE__ */ jsx(Component, { style: styleProvider(theme, props.expressions), ...rest });
|
|
7
6
|
};
|
|
8
7
|
export {
|
|
9
8
|
internalWithTheme
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/internalWithTheme.tsx"],
|
|
4
|
-
"mappings": "
|
|
4
|
+
"mappings": "AAEA,SAAS,gBAAgB;AAQd;AAJJ,MAAM,oBAAoB,CAAC,WAAgB,kBACzC,CAAC,UAAU;AAChB,QAAM,EAAE,aAAa,GAAG,KAAK,IAAI,OAC3B,QAAQ,SAAS;AACvB,SAAO,oBAAC,aAAU,OAAO,cAAc,OAAO,MAAM,WAAW,GAAI,GAAG,MAAM;AAC9E;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { useMemo } from "react";
|
|
2
1
|
import { useTheme } from "./hooks/useTheme";
|
|
3
2
|
import { jsx } from "react/jsx-runtime";
|
|
4
|
-
const internalWithTheme = (Component, styleProvider
|
|
5
|
-
const theme = useTheme();
|
|
6
|
-
return /* @__PURE__ */ jsx(Component, { style:
|
|
3
|
+
const internalWithTheme = (Component, styleProvider) => (props) => {
|
|
4
|
+
const { expressions, ...rest } = props, theme = useTheme();
|
|
5
|
+
return /* @__PURE__ */ jsx(Component, { style: styleProvider(theme, props.expressions), ...rest });
|
|
7
6
|
};
|
|
8
7
|
export {
|
|
9
8
|
internalWithTheme
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/internalWithTheme.tsx"],
|
|
4
|
-
"mappings": "
|
|
4
|
+
"mappings": "AAEA,SAAS,gBAAgB;AAQd;AAJJ,MAAM,oBAAoB,CAAC,WAAgB,kBACzC,CAAC,UAAU;AAChB,QAAM,EAAE,aAAa,GAAG,KAAK,IAAI,OAC3B,QAAQ,SAAS;AACvB,SAAO,oBAAC,aAAU,OAAO,cAAc,OAAO,MAAM,WAAW,GAAI,GAAG,MAAM;AAC9E;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/web",
|
|
3
|
-
"version": "1.79.
|
|
3
|
+
"version": "1.79.8",
|
|
4
4
|
"source": "src/index.ts",
|
|
5
5
|
"main": "dist/cjs",
|
|
6
6
|
"module": "dist/esm",
|
|
@@ -27,20 +27,20 @@
|
|
|
27
27
|
"reset.css"
|
|
28
28
|
],
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@tamagui/compose-refs": "1.79.
|
|
31
|
-
"@tamagui/constants": "1.79.
|
|
32
|
-
"@tamagui/helpers": "1.79.
|
|
33
|
-
"@tamagui/normalize-css-color": "1.79.
|
|
34
|
-
"@tamagui/timer": "1.79.
|
|
35
|
-
"@tamagui/use-did-finish-ssr": "1.79.
|
|
36
|
-
"@tamagui/use-event": "1.79.
|
|
37
|
-
"@tamagui/use-force-update": "1.79.
|
|
30
|
+
"@tamagui/compose-refs": "1.79.8",
|
|
31
|
+
"@tamagui/constants": "1.79.8",
|
|
32
|
+
"@tamagui/helpers": "1.79.8",
|
|
33
|
+
"@tamagui/normalize-css-color": "1.79.8",
|
|
34
|
+
"@tamagui/timer": "1.79.8",
|
|
35
|
+
"@tamagui/use-did-finish-ssr": "1.79.8",
|
|
36
|
+
"@tamagui/use-event": "1.79.8",
|
|
37
|
+
"@tamagui/use-force-update": "1.79.8"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
40
|
"react": "*"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@tamagui/build": "1.79.
|
|
43
|
+
"@tamagui/build": "1.79.8",
|
|
44
44
|
"@testing-library/react": "^14.0.0",
|
|
45
45
|
"csstype": "^3.0.10",
|
|
46
46
|
"react": "^18.2.0",
|
|
@@ -4,13 +4,10 @@ import { useTheme } from './hooks/useTheme'
|
|
|
4
4
|
|
|
5
5
|
/** internal: this is for tamagui babel plugin usage only */
|
|
6
6
|
|
|
7
|
-
export const internalWithTheme = (
|
|
8
|
-
Component: any,
|
|
9
|
-
styleProvider: any,
|
|
10
|
-
memoArgs: string[]
|
|
11
|
-
) => {
|
|
7
|
+
export const internalWithTheme = (Component: any, styleProvider: any) => {
|
|
12
8
|
return (props) => {
|
|
9
|
+
const { expressions, ...rest } = props
|
|
13
10
|
const theme = useTheme()
|
|
14
|
-
return <Component style={
|
|
11
|
+
return <Component style={styleProvider(theme, props.expressions)} {...rest} />
|
|
15
12
|
}
|
|
16
13
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scheme.d.ts","sourceRoot":"","sources":["../../src/helpers/scheme.ts"],"names":[],"mappings":""}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
/** internal: this is for tamagui babel plugin usage only */
|
|
3
|
-
export declare const internalWithTheme: (Component: any, styleProvider: any
|
|
3
|
+
export declare const internalWithTheme: (Component: any, styleProvider: any) => (props: any) => JSX.Element;
|
|
4
4
|
//# sourceMappingURL=internalWithTheme.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internalWithTheme.d.ts","sourceRoot":"","sources":["../src/internalWithTheme.tsx"],"names":[],"mappings":";AAIA,4DAA4D;AAE5D,eAAO,MAAM,iBAAiB,
|
|
1
|
+
{"version":3,"file":"internalWithTheme.d.ts","sourceRoot":"","sources":["../src/internalWithTheme.tsx"],"names":[],"mappings":";AAIA,4DAA4D;AAE5D,eAAO,MAAM,iBAAiB,cAAe,GAAG,iBAAiB,GAAG,gCAMnE,CAAA"}
|