@veritree/ui 0.65.1 → 0.66.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 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
|
|
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-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}`
|
|
@@ -87,7 +87,7 @@ export const formControlStyleMixin = {
|
|
|
87
87
|
? null
|
|
88
88
|
: this.name === 'textarea'
|
|
89
89
|
? 'min-h-10' // limit it because input type number height can be different from other input types
|
|
90
|
-
: this.size === 'small' ? 'h-8' : 'h-10',
|
|
90
|
+
: this.size === 'small' ? 'h-8 text-sm' : 'h-10 text-base',
|
|
91
91
|
// disabled styles
|
|
92
92
|
this.disabled
|
|
93
93
|
? this.headless
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="relative flex snap-start overflow-x-scroll">
|
|
2
|
+
<div class="relative flex snap-start overflow-x-scroll [&>*]:shrink-0">
|
|
3
3
|
<slot />
|
|
4
4
|
</div>
|
|
5
5
|
</template>
|
|
@@ -21,7 +21,7 @@ export default {
|
|
|
21
21
|
return;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
this.$el.removeEventListener('scrollend', this.
|
|
24
|
+
this.$el.removeEventListener('scrollend', this.onScroll);
|
|
25
25
|
this.mutationObserver.disconnect(this.$el);
|
|
26
26
|
},
|
|
27
27
|
|
|
@@ -55,13 +55,14 @@ export default {
|
|
|
55
55
|
|
|
56
56
|
/**
|
|
57
57
|
* Adds an event listener to the current element to listen for the 'scrollend' event
|
|
58
|
-
* and invokes the '
|
|
58
|
+
* and invokes the 'onScroll' method when the event is triggered.
|
|
59
59
|
*/
|
|
60
60
|
addEventListeners() {
|
|
61
|
-
|
|
61
|
+
console.log('Add event listener');
|
|
62
|
+
this.$el.addEventListener('scroll', this.onScroll);
|
|
62
63
|
},
|
|
63
64
|
|
|
64
|
-
|
|
65
|
+
onScroll() {
|
|
65
66
|
this.apiCarousel().isLeftEndReached();
|
|
66
67
|
this.apiCarousel().isLeftStartReached();
|
|
67
68
|
},
|