@purestack/ts-css 1.1.7 → 1.1.9
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/ts-css.d.mts +1 -1
- package/dist/ts-css.mjs +2 -2
- package/dist/ts-css.mjs.map +1 -1
- package/package.json +2 -2
package/dist/ts-css.d.mts
CHANGED
package/dist/ts-css.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @purestack/ts-css v1.1.
|
|
1
|
+
/*! @purestack/ts-css v1.1.9 | (c) 2026 Ahmed Yasin Koculu | MIT License */
|
|
2
2
|
|
|
3
3
|
import prettier from "prettier";
|
|
4
4
|
import { isString } from "@purestack/ts-util";
|
|
@@ -75,7 +75,7 @@ function hyphenizeCss(prop) {
|
|
|
75
75
|
return prop.replace(/^(webkit|moz|ms)(?=[A-Z])/i, (_, prefix) => `-${prefix.toLowerCase()}`).replace(/^o/i, (match, _offset, value) => {
|
|
76
76
|
const next = value[match.length];
|
|
77
77
|
return typeof next === "string" && next.toUpperCase() === next && next.toLowerCase() !== next ? "-o" : match;
|
|
78
|
-
}).replace(/([A-Z]
|
|
78
|
+
}).replace(/([A-Z])([A-Z][a-z])/g, "$1-$2").replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
//#endregion
|