@ai-matrx/design-system 0.50.13 → 0.51.0
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/CHANGELOG.md +10 -0
- package/dist/index.cjs +6 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1629,7 +1629,7 @@ import { useOpenerHost } from "@ai-matrx/kit/opener-react";
|
|
|
1629
1629
|
import * as React15 from "react";
|
|
1630
1630
|
import { jsx as jsx19 } from "react/jsx-runtime";
|
|
1631
1631
|
function ConfirmDialogHost() {
|
|
1632
|
-
const {
|
|
1632
|
+
const { shown, open, settle } = useOpenerHost(confirmOpener);
|
|
1633
1633
|
const handleConfirm = React15.useCallback(() => settle(true), [settle]);
|
|
1634
1634
|
const handleOpenChange = React15.useCallback(
|
|
1635
1635
|
(next) => {
|
|
@@ -1642,11 +1642,11 @@ function ConfirmDialogHost() {
|
|
|
1642
1642
|
{
|
|
1643
1643
|
open,
|
|
1644
1644
|
onOpenChange: handleOpenChange,
|
|
1645
|
-
title:
|
|
1646
|
-
description:
|
|
1647
|
-
confirmLabel:
|
|
1648
|
-
cancelLabel:
|
|
1649
|
-
variant:
|
|
1645
|
+
title: shown?.title ?? "",
|
|
1646
|
+
description: shown?.description,
|
|
1647
|
+
confirmLabel: shown?.confirmLabel,
|
|
1648
|
+
cancelLabel: shown?.cancelLabel,
|
|
1649
|
+
variant: shown?.variant,
|
|
1650
1650
|
onConfirm: handleConfirm
|
|
1651
1651
|
}
|
|
1652
1652
|
);
|