myoperator-ui 0.0.10 → 0.0.12

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 +30 -21
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -329,27 +329,36 @@ var CSS_VARIABLES_V4 = `@import "tailwindcss";
329
329
  --ring: 212.7 26.8% 83.9%;
330
330
  }
331
331
  `;
332
- var CSS_VARIABLES_V4_BOOTSTRAP = `/* myOperator UI - Tailwind utilities for Bootstrap projects */
333
- @import "tailwindcss/utilities" layer(utilities);
332
+ var getCSS_VARIABLES_V4_BOOTSTRAP = (prefix) => `/* myOperator UI - Tailwind CSS for Bootstrap projects */
333
+ @import "tailwindcss" prefix(${prefix || "tw-"});
334
334
 
335
- /* myOperator UI theme colors - these won't conflict with your existing :root variables */
336
- :root {
337
- --mo-background: 0 0% 100%;
338
- --mo-foreground: 222.2 84% 4.9%;
339
- --mo-primary: 222.2 47.4% 11.2%;
340
- --mo-primary-foreground: 210 40% 98%;
341
- --mo-secondary: 210 40% 96.1%;
342
- --mo-secondary-foreground: 222.2 47.4% 11.2%;
343
- --mo-muted: 210 40% 96.1%;
344
- --mo-muted-foreground: 215.4 16.3% 46.9%;
345
- --mo-accent: 210 40% 96.1%;
346
- --mo-accent-foreground: 222.2 47.4% 11.2%;
347
- --mo-destructive: 0 84.2% 60.2%;
348
- --mo-destructive-foreground: 210 40% 98%;
349
- --mo-border: 214.3 31.8% 91.4%;
350
- --mo-input: 214.3 31.8% 91.4%;
351
- --mo-ring: 222.2 84% 4.9%;
352
- --mo-radius: 0.5rem;
335
+ /* Disable Preflight (CSS reset) to avoid conflicts with Bootstrap */
336
+ @layer base {
337
+ /* Preflight disabled - using Bootstrap's reset instead */
338
+ }
339
+
340
+ /* Tell Tailwind to scan component files for utility classes */
341
+ @source "./src/components/**/*.{js,ts,jsx,tsx}";
342
+ @source "./src/lib/**/*.{js,ts,jsx,tsx}";
343
+
344
+ /* myOperator UI theme colors */
345
+ @theme {
346
+ --color-mo-background: hsl(0 0% 100%);
347
+ --color-mo-foreground: hsl(222.2 84% 4.9%);
348
+ --color-mo-primary: hsl(222.2 47.4% 11.2%);
349
+ --color-mo-primary-foreground: hsl(210 40% 98%);
350
+ --color-mo-secondary: hsl(210 40% 96.1%);
351
+ --color-mo-secondary-foreground: hsl(222.2 47.4% 11.2%);
352
+ --color-mo-muted: hsl(210 40% 96.1%);
353
+ --color-mo-muted-foreground: hsl(215.4 16.3% 46.9%);
354
+ --color-mo-accent: hsl(210 40% 96.1%);
355
+ --color-mo-accent-foreground: hsl(222.2 47.4% 11.2%);
356
+ --color-mo-destructive: hsl(0 84.2% 60.2%);
357
+ --color-mo-destructive-foreground: hsl(210 40% 98%);
358
+ --color-mo-border: hsl(214.3 31.8% 91.4%);
359
+ --color-mo-input: hsl(214.3 31.8% 91.4%);
360
+ --color-mo-ring: hsl(222.2 84% 4.9%);
361
+ --radius-mo: 0.5rem;
353
362
  }
354
363
 
355
364
  /* End myOperator UI imports */
@@ -619,7 +628,7 @@ export function cn(...inputs: ClassValue[]) {
619
628
  const globalCssPath = path2.join(cwd, response.globalCss);
620
629
  let cssContent;
621
630
  if (response.tailwindVersion === "v4") {
622
- cssContent = hasBootstrap ? CSS_VARIABLES_V4_BOOTSTRAP : prefix ? CSS_VARIABLES_V4_BOOTSTRAP : CSS_VARIABLES_V4;
631
+ cssContent = hasBootstrap || prefix ? getCSS_VARIABLES_V4_BOOTSTRAP(prefix) : CSS_VARIABLES_V4;
623
632
  } else {
624
633
  cssContent = CSS_VARIABLES_V3;
625
634
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "myoperator-ui",
3
- "version": "0.0.10",
3
+ "version": "0.0.12",
4
4
  "description": "CLI for adding myOperator UI components to your project",
5
5
  "type": "module",
6
6
  "exports": "./dist/index.js",