@octanejs/radix 0.1.53 → 0.1.54

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.
@@ -33,7 +33,7 @@ function createContextScope(scopeName, createContextScopeDeps = []) {
33
33
  const { scope, children, ...context } = props;
34
34
  const Context = scope?.[scopeName]?.[index] || BaseContext;
35
35
  const value = (0, import_octane.useMemo)(() => context, Object.values(context), (0, import_internal.S)(scopeName + ":P" + index));
36
- return (0, import_octane.createElement)(Context.Provider, { value, children });
36
+ return (0, import_octane.createElement)(Context, { value, children });
37
37
  }
38
38
  function useContext(consumerName, scope) {
39
39
  const Context = scope?.[scopeName]?.[index] || BaseContext;
@@ -27,7 +27,7 @@ var import_octane = require("octane");
27
27
  const DirectionContext = (0, import_octane.createContext)(void 0);
28
28
  function DirectionProvider(props) {
29
29
  const { dir, children } = props;
30
- return (0, import_octane.createElement)(DirectionContext.Provider, { value: dir, children });
30
+ return (0, import_octane.createElement)(DirectionContext, { value: dir, children });
31
31
  }
32
32
  function useDirection(localDir) {
33
33
  const globalDir = (0, import_octane.useContext)(DirectionContext);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@octanejs/radix",
3
- "version": "0.1.53",
3
+ "version": "0.1.54",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -47,10 +47,10 @@
47
47
  },
48
48
  "dependencies": {
49
49
  "aria-hidden": "^1.2.6",
50
- "@octanejs/floating-ui": "0.1.53"
50
+ "@octanejs/floating-ui": "0.1.54"
51
51
  },
52
52
  "peerDependencies": {
53
- "octane": "^0.1.51 || ^0.2.0"
53
+ "octane": "^0.1.51 || ^0.2.0 || ^0.3.0"
54
54
  },
55
55
  "devDependencies": {
56
56
  "@tsrx/react": "^0.3.0",
@@ -59,7 +59,7 @@
59
59
  "react": "19.2.7",
60
60
  "react-dom": "19.2.7",
61
61
  "vitest": "^4.1.10",
62
- "octane": "0.2.12"
62
+ "octane": "0.3.0"
63
63
  },
64
64
  "scripts": {
65
65
  "build:cjs": "node ../../scripts/build-package-commonjs.mjs",
package/src/context.ts CHANGED
@@ -44,7 +44,7 @@ export function createContextScope(
44
44
  const { scope, children, ...context } = props;
45
45
  const Context = scope?.[scopeName]?.[index] || BaseContext;
46
46
  const value = useMemo(() => context, Object.values(context), S(scopeName + ':P' + index));
47
- return createElement(Context.Provider, { value, children });
47
+ return createElement(Context, { value, children });
48
48
  }
49
49
 
50
50
  function useContext(consumerName: string, scope?: Scope): T {
package/src/direction.ts CHANGED
@@ -8,7 +8,7 @@ const DirectionContext = createContext<Direction | undefined>(undefined);
8
8
 
9
9
  export function DirectionProvider(props: { dir: Direction; children?: any }): any {
10
10
  const { dir, children } = props;
11
- return createElement(DirectionContext.Provider, { value: dir, children });
11
+ return createElement(DirectionContext, { value: dir, children });
12
12
  }
13
13
 
14
14
  export function useDirection(localDir?: Direction): Direction {