@moondreamsdev/dreamer-ui 1.4.5 → 1.4.7

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.
@@ -10,12 +10,12 @@ function extractColorsFromSource() {
10
10
  const sourceFile = join(__dirname, 'theme-colors.css');
11
11
  const sourceContent = readFileSync(sourceFile, 'utf8');
12
12
 
13
- // Extract the @theme colors block
14
- const themeMatch = sourceContent.match(/@theme colors \{([\s\S]*?)\}/);
13
+ // Extract the @theme colors block content only
14
+ const themeMatch = sourceContent.match(/@theme colors\s*\{([\s\S]*?)\}/);
15
15
 
16
16
  if (themeMatch) {
17
- const themeContent = themeMatch[1];
18
- return `:root {${themeContent}}`;
17
+ const themeContent = themeMatch[1].trim();
18
+ return `:root {\n${themeContent}\n}`;
19
19
  } else {
20
20
  throw new Error('Could not find @theme colors block in source file');
21
21
  }
@@ -1,12 +1,5 @@
1
- @import './core/components/input/styles.css';
2
- @import './core/components/textarea/styles.css';
3
-
4
- @utility page {
5
- @apply min-h-screen w-screen;
6
- }
7
-
8
1
  @theme colors {
9
- /* Background */
2
+ /* Background */
10
3
  --color-background-light: var(--color-slate-100);
11
4
  --color-background-dark: var(--color-slate-900);
12
5
 
@@ -32,6 +25,4 @@
32
25
  --color-border: var(
33
26
  --color-slate-600
34
27
  ); /* for input/textarea borders and dividers — could use primary, secondary, or muted color for simplicity */
35
- }
36
-
37
- @source "./**/*.{js,jsx,ts,tsx}" "../dist/**/*.{js,jsx}";
28
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moondreamsdev/dreamer-ui",
3
- "version": "1.4.5",
3
+ "version": "1.4.7",
4
4
  "type": "module",
5
5
  "description": "A collection of Tailwind CSS components for React",
6
6
  "main": "dist/index.js",
@@ -37,14 +37,14 @@
37
37
  },
38
38
  "scripts": {
39
39
  "dev": "vite",
40
- "build": "npm run build:lib && npm run build:types && npm run build:copy",
40
+ "build": "npm run build:lib && npm run build:types && npm run build:setup",
41
41
  "build:lib": "vite build --config vite.config.lib.mts",
42
42
  "build:types": "tsc --project tsconfig.lib.json",
43
43
  "build:demo": "tsc -b && vite build",
44
- "build:copy": "cp scripts/* dist/ && cp src/styles.lib.css dist/theme-colors.css",
44
+ "build:setup": "cp scripts/postinstall.js dist/ && node scripts/create-theme-css.js",
45
45
  "lint": "eslint .",
46
46
  "preview": "vite preview",
47
- "postinstall": "node dist/postinstall.js",
47
+ "postinstall": "node node_modules/@moondreamsdev/dreamer-ui/dist/postinstall.js",
48
48
  "prepublishOnly": "npm run build",
49
49
  "publish": "npm publish --access public"
50
50
  },