@tamagui/static 1.101.0 → 1.101.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. package/dist/cjs/extractor/createExtractor.js +21 -12
  2. package/dist/cjs/extractor/createExtractor.js.map +1 -1
  3. package/dist/cjs/extractor/createExtractor.native.js +18 -12
  4. package/dist/cjs/extractor/createExtractor.native.js.map +2 -2
  5. package/dist/cjs/extractor/extractMediaStyle.js +2 -2
  6. package/dist/cjs/extractor/extractMediaStyle.js.map +1 -1
  7. package/dist/cjs/extractor/extractMediaStyle.native.js +2 -2
  8. package/dist/cjs/extractor/extractMediaStyle.native.js.map +2 -2
  9. package/dist/cjs/extractor/extractToClassNames.js +17 -15
  10. package/dist/cjs/extractor/extractToClassNames.js.map +1 -1
  11. package/dist/cjs/extractor/extractToClassNames.native.js +12 -14
  12. package/dist/cjs/extractor/extractToClassNames.native.js.map +2 -2
  13. package/dist/esm/extractor/createExtractor.js +24 -11
  14. package/dist/esm/extractor/createExtractor.js.map +1 -1
  15. package/dist/esm/extractor/createExtractor.mjs +16 -12
  16. package/dist/esm/extractor/createExtractor.native.js +18 -11
  17. package/dist/esm/extractor/createExtractor.native.js.map +2 -2
  18. package/dist/esm/extractor/extractMediaStyle.js +2 -2
  19. package/dist/esm/extractor/extractMediaStyle.js.map +1 -1
  20. package/dist/esm/extractor/extractMediaStyle.mjs +2 -2
  21. package/dist/esm/extractor/extractMediaStyle.native.js +2 -2
  22. package/dist/esm/extractor/extractMediaStyle.native.js.map +2 -2
  23. package/dist/esm/extractor/extractToClassNames.js +16 -15
  24. package/dist/esm/extractor/extractToClassNames.js.map +1 -1
  25. package/dist/esm/extractor/extractToClassNames.mjs +14 -16
  26. package/dist/esm/extractor/extractToClassNames.native.js +11 -14
  27. package/dist/esm/extractor/extractToClassNames.native.js.map +2 -2
  28. package/package.json +15 -15
  29. package/src/extractor/createExtractor.ts +23 -22
  30. package/src/extractor/extractMediaStyle.ts +2 -2
  31. package/src/extractor/extractToClassNames.ts +30 -16
  32. package/types/extractor/babelParse.d.ts +0 -1
  33. package/types/extractor/babelParse.d.ts.map +1 -1
  34. package/types/extractor/createEvaluator.d.ts.map +1 -1
  35. package/types/extractor/createExtractor.d.ts.map +1 -1
  36. package/types/extractor/extractToClassNames.d.ts +0 -1
  37. package/types/extractor/extractToClassNames.d.ts.map +1 -1
  38. package/types/extractor/getStaticBindingsForScope.d.ts.map +1 -1
  39. package/types/extractor/loadTamagui.d.ts.map +1 -1
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/extractor/extractMediaStyle.ts"],
4
- "mappings": "AACA,YAAY,OAAO;AAEnB,YAAY,UAAU;AAGtB,SAAS,0BAA0B;AAEnC,SAAS,WAAW,qBAAqB;AAElC,SAAS,kBACd,OACA,SACA,SACA,eACA,YACA,aAAa,GACb,mBAAwC,IACxC;AACA,QAAM,EAAE,iBAAiB,oBAAoB,IAAI,mBAAmB,KAAK,GACnE,KAAK,qBAAqB,OAAO,SAAS,SAAS,UAAU;AACnE,MAAI,CAAC;AACH,WAAO;AAET,QAAM,EAAE,IAAI,IAAI;AAEhB,MAAI,CADO,cAAc,MAAM,GAAG;AAEhC,mBAAQ,MAAM,gBAAgB,GAAG,gBAAgB,OAAO,KAAK,cAAc,KAAK,CAAC,EAAE,GAC5E;AAET,QAAM,cAAc,CAAC,UAA4B,SAAS,OACjD,WAAW,EAAE,UAAU,OAAO,IAAI,MAErC,YAAY;AAAA,IAChB,YAAY,QAAQ,YAAY,EAAK;AAAA,IACrC,YAAY,QAAQ,WAAW,EAAI;AAAA,EACrC,EAAE,OAAO,SAAS;AAClB,MAAI,oBAAoB,CAAC,UAAU;AACjC,mBAAQ,KAAK,2BAA2B,GACjC;AAIT,QAAM,sBADY,OAAO,KAAK,cAAc,KAAK,EACX,OAAO,CAAC,KAAK,KAAK,OACtD,IAAI,GAAG,IAAI,IAAI,MAAM,aAAa,CAAC,EAAE,KAAK,OAAO,EAAE,KAAK,EAAE,GACnD,MACN,CAAC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I,GAAG,MAAM;AAExD,WADI,CAAC,EAAE,qBAAqB,IAAI,KAC5B,CAAC,KAAK,QAAQ,CAAC,iBAAiB,OAAO,SAAS,KAAK,MAAM,UAAU,IAChE,KACF,EAAE,KAAK,aAAa,IAAI;AAAA,EACjC;AACA,SAAO;AACT;AAEO,SAAS,iBACd,OACA,SACA,MACA,YACA;AAIA,MAHI,CAAC,QAAQ,CAAC,EAAE,iBAAiB,IAAI,KACjC,CAAC,EAAE,aAAa,KAAK,MAAM,KAE3B,KAAK,OAAO,SAAS,WAAY,QAAO;AAE5C,QAAM,eADW,QAAQ,MAAM,eAAe,EAChB;AAC9B,MAAI,CAAC,aAAc,QAAO;AAC1B,QAAM,iBAAiB,aAAa,KAAK;AAEzC,SADI,GAAC,EAAE,oBAAoB,cAAc,KACrC,CAAC,cAAc,OAAO,UAAU;AAItC;",
5
5
  "names": []
6
6
  }
@@ -27,13 +27,13 @@ function extractMediaStyle(props, ternary, jsxPath, tamaguiConfig, sourcePath, i
27
27
  } of styleOpts) {
28
28
  const singleMediaStyles = getStylesAtomic(styleObj).map(style => {
29
29
  const mediaStyle = core.createMediaStyle(style, key, tamaguiConfig.media, !0, negate),
30
- className = `.${mediaStyle.identifier}`;
30
+ className = `.${mediaStyle[core.StyleObjectIdentifier]}`;
31
31
  return {
32
32
  ...mediaStyle,
33
33
  className
34
34
  };
35
35
  });
36
- shouldPrintDebug === "verbose" && console.info(" media styles:", importance, styleObj, singleMediaStyles.map(x => x.identifier).join(", ")), mediaStyles = [...mediaStyles, ...singleMediaStyles];
36
+ shouldPrintDebug === "verbose" && console.info(" media styles:", importance, styleObj, singleMediaStyles.map(x => x[core.StyleObjectIdentifier]).join(", ")), mediaStyles = [...mediaStyles, ...singleMediaStyles];
37
37
  }
