03c22b42b6
* make `handleOutsideClick` stable * cancel "outside click" when "scrolling" on touch device When on a touch device, then the `touchend` event will fire, even if you scrolled a bit and scrolling was your intention. This now tracks that touches were at least 30px apart in either the X or Y direction. If that's the case, then we do not consider it an outside click. * add `enabled` parameter to `useDocumentEvent` and `useWindowEvent` * update `useDocumentEvent` and `useWindowEvent` usages This now takes the new `enabled` value into account. * update changelog * bump vue and vite in playground
37 lines
1.1 KiB
JSON
37 lines
1.1 KiB
JSON
{
|
|
"name": "playground-vue",
|
|
"private": true,
|
|
"version": "0.0.0",
|
|
"directories": {
|
|
"example": "examples"
|
|
},
|
|
"scripts": {
|
|
"prebuild": "npm run build --workspace=@headlessui/vue && npm run build --workspace=@headlessui/tailwindcss",
|
|
"predev": "npm run build --workspace=@headlessui/vue && npm run build --workspace=@headlessui/tailwindcss",
|
|
"dev:tailwindcss": "npm run watch --workspace=@headlessui/tailwindcss",
|
|
"dev:headlessui": "npm run watch --workspace=@headlessui/vue",
|
|
"dev:next": "vite serve",
|
|
"dev": "npm-run-all -p dev:*",
|
|
"build": "NODE_ENV=production vite build",
|
|
"lint-types": "echo",
|
|
"clean": "rimraf ./dist"
|
|
},
|
|
"dependencies": {
|
|
"@headlessui/vue": "*",
|
|
"@heroicons/vue": "^1.0.6",
|
|
"@tailwindcss/forms": "^0.5.2",
|
|
"@tailwindcss/typography": "^0.5.2",
|
|
"autoprefixer": "^10.4.7",
|
|
"postcss": "^8.4.14",
|
|
"tailwindcss": "^3.3.3",
|
|
"vue": "^3.4.27",
|
|
"vue-flatpickr-component": "^9.0.5",
|
|
"vue-router": "^4.3.2"
|
|
},
|
|
"devDependencies": {
|
|
"@floating-ui/vue": "^1.0.2",
|
|
"@vitejs/plugin-vue": "^5.0.5",
|
|
"vite": "^5.2.12"
|
|
}
|
|
}
|