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.
- package/dist/index.js +30 -21
- 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
|
|
333
|
-
@import "tailwindcss
|
|
332
|
+
var getCSS_VARIABLES_V4_BOOTSTRAP = (prefix) => `/* myOperator UI - Tailwind CSS for Bootstrap projects */
|
|
333
|
+
@import "tailwindcss" prefix(${prefix || "tw-"});
|
|
334
334
|
|
|
335
|
-
/*
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
--mo-
|
|
347
|
-
--mo-
|
|
348
|
-
--mo-
|
|
349
|
-
--mo-
|
|
350
|
-
--mo-
|
|
351
|
-
--mo-
|
|
352
|
-
--mo-
|
|
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
|
|
631
|
+
cssContent = hasBootstrap || prefix ? getCSS_VARIABLES_V4_BOOTSTRAP(prefix) : CSS_VARIABLES_V4;
|
|
623
632
|
} else {
|
|
624
633
|
cssContent = CSS_VARIABLES_V3;
|
|
625
634
|
}
|