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.
- package/README.md +458 -339
- package/dist/cli.js +9 -6
- package/dist/cli.js.map +1 -1
- package/dist/cli.mjs +9 -6
- package/dist/cli.mjs.map +1 -1
- package/dist/compiler.js +60 -8
- package/dist/compiler.js.map +1 -1
- package/dist/compiler.mjs +60 -8
- package/dist/compiler.mjs.map +1 -1
- package/dist/engine.js +60 -8
- package/dist/engine.js.map +1 -1
- package/dist/engine.mjs +60 -8
- package/dist/engine.mjs.map +1 -1
- package/dist/index.browser.mjs +689 -508
- package/dist/index.browser.mjs.map +1 -1
- package/dist/index.js +98 -28
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +98 -28
- package/dist/index.mjs.map +1 -1
- package/dist/next.js +304 -182
- package/dist/next.js.map +1 -1
- package/dist/next.mjs +304 -182
- package/dist/next.mjs.map +1 -1
- package/dist/shared.js +60 -8
- package/dist/shared.js.map +1 -1
- package/dist/shared.mjs +60 -8
- package/dist/shared.mjs.map +1 -1
- package/dist/svelte.js +4 -4
- package/dist/svelte.js.map +1 -1
- package/dist/svelte.mjs +4 -4
- package/dist/svelte.mjs.map +1 -1
- package/dist/turbopackLoader.js +60 -8
- package/dist/turbopackLoader.js.map +1 -1
- package/dist/turbopackLoader.mjs +60 -8
- package/dist/turbopackLoader.mjs.map +1 -1
- package/dist/tw.js +9 -6
- package/dist/tw.js.map +1 -1
- package/dist/tw.mjs +9 -6
- package/dist/tw.mjs.map +1 -1
- package/dist/vite.js +60 -8
- package/dist/vite.js.map +1 -1
- package/dist/vite.mjs +60 -8
- package/dist/vite.mjs.map +1 -1
- package/dist/vue.js +4 -4
- package/dist/vue.js.map +1 -1
- package/dist/vue.mjs +4 -4
- package/dist/vue.mjs.map +1 -1
- package/native/tailwind-styled-native.linux-x64-gnu.node +0 -0
- package/native/tailwind-styled-native.node +0 -0
- package/package.json +7 -5
package/dist/tw.mjs
CHANGED
|
@@ -8819,10 +8819,11 @@ async function validateThemeConfig(cwd2) {
|
|
|
8819
8819
|
const configModule = await import(configUrl.href);
|
|
8820
8820
|
const config = configModule.default || configModule;
|
|
8821
8821
|
const theme = config.theme || {};
|
|
8822
|
-
|
|
8822
|
+
const validateColors = native.validateColorsNapi;
|
|
8823
|
+
if (theme.colors && typeof validateColors === "function") {
|
|
8823
8824
|
try {
|
|
8824
8825
|
const colorsJson = JSON.stringify(theme.colors);
|
|
8825
|
-
const isValid =
|
|
8826
|
+
const isValid = validateColors(colorsJson);
|
|
8826
8827
|
results.push({
|
|
8827
8828
|
type: "theme-colors",
|
|
8828
8829
|
valid: isValid,
|
|
@@ -8836,10 +8837,11 @@ async function validateThemeConfig(cwd2) {
|
|
|
8836
8837
|
});
|
|
8837
8838
|
}
|
|
8838
8839
|
}
|
|
8839
|
-
|
|
8840
|
+
const validateBreakpoints = native.validateBreakpointsNapi;
|
|
8841
|
+
if (theme.screens && typeof validateBreakpoints === "function") {
|
|
8840
8842
|
try {
|
|
8841
8843
|
const screensJson = JSON.stringify(theme.screens);
|
|
8842
|
-
const isValid =
|
|
8844
|
+
const isValid = validateBreakpoints(screensJson);
|
|
8843
8845
|
results.push({
|
|
8844
8846
|
type: "theme-breakpoints",
|
|
8845
8847
|
valid: isValid,
|
|
@@ -8853,9 +8855,10 @@ async function validateThemeConfig(cwd2) {
|
|
|
8853
8855
|
});
|
|
8854
8856
|
}
|
|
8855
8857
|
}
|
|
8856
|
-
|
|
8858
|
+
const runHealthCheck = native.runHealthCheck;
|
|
8859
|
+
if (typeof runHealthCheck === "function") {
|
|
8857
8860
|
try {
|
|
8858
|
-
|
|
8861
|
+
runHealthCheck();
|
|
8859
8862
|
results.push({ type: "theme-integrity", valid: true, message: "Theme integrity check passed" });
|
|
8860
8863
|
} catch {
|
|
8861
8864
|
results.push({ type: "theme-integrity", valid: false, message: "Theme integrity check failed" });
|