@octanejs/floating-ui 0.1.2 → 0.1.4
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/README.md +22 -0
- package/package.json +9 -2
package/README.md
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# @octanejs/floating-ui
|
|
2
|
+
|
|
3
|
+
[Floating UI](https://floating-ui.com) for the [octane](https://github.com/octanejs/octane) UI framework.
|
|
4
|
+
|
|
5
|
+
A port of `@floating-ui/react` 0.27.19 — positioning (`useFloating`, the
|
|
6
|
+
ref-aware `arrow`, the `@floating-ui/dom` middleware re-exports, the floating
|
|
7
|
+
tree), the full interaction-hook set (`useInteractions`, `useHover` +
|
|
8
|
+
`safePolygon`, `useClick`, `useFocus`, `useDismiss`, `useRole`,
|
|
9
|
+
`useClientPoint`, `useListNavigation`, `useTypeahead`), the component layer
|
|
10
|
+
(`FloatingPortal`, `FloatingOverlay`, `FloatingFocusManager`, `FloatingArrow`,
|
|
11
|
+
`FloatingList`, `Composite`), and transitions + `FloatingDelayGroup`. As
|
|
12
|
+
everywhere in octane, `forwardRef` becomes a plain `ref` prop.
|
|
13
|
+
|
|
14
|
+
```tsx
|
|
15
|
+
import { useFloating, useInteractions, useHover, offset, flip } from '@octanejs/floating-ui';
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Status
|
|
19
|
+
|
|
20
|
+
Current scope, known divergences, and verification status are tracked in the
|
|
21
|
+
generated [bindings status table](../../docs/bindings-status.md), sourced from
|
|
22
|
+
this package's [`status.json`](./status.json).
|
package/package.json
CHANGED
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@octanejs/floating-ui",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
|
+
"octane": {
|
|
7
|
+
"hookSlots": {
|
|
8
|
+
"manual": [
|
|
9
|
+
"src"
|
|
10
|
+
]
|
|
11
|
+
}
|
|
12
|
+
},
|
|
6
13
|
"description": "Floating UI bindings for the octane renderer — a port of @floating-ui/react (positioning + interactions + focus management) on top of the framework-agnostic @floating-ui/dom.",
|
|
7
14
|
"author": {
|
|
8
15
|
"name": "Dominic Gannaway",
|
|
@@ -30,7 +37,7 @@
|
|
|
30
37
|
"@floating-ui/dom": "^1.7.0",
|
|
31
38
|
"@floating-ui/utils": "^0.2.11",
|
|
32
39
|
"tabbable": "^6.5.0",
|
|
33
|
-
"octane": "0.1.
|
|
40
|
+
"octane": "0.1.5"
|
|
34
41
|
},
|
|
35
42
|
"devDependencies": {
|
|
36
43
|
"@floating-ui/react": "0.27.19",
|