myoperator-ui 0.0.13 → 0.0.15
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/index.js +4 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -14,10 +14,10 @@ import ora from "ora";
|
|
|
14
14
|
function prefixTailwindClasses(content, prefix) {
|
|
15
15
|
if (!prefix) return content;
|
|
16
16
|
return content.replace(/"([^"]+)"/g, (match, classString) => {
|
|
17
|
-
if (classString.
|
|
17
|
+
if (classString.startsWith("@") || classString.startsWith(".") || classString.includes("::")) {
|
|
18
18
|
return match;
|
|
19
19
|
}
|
|
20
|
-
if (/^[a-z][a-z0-9-]*$/.test(classString)
|
|
20
|
+
if (/^(@[a-z0-9-]+\/)?[a-z][a-z0-9-]*$/.test(classString)) {
|
|
21
21
|
return match;
|
|
22
22
|
}
|
|
23
23
|
if (!classString.includes(" ") && !classString.includes("-") && !classString.includes(":") && !classString.includes("[")) {
|
|
@@ -341,8 +341,8 @@ var getCSS_VARIABLES_V4_BOOTSTRAP = (prefix) => `/* myOperator UI - Tailwind CSS
|
|
|
341
341
|
}
|
|
342
342
|
|
|
343
343
|
/* Tell Tailwind to scan component files for utility classes */
|
|
344
|
-
@source "./
|
|
345
|
-
@source "./
|
|
344
|
+
@source "./components/**/*.{js,ts,jsx,tsx}";
|
|
345
|
+
@source "./lib/**/*.{js,ts,jsx,tsx}";
|
|
346
346
|
|
|
347
347
|
/* myOperator UI theme colors */
|
|
348
348
|
@theme {
|