tailwind-styled-v4 5.0.23 → 5.0.24

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/shared.js CHANGED
@@ -2953,7 +2953,13 @@ var init_src = __esm({
2953
2953
  const cssChunks = [];
2954
2954
  const stateRules = extractAndGenerateStateCss(source, filepath);
2955
2955
  if (stateRules.length > 0) {
2956
- cssChunks.push(stateRules.map((r) => r.cssRule).join("\n"));
2956
+ const resolvedRules = stateRules.filter((r) => {
2957
+ const decl = r.declarations.trim();
2958
+ return decl.length === 0 || decl.includes(":");
2959
+ });
2960
+ if (resolvedRules.length > 0) {
2961
+ cssChunks.push(resolvedRules.map((r) => r.cssRule).join("\n"));
2962
+ }
2957
2963
  }
2958
2964
  const containerCss = extractContainerCssFromSource(source);
2959
2965
  if (containerCss) cssChunks.push(containerCss);