@charcoal-ui/react 3.13.0-beta.0 → 3.13.1

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/dist/index.esm.js CHANGED
@@ -27,7 +27,13 @@ function useComponentAbstraction() {
27
27
  }
28
28
 
29
29
  // src/core/SSRProvider.tsx
30
- import { SSRProvider } from "@react-aria/ssr";
30
+ import { SSRProvider as OriginSSRProvider } from "@react-aria/ssr";
31
+ import { version, Fragment } from "react";
32
+ function isReactVersionOver(minVersion) {
33
+ const reactMajorVersion = parseInt(version.split(".")[0], 10);
34
+ return Number.isFinite(reactMajorVersion) ? reactMajorVersion >= minVersion : false;
35
+ }
36
+ var SSRProvider = isReactVersionOver(18) ? Fragment : OriginSSRProvider;
31
37
 
32
38
  // src/core/OverlayProvider.tsx
33
39
  import { OverlayProvider } from "@react-aria/overlays";