@1001-digital/components 2.0.0 → 2.0.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@1001-digital/components",
3
- "version": "2.0.0",
3
+ "version": "2.0.2",
4
4
  "type": "module",
5
5
  "main": "./src/index.ts",
6
6
  "sideEffects": [
@@ -6,7 +6,7 @@
6
6
  </nav>
7
7
  </template>
8
8
 
9
- <style>
9
+ <style scoped>
10
10
  @layer components {
11
11
  .bottom-nav {
12
12
  position: fixed;
@@ -104,7 +104,7 @@ const resolveDisplayValue = (val: any) => {
104
104
  }
105
105
  </script>
106
106
 
107
- <style>
107
+ <style scoped>
108
108
  @layer components {
109
109
  .combobox-root {
110
110
  inline-size: 100%;
@@ -71,7 +71,7 @@ const props = withDefaults(
71
71
  const open = defineModel<boolean>('open', { required: true })
72
72
  </script>
73
73
 
74
- <style>
74
+ <style scoped>
75
75
  @layer components {
76
76
  .dropdown {
77
77
  background: var(--dropdown-background);
@@ -187,7 +187,7 @@ const open = defineModel<boolean>('open')
187
187
  const placeholderValue = ref(props.placeholder) as ReturnType<typeof ref<DateValue | undefined>>
188
188
  </script>
189
189
 
190
- <style>
190
+ <style scoped>
191
191
  @layer components {
192
192
  .form-date-picker-anchor {
193
193
  display: inline-flex;
@@ -9,6 +9,7 @@
9
9
  position: relative;
10
10
  display: flex;
11
11
  align-items: center;
12
+ gap: var(--border-width);
12
13
 
13
14
  & :deep(input + .icon) {
14
15
  position: absolute;
@@ -42,7 +43,6 @@
42
43
  + input,
43
44
  + button,
44
45
  + a {
45
- margin-inline-start: calc(-1 * var(--border-width));
46
46
  border-start-start-radius: 0 !important;
47
47
  border-end-start-radius: 0 !important;
48
48
  }
@@ -25,7 +25,15 @@
25
25
  </template>
26
26
 
27
27
  <script setup lang="ts">
28
- import { ref, reactive, computed, watch, watchEffect, onMounted, onBeforeUnmount } from 'vue'
28
+ import {
29
+ ref,
30
+ reactive,
31
+ computed,
32
+ watch,
33
+ watchEffect,
34
+ onMounted,
35
+ onBeforeUnmount,
36
+ } from 'vue'
29
37
  import { useMediaQuery, useScrollLock, useElementSize } from '@vueuse/core'
30
38
 
31
39
  const open = defineModel<boolean>('open', { default: false })
@@ -119,6 +127,9 @@ onMounted(() => {
119
127
  }
120
128
  }
121
129
 
130
+ // Prevent browser back/forward navigation gesture
131
+ e.preventDefault()
132
+
122
133
  const w = sidebarWidth.value
123
134
  if (!w) return
124
135
 
@@ -160,7 +171,7 @@ onMounted(() => {
160
171
  }
161
172
 
162
173
  document.addEventListener('touchstart', onTouchStart, { passive: true })
163
- document.addEventListener('touchmove', onTouchMove, { passive: true })
174
+ document.addEventListener('touchmove', onTouchMove, { passive: false })
164
175
  document.addEventListener('touchend', onTouchEnd)
165
176
 
166
177
  cleanupSwipe = () => {
@@ -206,7 +217,7 @@ defineExpose({
206
217
  })
207
218
  </script>
208
219
 
209
- <style>
220
+ <style scoped>
210
221
  @layer components {
211
222
  .sidebar {
212
223
  position: fixed;
@@ -64,7 +64,7 @@ const props = withDefaults(
64
64
  )
65
65
  </script>
66
66
 
67
- <style>
67
+ <style scoped>
68
68
  @layer components {
69
69
  .tooltip {
70
70
  background: var(--tooltip-background);