@moondreamsdev/dreamer-ui 1.4.3 → 1.4.5
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/postinstall.js +1 -1
- package/dist/styles.css +1 -37
- package/dist/theme-colors.css +37 -0
- package/package.json +2 -2
package/dist/postinstall.js
CHANGED
@@ -7,7 +7,7 @@ function extractColorsFromSource() {
|
|
7
7
|
try {
|
8
8
|
const __filename = fileURLToPath(import.meta.url);
|
9
9
|
const __dirname = dirname(__filename);
|
10
|
-
const sourceFile = join(__dirname, '
|
10
|
+
const sourceFile = join(__dirname, 'theme-colors.css');
|
11
11
|
const sourceContent = readFileSync(sourceFile, 'utf8');
|
12
12
|
|
13
13
|
// Extract the @theme colors block
|
package/dist/styles.css
CHANGED
@@ -1,37 +1 @@
|
|
1
|
-
|
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}";
|
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}
|
@@ -0,0 +1,37 @@
|
|
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.
|
3
|
+
"version": "1.4.5",
|
4
4
|
"type": "module",
|
5
5
|
"description": "A collection of Tailwind CSS components for React",
|
6
6
|
"main": "dist/index.js",
|
@@ -41,7 +41,7 @@
|
|
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/
|
44
|
+
"build:copy": "cp scripts/* dist/ && cp src/styles.lib.css dist/theme-colors.css",
|
45
45
|
"lint": "eslint .",
|
46
46
|
"preview": "vite preview",
|
47
47
|
"postinstall": "node dist/postinstall.js",
|