@veritree/ui 0.64.4 → 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/mixins/form-control.js
CHANGED
|
@@ -73,7 +73,7 @@ export const formControlStyleMixin = {
|
|
|
73
73
|
return [
|
|
74
74
|
this.headless
|
|
75
75
|
? `${this.name}`
|
|
76
|
-
: 'leading-0 flex w-full max-w-full relative appearance-none placeholder:font-light placeholder:text-gray-500 items-center justify-between rounded border border-solid px-3 py-2 font-inherit text-sm text-inherit file:hidden focus:border-gray-600 focus:placeholder:text-gray-400',
|
|
76
|
+
: 'leading-0 bg-white disabled:bg-gray-200 flex w-full max-w-full relative appearance-none placeholder:font-light placeholder:text-gray-500 items-center justify-between rounded border border-solid px-3 py-2 font-inherit text-sm text-inherit file:hidden focus:border-gray-600 focus:placeholder:text-gray-400',
|
|
77
77
|
// variant styles
|
|
78
78
|
this.headless
|
|
79
79
|
? `${this.name}--${this.variant}`
|
package/package.json
CHANGED
|
@@ -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
|
},
|