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.js
CHANGED
|
@@ -8844,10 +8844,11 @@ async function validateThemeConfig(cwd2) {
|
|
|
8844
8844
|
const configModule = await import(configUrl.href);
|
|
8845
8845
|
const config = configModule.default || configModule;
|
|
8846
8846
|
const theme = config.theme || {};
|
|
8847
|
-
|
|
8847
|
+
const validateColors = native.validateColorsNapi;
|
|
8848
|
+
if (theme.colors && typeof validateColors === "function") {
|
|
8848
8849
|
try {
|
|
8849
8850
|
const colorsJson = JSON.stringify(theme.colors);
|
|
8850
|
-
const isValid =
|
|
8851
|
+
const isValid = validateColors(colorsJson);
|
|
8851
8852
|
results.push({
|
|
8852
8853
|
type: "theme-colors",
|
|
8853
8854
|
valid: isValid,
|
|
@@ -8861,10 +8862,11 @@ async function validateThemeConfig(cwd2) {
|
|
|
8861
8862
|
});
|
|
8862
8863
|
}
|
|
8863
8864
|
}
|
|
8864
|
-
|
|
8865
|
+
const validateBreakpoints = native.validateBreakpointsNapi;
|
|
8866
|
+
if (theme.screens && typeof validateBreakpoints === "function") {
|
|
8865
8867
|
try {
|
|
8866
8868
|
const screensJson = JSON.stringify(theme.screens);
|
|
8867
|
-
const isValid =
|
|
8869
|
+
const isValid = validateBreakpoints(screensJson);
|
|
8868
8870
|
results.push({
|
|
8869
8871
|
type: "theme-breakpoints",
|
|
8870
8872
|
valid: isValid,
|
|
@@ -8878,9 +8880,10 @@ async function validateThemeConfig(cwd2) {
|
|
|
8878
8880
|
});
|
|
8879
8881
|
}
|
|
8880
8882
|
}
|
|
8881
|
-
|
|
8883
|
+
const runHealthCheck = native.runHealthCheck;
|
|
8884
|
+
if (typeof runHealthCheck === "function") {
|
|
8882
8885
|
try {
|
|
8883
|
-
|
|
8886
|
+
runHealthCheck();
|
|
8884
8887
|
results.push({ type: "theme-integrity", valid: true, message: "Theme integrity check passed" });
|
|
8885
8888
|
} catch {
|
|
8886
8889
|
results.push({ type: "theme-integrity", valid: false, message: "Theme integrity check failed" });
|