@veritree/ui 0.64.5 → 0.65.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veritree/ui",
3
- "version": "0.64.5",
3
+ "version": "0.65.0",
4
4
  "description": "veritree ui library",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -24,6 +24,8 @@
24
24
  : 'border-gray-400 bg-white text-gray-700 hover:bg-gray-100 focus:bg-gray-200 active:bg-gray-200 disabled:border-gray-300 disabled:text-gray-400'
25
25
  : isTertiary
26
26
  ? 'border-transparent text-gray-600 hover:text-gray-800 focus:text-gray-800 active:text-gray-800 disabled:text-gray-400'
27
+ : isDark
28
+ ? 'border-transparent bg-gray-800 text-white hover:bg-gray-700 active:bg-gray-600 disabled:bg-gray-200 disabled:text-gray-400'
27
29
  : isIcon
28
30
  ? 'text-primary-100 focus-within:bg-gray-200 hover:bg-gray-200 active:bg-gray-300 disabled:bg-gray-200 disabled:text-gray-400'
29
31
  : null,
@@ -174,6 +176,10 @@ export default {
174
176
  return this.variant === 'tertiary';
175
177
  },
176
178
 
179
+ isDark() {
180
+ return this.variant === 'dark';
181
+ },
182
+
177
183
  isIcon() {
178
184
  return this.variant === 'icon';
179
185
  },