@jamsrui/alert-dialog 0.0.4 → 0.0.6
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.
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { AlertDialog } from './alert-dialog.mjs';
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
3
|
import { GlobalConfigProps } from '@jamsrui/core';
|
|
4
4
|
import './use-alert-dialog.mjs';
|
|
5
|
+
import 'react';
|
|
5
6
|
import '@jamsrui/button';
|
|
6
7
|
import '@jamsrui/dialog';
|
|
7
8
|
import '@jamsrui/text';
|
|
@@ -10,7 +11,7 @@ import '@jamsrui/utils';
|
|
|
10
11
|
declare const useAlertDialogConfig: () => AlertDialogConfig.Props;
|
|
11
12
|
declare const AlertDialogConfig: (props: AlertDialogConfig.Props & {
|
|
12
13
|
merge?: boolean;
|
|
13
|
-
}) =>
|
|
14
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
14
15
|
declare namespace AlertDialogConfig {
|
|
15
16
|
interface Props extends AlertDialog.Props, GlobalConfigProps<AlertDialog.Props> {
|
|
16
17
|
}
|
package/dist/alert-dialog.d.mts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { useAlertDialog } from './use-alert-dialog.mjs';
|
|
3
|
+
import 'react';
|
|
3
4
|
import '@jamsrui/button';
|
|
4
5
|
import '@jamsrui/dialog';
|
|
5
6
|
import '@jamsrui/text';
|
|
6
7
|
import '@jamsrui/utils';
|
|
7
8
|
|
|
8
|
-
declare const AlertDialog: (props: AlertDialog.Props) =>
|
|
9
|
+
declare const AlertDialog: (props: AlertDialog.Props) => react_jsx_runtime.JSX.Element;
|
|
9
10
|
declare namespace AlertDialog {
|
|
10
11
|
interface Props extends useAlertDialog.Props {
|
|
11
12
|
}
|
package/dist/alert-dialog.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{jsx as o,jsxs as e}from"react/jsx-runtime";import{Button as r}from"@jamsrui/button";import{Dialog as A,DialogBody as y,DialogCloseTrigger as g,DialogContent as F,DialogFooter as h,DialogTrigger as M}from"@jamsrui/dialog";import{Text as i}from"@jamsrui/text";import{mergeConfigProps as b}from"@jamsrui/utils";import{useAlertDialogConfig as k}from"./alert-dialog-config";import{useAlertDialog as q}from"./use-alert-dialog";const I=l=>{const t=k(),s=b(t,t,l),n=q(s),{getBodyProps:a,getCancelButtonProps:p,getConfirmButtonProps:D,getContentProps:m,getDialogProps:c,getFooterProps:P,getMessageProps:f,getTitleProps:T,cancelText:C,confirmText:x,message:u,title:B,children:d}=n;return e(A,{...c({}),children:[o(M,{children:d}),e(F,{...m({}),children:[e(y,{...a({}),children:[o(i,{...T({}),children:B}),o(i,{...f({}),children:u})]}),e(h,{...P({}),children:[o(g,{children:o(r,{...p({}),children:C})}),o(g,{children:o(r,{...D({}),children:x})})]})]})]})};export{I as AlertDialog};
|
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
export { AlertDialog } from './alert-dialog.mjs';
|
|
2
2
|
export { AlertDialogConfig, useAlertDialogConfig } from './alert-dialog-config.mjs';
|
|
3
|
-
import 'react';
|
|
3
|
+
import 'react/jsx-runtime';
|
|
4
4
|
import './use-alert-dialog.mjs';
|
|
5
|
+
import 'react';
|
|
5
6
|
import '@jamsrui/button';
|
|
6
7
|
import '@jamsrui/dialog';
|
|
7
8
|
import '@jamsrui/text';
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jamsrui/alert-dialog",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"react": ">=19"
|
|
6
6
|
},
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@jamsrui/button": "^0.0.
|
|
9
|
-
"@jamsrui/
|
|
10
|
-
"@jamsrui/
|
|
11
|
-
"@jamsrui/
|
|
12
|
-
"@jamsrui/
|
|
13
|
-
"@jamsrui/utils": "^0.0.
|
|
8
|
+
"@jamsrui/button": "^0.0.6",
|
|
9
|
+
"@jamsrui/core": "^0.0.6",
|
|
10
|
+
"@jamsrui/dialog": "^0.0.6",
|
|
11
|
+
"@jamsrui/hooks": "^0.0.6",
|
|
12
|
+
"@jamsrui/text": "^0.0.6",
|
|
13
|
+
"@jamsrui/utils": "^0.0.6"
|
|
14
14
|
},
|
|
15
15
|
"exports": {
|
|
16
16
|
".": {
|