aab23c9077
* add unmount strategy to README (React)
* add unmount strategy to README (Vue)
* add different render features (React)
* use render features in Menu and Listbox (React)
* add different render features (Vue)
* use render features in Menu and Listbox (Vue)
* bump dependencies
* add ability to change the ref property using `refName`
Example use case:
```tsx
// Some components have this API with an `innerRef`. The suggested approach is to use
// `React.forwardRef` so that you get the actual `ref` value. However if you already have this
// `innerRef` API than we can use the `refName="innerRef"` to give the `ref` prop a good name. It
// defaults to `ref` so that it still works everywhere else.
function MyButton({ innerRef, ...props }) {
return <button ref={innerRef} {...props} />
}
<Menu.Button as={MyButton} refName="innerRef" />
```
* small cleanup, move refs to props we control
* add tests for the render abstraction (Render)
+ use the unique __ symbol as a default value in the Props type for the
omitable props.
* use render features in Transition (React)
* add/update Transition examples to also showcase the `unmount={false}` render strategy
* bump dependencies
* add example with nested unmount/hide transitions
* add unmount to Transition documentation
45 lines
1.0 KiB
JSON
45 lines
1.0 KiB
JSON
{
|
|
"name": "@headlessui/react",
|
|
"version": "0.2.0",
|
|
"main": "dist/index.js",
|
|
"typings": "dist/index.d.ts",
|
|
"module": "dist/headlessui.esm.js",
|
|
"license": "MIT",
|
|
"files": [
|
|
"dist"
|
|
],
|
|
"engines": {
|
|
"node": ">=10"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/tailwindlabs/headlessui.git",
|
|
"directory": "packages/@headlessui-react"
|
|
},
|
|
"publishConfig": {
|
|
"access": "public"
|
|
},
|
|
"scripts": {
|
|
"playground": "next dev",
|
|
"playground:build": "next build",
|
|
"prepublishOnly": "npm run build",
|
|
"test": "../../scripts/test.sh",
|
|
"build": "../../scripts/build.sh",
|
|
"lint": "../../scripts/lint.sh"
|
|
},
|
|
"peerDependencies": {
|
|
"react": ">=16"
|
|
},
|
|
"devDependencies": {
|
|
"@types/react": "^16.9.53",
|
|
"@types/react-dom": "^16.9.8",
|
|
"@popperjs/core": "^2.5.3",
|
|
"@testing-library/react": "^11.1.0",
|
|
"framer-motion": "^2.9.1",
|
|
"next": "9.5.5",
|
|
"react": "^16.14.0",
|
|
"react-dom": "^16.14.0",
|
|
"snapshot-diff": "^0.8.1"
|
|
}
|
|
}
|