@veritree/ui 0.74.0 → 0.75.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.
@@ -10,6 +10,10 @@ export const floatingUiContentMixin = {
10
10
  type: Boolean,
11
11
  default: false,
12
12
  },
13
+ freeze: {
14
+ type: Boolean,
15
+ default: false,
16
+ },
13
17
  },
14
18
 
15
19
  data() {
@@ -63,7 +67,7 @@ export const floatingUiContentMixin = {
63
67
  },
64
68
 
65
69
  onDocumentClick(e) {
66
- if (!e || !this.el) {
70
+ if (!e || !this.el || this.freeze) {
67
71
  return;
68
72
  }
69
73
 
@@ -78,4 +82,4 @@ export const floatingUiContentMixin = {
78
82
  this.activeDescedant = id;
79
83
  },
80
84
  },
81
- }
85
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veritree/ui",
3
- "version": "0.74.0",
3
+ "version": "0.75.0",
4
4
  "description": "veritree ui library",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -11,10 +11,10 @@
11
11
  headless
12
12
  ? `avatar--${size}`
13
13
  : isSmall
14
- ? 'h-8 w-8'
15
- : isLarge
16
- ? 'h-10 w-10'
17
- : null,
14
+ ? 'h-8 w-8'
15
+ : isLarge
16
+ ? 'h-10 w-10'
17
+ : null,
18
18
  ]"
19
19
  >
20
20
  <slot></slot>
@@ -133,7 +133,7 @@ export default {
133
133
  * @type {number}
134
134
  */
135
135
  const distanceToLeftEnd = Math.abs(
136
- scrollWidth - offsetWidth - scrollLeft
136
+ scrollWidth - offsetWidth - scrollLeft,
137
137
  );
138
138
 
139
139
  // Check if the calculated distance is less than or equal to 10 pixels
@@ -135,8 +135,8 @@ export default {
135
135
  keyCode === 'ArrowDown'
136
136
  ? 'firstMenuItem'
137
137
  : keyCode === 'ArrowUp'
138
- ? 'lastMenuItem'
139
- : null;
138
+ ? 'lastMenuItem'
139
+ : null;
140
140
 
141
141
  // settimeout here is delaying the focusing the element
142
142
  // since it is not rendered yet. All items will only