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