@objectifthunes/whiteboard 0.2.2 → 0.2.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.
@@ -75,6 +75,65 @@
75
75
  --wb-shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.3);
76
76
  }
77
77
 
78
+ /* ── Base element styles ─────────────────────────────── */
79
+
80
+ button,
81
+ input,
82
+ textarea,
83
+ select {
84
+ font: inherit;
85
+ color: inherit;
86
+ }
87
+
88
+ button {
89
+ display: inline-flex;
90
+ align-items: center;
91
+ justify-content: center;
92
+ gap: 0.35rem;
93
+ border: 1px solid transparent;
94
+ border-radius: var(--wb-radius-sm);
95
+ padding: 0.34rem 0.62rem;
96
+ font-size: var(--wb-fs-base);
97
+ line-height: 1;
98
+ font-weight: 500;
99
+ white-space: nowrap;
100
+ color: var(--wb-surface-hover);
101
+ background: var(--wb-primary);
102
+ cursor: pointer;
103
+ transition: background-color var(--wb-transition-fast), transform var(--wb-transition-fast);
104
+ }
105
+
106
+ button:hover:not(:disabled) {
107
+ transform: translateY(-1px);
108
+ background: var(--wb-primary-pressed);
109
+ }
110
+
111
+ button:active:not(:disabled) { transform: translateY(0); }
112
+
113
+ button:disabled { cursor: not-allowed; opacity: 0.58; }
114
+
115
+ input,
116
+ textarea,
117
+ select {
118
+ width: 100%;
119
+ border: 1px solid var(--wb-border);
120
+ border-radius: var(--wb-radius-sm);
121
+ padding: 0.45rem 0.56rem;
122
+ font-size: var(--wb-fs-base);
123
+ line-height: 1.3;
124
+ background: var(--wb-surface);
125
+ }
126
+
127
+ textarea { min-height: 86px; resize: vertical; }
128
+
129
+ input:focus,
130
+ textarea:focus,
131
+ select:focus {
132
+ outline: none;
133
+ border-color: var(--wb-focus-border);
134
+ box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.38);
135
+ }
136
+
78
137
  /* ── Whiteboard Shell ────────────────────────────────── */
79
138
 
80
139
  .whiteboard-shell {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@objectifthunes/whiteboard",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "Pan/zoom whiteboard canvas with draggable panels, minimap, snap-to-grid, and zoom controls",
5
5
  "license": "MIT",
6
6
  "type": "module",