myoperator-ui 0.0.230 → 0.0.232

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 +8 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -29647,7 +29647,10 @@ var getTailwindConfig = (prefix = "tw-", hasBootstrap = false) => `/** @type {im
29647
29647
  export default {
29648
29648
  darkMode: ["class"],
29649
29649
  prefix: "${prefix}",${hasBootstrap ? `
29650
- important: true, // Required to override Bootstrap styles` : ""}
29650
+ important: true, // Required to override Bootstrap styles
29651
+ corePlugins: {
29652
+ preflight: false, // Disable Tailwind's CSS reset - Bootstrap handles base styles
29653
+ },` : ""}
29651
29654
  content: [
29652
29655
  "./src/components/ui/**/*.{js,ts,jsx,tsx}",
29653
29656
  "./src/components/custom/**/*.{js,ts,jsx,tsx}",
@@ -30097,6 +30100,7 @@ export function cn(...inputs: ClassValue[]) {
30097
30100
  const existingConfig2 = await fs5.readFile(tailwindConfigPath, "utf-8");
30098
30101
  const hasLegacyColors = existingConfig2.includes("hsl(var(--destructive))") || existingConfig2.includes("hsl(var(--ring))");
30099
30102
  const hasSemanticColors = existingConfig2.includes("semantic-text-primary");
30103
+ const needsBootstrapUpdate = hasBootstrap && !existingConfig2.includes("preflight");
30100
30104
  if (!hasLegacyColors && !hasSemanticColors) {
30101
30105
  await fs5.writeFile(tailwindConfigPath, getTailwindConfig(userPrefix, hasBootstrap));
30102
30106
  tailwindUpdated = true;
@@ -30113,6 +30117,9 @@ export function cn(...inputs: ClassValue[]) {
30113
30117
  await fs5.writeFile(tailwindConfigPath, getTailwindConfig(userPrefix, hasBootstrap));
30114
30118
  tailwindUpdated = true;
30115
30119
  }
30120
+ } else if (needsBootstrapUpdate) {
30121
+ await fs5.writeFile(tailwindConfigPath, getTailwindConfig(userPrefix, hasBootstrap));
30122
+ tailwindUpdated = true;
30116
30123
  }
30117
30124
  }
30118
30125
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "myoperator-ui",
3
- "version": "0.0.230",
3
+ "version": "0.0.232",
4
4
  "description": "CLI for adding myOperator UI components to your project",
5
5
  "type": "module",
6
6
  "exports": "./dist/index.js",