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.
Files changed (2) hide show
  1. package/dist/index.js +4 -4
  2. 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.includes("/") || classString.includes("::") || classString.includes("import")) {
17
+ if (classString.startsWith("@") || classString.startsWith(".") || classString.includes("::")) {
18
18
  return match;
19
19
  }
20
- if (/^[a-z][a-z0-9-]*$/.test(classString) && !classString.includes(" ")) {
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 "./src/components/**/*.{js,ts,jsx,tsx}";
345
- @source "./src/lib/**/*.{js,ts,jsx,tsx}";
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 {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "myoperator-ui",
3
- "version": "0.0.13",
3
+ "version": "0.0.15",
4
4
  "description": "CLI for adding myOperator UI components to your project",
5
5
  "type": "module",
6
6
  "exports": "./dist/index.js",