@veritree/ui 0.65.2 → 0.66.1

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.65.2",
3
+ "version": "0.66.1",
4
4
  "description": "veritree ui library",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <div
3
3
  :class="[visible ? 'pointer-events-none opacity-0' : 'opacity-100']"
4
- class="transition-opacity duration-100"
4
+ class="flex items-center justify-start transition-opacity duration-100"
5
5
  >
6
6
  <slot :scroll-backward="scrollBackward" />
7
7
  </div>
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <div
3
3
  :class="[visible ? 'opacity-100' : 'pointer-events-none opacity-0']"
4
- class="transition-opacity duration-100"
4
+ class="flex items-center justify-end transition-opacity duration-100"
5
5
  >
6
6
  <slot :scroll-forward="scrollForward" />
7
7
  </div>
@@ -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.onScrollEnd);
24
+ this.$el.removeEventListener('scrollend', this.onScroll);
25
25
  this.mutationObserver.disconnect(this.$el);
26
26
  },
27
27
 
@@ -55,13 +55,13 @@ 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 'onScrollEnd' method when the event is triggered.
58
+ * and invokes the 'onScroll' method when the event is triggered.
59
59
  */
60
60
  addEventListeners() {
61
- this.$el.addEventListener('scrollend', this.onScrollEnd);
61
+ this.$el.addEventListener('scroll', this.onScroll);
62
62
  },
63
63
 
64
- onScrollEnd() {
64
+ onScroll() {
65
65
  this.apiCarousel().isLeftEndReached();
66
66
  this.apiCarousel().isLeftStartReached();
67
67
  },