40fee45afe
* First attempt at a multi-listbox * implement `multiple` mode on Listbox * add multiple Listbox example to playground * implement `multiple` mode on Combobox * make sure groupContext is not undefined or null On vercel, getting a strange issue like `TypeError: undefined is not an object (evaluating 'r.resolveTarget')` which doesn't happen locally or once published. Would expect it to be `null` since we default to `null`. Hopefully this fixes things. * bump all the dependencies * make sure that `@types/react` use set to the correct version `@types/react-dom` hardcoded the `@types/react` to version `16.14.21` instead of using the latest `16.14.24` resulting in type mismatches. *cries in inconsistency* * update changelog * add multiple Combobox example to playground * refactor Combobox, use actions * use combobox data This is a first step in refactoring everything where we use dedicated actions and data instead of accessing the reducer state directly. It also allows us to get rid of mutations in render where we updated some values in render directly which is not ideal. Co-authored-by: pvanliefland <pierre.vanliefland@gmail.com>
54 lines
1.5 KiB
JSON
54 lines
1.5 KiB
JSON
{
|
|
"name": "@headlessui/react",
|
|
"version": "1.5.0",
|
|
"description": "A set of completely unstyled, fully accessible UI components for React, designed to integrate beautifully with Tailwind CSS.",
|
|
"main": "dist/index.cjs",
|
|
"typings": "dist/index.d.ts",
|
|
"module": "dist/headlessui.esm.js",
|
|
"license": "MIT",
|
|
"files": [
|
|
"README.md",
|
|
"dist"
|
|
],
|
|
"exports": {
|
|
"import": "./dist/headlessui.esm.js",
|
|
"require": "./dist/index.cjs",
|
|
"types": "./dist/index.d.ts"
|
|
},
|
|
"type": "module",
|
|
"sideEffects": false,
|
|
"engines": {
|
|
"node": ">=10"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/tailwindlabs/headlessui.git",
|
|
"directory": "packages/@headlessui-react"
|
|
},
|
|
"publishConfig": {
|
|
"access": "public"
|
|
},
|
|
"scripts": {
|
|
"prepublishOnly": "npm run build",
|
|
"build": "../../scripts/build.sh --external:react --external:react-dom",
|
|
"watch": "../../scripts/watch.sh --external:react --external:react-dom",
|
|
"test": "../../scripts/test.sh",
|
|
"lint": "../../scripts/lint.sh",
|
|
"playground": "yarn workspace playground-react dev",
|
|
"clean": "rimraf ./dist"
|
|
},
|
|
"peerDependencies": {
|
|
"react": "^16 || ^17 || ^18",
|
|
"react-dom": "^16 || ^17 || ^18"
|
|
},
|
|
"devDependencies": {
|
|
"@testing-library/react": "^11.2.3",
|
|
"@types/react": "16.14.21",
|
|
"@types/react-dom": "^16.9.0",
|
|
"esbuild": "^0.11.18",
|
|
"react": "^16.14.0",
|
|
"react-dom": "^16.14.0",
|
|
"snapshot-diff": "^0.8.1"
|
|
}
|
|
}
|