tailwind-to-style 5.1.0 → 5.1.1
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/animations/index.cjs +1 -1
- package/dist/animations/index.esm.js +1 -1
- package/dist/className/index.cjs +1 -1
- package/dist/className/index.esm.js +1 -1
- package/dist/core/tws.cjs +1 -1
- package/dist/core/tws.esm.js +1 -1
- package/dist/cx.cjs +1 -1
- package/dist/cx.esm.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/react/index.cjs +1 -1
- package/dist/react/index.esm.js +1 -1
- package/dist/register/index.cjs +6 -5
- package/dist/register/index.esm.js +6 -5
- package/dist/register/index.esm.js.map +1 -1
- package/dist/tokens/index.cjs +1 -1
- package/dist/tokens/index.esm.js +1 -1
- package/package.json +1 -1
package/dist/className/index.cjs
CHANGED
package/dist/core/tws.cjs
CHANGED
package/dist/core/tws.esm.js
CHANGED
package/dist/cx.cjs
CHANGED
package/dist/cx.esm.js
CHANGED
package/dist/index.cjs
CHANGED
package/dist/index.esm.js
CHANGED
package/dist/react/index.cjs
CHANGED
package/dist/react/index.esm.js
CHANGED
package/dist/register/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* tailwind-to-style v5.1.
|
|
2
|
+
* tailwind-to-style v5.1.1
|
|
3
3
|
* Zero-build runtime Tailwind CSS engine
|
|
4
4
|
*
|
|
5
5
|
* @author Bigetion
|
|
@@ -7952,10 +7952,11 @@ function _flushRegistry() {
|
|
|
7952
7952
|
}
|
|
7953
7953
|
function _inject(key, css) {
|
|
7954
7954
|
if (!css) return;
|
|
7955
|
-
|
|
7956
|
-
|
|
7957
|
-
|
|
7958
|
-
|
|
7955
|
+
// Merge: if key already exists, append — never silently override
|
|
7956
|
+
const existing = _registry.get(key);
|
|
7957
|
+
_registry.set(key, existing ? existing + '\n' + css : css);
|
|
7958
|
+
_flushRegistry();
|
|
7959
|
+
if (!IS_BROWSER && isSSRCollecting()) {
|
|
7959
7960
|
collectSSRCSS(css);
|
|
7960
7961
|
}
|
|
7961
7962
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* tailwind-to-style v5.1.
|
|
2
|
+
* tailwind-to-style v5.1.1
|
|
3
3
|
* Zero-build runtime Tailwind CSS engine
|
|
4
4
|
*
|
|
5
5
|
* @author Bigetion
|
|
@@ -7948,10 +7948,11 @@ function _flushRegistry() {
|
|
|
7948
7948
|
}
|
|
7949
7949
|
function _inject(key, css) {
|
|
7950
7950
|
if (!css) return;
|
|
7951
|
-
|
|
7952
|
-
|
|
7953
|
-
|
|
7954
|
-
|
|
7951
|
+
// Merge: if key already exists, append — never silently override
|
|
7952
|
+
const existing = _registry.get(key);
|
|
7953
|
+
_registry.set(key, existing ? existing + '\n' + css : css);
|
|
7954
|
+
_flushRegistry();
|
|
7955
|
+
if (!IS_BROWSER && isSSRCollecting()) {
|
|
7955
7956
|
collectSSRCSS(css);
|
|
7956
7957
|
}
|
|
7957
7958
|
}
|