@hanzogui/adapt 2.0.4 → 2.0.7
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/cjs/Adapt.cjs +7 -7
- package/dist/cjs/Adapt.native.js +7 -7
- package/dist/esm/Adapt.mjs +7 -7
- package/dist/esm/Adapt.native.js +7 -7
- package/package.json +1 -1
- package/src/Adapt.tsx +7 -7
package/dist/cjs/Adapt.cjs
CHANGED
|
@@ -41,12 +41,12 @@ __export(Adapt_exports, {
|
|
|
41
41
|
useAdaptIsActive: () => useAdaptIsActive
|
|
42
42
|
});
|
|
43
43
|
module.exports = __toCommonJS(Adapt_exports);
|
|
44
|
-
var import_gui_constants = require("@
|
|
45
|
-
import_gui_core = require("@
|
|
46
|
-
import_gui_helpers = require("@
|
|
47
|
-
import_gui_native = require("@
|
|
48
|
-
import_gui_portal = require("@
|
|
49
|
-
import_gui_z_index_stack = require("@
|
|
44
|
+
var import_gui_constants = require("@hanzogui/constants"),
|
|
45
|
+
import_gui_core = require("@hanzogui/core"),
|
|
46
|
+
import_gui_helpers = require("@hanzogui/helpers"),
|
|
47
|
+
import_gui_native = require("@hanzogui/native"),
|
|
48
|
+
import_gui_portal = require("@hanzogui/portal"),
|
|
49
|
+
import_gui_z_index_stack = require("@hanzogui/z-index-stack"),
|
|
50
50
|
import_react = __toESM(require("react"), 1),
|
|
51
51
|
import_jsx_runtime = require("react/jsx-runtime");
|
|
52
52
|
function createAdaptChildrenStore() {
|
|
@@ -155,7 +155,7 @@ const AdaptContext = (0, import_gui_core.createStyledContext)({
|
|
|
155
155
|
...rest
|
|
156
156
|
}) => {
|
|
157
157
|
const context = useAdaptContext(scope);
|
|
158
|
-
if (!context?.Contents) throw new Error(process.env.NODE_ENV === "production" ? "tamagui.dev/docs/intro/errors#warning-002" : "You're rendering a
|
|
158
|
+
if (!context?.Contents) throw new Error(process.env.NODE_ENV === "production" ? "tamagui.dev/docs/intro/errors#warning-002" : "You're rendering a Gui <Adapt /> component without nesting it inside a parent that is able to adapt.");
|
|
159
159
|
return import_react.default.createElement(context.Contents, {
|
|
160
160
|
...rest,
|
|
161
161
|
key: "stable"
|
package/dist/cjs/Adapt.native.js
CHANGED
|
@@ -44,12 +44,12 @@ __export(Adapt_exports, {
|
|
|
44
44
|
});
|
|
45
45
|
module.exports = __toCommonJS(Adapt_exports);
|
|
46
46
|
var import_jsx_runtime = require("react/jsx-runtime"),
|
|
47
|
-
import_gui_constants = require("@
|
|
48
|
-
import_gui_core = require("@
|
|
49
|
-
import_gui_helpers = require("@
|
|
50
|
-
import_gui_native = require("@
|
|
51
|
-
import_gui_portal = require("@
|
|
52
|
-
import_gui_z_index_stack = require("@
|
|
47
|
+
import_gui_constants = require("@hanzogui/constants"),
|
|
48
|
+
import_gui_core = require("@hanzogui/core"),
|
|
49
|
+
import_gui_helpers = require("@hanzogui/helpers"),
|
|
50
|
+
import_gui_native = require("@hanzogui/native"),
|
|
51
|
+
import_gui_portal = require("@hanzogui/portal"),
|
|
52
|
+
import_gui_z_index_stack = require("@hanzogui/z-index-stack"),
|
|
53
53
|
import_react = __toESM(require("react"), 1);
|
|
54
54
|
function createAdaptChildrenStore() {
|
|
55
55
|
var children = null,
|
|
@@ -189,7 +189,7 @@ var AdaptContext = (0, import_gui_core.createStyledContext)({
|
|
|
189
189
|
...rest
|
|
190
190
|
} = param,
|
|
191
191
|
context = useAdaptContext(scope);
|
|
192
|
-
if (!context?.Contents) throw new Error(process.env.NODE_ENV === "production" ? "tamagui.dev/docs/intro/errors#warning-002" : "You're rendering a
|
|
192
|
+
if (!context?.Contents) throw new Error(process.env.NODE_ENV === "production" ? "tamagui.dev/docs/intro/errors#warning-002" : "You're rendering a Gui <Adapt /> component without nesting it inside a parent that is able to adapt.");
|
|
193
193
|
return /* @__PURE__ */import_react.default.createElement(context.Contents, {
|
|
194
194
|
...rest,
|
|
195
195
|
key: "stable"
|
package/dist/esm/Adapt.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { isAndroid, isIos, isTouchable, isWeb, useIsomorphicLayoutEffect } from "@
|
|
2
|
-
import { createStyledContext, useMedia } from "@
|
|
3
|
-
import { withStaticProperties } from "@
|
|
4
|
-
import { getPortal } from "@
|
|
5
|
-
import { PortalHost, PortalItem } from "@
|
|
6
|
-
import { StackZIndexContext } from "@
|
|
1
|
+
import { isAndroid, isIos, isTouchable, isWeb, useIsomorphicLayoutEffect } from "@hanzogui/constants";
|
|
2
|
+
import { createStyledContext, useMedia } from "@hanzogui/core";
|
|
3
|
+
import { withStaticProperties } from "@hanzogui/helpers";
|
|
4
|
+
import { getPortal } from "@hanzogui/native";
|
|
5
|
+
import { PortalHost, PortalItem } from "@hanzogui/portal";
|
|
6
|
+
import { StackZIndexContext } from "@hanzogui/z-index-stack";
|
|
7
7
|
import React, { createContext, useContext, useId, useMemo } from "react";
|
|
8
8
|
import { Fragment, jsx } from "react/jsx-runtime";
|
|
9
9
|
function createAdaptChildrenStore() {
|
|
@@ -112,7 +112,7 @@ const AdaptContext = createStyledContext({
|
|
|
112
112
|
...rest
|
|
113
113
|
}) => {
|
|
114
114
|
const context = useAdaptContext(scope);
|
|
115
|
-
if (!context?.Contents) throw new Error(process.env.NODE_ENV === "production" ? "tamagui.dev/docs/intro/errors#warning-002" : "You're rendering a
|
|
115
|
+
if (!context?.Contents) throw new Error(process.env.NODE_ENV === "production" ? "tamagui.dev/docs/intro/errors#warning-002" : "You're rendering a Gui <Adapt /> component without nesting it inside a parent that is able to adapt.");
|
|
116
116
|
return React.createElement(context.Contents, {
|
|
117
117
|
...rest,
|
|
118
118
|
key: "stable"
|
package/dist/esm/Adapt.native.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { isAndroid, isIos, isTouchable, isWeb, useIsomorphicLayoutEffect } from "@
|
|
3
|
-
import { createStyledContext, useMedia } from "@
|
|
4
|
-
import { withStaticProperties } from "@
|
|
5
|
-
import { getPortal } from "@
|
|
6
|
-
import { PortalHost, PortalItem } from "@
|
|
7
|
-
import { StackZIndexContext } from "@
|
|
2
|
+
import { isAndroid, isIos, isTouchable, isWeb, useIsomorphicLayoutEffect } from "@hanzogui/constants";
|
|
3
|
+
import { createStyledContext, useMedia } from "@hanzogui/core";
|
|
4
|
+
import { withStaticProperties } from "@hanzogui/helpers";
|
|
5
|
+
import { getPortal } from "@hanzogui/native";
|
|
6
|
+
import { PortalHost, PortalItem } from "@hanzogui/portal";
|
|
7
|
+
import { StackZIndexContext } from "@hanzogui/z-index-stack";
|
|
8
8
|
import React, { createContext, useContext, useId, useMemo } from "react";
|
|
9
9
|
function createAdaptChildrenStore() {
|
|
10
10
|
var children = null,
|
|
@@ -144,7 +144,7 @@ var AdaptContext = createStyledContext({
|
|
|
144
144
|
...rest
|
|
145
145
|
} = param,
|
|
146
146
|
context = useAdaptContext(scope);
|
|
147
|
-
if (!context?.Contents) throw new Error(process.env.NODE_ENV === "production" ? "tamagui.dev/docs/intro/errors#warning-002" : "You're rendering a
|
|
147
|
+
if (!context?.Contents) throw new Error(process.env.NODE_ENV === "production" ? "tamagui.dev/docs/intro/errors#warning-002" : "You're rendering a Gui <Adapt /> component without nesting it inside a parent that is able to adapt.");
|
|
148
148
|
return /* @__PURE__ */React.createElement(context.Contents, {
|
|
149
149
|
...rest,
|
|
150
150
|
key: "stable"
|
package/package.json
CHANGED
package/src/Adapt.tsx
CHANGED
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
isTouchable,
|
|
5
5
|
isWeb,
|
|
6
6
|
useIsomorphicLayoutEffect,
|
|
7
|
-
} from '@
|
|
8
|
-
import type { AllPlatforms, MediaQueryKey } from '@
|
|
9
|
-
import { createStyledContext, useMedia } from '@
|
|
10
|
-
import { withStaticProperties } from '@
|
|
11
|
-
import { getPortal } from '@
|
|
12
|
-
import { PortalHost, PortalItem } from '@
|
|
13
|
-
import { StackZIndexContext } from '@
|
|
7
|
+
} from '@hanzogui/constants'
|
|
8
|
+
import type { AllPlatforms, MediaQueryKey } from '@hanzogui/core'
|
|
9
|
+
import { createStyledContext, useMedia } from '@hanzogui/core'
|
|
10
|
+
import { withStaticProperties } from '@hanzogui/helpers'
|
|
11
|
+
import { getPortal } from '@hanzogui/native'
|
|
12
|
+
import { PortalHost, PortalItem } from '@hanzogui/portal'
|
|
13
|
+
import { StackZIndexContext } from '@hanzogui/z-index-stack'
|
|
14
14
|
import React, { createContext, useContext, useId, useMemo } from 'react'
|
|
15
15
|
|
|
16
16
|
/**
|