@moondreamsdev/dreamer-ui 1.4.1 → 1.4.3

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.
@@ -80,11 +80,11 @@ function createCSSFile(targetPath, cssContent) {
80
80
  function getDefaultPath() {
81
81
  // Look for common CSS directories
82
82
  const possiblePaths = [
83
- './src/styles/dreamer-ui-colors.css',
84
- './styles/dreamer-ui-colors.css',
85
- './css/dreamer-ui-colors.css',
86
- './src/dreamer-ui-colors.css',
87
- './dreamer-ui-colors.css'
83
+ './src/styles/dreamer-ui.css',
84
+ './styles/dreamer-ui.css',
85
+ './css/dreamer-ui.css',
86
+ './src/dreamer-ui.css',
87
+ './dreamer-ui.css'
88
88
  ];
89
89
 
90
90
  for (const p of possiblePaths) {
@@ -94,7 +94,7 @@ function getDefaultPath() {
94
94
  }
95
95
  }
96
96
 
97
- return './dreamer-ui-colors.css';
97
+ return './dreamer-ui.css';
98
98
  }
99
99
 
100
100
  async function promptUserForPath() {
package/dist/styles.css CHANGED
@@ -1 +1,37 @@
1
- .hide-number-input-arrows::-webkit-outer-spin-button,.hide-number-input-arrows::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.hide-number-input-arrows{-moz-appearance:textfield}.no-resize-handle::-webkit-resizer{display:none}
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
+ @theme colors {
9
+ /* Background */
10
+ --color-background-light: var(--color-slate-100);
11
+ --color-background-dark: var(--color-slate-900);
12
+
13
+ /* Foreground */
14
+ --color-foreground-light: var(--color-slate-900);
15
+ --color-foreground-dark: var(--color-slate-100);
16
+
17
+ /* Accent */
18
+ --color-accent-medium: var(--color-violet-400); /* default tone */
19
+
20
+ /* Dreamer UI */
21
+ /* colors */
22
+ --color-primary: var(--color-violet-400);
23
+ --color-primary-foreground: var(--color-white);
24
+ --color-secondary: var(--color-violet-200);
25
+ --color-secondary-foreground: var(--color-black);
26
+ --color-danger: var(--color-red-500);
27
+ --color-danger-foreground: var(--color-white);
28
+ --color-muted: var(--color-gray-200);
29
+ --color-muted-foreground: var(--color-gray-800);
30
+
31
+ --color-success: var(--color-green-500);
32
+ --color-border: var(
33
+ --color-slate-600
34
+ ); /* 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}";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moondreamsdev/dreamer-ui",
3
- "version": "1.4.1",
3
+ "version": "1.4.3",
4
4
  "type": "module",
5
5
  "description": "A collection of Tailwind CSS components for React",
6
6
  "main": "dist/index.js",
@@ -37,11 +37,11 @@
37
37
  },
38
38
  "scripts": {
39
39
  "dev": "vite",
40
- "build": "npm run build:lib && npm run build:types && npm run build:scripts",
40
+ "build": "npm run build:lib && npm run build:types && npm run build:copy",
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:scripts": "cp scripts/* dist/",
44
+ "build:copy": "cp scripts/* dist/ && cp src/styles.lib.css dist/styles.css",
45
45
  "lint": "eslint .",
46
46
  "preview": "vite preview",
47
47
  "postinstall": "node dist/postinstall.js",