tailwind-styled-v4 5.0.34 → 5.0.36

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.
Files changed (50) hide show
  1. package/README.md +458 -339
  2. package/dist/cli.js +9 -6
  3. package/dist/cli.js.map +1 -1
  4. package/dist/cli.mjs +9 -6
  5. package/dist/cli.mjs.map +1 -1
  6. package/dist/compiler.js +60 -8
  7. package/dist/compiler.js.map +1 -1
  8. package/dist/compiler.mjs +60 -8
  9. package/dist/compiler.mjs.map +1 -1
  10. package/dist/engine.js +60 -8
  11. package/dist/engine.js.map +1 -1
  12. package/dist/engine.mjs +60 -8
  13. package/dist/engine.mjs.map +1 -1
  14. package/dist/index.browser.mjs +689 -508
  15. package/dist/index.browser.mjs.map +1 -1
  16. package/dist/index.js +98 -28
  17. package/dist/index.js.map +1 -1
  18. package/dist/index.mjs +98 -28
  19. package/dist/index.mjs.map +1 -1
  20. package/dist/next.js +304 -182
  21. package/dist/next.js.map +1 -1
  22. package/dist/next.mjs +304 -182
  23. package/dist/next.mjs.map +1 -1
  24. package/dist/shared.js +60 -8
  25. package/dist/shared.js.map +1 -1
  26. package/dist/shared.mjs +60 -8
  27. package/dist/shared.mjs.map +1 -1
  28. package/dist/svelte.js +4 -4
  29. package/dist/svelte.js.map +1 -1
  30. package/dist/svelte.mjs +4 -4
  31. package/dist/svelte.mjs.map +1 -1
  32. package/dist/turbopackLoader.js +60 -8
  33. package/dist/turbopackLoader.js.map +1 -1
  34. package/dist/turbopackLoader.mjs +60 -8
  35. package/dist/turbopackLoader.mjs.map +1 -1
  36. package/dist/tw.js +9 -6
  37. package/dist/tw.js.map +1 -1
  38. package/dist/tw.mjs +9 -6
  39. package/dist/tw.mjs.map +1 -1
  40. package/dist/vite.js +60 -8
  41. package/dist/vite.js.map +1 -1
  42. package/dist/vite.mjs +60 -8
  43. package/dist/vite.mjs.map +1 -1
  44. package/dist/vue.js +4 -4
  45. package/dist/vue.js.map +1 -1
  46. package/dist/vue.mjs +4 -4
  47. package/dist/vue.mjs.map +1 -1
  48. package/native/tailwind-styled-native.linux-x64-gnu.node +0 -0
  49. package/native/tailwind-styled-native.node +0 -0
  50. package/package.json +7 -5
package/dist/cli.mjs CHANGED
@@ -8818,10 +8818,11 @@ async function validateThemeConfig(cwd2) {
8818
8818
  const configModule = await import(configUrl.href);
8819
8819
  const config = configModule.default || configModule;
8820
8820
  const theme = config.theme || {};
8821
- if (theme.colors && native.validateColorsNapi) {
8821
+ const validateColors = native.validateColorsNapi;
8822
+ if (theme.colors && typeof validateColors === "function") {
8822
8823
  try {
8823
8824
  const colorsJson = JSON.stringify(theme.colors);
8824
- const isValid = native.validateColorsNapi(colorsJson);
8825
+ const isValid = validateColors(colorsJson);
8825
8826
  results.push({
8826
8827
  type: "theme-colors",
8827
8828
  valid: isValid,
@@ -8835,10 +8836,11 @@ async function validateThemeConfig(cwd2) {
8835
8836
  });
8836
8837
  }
8837
8838
  }
8838
- if (theme.screens && native.validateBreakpointsNapi) {
8839
+ const validateBreakpoints = native.validateBreakpointsNapi;
8840
+ if (theme.screens && typeof validateBreakpoints === "function") {
8839
8841
  try {
8840
8842
  const screensJson = JSON.stringify(theme.screens);
8841
- const isValid = native.validateBreakpointsNapi(screensJson);
8843
+ const isValid = validateBreakpoints(screensJson);
8842
8844
  results.push({
8843
8845
  type: "theme-breakpoints",
8844
8846
  valid: isValid,
@@ -8852,9 +8854,10 @@ async function validateThemeConfig(cwd2) {
8852
8854
  });
8853
8855
  }
8854
8856
  }
8855
- if (native.runHealthCheck) {
8857
+ const runHealthCheck = native.runHealthCheck;
8858
+ if (typeof runHealthCheck === "function") {
8856
8859
  try {
8857
- native.runHealthCheck();
8860
+ runHealthCheck();
8858
8861
  results.push({ type: "theme-integrity", valid: true, message: "Theme integrity check passed" });
8859
8862
  } catch {
8860
8863
  results.push({ type: "theme-integrity", valid: false, message: "Theme integrity check failed" });