@1001-digital/components 2.0.2 → 2.0.3

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": "@1001-digital/components",
3
- "version": "2.0.2",
3
+ "version": "2.0.3",
4
4
  "type": "module",
5
5
  "main": "./src/index.ts",
6
6
  "sideEffects": [
@@ -13,9 +13,12 @@
13
13
  "files": [
14
14
  "src"
15
15
  ],
16
+ "publishConfig": {
17
+ "access": "public"
18
+ },
16
19
  "peerDependencies": {
17
20
  "vue": "^3.5.0",
18
- "@1001-digital/styles": "^2.0.0"
21
+ "@1001-digital/styles": "^2.1.0"
19
22
  },
20
23
  "dependencies": {
21
24
  "@iconify/vue": "^5.0.0",
@@ -7,7 +7,7 @@
7
7
  <slot name="trigger" />
8
8
  <Icon
9
9
  class="dropdown-sub-icon"
10
- type="chevron-right"
10
+ name="chevron-right"
11
11
  />
12
12
  </DropdownMenuSubTrigger>
13
13
 
@@ -72,7 +72,7 @@ watch(isLargeScreen, (lg) => {
72
72
  })
73
73
 
74
74
  // Swipe gesture handling
75
- const EDGE_WIDTH = 30
75
+ const EDGE_WIDTH = 100
76
76
  const SNAP_THRESHOLD = 0.3
77
77
 
78
78
  let cleanupSwipe: (() => void) | undefined
@@ -127,9 +127,6 @@ onMounted(() => {
127
127
  }
128
128
  }
129
129
 
130
- // Prevent browser back/forward navigation gesture
131
- e.preventDefault()
132
-
133
130
  const w = sidebarWidth.value
134
131
  if (!w) return
135
132
 
@@ -171,7 +168,7 @@ onMounted(() => {
171
168
  }
172
169
 
173
170
  document.addEventListener('touchstart', onTouchStart, { passive: true })
174
- document.addEventListener('touchmove', onTouchMove, { passive: false })
171
+ document.addEventListener('touchmove', onTouchMove, { passive: true })
175
172
  document.addEventListener('touchend', onTouchEnd)
176
173
 
177
174
  cleanupSwipe = () => {