autumn-js 0.1.41-beta.0 → 0.1.41

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.
@@ -2,7 +2,7 @@
2
2
 
3
3
  import {
4
4
  useLayoutEffect2
5
- } from "./chunk-7NRUXGKJ.mjs";
5
+ } from "./chunk-YJ66CCNM.mjs";
6
6
 
7
7
  // ../node_modules/.pnpm/@radix-ui+react-use-size@1.1.1_@types+react@19.1.10_react@19.1.1/node_modules/@radix-ui/react-use-size/dist/index.mjs
8
8
  import * as React from "react";
@@ -2,28 +2,16 @@
2
2
 
3
3
  import {
4
4
  useLayoutEffect2
5
- } from "./chunk-7NRUXGKJ.mjs";
5
+ } from "./chunk-YJ66CCNM.mjs";
6
6
  import {
7
7
  useComposedRefs
8
8
  } from "./chunk-DXHYWJOY.mjs";
9
9
 
10
- // ../node_modules/.pnpm/@radix-ui+react-id@1.1.1_@types+react@19.1.10_react@19.1.1/node_modules/@radix-ui/react-id/dist/index.mjs
11
- import * as React from "react";
12
- var useReactId = React[" useId ".trim().toString()] || (() => void 0);
13
- var count = 0;
14
- function useId(deterministicId) {
15
- const [id, setId] = React.useState(useReactId());
16
- useLayoutEffect2(() => {
17
- if (!deterministicId) setId((reactId) => reactId ?? String(count++));
18
- }, [deterministicId]);
19
- return deterministicId || (id ? `radix-${id}` : "");
20
- }
21
-
22
10
  // ../node_modules/.pnpm/@radix-ui+react-presence@1.1.4_@types+react-dom@19.1.9_@types+react@19.1.10__@types+rea_7d38616061dbf89127c9b19685065376/node_modules/@radix-ui/react-presence/dist/index.mjs
23
11
  import * as React2 from "react";
24
- import * as React3 from "react";
12
+ import * as React from "react";
25
13
  function useStateMachine(initialState, machine) {
26
- return React3.useReducer((state, event) => {
14
+ return React.useReducer((state, event) => {
27
15
  const nextState = machine[state][event];
28
16
  return nextState ?? state;
29
17
  }, initialState);
@@ -145,7 +133,19 @@ function getElementRef(element) {
145
133
  return element.props.ref || element.ref;
146
134
  }
147
135
 
136
+ // ../node_modules/.pnpm/@radix-ui+react-id@1.1.1_@types+react@19.1.10_react@19.1.1/node_modules/@radix-ui/react-id/dist/index.mjs
137
+ import * as React3 from "react";
138
+ var useReactId = React3[" useId ".trim().toString()] || (() => void 0);
139
+ var count = 0;
140
+ function useId(deterministicId) {
141
+ const [id, setId] = React3.useState(useReactId());
142
+ useLayoutEffect2(() => {
143
+ if (!deterministicId) setId((reactId) => reactId ?? String(count++));
144
+ }, [deterministicId]);
145
+ return deterministicId || (id ? `radix-${id}` : "");
146
+ }
147
+
148
148
  export {
149
- useId,
150
- Presence
149
+ Presence,
150
+ useId
151
151
  };