@veritree/ui 0.63.0 → 0.63.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.
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
formControlMixin,
|
|
3
|
+
formControlStyleMixin,
|
|
4
|
+
} from '../mixins/form-control';
|
|
2
5
|
|
|
3
6
|
export const formControlIconMixin = {
|
|
4
7
|
inheritAttrs: false,
|
|
@@ -22,7 +25,7 @@ export const formControlIconMixin = {
|
|
|
22
25
|
|
|
23
26
|
classComputedWrapper() {
|
|
24
27
|
return [
|
|
25
|
-
this.headless ? 'form-control-wrapper' : 'relative',
|
|
28
|
+
this.headless ? 'form-control-wrapper' : 'relative h-max',
|
|
26
29
|
// placement styles
|
|
27
30
|
this.headless
|
|
28
31
|
? `form-control-icon--${this.placement}`
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
headless
|
|
12
12
|
? 'button'
|
|
13
13
|
: isIcon
|
|
14
|
-
?
|
|
14
|
+
? `relative inline-flex items-center justify-center rounded-full [&_svg]:max-h-full [&_svg]:max-w-full`
|
|
15
15
|
: 'relative inline-flex rounded border border-solid px-4 text-sm font-semibold leading-none no-underline transition-all',
|
|
16
16
|
// variant styles
|
|
17
17
|
headless
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
:class="[
|
|
7
7
|
headless
|
|
8
8
|
? 'tab-list__button'
|
|
9
|
-
: 'flex items-center rounded-none border-0 border-b-2 border-solid bg-none px-0 py-2 font-
|
|
9
|
+
: 'flex items-center rounded-none border-0 border-b-2 border-solid bg-none px-0 py-2 font-medium',
|
|
10
10
|
selected
|
|
11
11
|
? headless
|
|
12
12
|
? 'tab-list__button--selected'
|
|
@@ -32,7 +32,7 @@ import { keys } from '../../utils/keyboard';
|
|
|
32
32
|
export default {
|
|
33
33
|
name: 'VTTabItem',
|
|
34
34
|
|
|
35
|
-
inject: ['
|
|
35
|
+
inject: ['apiTabs'],
|
|
36
36
|
|
|
37
37
|
props: {
|
|
38
38
|
headless: {
|
|
@@ -43,7 +43,7 @@ export default {
|
|
|
43
43
|
|
|
44
44
|
data() {
|
|
45
45
|
return {
|
|
46
|
-
api: this.
|
|
46
|
+
api: this.apiTabs(),
|
|
47
47
|
index: null,
|
|
48
48
|
indexFocus: null,
|
|
49
49
|
selected: false,
|