@studiotoolkit/color-wheel 1.0.1 → 1.0.2

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/style.css +104 -1
  2. package/package.json +3 -4
package/dist/style.css CHANGED
@@ -1 +1,104 @@
1
- .color-wheel-container{margin:0;font-family:sans-serif;background-color:#fff}[data-theme=dark] .color-wheel-container{background-color:#1a1a1a!important}.color-wheel-container h2{text-align:center;padding:15px;margin:0;background:#222;color:#fff}.layout{display:grid;grid-template-columns:20% 30% 50%;height:100vh}.panel{padding:15px;overflow-y:auto;border-right:1px solid #ddd;background-color:#fff}[data-theme=dark] .panel{background-color:#1a1a1a!important;border-right-color:#444;color:#e0e0e0}[data-theme=dark] .panel label{color:#e0e0e0}[data-theme=dark] .panel input,[data-theme=dark] .panel select{background-color:#2a2a2a;border:1px solid #444;color:#e0e0e0}[data-theme=dark] .panel hr{border-color:#444}.panel canvas{display:block;margin:auto;cursor:pointer}.panel label{font-weight:700;display:block;margin-top:12px}.panel input,.panel select{width:100%;margin-top:4px}.panel hr{margin:18px 0}.colors{display:flex;flex-wrap:wrap;gap:12px}.swatchBox{text-align:center;font-size:13px}.swatch{width:70px;height:70px;border-radius:10px;border:1px solid #ccc}.panel pre{background:#f3f3f3;padding:10px;border-radius:10px;font-size:12px;overflow-x:auto;max-height:320px}.panel h3{margin-top:0}
1
+ .color-wheel-container {
2
+ margin: 0;
3
+ font-family: sans-serif;
4
+ background-color: #ffffff;
5
+ }
6
+
7
+ [data-theme="dark"] .color-wheel-container {
8
+ background-color: #1a1a1a !important;
9
+ }
10
+
11
+ .color-wheel-container h2 {
12
+ text-align: center;
13
+ padding: 15px;
14
+ margin: 0;
15
+ background: #222;
16
+ color: white;
17
+ }
18
+
19
+ .layout {
20
+ display: grid;
21
+ grid-template-columns: 20% 30% 50%;
22
+ height: 100vh;
23
+ }
24
+
25
+ .panel {
26
+ padding: 15px;
27
+ overflow-y: auto;
28
+ border-right: 1px solid #ddd;
29
+ background-color: #ffffff;
30
+ }
31
+
32
+ [data-theme="dark"] .panel {
33
+ background-color: #1a1a1a !important;
34
+ border-right-color: #444;
35
+ color: #e0e0e0;
36
+ }
37
+
38
+ [data-theme="dark"] .panel label {
39
+ color: #e0e0e0;
40
+ }
41
+
42
+ [data-theme="dark"] .panel input,
43
+ [data-theme="dark"] .panel select {
44
+ background-color: #2a2a2a;
45
+ border: 1px solid #444;
46
+ color: #e0e0e0;
47
+ }
48
+
49
+ [data-theme="dark"] .panel hr {
50
+ border-color: #444;
51
+ }
52
+
53
+ .panel canvas {
54
+ display: block;
55
+ margin: auto;
56
+ cursor: pointer;
57
+ }
58
+
59
+ .panel label {
60
+ font-weight: bold;
61
+ display: block;
62
+ margin-top: 12px;
63
+ }
64
+
65
+ .panel input,
66
+ .panel select {
67
+ width: 100%;
68
+ margin-top: 4px;
69
+ }
70
+
71
+ .panel hr {
72
+ margin: 18px 0;
73
+ }
74
+
75
+ .colors {
76
+ display: flex;
77
+ flex-wrap: wrap;
78
+ gap: 12px;
79
+ }
80
+
81
+ .swatchBox {
82
+ text-align: center;
83
+ font-size: 13px;
84
+ }
85
+
86
+ .swatch {
87
+ width: 70px;
88
+ height: 70px;
89
+ border-radius: 10px;
90
+ border: 1px solid #ccc;
91
+ }
92
+
93
+ .panel pre {
94
+ background: #f3f3f3;
95
+ padding: 10px;
96
+ border-radius: 10px;
97
+ font-size: 12px;
98
+ overflow-x: auto;
99
+ max-height: 320px;
100
+ }
101
+
102
+ .panel h3 {
103
+ margin-top: 0;
104
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@studiotoolkit/color-wheel",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "license": "MIT",
5
5
  "description": "Interactive color wheel React component for creating and manipulating color harmonies with multiple harmony modes",
6
6
  "author": "StudioToolkit",
@@ -39,8 +39,7 @@
39
39
  "require": "./dist/index.js",
40
40
  "default": "./dist/index.js"
41
41
  },
42
- "./style.css": "./dist/ColorWheel.css",
43
- "./src/ColorWheel.css": "./src/ColorWheel.css",
42
+ "./style.css": "./dist/style.css",
44
43
  "./package.json": "./package.json"
45
44
  },
46
45
  "files": [
@@ -66,7 +65,7 @@
66
65
  "vite": "^5.0.0"
67
66
  },
68
67
  "scripts": {
69
- "build": "npx tsc --project tsconfig.json && vite build",
68
+ "build": "npx tsc --project tsconfig.json && vite build && cp src/ColorWheel.css dist/style.css",
70
69
  "dev": "vite build --watch",
71
70
  "clean": "rm -rf dist",
72
71
  "lint": "eslint src --ext .ts,.tsx",