@tamagui/web 1.129.9 → 1.129.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.
@@ -26,14 +26,16 @@ module.exports = __toCommonJS(wrapStyleTags_exports);
26
26
  var import_constants = require("@tamagui/constants"),
27
27
  import_helpers = require("@tamagui/helpers"),
28
28
  import_jsx_runtime = require("react/jsx-runtime");
29
- function getStyleTags(styles, content) {
30
- if (import_constants.IS_REACT_19 && styles.length) return styles.map(styleObject => {
31
- const identifier = styleObject[import_helpers.StyleObjectIdentifier];
32
- return /* @__PURE__ */(0, import_jsx_runtime.jsx)("style", {
33
- href: `t_${identifier}`,
34
- precedence: "default",
35
- children: styleObject[import_helpers.StyleObjectRules].join(`
29
+ function getStyleTags(styles) {
30
+ if (import_constants.IS_REACT_19 && styles.length) return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {
31
+ children: styles.map(styleObject => {
32
+ const identifier = styleObject[import_helpers.StyleObjectIdentifier];
33
+ return /* @__PURE__ */(0, import_jsx_runtime.jsx)("style", {
34
+ href: `t_${identifier}`,
35
+ precedence: "default",
36
+ children: styleObject[import_helpers.StyleObjectRules].join(`
36
37
  `)
37
- }, identifier);
38
+ }, identifier);
39
+ })
38
40
  });
39
41
  }
@@ -18,9 +18,9 @@ __export(wrapStyleTags_exports, {
18
18
  });
19
19
  module.exports = __toCommonJS(wrapStyleTags_exports);
20
20
  var import_constants = require("@tamagui/constants"), import_helpers = require("@tamagui/helpers"), import_jsx_runtime = require("react/jsx-runtime");
21
- function getStyleTags(styles, content) {
21
+ function getStyleTags(styles) {
22
22
  if (import_constants.IS_REACT_19 && styles.length)
23
- return styles.map((styleObject) => {
23
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: styles.map((styleObject) => {
24
24
  const identifier = styleObject[import_helpers.StyleObjectIdentifier];
25
25
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
26
26
  "style",
@@ -32,6 +32,6 @@ function getStyleTags(styles, content) {
32
32
  },
33
33
  identifier
34
34
  );
35
- });
35
+ }) });
36
36
  }
37
37
  //# sourceMappingURL=wrapStyleTags.js.map
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/helpers/wrapStyleTags.tsx"],
4
- "mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,uBAA4B,+BAC5B,iBAAwD,6BAW9C;AANH,SAAS,aAAa,QAAuB,SAAe;AACjE,MAAI,gCACE,OAAO;AACT,WAAO,OAAO,IAAI,CAAC,gBAAgB;AACjC,YAAM,aAAa,YAAY,oCAAqB;AACpD,aACE;AAAA,QAAC;AAAA;AAAA,UAGC,MAAM,KAAK,UAAU;AAAA,UAErB,YAAW;AAAA,UAEV,sBAAY,+BAAgB,EAAE,KAAK;AAAA,CAAI;AAAA;AAAA,QANnC;AAAA,MAOP;AAAA,IAEJ,CAAC;AAGP;",
4
+ "mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,uBAA4B,+BAC5B,iBAAwD,6BAShD;AAJD,SAAS,aAAa,QAAuB;AAClD,MAAI,gCACE,OAAO;AACT,WACE,2EACG,iBAAO,IAAI,CAAC,gBAAgB;AAC3B,YAAM,aAAa,YAAY,oCAAqB;AACpD,aACE;AAAA,QAAC;AAAA;AAAA,UAGC,MAAM,KAAK,UAAU;AAAA,UAErB,YAAW;AAAA,UAEV,sBAAY,+BAAgB,EAAE,KAAK;AAAA,CAAI;AAAA;AAAA,QANnC;AAAA,MAOP;AAAA,IAEJ,CAAC,GACH;AAIR;",
5
5
  "names": []
6
6
  }
@@ -19,7 +19,7 @@ __export(wrapStyleTags_exports, {
19
19
  });
20
20
  module.exports = __toCommonJS(wrapStyleTags_exports);
21
21
  var import_jsx_runtime = require("react/jsx-runtime"), import_constants = require("@tamagui/constants"), import_helpers = require("@tamagui/helpers");
22
- function getStyleTags(styles, content) {
22
+ function getStyleTags(styles) {
23
23
  import_constants.IS_REACT_19;
24
24
  }
25
25
  // Annotate the CommonJS export names for ESM import in node:
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/helpers/wrapStyleTags.tsx"],
4
- "mappings": ";;;;;;;;;;;;;;;;;;;;uDAAA,mBAA4B,+BAC5B,iBAAwD;AAKjD,SAASA,aAAaC,QAAuBC,SAAa;AAC3DC;AAkBN;",
5
- "names": ["getStyleTags", "styles", "content", "IS_REACT_19"]
4
+ "mappings": ";;;;;;;;;;;;;;;;;;;;uDAAA,mBAA4B,+BAC5B,iBAAwD;AAKjD,SAASA,aAAaC,QAAqB;AAC5CC;AAsBN;",
5
+ "names": ["getStyleTags", "styles", "IS_REACT_19"]
6
6
  }
@@ -1,9 +1,9 @@
1
1
  import { IS_REACT_19 } from "@tamagui/constants";
2
2
  import { StyleObjectIdentifier, StyleObjectRules } from "@tamagui/helpers";
3
- import { jsx } from "react/jsx-runtime";
4
- function getStyleTags(styles, content) {
3
+ import { Fragment, jsx } from "react/jsx-runtime";
4
+ function getStyleTags(styles) {
5
5
  if (IS_REACT_19 && styles.length)
6
- return styles.map((styleObject) => {
6
+ return /* @__PURE__ */ jsx(Fragment, { children: styles.map((styleObject) => {
7
7
  const identifier = styleObject[StyleObjectIdentifier];
8
8
  return /* @__PURE__ */ jsx(
9
9
  "style",
@@ -15,7 +15,7 @@ function getStyleTags(styles, content) {
15
15
  },
16
16
  identifier
17
17
  );
18
- });
18
+ }) });
19
19
  }
20
20
  export {
21
21
  getStyleTags
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/helpers/wrapStyleTags.tsx"],
4
- "mappings": "AAAA,SAAS,mBAAmB;AAC5B,SAAS,uBAAuB,wBAAwB;AAW9C;AANH,SAAS,aAAa,QAAuB,SAAe;AACjE,MAAI,eACE,OAAO;AACT,WAAO,OAAO,IAAI,CAAC,gBAAgB;AACjC,YAAM,aAAa,YAAY,qBAAqB;AACpD,aACE;AAAA,QAAC;AAAA;AAAA,UAGC,MAAM,KAAK,UAAU;AAAA,UAErB,YAAW;AAAA,UAEV,sBAAY,gBAAgB,EAAE,KAAK;AAAA,CAAI;AAAA;AAAA,QANnC;AAAA,MAOP;AAAA,IAEJ,CAAC;AAGP;",
4
+ "mappings": "AAAA,SAAS,mBAAmB;AAC5B,SAAS,uBAAuB,wBAAwB;AAShD,mBAIM,WAJN;AAJD,SAAS,aAAa,QAAuB;AAClD,MAAI,eACE,OAAO;AACT,WACE,gCACG,iBAAO,IAAI,CAAC,gBAAgB;AAC3B,YAAM,aAAa,YAAY,qBAAqB;AACpD,aACE;AAAA,QAAC;AAAA;AAAA,UAGC,MAAM,KAAK,UAAU;AAAA,UAErB,YAAW;AAAA,UAEV,sBAAY,gBAAgB,EAAE,KAAK;AAAA,CAAI;AAAA;AAAA,QANnC;AAAA,MAOP;AAAA,IAEJ,CAAC,GACH;AAIR;",
5
5
  "names": []
6
6
  }
@@ -1,15 +1,17 @@
1
1
  import { IS_REACT_19 } from "@tamagui/constants";
2
2
  import { StyleObjectIdentifier, StyleObjectRules } from "@tamagui/helpers";
3
- import { jsx } from "react/jsx-runtime";
4
- function getStyleTags(styles, content) {
5
- if (IS_REACT_19 && styles.length) return styles.map(styleObject => {
6
- const identifier = styleObject[StyleObjectIdentifier];
7
- return /* @__PURE__ */jsx("style", {
8
- href: `t_${identifier}`,
9
- precedence: "default",
10
- children: styleObject[StyleObjectRules].join(`
3
+ import { Fragment, jsx } from "react/jsx-runtime";
4
+ function getStyleTags(styles) {
5
+ if (IS_REACT_19 && styles.length) return /* @__PURE__ */jsx(Fragment, {
6
+ children: styles.map(styleObject => {
7
+ const identifier = styleObject[StyleObjectIdentifier];
8
+ return /* @__PURE__ */jsx("style", {
9
+ href: `t_${identifier}`,
10
+ precedence: "default",
11
+ children: styleObject[StyleObjectRules].join(`
11
12
  `)
12
- }, identifier);
13
+ }, identifier);
14
+ })
13
15
  });
14
16
  }
15
17
  export { getStyleTags };
@@ -1 +1 @@
1
- {"version":3,"names":["IS_REACT_19","StyleObjectIdentifier","StyleObjectRules","jsx","getStyleTags","styles","content","length","map","styleObject","identifier","href","precedence","children","join"],"sources":["../../../src/helpers/wrapStyleTags.tsx"],"sourcesContent":[null],"mappings":"AAAA,SAASA,WAAA,QAAmB;AAC5B,SAASC,qBAAA,EAAuBC,gBAAA,QAAwB;AAW9C,SAAAC,GAAA;AANH,SAASC,aAAaC,MAAA,EAAuBC,OAAA,EAAe;EACjE,IAAIN,WAAA,IACEK,MAAA,CAAOE,MAAA,EACT,OAAOF,MAAA,CAAOG,GAAA,CAAKC,WAAA,IAAgB;IACjC,MAAMC,UAAA,GAAaD,WAAA,CAAYR,qBAAqB;IACpD,OACE,eAAAE,GAAA,CAAC;MAGCQ,IAAA,EAAM,KAAKD,UAAU;MAErBE,UAAA,EAAW;MAEVC,QAAA,EAAAJ,WAAA,CAAYP,gBAAgB,EAAEY,IAAA,CAAK;AAAA,CAAI;IAAA,GANnCJ,UAOP;EAEJ,CAAC;AAGP","ignoreList":[]}
1
+ {"version":3,"names":["IS_REACT_19","StyleObjectIdentifier","StyleObjectRules","Fragment","jsx","getStyleTags","styles","length","children","map","styleObject","identifier","href","precedence","join"],"sources":["../../../src/helpers/wrapStyleTags.tsx"],"sourcesContent":[null],"mappings":"AAAA,SAASA,WAAA,QAAmB;AAC5B,SAASC,qBAAA,EAAuBC,gBAAA,QAAwB;AAShD,SAAAC,QAAA,EAIMC,GAAA,QAJN;AAJD,SAASC,aAAaC,MAAA,EAAuB;EAClD,IAAIN,WAAA,IACEM,MAAA,CAAOC,MAAA,EACT,OACE,eAAAH,GAAA,CAAAD,QAAA;IACGK,QAAA,EAAAF,MAAA,CAAOG,GAAA,CAAKC,WAAA,IAAgB;MAC3B,MAAMC,UAAA,GAAaD,WAAA,CAAYT,qBAAqB;MACpD,OACE,eAAAG,GAAA,CAAC;QAGCQ,IAAA,EAAM,KAAKD,UAAU;QAErBE,UAAA,EAAW;QAEVL,QAAA,EAAAE,WAAA,CAAYR,gBAAgB,EAAEY,IAAA,CAAK;AAAA,CAAI;MAAA,GANnCH,UAOP;IAEJ,CAAC;EAAA,CACH;AAIR","ignoreList":[]}
@@ -1,7 +1,7 @@
1
1
  import "react/jsx-runtime";
2
2
  import { IS_REACT_19 } from "@tamagui/constants";
3
3
  import "@tamagui/helpers";
4
- function getStyleTags(styles, content) {
4
+ function getStyleTags(styles) {
5
5
  IS_REACT_19;
6
6
  }
7
7
  export { getStyleTags };
@@ -1 +1 @@
1
- {"version":3,"names":["IS_REACT_19","getStyleTags","styles","content"],"sources":["../../../src/helpers/wrapStyleTags.tsx"],"sourcesContent":[null],"mappings":"AAAA,0BAAS;AACT,SAASA,WAAA,4BAAuB;AAWtB;AANH,SAASC,aAAaC,MAAA,EAAuBC,OAAA,EAAe;EACjEH,WAAI;AAEA;AACE,SACAC,YACE","ignoreList":[]}
1
+ {"version":3,"names":["IS_REACT_19","getStyleTags","styles"],"sources":["../../../src/helpers/wrapStyleTags.tsx"],"sourcesContent":[null],"mappings":"AAAA,0BAAS;AACT,SAASA,WAAA,4BAAuB;AASxB,yBAIM;AARP,SAASC,aAAaC,MAAA,EAAuB;EAClDF,WAAI;AAEA;AAGM,SACAC,YACE","ignoreList":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/web",
3
- "version": "1.129.9",
3
+ "version": "1.129.10",
4
4
  "source": "src/index.ts",
5
5
  "main": "dist/cjs",
6
6
  "module": "dist/esm",
@@ -27,16 +27,16 @@
27
27
  "reset.css"
28
28
  ],
29
29
  "dependencies": {
30
- "@tamagui/compose-refs": "1.129.9",
31
- "@tamagui/constants": "1.129.9",
32
- "@tamagui/helpers": "1.129.9",
33
- "@tamagui/is-equal-shallow": "1.129.9",
34
- "@tamagui/normalize-css-color": "1.129.9",
35
- "@tamagui/timer": "1.129.9",
36
- "@tamagui/types": "1.129.9",
37
- "@tamagui/use-did-finish-ssr": "1.129.9",
38
- "@tamagui/use-event": "1.129.9",
39
- "@tamagui/use-force-update": "1.129.9"
30
+ "@tamagui/compose-refs": "1.129.10",
31
+ "@tamagui/constants": "1.129.10",
32
+ "@tamagui/helpers": "1.129.10",
33
+ "@tamagui/is-equal-shallow": "1.129.10",
34
+ "@tamagui/normalize-css-color": "1.129.10",
35
+ "@tamagui/timer": "1.129.10",
36
+ "@tamagui/types": "1.129.10",
37
+ "@tamagui/use-did-finish-ssr": "1.129.10",
38
+ "@tamagui/use-event": "1.129.10",
39
+ "@tamagui/use-force-update": "1.129.10"
40
40
  },
41
41
  "peerDependencies": {
42
42
  "react": "*",
@@ -44,7 +44,7 @@
44
44
  "react-native": "*"
45
45
  },
46
46
  "devDependencies": {
47
- "@tamagui/build": "1.129.9",
47
+ "@tamagui/build": "1.129.10",
48
48
  "@testing-library/react": "^16.1.0",
49
49
  "csstype": "^3.0.10",
50
50
  "react": "*",
@@ -4,23 +4,27 @@ import type { StyleObject } from '../types'
4
4
 
5
5
  // turns out this is pretty slow, creating a bunch of extra tags...
6
6
 
7
- export function getStyleTags(styles: StyleObject[], content?: any) {
7
+ export function getStyleTags(styles: StyleObject[]) {
8
8
  if (IS_REACT_19 && process.env.TAMAGUI_TARGET !== 'native') {
9
9
  if (styles.length) {
10
- return styles.map((styleObject) => {
11
- const identifier = styleObject[StyleObjectIdentifier]
12
- return (
13
- <style
14
- key={identifier}
15
- // @ts-ignore
16
- href={`t_${identifier}`}
17
- // @ts-ignore
18
- precedence="default"
19
- >
20
- {styleObject[StyleObjectRules].join('\n')}
21
- </style>
22
- )
23
- })
10
+ return (
11
+ <>
12
+ {styles.map((styleObject) => {
13
+ const identifier = styleObject[StyleObjectIdentifier]
14
+ return (
15
+ <style
16
+ key={identifier}
17
+ // @ts-ignore
18
+ href={`t_${identifier}`}
19
+ // @ts-ignore
20
+ precedence="default"
21
+ >
22
+ {styleObject[StyleObjectRules].join('\n')}
23
+ </style>
24
+ )
25
+ })}
26
+ </>
27
+ )
24
28
  }
25
29
  }
26
30
  }