myoperator-ui 0.0.17 → 0.0.18

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 +6 -32
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -13,7 +13,7 @@ import ora from "ora";
13
13
  // src/utils/registry.ts
14
14
  function prefixTailwindClasses(content, prefix) {
15
15
  if (!prefix) return content;
16
- const cleanPrefix = prefix.replace(/-/g, "") + ":";
16
+ const cleanPrefix = prefix;
17
17
  return content.replace(/"([^"]+)"/g, (match, classString) => {
18
18
  if (classString.startsWith("@") || classString.startsWith(".") || classString.includes("::")) {
19
19
  return match;
@@ -333,44 +333,18 @@ var CSS_VARIABLES_V4 = `@import "tailwindcss";
333
333
  --ring: 212.7 26.8% 83.9%;
334
334
  }
335
335
  `;
336
- var getCSS_VARIABLES_V4_BOOTSTRAP = (prefix) => {
337
- const cleanPrefix = (prefix || "tw").replace(/-/g, "");
338
- return `/* myOperator UI - Tailwind CSS for Bootstrap projects */
339
- @import "tailwindcss" prefix(${cleanPrefix});
340
-
341
- /* Disable Preflight (CSS reset) to avoid conflicts with Bootstrap */
342
- @layer base {
343
- /* Preflight disabled - using Bootstrap's reset instead */
344
- }
336
+ var CSS_VARIABLES_V4_BOOTSTRAP = `/* myOperator UI - Tailwind CSS for Bootstrap projects */
337
+ /* Using utilities-only to avoid Preflight conflicts with Bootstrap */
338
+ @import "tailwindcss/theme" layer(theme);
339
+ @import "tailwindcss/utilities" layer(utilities);
345
340
 
346
341
  /* Tell Tailwind to scan component files for utility classes */
347
342
  @source "./components/**/*.{js,ts,jsx,tsx}";
348
343
  @source "./lib/**/*.{js,ts,jsx,tsx}";
349
344
 
350
- /* myOperator UI theme colors */
351
- @theme {
352
- --color-mo-background: hsl(0 0% 100%);
353
- --color-mo-foreground: hsl(222.2 84% 4.9%);
354
- --color-mo-primary: hsl(222.2 47.4% 11.2%);
355
- --color-mo-primary-foreground: hsl(210 40% 98%);
356
- --color-mo-secondary: hsl(210 40% 96.1%);
357
- --color-mo-secondary-foreground: hsl(222.2 47.4% 11.2%);
358
- --color-mo-muted: hsl(210 40% 96.1%);
359
- --color-mo-muted-foreground: hsl(215.4 16.3% 46.9%);
360
- --color-mo-accent: hsl(210 40% 96.1%);
361
- --color-mo-accent-foreground: hsl(222.2 47.4% 11.2%);
362
- --color-mo-destructive: hsl(0 84.2% 60.2%);
363
- --color-mo-destructive-foreground: hsl(210 40% 98%);
364
- --color-mo-border: hsl(214.3 31.8% 91.4%);
365
- --color-mo-input: hsl(214.3 31.8% 91.4%);
366
- --color-mo-ring: hsl(222.2 84% 4.9%);
367
- --radius-mo: 0.5rem;
368
- }
369
-
370
345
  /* End myOperator UI imports */
371
346
 
372
347
  `;
373
- };
374
348
  var CSS_VARIABLES_V3 = `@tailwind base;
375
349
  @tailwind components;
376
350
  @tailwind utilities;
@@ -635,7 +609,7 @@ export function cn(...inputs: ClassValue[]) {
635
609
  const globalCssPath = path2.join(cwd, response.globalCss);
636
610
  let cssContent;
637
611
  if (response.tailwindVersion === "v4") {
638
- cssContent = hasBootstrap || prefix ? getCSS_VARIABLES_V4_BOOTSTRAP(prefix) : CSS_VARIABLES_V4;
612
+ cssContent = hasBootstrap ? CSS_VARIABLES_V4_BOOTSTRAP : CSS_VARIABLES_V4;
639
613
  } else {
640
614
  cssContent = CSS_VARIABLES_V3;
641
615
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "myoperator-ui",
3
- "version": "0.0.17",
3
+ "version": "0.0.18",
4
4
  "description": "CLI for adding myOperator UI components to your project",
5
5
  "type": "module",
6
6
  "exports": "./dist/index.js",