@octanejs/floating-ui 0.1.52 → 0.1.53

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.
Files changed (2) hide show
  1. package/package.json +3 -3
  2. package/src/utils/index.ts +3 -12
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@octanejs/floating-ui",
3
- "version": "0.1.52",
3
+ "version": "0.1.53",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -63,7 +63,7 @@
63
63
  "@testing-library/user-event": "14.6.1",
64
64
  "@types/react": "18.3.19",
65
65
  "@types/react-dom": "18.3.1",
66
- "@tsrx/react": "^0.2.67",
66
+ "@tsrx/react": "^0.3.0",
67
67
  "@vitest/browser": "4.1.10",
68
68
  "@floating-ui/react": "0.27.19",
69
69
  "@floating-ui/react-dom": "2.1.8",
@@ -81,7 +81,7 @@
81
81
  "vitest": "3.0.9",
82
82
  "vitest-browser-react": "0.1.1",
83
83
  "@octanejs/testing-library": "0.1.51",
84
- "octane": "0.2.5"
84
+ "octane": "0.2.12"
85
85
  },
86
86
  "scripts": {
87
87
  "build:cjs": "node ../../scripts/build-package-commonjs.mjs",
@@ -7,24 +7,15 @@
7
7
  import { isShadowRoot, isHTMLElement } from '@floating-ui/utils/dom';
8
8
  import { floor } from '@floating-ui/utils';
9
9
  import { tabbable, type FocusableElement } from 'tabbable';
10
- import { useCallback, useLayoutEffect, useRef } from 'octane';
11
- import type { Octane } from 'octane/jsx-runtime';
10
+ import { useCallback, useLayoutEffect, useRef, type CSSProperties } from 'octane';
12
11
  import type { Dimensions } from '@floating-ui/dom';
13
12
 
14
13
  import { subSlot } from '../internal';
15
14
  import type { Delay, MutableRefObject } from '../types';
16
15
 
17
- export { getDeepestNode, getNodeAncestors, getNodeChildren } from './nodes';
16
+ export type { CSSProperties } from 'octane';
18
17
 
19
- /**
20
- * The OBJECT form of octane's `style` prop — the port's analog of
21
- * `React.CSSProperties` (octane's `style` additionally accepts a plain string;
22
- * helpers that merge/inspect style objects require this form).
23
- */
24
- export type CSSProperties = Exclude<
25
- Octane.HTMLAttributes<HTMLElement>['style'],
26
- string | undefined
27
- >;
18
+ export { getDeepestNode, getNodeAncestors, getNodeChildren } from './nodes';
28
19
 
29
20
  /** Which list items are disabled (mirrors upstream's unexported `DisabledIndices`). */
30
21
  export type DisabledIndices = Array<number> | ((index: number) => boolean);