myoperator-ui 0.0.9 → 0.0.11
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 +6 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -17,7 +17,7 @@ function prefixTailwindClasses(content, prefix) {
|
|
|
17
17
|
if (classString.includes("/") || classString.includes("::") || classString.includes("import")) {
|
|
18
18
|
return match;
|
|
19
19
|
}
|
|
20
|
-
if (!classString.includes(" ") && !classString.includes("-") && !classString.includes(":")) {
|
|
20
|
+
if (!classString.includes(" ") && !classString.includes("-") && !classString.includes(":") && !classString.includes("[")) {
|
|
21
21
|
return match;
|
|
22
22
|
}
|
|
23
23
|
const prefixedClasses = classString.split(" ").map((cls) => {
|
|
@@ -29,15 +29,12 @@ function prefixTailwindClasses(content, prefix) {
|
|
|
29
29
|
if (utility.startsWith("-")) {
|
|
30
30
|
return `${variants}-${prefix}${utility.slice(1)}`;
|
|
31
31
|
}
|
|
32
|
-
if (utility.startsWith("[")) {
|
|
33
|
-
return cls;
|
|
34
|
-
}
|
|
35
32
|
return `${variants}${prefix}${utility}`;
|
|
36
33
|
}
|
|
37
34
|
if (cls.startsWith("-")) {
|
|
38
35
|
return `-${prefix}${cls.slice(1)}`;
|
|
39
36
|
}
|
|
40
|
-
if (cls.startsWith("[")) {
|
|
37
|
+
if (cls.startsWith("[&")) {
|
|
41
38
|
const closeBracket = cls.indexOf("]:");
|
|
42
39
|
if (closeBracket !== -1) {
|
|
43
40
|
const selector = cls.slice(0, closeBracket + 2);
|
|
@@ -335,6 +332,10 @@ var CSS_VARIABLES_V4 = `@import "tailwindcss";
|
|
|
335
332
|
var CSS_VARIABLES_V4_BOOTSTRAP = `/* myOperator UI - Tailwind utilities for Bootstrap projects */
|
|
336
333
|
@import "tailwindcss/utilities" layer(utilities);
|
|
337
334
|
|
|
335
|
+
/* Tell Tailwind to scan component files for utility classes */
|
|
336
|
+
@source "./src/components/**/*.{js,ts,jsx,tsx}";
|
|
337
|
+
@source "./src/lib/**/*.{js,ts,jsx,tsx}";
|
|
338
|
+
|
|
338
339
|
/* myOperator UI theme colors - these won't conflict with your existing :root variables */
|
|
339
340
|
:root {
|
|
340
341
|
--mo-background: 0 0% 100%;
|