@fiscozen/composables 0.1.34 → 0.1.35

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.34",
3
+ "version": "0.1.35",
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/eslint-config": "^0.1.0",
28
29
  "@fiscozen/prettier-config": "^0.1.0",
29
- "@fiscozen/tsconfig": "^0.1.0",
30
- "@fiscozen/eslint-config": "^0.1.0"
30
+ "@fiscozen/tsconfig": "^0.1.0"
31
31
  },
32
32
  "license": "ISC",
33
33
  "scripts": {
@@ -297,6 +297,9 @@ 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
+
300
303
  safeElementDomRef.value.style.top = `${float.position.y}px`
301
304
  safeElementDomRef.value.style.left = `${float.position.x}px`
302
305
  safeElementDomRef.value.style.position = 'fixed'