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