38
38
  return ternary.remove(), {
39
39
  mediaStyles,
@@ -86,13 +86,13 @@ function extractMediaStyle(props, ternary, jsxPath, tamaguiConfig, sourcePath) {
86
86
  try {
87
87
  for (var _loop = function() {
88
88
  var _step_value = _step.value, styleObj = _step_value.styleObj, negate = _step_value.negate, styles = getStylesAtomic(styleObj), singleMediaStyles = styles.map(function(style) {
89
- var mediaStyle = core.createMediaStyle(style, key, tamaguiConfig.media, !0, negate), className = ".".concat(mediaStyle.identifier);
89
+ var mediaStyle = core.createMediaStyle(style, key, tamaguiConfig.media, !0, negate), className = ".".concat(mediaStyle[core.StyleObjectIdentifier]);
90
90
  return _object_spread_props(_object_spread({}, mediaStyle), {
91
91
  className
92
92
  });
93
93
  });
94
94
  shouldPrintDebug === "verbose" && console.info(" media styles:", importance, styleObj, singleMediaStyles.map(function(x) {
95
- return x.identifier;
95
+ return x[core.StyleObjectIdentifier];
96
96
  }).join(", ")), mediaStyles = _to_consumable_array(mediaStyles).concat(_to_consumable_array(singleMediaStyles));
97
97
  }, _iterator = styleOpts[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
98
98
  } catch (err) {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/extractor/Users/n8/tamagui/packages/static/src/extractor/extractMediaStyle.ts"],
4
- "mappings": "AACA,YAAYA,OAAO;AAEnB,YAAYC,UAAU;AAGtB,SAASC,0BAA0B;AAEnC,SAASC,WAAWC,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAElC,SAASC,kBACdC,OACAC,SACAC,SACAC,eACAC,YAAkB;MAClBC,aAAAA,UAAAA,SAAAA,KAAAA,UAAAA,CAAAA,MAAAA,SAAAA,UAAAA,CAAAA,IAAa,GACbC,mBAAAA,UAAAA,SAAAA,KAAAA,UAAAA,CAAAA,MAAAA,SAAAA,UAAAA,CAAAA,IAAwC,IAESV,sBAAAA,mBAAmB,KAAA,GAA5DW,kBAAyCX,oBAAzCW,iBAAiBC,sBAAwBZ,oBAAxBY,qBACnBC,KAAKC,qBAAqBV,OAAOC,SAASC,S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SADI,GAACpF,EAAEqF,oBAAoBF,cAAAA,KACvB,CAAC/E,cAAcE,OAAOI,UAAAA;AAI5B;",
5
- "names": ["t", "core", "requireTamaguiCore", "isPresent", "isValidImport", "extractMediaStyle", "props", "ternary", "jsxPath", "tamaguiConfig", "sourcePath", "importance", "shouldPrintDebug", "getStylesAtomic", "mediaObjectToString", "mt", "getMediaQueryTernary", "key", "mq", "media", "console", "error", "Object", "keys", "getStyleObj", "styleObj", "negate", "styleOpts", "consequent", "alternate", "filter", "length", "info", "mediaKeys", "mediaKeyPrecendence", "reduce", "acc", "cur", "i", "Array", "fill", "join", "mediaStyles", "styles", "singleMediaStyles", "map", "style", "mediaStyle", "createMediaStyle", "className", "identifier", "x", "remove", "ternaryWithoutMedia", "isLogicalExpression", "test", "operator", "mediaLeft", "getMediaInfoFromExpression", "left", "inlineMediaQuery", "right", "result", "bindingName", "isMemberExpression", "isIdentifier", "object", "property", "binding", "name", "bindings", "scope", "getAllBindings", "bindingNode", "path", "node", "isVariableDeclarator", "init", "isValidMediaCall", "getBinding", "isCallExpression", "callee", "mediaBinding", "useMediaImport", "parent", "isImportDeclaration"]
4
+ "mappings": "AACA,YAAYA,OAAO;AAEnB,YAAYC,UAAU;AAGtB,SAASC,0BAA0B;AAEnC,SAASC,WAAWC,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAElC,SAASC,kBACdC,OACAC,SACAC,SACAC,eACAC,YAAkB;MAClBC,aAAAA,UAAAA,SAAAA,KAAAA,UAAAA,CAAAA,MAAAA,SAAAA,UAAAA,CAAAA,IAAa,GACbC,mBAAAA,UAAAA,SAAAA,KAAAA,UAAAA,CAAAA,MAAAA,SAAAA,UAAAA,CAAAA,IAAwC,IAESV,sBAAAA,mBAAmB,KAAA,GAA5DW,kBAAyCX,oBAAzCW,iBAAiBC,sBAAwBZ,oBAAxBY,qBACnBC,KAAKC,qBAAqBV,OAAOC,SAASC,SAASE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,iBAAiBD,aAAaR,KAAKU;AAEzC,SADI,GAACpF,EAAEqF,oBAAoBF,cAAAA,KACvB,CAAC/E,cAAcE,OAAOI,UAAAA;AAI5B;",
5
+ "names": ["t", "core", "requireTamaguiCore", "isPresent", "isValidImport", "extractMediaStyle", "props", "ternary", "jsxPath", "tamaguiConfig", "sourcePath", "importance", "shouldPrintDebug", "getStylesAtomic", "mediaObjectToString", "mt", "getMediaQueryTernary", "key", "mq", "media", "console", "error", "Object", "keys", "getStyleObj", "styleObj", "negate", "styleOpts", "consequent", "alternate", "filter", "length", "info", "mediaKeys", "mediaKeyPrecendence", "reduce", "acc", "cur", "i", "Array", "fill", "join", "mediaStyles", "styles", "singleMediaStyles", "map", "style", "mediaStyle", "createMediaStyle", "className", "StyleObjectIdentifier", "x", "remove", "ternaryWithoutMedia", "isLogicalExpression", "test", "operator", "mediaLeft", "getMediaInfoFromExpression", "left", "inlineMediaQuery", "right", "result", "bindingName", "isMemberExpression", "isIdentifier", "object", "property", "binding", "name", "bindings", "scope", "getAllBindings", "bindingNode", "path", "node", "isVariableDeclarator", "init", "isValidMediaCall", "getBinding", "isCallExpression", "callee", "mediaBinding", "useMediaImport", "parent", "isImportDeclaration"]
6
6
  }
@@ -10,7 +10,6 @@ import { ensureImportingConcat } from "./ensureImportingConcat";
10
10
  import { isSimpleSpread } from "./extractHelpers";
11
11
  import { extractMediaStyle } from "./extractMediaStyle";
12
12
  import { hoistClassNames } from "./hoistClassNames";
13
- import { logLines } from "./logLines";
14
13
  import { getFontFamilyClassNameFromProps } from "./propsToFontFamilyCache";
15
14
  import { timer } from "./timer";
16
15
  import { createLogger } from "./createLogger";
@@ -104,7 +103,7 @@ async function extractToClassNames({
104
103
  case "style": {
105
104
  if (isFlattened) {
106
105
  const styles2 = addStyles(attr.value), newFontFamily = getFontFamilyClassNameFromProps(attr.value) || "", newClassNames = helpers.concatClassName(
107
- styles2.map((x) => x.identifier).join(" ") + newFontFamily
106
+ styles2.map((x) => x[helpers.StyleObjectIdentifier]).join(" ") + newFontFamily
108
107
  ), existing = finalClassNames.find(
109
108
  (x) => x.type == "StringLiteral"
110
109
  );
@@ -117,9 +116,12 @@ async function extractToClassNames({
117
116
  const styles2 = getStylesAtomic(attr.value);
118
117
  finalStyles = [...finalStyles, ...styles2];
119
118
  for (const style of styles2) {
120
- const prop = style.pseudo ? `${style.property}-${style.pseudo}` : style.property;
119
+ const prop = style[helpers.StyleObjectPseudo] ? `${style[helpers.StyleObjectProperty]}-${style[helpers.StyleObjectPseudo]}` : style[helpers.StyleObjectProperty];
121
120
  finalAttrs.push(
122
- t.jsxAttribute(t.jsxIdentifier(prop), t.stringLiteral(style.identifier))
121
+ t.jsxAttribute(
122
+ t.jsxIdentifier(prop),
123
+ t.stringLiteral(style[helpers.StyleObjectIdentifier])
124
+ )
123
125
  );
124
126
  }
125
127
  }
@@ -162,9 +164,9 @@ async function extractToClassNames({
162
164
  if (shouldPrintDebug && mediaExtraction && console.info(
163
165
  "ternary (mediaStyles)",
164
166
  mediaExtraction.ternaryWithoutMedia?.inlineMediaQuery ?? "",
165
- mediaExtraction.mediaStyles.map((x) => x.identifier).join(".")
167
+ mediaExtraction.mediaStyles.map((x) => x[helpers.StyleObjectIdentifier]).join(".")
166
168
  ), !mediaExtraction) {
167
- addTernaryStyle(
169
+ shouldPrintDebug && mediaExtraction && console.info("add ternary"), addTernaryStyle(
168
170
  attr.value,
169
171
  addStyles(attr.value.consequent),
170
172
  addStyles(attr.value.alternate)
@@ -177,13 +179,15 @@ async function extractToClassNames({
177
179
  []
178
180
  ) : finalClassNames = [
179
181
  ...finalClassNames,
180
- ...mediaExtraction.mediaStyles.map((x) => t.stringLiteral(x.identifier))
182
+ ...mediaExtraction.mediaStyles.map(
183
+ (x) => t.stringLiteral(x[helpers.StyleObjectIdentifier])
184
+ )
181
185
  ];
182
186
  break;
183
187
  }
184
188
  }
185
189
  function addTernaryStyle(ternary, a, b) {
186
- const cCN = a.map((x) => x.identifier).join(" "), aCN = b.map((x) => x.identifier).join(" ");
190
+ const cCN = a.map((x) => x[helpers.StyleObjectIdentifier]).join(" "), aCN = b.map((x) => x[helpers.StyleObjectIdentifier]).join(" ");
187
191
  a.length && b.length ? finalClassNames.push(
188
192
  t.conditionalExpression(
189
193
  ternary.test,
@@ -198,11 +202,8 @@ async function extractToClassNames({
198
202
  )
199
203
  );
200
204
  }
201
- if (shouldPrintDebug && console.info(
202
- ` finalClassNames
203
- `,
204
- logLines(finalClassNames.map((x) => x.value).join(" "))
205
- ), node.attributes = finalAttrs, finalClassNames.length) {
205
+ if (shouldPrintDebug === "verbose" && console.info(` finalClassNames AST
206
+ `, JSON.stringify(finalClassNames, null, 2)), node.attributes = finalAttrs, finalClassNames.length) {
206
207
  const extraClassNames = (() => {
207
208
  let value = "";
208
209
  return isFlattened && (process.env.TAMAGUI_DEBUG_OPTIMIZATIONS && (value += "is_tamagui_flattened"), staticConfig.componentName && (value += ` is_${staticConfig.componentName}`)), value;
@@ -226,8 +227,8 @@ async function extractToClassNames({
226
227
  lineNumbers,
227
228
  originalNodeName
228
229
  );
229
- for (const { identifier, rules } of finalStyles) {
230
- const className = `.${identifier}`;
230
+ for (const styleObject of finalStyles) {
231
+ const identifier = styleObject[helpers.StyleObjectIdentifier], rules = styleObject[helpers.StyleObjectRules], className = `.${identifier}`;
231
232
  if (cssMap.has(className)) {
232
233
  if (comment) {
233
234
  const val = cssMap.get(className);
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/extractor/extractToClassNames.ts"],
4
- "mappings": "AAAA,YAAY,UAAU;AACtB,YAAY,UAAU;AAEtB,OAAO,cAAc;AACrB,YAAY,OAAO;AACnB,YAAY,aAAa;AAGzB,SAAS,0BAA0B;AAEnC,SAAS,kBAAkB;AAC3B,SAAS,sBAAsB;AAE/B,SAAS,6BAA6B;AACtC,SAAS,sBAAsB;AAC/B,SAAS,yBAAyB;AAClC,SAAS,uBAAuB;AAChC,SAAS,gBAAgB;AAC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U;AAAA;AAAA,MAEV,aAAa;AAAA,MACb,gBAAgB;AAAA,MAChB,YAAY;AAAA,IACd;AAAA,IACA;AAAA,EACF;AAEA,SAAI,qBACF,QAAQ;AAAA,IACN;AAAA;AAAA;AAAA;AAAA,IACA,OAAO,KACJ,MAAM;AAAA,CAAI,EACV,OAAO,CAAC,MAAM,CAAC,EAAE,WAAW,IAAI,CAAC,EACjC,KAAK;AAAA,CAAI;AAAA,EACd,GACA,QAAQ,KAAK;AAAA;AAAA;AAAA,GAA0C,MAAM,IAG/D,SAAS,GAAG,GAEL;AAAA,IACL;AAAA,IACA;AAAA,IACA,IAAI,OAAO;AAAA,IACX,KAAK,OAAO;AAAA,EACd;AACF;",
5
5
  "names": ["res", "styles"]
6
6
  }
@@ -10,7 +10,6 @@ import { ensureImportingConcat } from "./ensureImportingConcat.mjs";
10
10
  import { isSimpleSpread } from "./extractHelpers.mjs";
11
11
  import { extractMediaStyle } from "./extractMediaStyle.mjs";
12
12
  import { hoistClassNames } from "./hoistClassNames.mjs";
13
- import { logLines } from "./logLines.mjs";
14
13
  import { getFontFamilyClassNameFromProps } from "./propsToFontFamilyCache.mjs";
15
14
  import { timer } from "./timer.mjs";
16
15
  import { createLogger } from "./createLogger.mjs";
@@ -109,7 +108,7 @@ async function extractToClassNames({
109
108
  if (isFlattened) {
110
109
  const styles2 = addStyles(attr.value),
111
110
  newFontFamily = getFontFamilyClassNameFromProps(attr.value) || "",
112
- newClassNames = helpers.concatClassName(styles2.map(x => x.identifier).join(" ") + newFontFamily),
111
+ newClassNames = helpers.concatClassName(styles2.map(x => x[helpers.StyleObjectIdentifier]).join(" ") + newFontFamily),
113
112
  existing = finalClassNames.find(x => x.type == "StringLiteral");
114
113
  if (existing) {
115
114
  let previous = existing.value;
@@ -119,8 +118,8 @@ async function extractToClassNames({
119
118
  const styles2 = getStylesAtomic(attr.value);
120
119
  finalStyles = [...finalStyles, ...styles2];
121
120
  for (const style of styles2) {
122
- const prop = style.pseudo ? `${style.property}-${style.pseudo}` : style.property;
123
- finalAttrs.push(t.jsxAttribute(t.jsxIdentifier(prop), t.stringLiteral(style.identifier)));
121
+ const prop = style[helpers.StyleObjectPseudo] ? `${style[helpers.StyleObjectProperty]}-${style[helpers.StyleObjectPseudo]}` : style[helpers.StyleObjectProperty];
122
+ finalAttrs.push(t.jsxAttribute(t.jsxIdentifier(prop), t.stringLiteral(style[helpers.StyleObjectIdentifier])));
124
123
  }
125
124
  }
126
125
  break;
@@ -144,21 +143,21 @@ async function extractToClassNames({
144
143
  case "ternary":
145
144
  {
146
145
  const mediaExtraction = extractMediaStyle(parserProps, attr.value, jsxPath, extractor.getTamagui(), sourcePath || "", lastMediaImportance, shouldPrintDebug);
147
- if (shouldPrintDebug && mediaExtraction && console.info("ternary (mediaStyles)", mediaExtraction.ternaryWithoutMedia?.inlineMediaQuery ?? "", mediaExtraction.mediaStyles.map(x => x.identifier).join(".")), !mediaExtraction) {
148
- addTernaryStyle(attr.value, addStyles(attr.value.consequent), addStyles(attr.value.alternate));
146
+ if (shouldPrintDebug && mediaExtraction && console.info("ternary (mediaStyles)", mediaExtraction.ternaryWithoutMedia?.inlineMediaQuery ?? "", mediaExtraction.mediaStyles.map(x => x[helpers.StyleObjectIdentifier]).join(".")), !mediaExtraction) {
147
+ shouldPrintDebug && mediaExtraction && console.info("add ternary"), addTernaryStyle(attr.value, addStyles(attr.value.consequent), addStyles(attr.value.alternate));
149
148
  continue;
150
149
  }
151
- lastMediaImportance++, mediaExtraction.mediaStyles && (finalStyles = [...finalStyles, ...mediaExtraction.mediaStyles]), mediaExtraction.ternaryWithoutMedia ? addTernaryStyle(mediaExtraction.ternaryWithoutMedia, mediaExtraction.mediaStyles, []) : finalClassNames = [...finalClassNames, ...mediaExtraction.mediaStyles.map(x => t.stringLiteral(x.identifier))];
150
+ lastMediaImportance++, mediaExtraction.mediaStyles && (finalStyles = [...finalStyles, ...mediaExtraction.mediaStyles]), mediaExtraction.ternaryWithoutMedia ? addTernaryStyle(mediaExtraction.ternaryWithoutMedia, mediaExtraction.mediaStyles, []) : finalClassNames = [...finalClassNames, ...mediaExtraction.mediaStyles.map(x => t.stringLiteral(x[helpers.StyleObjectIdentifier]))];
152
151
  break;
153
152
  }
154
153
  }
155
154
  function addTernaryStyle(ternary, a, b) {
156
- const cCN = a.map(x => x.identifier).join(" "),
157
- aCN = b.map(x => x.identifier).join(" ");
155
+ const cCN = a.map(x => x[helpers.StyleObjectIdentifier]).join(" "),
156
+ aCN = b.map(x => x[helpers.StyleObjectIdentifier]).join(" ");
158
157
  a.length && b.length ? finalClassNames.push(t.conditionalExpression(ternary.test, t.stringLiteral(cCN), t.stringLiteral(aCN))) : finalClassNames.push(t.conditionalExpression(ternary.test, t.stringLiteral(" " + cCN), t.stringLiteral(" " + aCN)));
159
158
  }
160
- if (shouldPrintDebug && console.info(` finalClassNames
161
- `, logLines(finalClassNames.map(x => x.value).join(" "))), node.attributes = finalAttrs, finalClassNames.length) {
159
+ if (shouldPrintDebug === "verbose" && console.info(` finalClassNames AST
160
+ `, JSON.stringify(finalClassNames, null, 2)), node.attributes = finalAttrs, finalClassNames.length) {
162
161
  const extraClassNames = (() => {
163
162
  let value = "";
164
163
  return isFlattened && (process.env.TAMAGUI_DEBUG_OPTIMIZATIONS && (value += "is_tamagui_flattened"), staticConfig.componentName && (value += ` is_${staticConfig.componentName}`)), value;
@@ -174,11 +173,10 @@ async function extractToClassNames({
174
173
  node.attributes.push(t.jsxAttribute(t.jsxIdentifier("className"), t.jsxExpressionContainer(expr)));
175
174
  }
176
175
  const comment = util.format("/* %s:%s (%s) */", filePath, lineNumbers, originalNodeName);
177
- for (const {
178
- identifier,
179
- rules
180
- } of finalStyles) {
181
- const className = `.${identifier}`;
176
+ for (const styleObject of finalStyles) {
177
+ const identifier = styleObject[helpers.StyleObjectIdentifier],
178
+ rules = styleObject[helpers.StyleObjectRules],
179
+ className = `.${identifier}`;
182
180
  if (cssMap.has(className)) {
183
181
  if (comment) {
184
182
  const val = cssMap.get(className);
@@ -10,7 +10,6 @@ import { ensureImportingConcat } from "./ensureImportingConcat";
10
10
  import { isSimpleSpread } from "./extractHelpers";
11
11
  import { extractMediaStyle } from "./extractMediaStyle";
12
12
  import { hoistClassNames } from "./hoistClassNames";
13
- import { logLines } from "./logLines";
14
13
  import { getFontFamilyClassNameFromProps } from "./propsToFontFamilyCache";
15
14
  import { timer } from "./timer";
16
15
  import { createLogger } from "./createLogger";
@@ -247,9 +246,9 @@ function _extractToClassNames() {
247
246
  onExtractTag: function(param2) {
248
247
  var parserProps = param2.parserProps, attrs = param2.attrs, node = param2.node, attemptEval = param2.attemptEval, jsxPath = param2.jsxPath, originalNodeName = param2.originalNodeName, filePath = param2.filePath, lineNumbers = param2.lineNumbers, programPath = param2.programPath, isFlattened = param2.isFlattened, staticConfig = param2.staticConfig, addTernaryStyle = function(ternary, a, b) {
249
248
  var cCN = a.map(function(x) {
250
- return x.identifier;
249
+ return x[helpers.StyleObjectIdentifier];
251
250
  }).join(" "), aCN = b.map(function(x) {
252
- return x.identifier;
251
+ return x[helpers.StyleObjectIdentifier];
253
252
  }).join(" ");
254
253
  a.length && b.length ? finalClassNames.push(t.conditionalExpression(ternary.test, t.stringLiteral(cCN), t.stringLiteral(aCN))) : finalClassNames.push(t.conditionalExpression(ternary.test, t.stringLiteral(" " + cCN), t.stringLiteral(" " + aCN)));
255
254
  };
@@ -299,7 +298,7 @@ function _extractToClassNames() {
299
298
  case "style": {
300
299
  if (isFlattened) {
301
300
  var styles1 = addStyles(attr1.value), newFontFamily = getFontFamilyClassNameFromProps(attr1.value) || "", newClassNames = helpers.concatClassName(styles1.map(function(x) {
302
- return x.identifier;
301
+ return x[helpers.StyleObjectIdentifier];
303
302
  }).join(" ") + newFontFamily), existing = finalClassNames.find(function(x) {
304
303
  return x.type == "StringLiteral";
305
304
  });
@@ -316,8 +315,8 @@ function _extractToClassNames() {
316
315
  var _iteratorNormalCompletion2 = !0, _didIteratorError2 = !1, _iteratorError2 = void 0;
317
316
  try {
318
317
  for (var _iterator2 = styles2[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = !0) {
319
- var style = _step2.value, prop = style.pseudo ? "".concat(style.property, "-").concat(style.pseudo) : style.property;
320
- finalAttrs.push(t.jsxAttribute(t.jsxIdentifier(prop), t.stringLiteral(style.identifier)));
318
+ var style = _step2.value, prop = style[helpers.StyleObjectPseudo] ? "".concat(style[helpers.StyleObjectProperty], "-").concat(style[helpers.StyleObjectPseudo]) : style[helpers.StyleObjectProperty];
319
+ finalAttrs.push(t.jsxAttribute(t.jsxIdentifier(prop), t.stringLiteral(style[helpers.StyleObjectIdentifier])));
321
320
  }
322
321
  } catch (err) {
323
322
  _didIteratorError2 = !0, _iteratorError2 = err;
@@ -355,15 +354,15 @@ function _extractToClassNames() {
355
354
  if (shouldPrintDebug && mediaExtraction) {
356
355
  var _mediaExtraction_ternaryWithoutMedia, _mediaExtraction_ternaryWithoutMedia_inlineMediaQuery;
357
356
  console.info("ternary (mediaStyles)", (_mediaExtraction_ternaryWithoutMedia_inlineMediaQuery = (_mediaExtraction_ternaryWithoutMedia = mediaExtraction.ternaryWithoutMedia) === null || _mediaExtraction_ternaryWithoutMedia === void 0 ? void 0 : _mediaExtraction_ternaryWithoutMedia.inlineMediaQuery) !== null && _mediaExtraction_ternaryWithoutMedia_inlineMediaQuery !== void 0 ? _mediaExtraction_ternaryWithoutMedia_inlineMediaQuery : "", mediaExtraction.mediaStyles.map(function(x) {
358
- return x.identifier;
357
+ return x[helpers.StyleObjectIdentifier];
359
358
  }).join("."));
360
359
  }
361
360
  if (!mediaExtraction) {
362
- addTernaryStyle(attr1.value, addStyles(attr1.value.consequent), addStyles(attr1.value.alternate));
361
+ shouldPrintDebug && mediaExtraction && console.info("add ternary"), addTernaryStyle(attr1.value, addStyles(attr1.value.consequent), addStyles(attr1.value.alternate));
363
362
  continue;
364
363
  }
365
364
  lastMediaImportance++, mediaExtraction.mediaStyles && (finalStyles = _to_consumable_array(finalStyles).concat(_to_consumable_array(mediaExtraction.mediaStyles))), mediaExtraction.ternaryWithoutMedia ? addTernaryStyle(mediaExtraction.ternaryWithoutMedia, mediaExtraction.mediaStyles, []) : finalClassNames = _to_consumable_array(finalClassNames).concat(_to_consumable_array(mediaExtraction.mediaStyles.map(function(x) {
366
- return t.stringLiteral(x.identifier);
365
+ return t.stringLiteral(x[helpers.StyleObjectIdentifier]);
367
366
  })));
368
367
  break;
369
368
  }
@@ -379,10 +378,8 @@ function _extractToClassNames() {
379
378
  throw _iteratorError1;
380
379
  }
381
380
  }
382
- if (shouldPrintDebug && console.info(` finalClassNames
383
- `, logLines(finalClassNames.map(function(x) {
384
- return x.value;
385
- }).join(" "))), node.attributes = finalAttrs, finalClassNames.length) {
381
+ if (shouldPrintDebug === "verbose" && console.info(` finalClassNames AST
382
+ `, JSON.stringify(finalClassNames, null, 2)), node.attributes = finalAttrs, finalClassNames.length) {
386
383
  var extraClassNames = function() {
387
384
  var value2 = "";
388
385
  return isFlattened && (process.env.TAMAGUI_DEBUG_OPTIMIZATIONS && (value2 += "is_tamagui_flattened"), staticConfig.componentName && (value2 += " is_".concat(staticConfig.componentName))), value2;
@@ -403,7 +400,7 @@ function _extractToClassNames() {
403
400
  var comment = util.format("/* %s:%s (%s) */", filePath, lineNumbers, originalNodeName), _iteratorNormalCompletion3 = !0, _didIteratorError3 = !1, _iteratorError3 = void 0;
404
401
  try {
405
402
  for (var _iterator3 = finalStyles[Symbol.iterator](), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = !0) {
406
- var _step_value = _step3.value, identifier = _step_value.identifier, rules = _step_value.rules, className = ".".concat(identifier);
403
+ var styleObject = _step3.value, identifier = styleObject[helpers.StyleObjectIdentifier], rules = styleObject[helpers.StyleObjectRules], className = ".".concat(identifier);
407
404
  if (cssMap.has(className)) {
408
405
  if (comment) {
409
406
  var val1 = cssMap.get(className);
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/extractor/Users/n8/tamagui/packages/static/src/extractor/extractToClassNames.ts"],
4
- "mappings": "AAAA,YAAYA,UAAU;AACtB,YAAYC,UAAU;AAEtB,OAAOC,cAAc;AACrB,YAAYC,OAAO;AACnB,YAAYC,aAAa;AAGzB,SAASC,0BAA0B;AAEnC,SAASC,kBAAkB;AAC3B,SAASC,sBAAsB;AAE/B,SAASC,6BAA6B;AACtC,SAASC,sBAAsB;AAC/B,SAASC,yBAAyB;AAClC,SAASC,uBAAuB;AAChC,SAASC,gBAAgB;AACzB,SAASC,uCAAuC;AAChD,SAASC,aAAa;AACtB,SAASC,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAE7B,IAAMC,mBAAmB;EACvBC,eAAe;EACfC,cAAc;EACdC,aAAa;EACbC,cAAc;AAChB;AAkBA,SAAsBC,oBAAoB,GAMf;SANLA,qBAAAA,MAAAA,MAAAA,SAAAA;;SAAAA,uBAAAA;AAAAA,gCAAf,oBAAA,SAAmC,OAMf;QALzBC,WACAC,QAAAA,mBACAC,YACAC,SACAC,kBAEMC,IACEC,iBA4BFC,UAGFC,KAWEC,QACAC,gBAEFC,cAEEC,KA4TAC,QAMAC;;;;AA/WN,cATAd,YADwC,MACxCA,WACAC,SAFwC,MAExCA,QAAAA,oBAFwC,MAGxCC,YAAAA,aAAAA,sBAAAA,SAAa,KAAA,mBACbC,UAJwC,MAIxCA,SACAC,mBALwC,MAKxCA,kBAEMC,KAAKb,MAAAA,GACHc,kBAAoBvB,mBAAmB,KAAA,EAAvCuB,iBAEJJ,WAAWa,SAAS,cAAA;AACtB,mBAAA;;cAAO;;AAOT,cAJ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,GAAAA;mBAAM,CAACA,EAAEqF,WAAW,IAAA;aAC5B9G,KAAK;CAAA,CAAA,GAEVnB,QAAQoB,KAAK;;;GAA0CvB,MAAAA,IAGzDN,SAASK,GAAAA,GAET;;YAAO;cACLJ;cACAK;cACAqI,IAAIpI,OAAOiI;cACXpF,KAAK7C,OAAO6C;YACd;;;;EACF,CAAA,GAzZsB5D,qBAAAA,MAAAA,MAAAA,SAAAA;;",
5
- "names": ["path", "util", "generate", "t", "helpers", "requireTamaguiCore", "babelParse", "buildClassName", "ensureImportingConcat", "isSimpleSpread", "extractMediaStyle", "hoistClassNames", "logLines", "getFontFamilyClassNameFromProps", "timer", "createLogger", "mergeStyleGroups", "shadowOpacity", "shadowRadius", "shadowColor", "shadowOffset", "extractToClassNames", "extractor", "source", "sourcePath", "options", "shouldPrintDebug", "tm", "getStylesAtomic", "printLog", "ast", "cssMap", "existingHoists", "hasFlattened", "res", "styles", "result", "includes", "console", "warn", "Error", "isAbsolute", "test", "slice", "disableExtraction", "loadTamagui", "err", "error", "mark", "Map", "parse", "platform", "extractStyledDefinitions", "onStyleRule", "identifier", "rules", "css", "join", "info", "set", "commentTexts", "getFlattenedNode", "param", "tag", "onExtractTag", "parserProps", "attrs", "node", "attemptEval", "jsxPath", "originalNodeName", "filePath", "lineNumbers", "programPath", "isFlattened", "staticConfig", "addTernaryStyle", "ternary", "a", "b", "cCN", "map", "x", "aCN", "length", "finalClassNames", "push", "conditionalExpression", "stringLiteral", "acceptsClassName", "didFlattenThisTag", "finalAttrs", "finalStyles", "viewStyles", "attr", "type", "value", "ensureNeededPrevStyle", "style", "keys", "Object", "some", "key", "k", "addStyles", "styleWithPrev", "lastMediaImportance", "newFontFamily", "newClassNames", "concatClassName", "existing", "find", "previous", "replace", "prop", "pseudo", "property", "jsxAttribute", "jsxIdentifier", "val", "isJSXSpreadAttribute", "logicalExpression", "argument", "memberExpression", "name", "evaluatedValue", "mediaExtraction", "getTamagui", "ternaryWithoutMedia", "inlineMediaQuery", "mediaStyles", "consequent", "alternate", "attributes", "extraClassNames", "process", "env", "TAMAGUI_DEBUG_OPTIMIZATIONS", "componentName", "names", "nameExpr", "expr", "isIdentifier", "simpleSpreads", "filter", "callExpression", "jsxExpressionContainer", "comment", "format", "className", "has", "get", "modified", "optimized", "flattened", "styled", "Array", "from", "values", "trim", "concise", "filename", "retainLines", "sourceFileName", "sourceMaps", "code", "split", "startsWith", "js"]
4
+ "mappings": "AAAA,YAAYA,UAAU;AACtB,YAAYC,UAAU;AAEtB,OAAOC,cAAc;AACrB,YAAYC,OAAO;AACnB,YAAYC,aAAa;AAGzB,SAASC,0BAA0B;AAEnC,SAASC,kBAAkB;AAC3B,SAASC,sBAAsB;AAE/B,SAASC,6BAA6B;AACtC,SAASC,sBAAsB;AAC/B,SAASC,yBAAyB;AAClC,SAASC,uBAAuB;AAEhC,SAASC,uCAAuC;AAChD,SAASC,aAAa;AACtB,SAASC,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAE7B,IAAMC,mBAAmB;EACvBC,eAAe;EACfC,cAAc;EACdC,aAAa;EACbC,cAAc;AAChB;AAkBA,SAAsBC,oBAAoB,GAMf;SANLA,qBAAAA,MAAAA,MAAAA,SAAAA;;SAAAA,uBAAAA;AAAAA,gCAAf,oBAAA,SAAmC,OAMf;QALzBC,WACAC,QAAAA,mBACAC,YACAC,SACAC,kBAEMC,IACEC,iBA4BFC,UAGFC,KAWEC,QACAC,gBAEFC,cAEEC,KA0UAC,QAMAC;;;;AA7XN,cATAd,YADwC,MACxCA,WACAC,SAFwC,MAExCA,QAAAA,oBAFwC,MAGxCC,YAAAA,aAAAA,sBAAAA,SAAa,KAAA,mBACbC,UAJwC,MAIxCA,SAC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H,UACjEtI,oBACFY,QAAQoB,KAAK,2BAA2BxB,GAAAA,GAE1C;;YAAO;gBAGHC,SAAS8H,MAAMC,KAAKnI,OAAOoI,OAAM,CAAA,EACpClF,IAAI,SAACC,GAAAA;mBAAMA,EAAE1B;aACbC,KAAK;CAAA,EACL2G,KAAI,GAGDhI,SAASjC,SACb2B,KACA;YACEuI,SAAS;YACTC,UAAU9I;;YAEV+I,aAAa;YACbC,gBAAgBhJ;YAChBiJ,YAAY;UACd,GACAlJ,MAAAA,GAGEG,qBACFY,QAAQoB,KACN;;;GACAtB,OAAOsI,KACJC,MAAM;CAAA,EACNxB,OAAO,SAACjE,GAAAA;mBAAM,CAACA,EAAE0F,WAAW,IAAA;aAC5BnH,KAAK;CAAA,CAAA,GAEVnB,QAAQoB,KAAK;;;GAA0CvB,MAAAA,IAGzDN,SAASK,GAAAA,GAET;;YAAO;cACLJ;cACAK;cACA0I,IAAIzI,OAAOsI;cACXzF,KAAK7C,OAAO6C;YACd;;;;EACF,CAAA,GAvasB5D,qBAAAA,MAAAA,MAAAA,SAAAA;;",
5
+ "names": ["path", "util", "generate", "t", "helpers", "requireTamaguiCore", "babelParse", "buildClassName", "ensureImportingConcat", "isSimpleSpread", "extractMediaStyle", "hoistClassNames", "getFontFamilyClassNameFromProps", "timer", "createLogger", "mergeStyleGroups", "shadowOpacity", "shadowRadius", "shadowColor", "shadowOffset", "extractToClassNames", "extractor", "source", "sourcePath", "options", "shouldPrintDebug", "tm", "getStylesAtomic", "printLog", "ast", "cssMap", "existingHoists", "hasFlattened", "res", "styles", "result", "includes", "console", "warn", "Error", "isAbsolute", "test", "slice", "disableExtraction", "loadTamagui", "err", "error", "mark", "Map", "parse", "platform", "extractStyledDefinitions", "onStyleRule", "identifier", "rules", "css", "join", "info", "set", "commentTexts", "getFlattenedNode", "param", "tag", "onExtractTag", "parserProps", "attrs", "node", "attemptEval", "jsxPath", "originalNodeName", "filePath", "lineNumbers", "programPath", "isFlattened", "staticConfig", "addTernaryStyle", "ternary", "a", "b", "cCN", "map", "x", "StyleObjectIdentifier", "aCN", "length", "finalClassNames", "push", "conditionalExpression", "stringLiteral", "acceptsClassName", "didFlattenThisTag", "finalAttrs", "finalStyles", "viewStyles", "attr", "type", "value", "ensureNeededPrevStyle", "style", "keys", "Object", "some", "key", "k", "addStyles", "styleWithPrev", "lastMediaImportance", "newFontFamily", "newClassNames", "concatClassName", "existing", "find", "previous", "replace", "prop", "StyleObjectPseudo", "StyleObjectProperty", "jsxAttribute", "jsxIdentifier", "val", "isJSXSpreadAttribute", "logicalExpression", "argument", "memberExpression", "name", "evaluatedValue", "mediaExtraction", "getTamagui", "ternaryWithoutMedia", "inlineMediaQuery", "mediaStyles", "consequent", "alternate", "JSON", "stringify", "attributes", "extraClassNames", "process", "env", "TAMAGUI_DEBUG_OPTIMIZATIONS", "componentName", "names", "nameExpr", "expr", "isIdentifier", "simpleSpreads", "filter", "callExpression", "jsxExpressionContainer", "comment", "format", "styleObject", "StyleObjectRules", "className", "has", "get", "modified", "optimized", "flattened", "styled", "Array", "from", "values", "trim", "concise", "filename", "retainLines", "sourceFileName", "sourceMaps", "code", "split", "startsWith", "js"]
6
6
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/static",
3
- "version": "1.101.0",
3
+ "version": "1.101.2",
4
4
  "source": "src/index.ts",
5
5
  "types": "./types/index.d.ts",
6
6
  "main": "dist/cjs/index.js",
@@ -43,17 +43,17 @@
43
43
  "@babel/runtime": "^7.23.2",
44
44
  "@babel/traverse": "^7.23.3",
45
45
  "@babel/types": "^7.23.3",
46
- "@tamagui/build": "1.101.0",
47
- "@tamagui/cli-color": "1.101.0",
48
- "@tamagui/config-default": "1.101.0",
49
- "@tamagui/core": "1.101.0",
50
- "@tamagui/fake-react-native": "1.101.0",
51
- "@tamagui/generate-themes": "1.101.0",
52
- "@tamagui/helpers": "1.101.0",
53
- "@tamagui/helpers-node": "1.101.0",
54
- "@tamagui/proxy-worm": "1.101.0",
55
- "@tamagui/shorthands": "1.101.0",
56
- "@tamagui/types": "1.101.0",
46
+ "@tamagui/build": "1.101.2",
47
+ "@tamagui/cli-color": "1.101.2",
48
+ "@tamagui/config-default": "1.101.2",
49
+ "@tamagui/core": "1.101.2",
50
+ "@tamagui/fake-react-native": "1.101.2",
51
+ "@tamagui/generate-themes": "1.101.2",
52
+ "@tamagui/helpers": "1.101.2",
53
+ "@tamagui/helpers-node": "1.101.2",
54
+ "@tamagui/proxy-worm": "1.101.2",
55
+ "@tamagui/shorthands": "1.101.2",
56
+ "@tamagui/types": "1.101.2",
57
57
  "babel-literal-to-ast": "^2.1.0",
58
58
  "browserslist": "^4.22.2",
59
59
  "check-dependency-version-consistency": "^4.1.0",
@@ -66,8 +66,8 @@
66
66
  "lodash": "^4.17.21",
67
67
  "react-dom": "^18.2.0",
68
68
  "react-native-web": "^0.19.12",
69
- "react-native-web-internals": "1.101.0",
70
- "react-native-web-lite": "1.101.0"
69
+ "react-native-web-internals": "1.101.2",
70
+ "react-native-web-lite": "1.101.2"
71
71
  },
72
72
  "devDependencies": {
73
73
  "@babel/plugin-syntax-typescript": "^7.23.3",
@@ -80,7 +80,7 @@
80
80
  "esbuild-loader": "^3.0.1",
81
81
  "null-loader": "^4.0.1",
82
82
  "react": "^18.2.0",
83
- "typescript": "^5.4.5"
83
+ "typescript": "^5.5.2"
84
84
  },
85
85
  "gitHead": "a49cc7ea6b93ba384e77a4880ae48ac4a5635c14"
86
86
  }
@@ -5,12 +5,14 @@ import type { NodePath, TraverseOptions } from '@babel/traverse'
5
5
  import traverse from '@babel/traverse'
6
6
  import * as t from '@babel/types'
7
7
  import { Color, colorLog } from '@tamagui/cli-color'
8
- import type {
9
- GetStyleState,
10
- PseudoStyles,
11
- SplitStyleProps,
12
- StaticConfig,
13
- TamaguiComponentState,
8
+ import {
9
+ StyleObjectIdentifier,
10
+ StyleObjectRules,
11
+ type GetStyleState,
12
+ type PseudoStyles,
13
+ type SplitStyleProps,
14
+ type StaticConfig,
15
+ type TamaguiComponentState,
14
16
  } from '@tamagui/web'
15
17
  import type { ViewStyle } from 'react-native'
16
18
  import * as reactNativeWebInternals from 'react-native-web-internals'
@@ -299,10 +301,10 @@ export function createExtractor(
299
301
  const firstTheme = tamaguiConfig?.themes[firstThemeName] || {}
300
302
 
301
303
  if (!firstTheme || typeof firstTheme !== 'object') {
302
- console.error(`Missing theme, an error occurred when importing your config`)
303
- console.info(`Got config:`, tamaguiConfig)
304
+ const err = `Missing theme ${firstThemeName}, an error occurred when importing your config`
305
+ console.info(err, `Got config:`, tamaguiConfig)
304
306
  console.info(`Looking for theme:`, firstThemeName)
305
- process.exit(0)
307
+ throw new Error(err)
306
308
  }
307
309
 
308
310
  const proxiedTheme = proxyThemeVariables(firstTheme)
@@ -649,7 +651,9 @@ export function createExtractor(
649
651
  '\n classNames:',
650
652
  JSON.stringify(classNames, null, 2),
651
653
  '\n rulesToInsert:',
652
- out.rulesToInsert.flatMap((rule) => rule.rules).join('\n'),
654
+ out.rulesToInsert
655
+ .flatMap((styleObject) => styleObject[StyleObjectRules])
656
+ .join('\n'),
653
657
  ].join(' ')
654
658
  )
655
659
  }
@@ -673,8 +677,11 @@ export function createExtractor(
673
677
  })
674
678
 
675
679
  if (out.rulesToInsert) {
676
- for (const { identifier, rules } of out.rulesToInsert) {
677
- onStyleRule?.(identifier, rules)
680
+ for (const styleObject of out.rulesToInsert) {
681
+ onStyleRule?.(
682
+ styleObject[StyleObjectIdentifier],
683
+ styleObject[StyleObjectRules]
684
+ )
678
685
  }
679
686
  }
680
687
 
@@ -693,10 +700,6 @@ export function createExtractor(
693
700
  const componentName = findComponentName(traversePath.scope)
694
701
  const closingElement = traversePath.node.closingElement
695
702
 
696
- if (shouldPrintDebug) {
697
- logger.info(` start ${node.name}`)
698
- }
699
-
700
703
  // skip non-identifier opening elements (member expressions, etc.)
701
704
  if (
702
705
  (closingElement && t.isJSXMemberExpression(closingElement?.name)) ||
@@ -719,7 +722,7 @@ export function createExtractor(
719
722
  if (!isValidImport(propsWithFileInfo, moduleName, binding.identifier.name)) {
720
723
  if (shouldPrintDebug) {
721
724
  logger.info(
722
- ` - Binding for ${componentName} not internal import or from components ${binding.identifier.name} in ${moduleName}`
725
+ ` - Binding in component ${componentName} not valid import: "${binding.identifier.name}" isn't in ${moduleName}\n`
723
726
  )
724
727
  }
725
728
  return
@@ -730,7 +733,7 @@ export function createExtractor(
730
733
  const component = getValidComponent(propsWithFileInfo, moduleName, node.name.name)
731
734
  if (!component || !component.staticConfig) {
732
735
  if (shouldPrintDebug) {
733
- logger.info(` - No Tamagui conf on this: ${node.name.name}`)
736
+ logger.info(`\n - No Tamagui conf for: ${node.name.name}\n`)
734
737
  }
735
738
  return
736
739
  }
@@ -766,10 +769,8 @@ export function createExtractor(
766
769
  }
767
770
 
768
771
  if (shouldPrintDebug) {
769
- logger.info('\n')
770
772
  logger.info(
771
- `\x1b[33m%s\x1b[0m ` +
772
- `${componentName} | ${codePosition} -------------------`
773
+ `\x1b[33m\x1b[0m ` + `${componentName} | ${codePosition} -------------------`
773
774
  )
774
775
  // prettier-ignore
775
776
  logger.info(
@@ -804,7 +805,7 @@ export function createExtractor(
804
805
 
805
806
  if (shouldDisableExtraction) {
806
807
  if (shouldPrintDebug === 'verbose') {
807
- console.info(` Extraction disabled`)
808
+ logger.info(` Extraction disabled: ${JSON.stringify(disableExtraction)}\n`)
808
809
  }
809
810
  return
810
811
  }