24725216e4
* add watch script * make interactions in Vue and React consistent * re-work focus restoration When we click outside of the Menu or Listbox, we want to restore the focus to the Button, *unless* we clicked on/in an element that is focusable in itself. For example, when the Menu is open and you click in an input field, the input field should stay focused. We should also close the Menu itself at this point. * add examples with multiple elements * bump dependencies
47 lines
1.1 KiB
JSON
47 lines
1.1 KiB
JSON
{
|
|
"name": "headlessui",
|
|
"version": "0.0.1",
|
|
"description": "Headless UI components for various libraries like React and Vue",
|
|
"main": "index.js",
|
|
"repository": "https://github.com/tailwindlabs/headlessui",
|
|
"license": "MIT",
|
|
"private": true,
|
|
"workspaces": [
|
|
"packages/*"
|
|
],
|
|
"scripts": {
|
|
"react": "yarn workspace @headlessui/react",
|
|
"vue": "yarn workspace @headlessui/vue",
|
|
"shared": "yarn workspace @headlessui/shared",
|
|
"build": "yarn workspaces run build",
|
|
"test": "./scripts/test.sh",
|
|
"lint": "./scripts/lint.sh"
|
|
},
|
|
"husky": {
|
|
"hooks": {
|
|
"pre-commit": "lint-staged"
|
|
}
|
|
},
|
|
"lint-staged": {
|
|
"*.{js,jsx,ts,tsx}": "tsdx lint"
|
|
},
|
|
"prettier": {
|
|
"printWidth": 100,
|
|
"semi": false,
|
|
"singleQuote": true,
|
|
"trailingComma": "es5"
|
|
},
|
|
"devDependencies": {
|
|
"@tailwindcss/ui": "^0.6.2",
|
|
"@testing-library/jest-dom": "^5.11.4",
|
|
"@types/node": "^14.14.0",
|
|
"husky": "^4.3.0",
|
|
"lint-staged": "^10.4.2",
|
|
"prismjs": "^1.22.0",
|
|
"tailwindcss": "^1.9.5",
|
|
"tsdx": "^0.14.1",
|
|
"tslib": "^2.0.3",
|
|
"typescript": "^3.9.7"
|
|
}
|
|
}
|