@hanzogui/alert-dialog 2.0.0 → 2.0.5
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/AlertDialog.cjs
CHANGED
|
@@ -43,12 +43,12 @@ __export(AlertDialog_exports, {
|
|
|
43
43
|
AlertDialogTrigger: () => AlertDialogTrigger
|
|
44
44
|
});
|
|
45
45
|
module.exports = __toCommonJS(AlertDialog_exports);
|
|
46
|
-
var import_gui_compose_refs = require("@
|
|
47
|
-
import_gui_constants = require("@
|
|
48
|
-
import_gui_core = require("@
|
|
49
|
-
import_gui_dialog = require("@
|
|
50
|
-
import_gui_helpers = require("@
|
|
51
|
-
import_gui_use_controllable_state = require("@
|
|
46
|
+
var import_gui_compose_refs = require("@hanzogui/compose-refs"),
|
|
47
|
+
import_gui_constants = require("@hanzogui/constants"),
|
|
48
|
+
import_gui_core = require("@hanzogui/core"),
|
|
49
|
+
import_gui_dialog = require("@hanzogui/dialog"),
|
|
50
|
+
import_gui_helpers = require("@hanzogui/helpers"),
|
|
51
|
+
import_gui_use_controllable_state = require("@hanzogui/use-controllable-state"),
|
|
52
52
|
React = __toESM(require("react"), 1),
|
|
53
53
|
import_react_native = require("react-native-web"),
|
|
54
54
|
import_jsx_runtime = require("react/jsx-runtime");
|
|
@@ -46,12 +46,12 @@ __export(AlertDialog_exports, {
|
|
|
46
46
|
});
|
|
47
47
|
module.exports = __toCommonJS(AlertDialog_exports);
|
|
48
48
|
var import_jsx_runtime = require("react/jsx-runtime"),
|
|
49
|
-
import_gui_compose_refs = require("@
|
|
50
|
-
import_gui_constants = require("@
|
|
51
|
-
import_gui_core = require("@
|
|
52
|
-
import_gui_dialog = require("@
|
|
53
|
-
import_gui_helpers = require("@
|
|
54
|
-
import_gui_use_controllable_state = require("@
|
|
49
|
+
import_gui_compose_refs = require("@hanzogui/compose-refs"),
|
|
50
|
+
import_gui_constants = require("@hanzogui/constants"),
|
|
51
|
+
import_gui_core = require("@hanzogui/core"),
|
|
52
|
+
import_gui_dialog = require("@hanzogui/dialog"),
|
|
53
|
+
import_gui_helpers = require("@hanzogui/helpers"),
|
|
54
|
+
import_gui_use_controllable_state = require("@hanzogui/use-controllable-state"),
|
|
55
55
|
React = __toESM(require("react"), 1),
|
|
56
56
|
import_react_native = require("react-native"),
|
|
57
57
|
getAlertDialogScope = function (scope) {
|
|
@@ -291,7 +291,7 @@ var AlertDialogPortal = function (props) {
|
|
|
291
291
|
buttons = [];
|
|
292
292
|
return forEachChildDeep(React.Children.toArray(props.children), function (child) {
|
|
293
293
|
if (! /* @__PURE__ */React.isValidElement(child)) return !1;
|
|
294
|
-
var name = (0, import_gui_core.
|
|
294
|
+
var name = (0, import_gui_core.isGuiElement)(child) ? child.type.staticConfig.componentName : child.type.displayName;
|
|
295
295
|
switch (name) {
|
|
296
296
|
case TRIGGER_NAME:
|
|
297
297
|
return triggerElement = /* @__PURE__ */React.cloneElement(child, {
|
package/dist/esm/AlertDialog.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { useComposedRefs } from "@
|
|
2
|
-
import { isWeb } from "@
|
|
3
|
-
import { Slottable, View, createStyledContext, styled } from "@
|
|
4
|
-
import { Dialog, DialogClose, DialogContent, DialogDescription, DialogOverlay, DialogOverlayFrame, DialogPortal, DialogTitle, DialogTrigger, DialogWarningProvider } from "@
|
|
5
|
-
import { composeEventHandlers, withStaticProperties } from "@
|
|
1
|
+
import { useComposedRefs } from "@hanzogui/compose-refs";
|
|
2
|
+
import { isWeb } from "@hanzogui/constants";
|
|
3
|
+
import { Slottable, View, createStyledContext, styled } from "@hanzogui/core";
|
|
4
|
+
import { Dialog, DialogClose, DialogContent, DialogDescription, DialogOverlay, DialogOverlayFrame, DialogPortal, DialogTitle, DialogTrigger, DialogWarningProvider } from "@hanzogui/dialog";
|
|
5
|
+
import { composeEventHandlers, withStaticProperties } from "@hanzogui/helpers";
|
|
6
6
|
import * as React from "react";
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
const getAlertDialogScope = scope => scope,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { useComposedRefs } from "@
|
|
3
|
-
import { isWeb, useIsomorphicLayoutEffect } from "@
|
|
4
|
-
import { Slottable, View, createStyledContext,
|
|
5
|
-
import { Dialog, DialogClose, DialogContent, DialogDescription, DialogOverlay, DialogOverlayFrame, DialogPortal, DialogTitle, DialogTrigger, DialogWarningProvider } from "@
|
|
6
|
-
import { composeEventHandlers, withStaticProperties } from "@
|
|
7
|
-
import { useControllableState } from "@
|
|
2
|
+
import { useComposedRefs } from "@hanzogui/compose-refs";
|
|
3
|
+
import { isWeb, useIsomorphicLayoutEffect } from "@hanzogui/constants";
|
|
4
|
+
import { Slottable, View, createStyledContext, isGuiElement, styled } from "@hanzogui/core";
|
|
5
|
+
import { Dialog, DialogClose, DialogContent, DialogDescription, DialogOverlay, DialogOverlayFrame, DialogPortal, DialogTitle, DialogTrigger, DialogWarningProvider } from "@hanzogui/dialog";
|
|
6
|
+
import { composeEventHandlers, withStaticProperties } from "@hanzogui/helpers";
|
|
7
|
+
import { useControllableState } from "@hanzogui/use-controllable-state";
|
|
8
8
|
import * as React from "react";
|
|
9
9
|
import { Alert } from "react-native";
|
|
10
10
|
var getAlertDialogScope = function (scope) {
|
|
@@ -244,7 +244,7 @@ var AlertDialogPortal = function (props) {
|
|
|
244
244
|
buttons = [];
|
|
245
245
|
return forEachChildDeep(React.Children.toArray(props.children), function (child) {
|
|
246
246
|
if (! /* @__PURE__ */React.isValidElement(child)) return !1;
|
|
247
|
-
var name =
|
|
247
|
+
var name = isGuiElement(child) ? child.type.staticConfig.componentName : child.type.displayName;
|
|
248
248
|
switch (name) {
|
|
249
249
|
case TRIGGER_NAME:
|
|
250
250
|
return triggerElement = /* @__PURE__ */React.cloneElement(child, {
|
package/dist/jsx/AlertDialog.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { useComposedRefs } from "@
|
|
2
|
-
import { isWeb } from "@
|
|
3
|
-
import { Slottable, View, createStyledContext, styled } from "@
|
|
4
|
-
import { Dialog, DialogClose, DialogContent, DialogDescription, DialogOverlay, DialogOverlayFrame, DialogPortal, DialogTitle, DialogTrigger, DialogWarningProvider } from "@
|
|
5
|
-
import { composeEventHandlers, withStaticProperties } from "@
|
|
1
|
+
import { useComposedRefs } from "@hanzogui/compose-refs";
|
|
2
|
+
import { isWeb } from "@hanzogui/constants";
|
|
3
|
+
import { Slottable, View, createStyledContext, styled } from "@hanzogui/core";
|
|
4
|
+
import { Dialog, DialogClose, DialogContent, DialogDescription, DialogOverlay, DialogOverlayFrame, DialogPortal, DialogTitle, DialogTrigger, DialogWarningProvider } from "@hanzogui/dialog";
|
|
5
|
+
import { composeEventHandlers, withStaticProperties } from "@hanzogui/helpers";
|
|
6
6
|
import * as React from "react";
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
const getAlertDialogScope = scope => scope,
|
|
@@ -46,12 +46,12 @@ __export(AlertDialog_exports, {
|
|
|
46
46
|
});
|
|
47
47
|
module.exports = __toCommonJS(AlertDialog_exports);
|
|
48
48
|
var import_jsx_runtime = require("react/jsx-runtime"),
|
|
49
|
-
import_gui_compose_refs = require("@
|
|
50
|
-
import_gui_constants = require("@
|
|
51
|
-
import_gui_core = require("@
|
|
52
|
-
import_gui_dialog = require("@
|
|
53
|
-
import_gui_helpers = require("@
|
|
54
|
-
import_gui_use_controllable_state = require("@
|
|
49
|
+
import_gui_compose_refs = require("@hanzogui/compose-refs"),
|
|
50
|
+
import_gui_constants = require("@hanzogui/constants"),
|
|
51
|
+
import_gui_core = require("@hanzogui/core"),
|
|
52
|
+
import_gui_dialog = require("@hanzogui/dialog"),
|
|
53
|
+
import_gui_helpers = require("@hanzogui/helpers"),
|
|
54
|
+
import_gui_use_controllable_state = require("@hanzogui/use-controllable-state"),
|
|
55
55
|
React = __toESM(require("react"), 1),
|
|
56
56
|
import_react_native = require("react-native"),
|
|
57
57
|
getAlertDialogScope = function (scope) {
|
|
@@ -291,7 +291,7 @@ var AlertDialogPortal = function (props) {
|
|
|
291
291
|
buttons = [];
|
|
292
292
|
return forEachChildDeep(React.Children.toArray(props.children), function (child) {
|
|
293
293
|
if (! /* @__PURE__ */React.isValidElement(child)) return !1;
|
|
294
|
-
var name = (0, import_gui_core.
|
|
294
|
+
var name = (0, import_gui_core.isGuiElement)(child) ? child.type.staticConfig.componentName : child.type.displayName;
|
|
295
295
|
switch (name) {
|
|
296
296
|
case TRIGGER_NAME:
|
|
297
297
|
return triggerElement = /* @__PURE__ */React.cloneElement(child, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hanzogui/alert-dialog",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.5",
|
|
4
4
|
"source": "src/index.ts",
|
|
5
5
|
"files": [
|
|
6
6
|
"src",
|
|
@@ -36,24 +36,24 @@
|
|
|
36
36
|
"clean:build": "hanzo-gui-build clean:build"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@hanzogui/animate-presence": "2.0.
|
|
40
|
-
"@hanzogui/compose-refs": "2.0.
|
|
41
|
-
"@hanzogui/constants": "2.0.
|
|
42
|
-
"@hanzogui/core": "2.0.
|
|
43
|
-
"@hanzogui/create-context": "2.0.
|
|
44
|
-
"@hanzogui/dialog": "2.0.
|
|
45
|
-
"@hanzogui/dismissable": "2.0.
|
|
46
|
-
"@hanzogui/focus-scope": "2.0.
|
|
47
|
-
"@hanzogui/helpers": "2.0.
|
|
48
|
-
"@hanzogui/polyfill-dev": "2.0.
|
|
49
|
-
"@hanzogui/portal": "2.0.
|
|
50
|
-
"@hanzogui/remove-scroll": "2.0.
|
|
51
|
-
"@hanzogui/stacks": "2.0.
|
|
52
|
-
"@hanzogui/text": "2.0.
|
|
53
|
-
"@hanzogui/use-controllable-state": "2.0.
|
|
39
|
+
"@hanzogui/animate-presence": "2.0.1",
|
|
40
|
+
"@hanzogui/compose-refs": "2.0.1",
|
|
41
|
+
"@hanzogui/constants": "2.0.1",
|
|
42
|
+
"@hanzogui/core": "2.0.1",
|
|
43
|
+
"@hanzogui/create-context": "2.0.1",
|
|
44
|
+
"@hanzogui/dialog": "2.0.1",
|
|
45
|
+
"@hanzogui/dismissable": "2.0.1",
|
|
46
|
+
"@hanzogui/focus-scope": "2.0.1",
|
|
47
|
+
"@hanzogui/helpers": "2.0.1",
|
|
48
|
+
"@hanzogui/polyfill-dev": "2.0.1",
|
|
49
|
+
"@hanzogui/portal": "2.0.1",
|
|
50
|
+
"@hanzogui/remove-scroll": "2.0.1",
|
|
51
|
+
"@hanzogui/stacks": "2.0.1",
|
|
52
|
+
"@hanzogui/text": "2.0.1",
|
|
53
|
+
"@hanzogui/use-controllable-state": "2.0.1"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@hanzogui/build": "2.0.
|
|
56
|
+
"@hanzogui/build": "2.0.1",
|
|
57
57
|
"react": ">=19",
|
|
58
58
|
"react-native": "0.83.2"
|
|
59
59
|
},
|