@fiscozen/composables 0.1.36-beta.0 → 0.1.36-beta.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": "@fiscozen/composables",
3
- "version": "0.1.36-beta.0",
3
+ "version": "0.1.36-beta.1",
4
4
  "description": "Design System utility composables",
5
5
  "main": "src/index.ts",
6
6
  "type": "module",
@@ -25,9 +25,9 @@
25
25
  "vite": "^5.0.10",
26
26
  "vitest": "^1.2.0",
27
27
  "vue-tsc": "^1.8.25",
28
+ "@fiscozen/tsconfig": "^0.1.0",
28
29
  "@fiscozen/eslint-config": "^0.1.0",
29
- "@fiscozen/prettier-config": "^0.1.0",
30
- "@fiscozen/tsconfig": "^0.1.0"
30
+ "@fiscozen/prettier-config": "^0.1.0"
31
31
  },
32
32
  "license": "ISC",
33
33
  "scripts": {
@@ -11,8 +11,8 @@ const props = withDefaults(defineProps<FzFloatingProps>(), {
11
11
 
12
12
  const emits = defineEmits(['fzfloating:setPosition'])
13
13
 
14
- const content = ref<HTMLElement | null>(null)
15
- const opener = ref<HTMLElement | null>(null)
14
+ const content = ref<HTMLElement>()
15
+ const opener = ref<HTMLElement>()
16
16
 
17
17
  const slots = useSlots()
18
18
 
@@ -297,9 +297,6 @@ export const useFloating = (
297
297
  translateY = 0
298
298
  }
299
299
 
300
- if(float.position.y < 0) float.position.y = 0
301
- if(float.position.x < 0) float.position.x = 0
302
-
303
300
  safeElementDomRef.value.style.top = `${float.position.y}px`
304
301
  safeElementDomRef.value.style.left = `${float.position.x}px`
305
302
  safeElementDomRef.value.style.position = 'fixed'