@jamsrui/alert-dialog 0.0.9 → 0.0.11
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 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{a,b}from"./chunk-VTOWZPYV.mjs";export{a as AlertDialogConfig,b as useAlertDialogConfig};
|
package/dist/alert-dialog.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{a}from"./chunk-G3TQLDJ7.mjs";import"./chunk-VTOWZPYV.mjs";import"./chunk-DAOQOXYD.mjs";export{a as AlertDialog};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{useCallback as e,useMemo as T}from"react";var R=y=>{let{message:r,title:s,onConfirm:n,onCancel:a,children:i,cancelText:p="Cancel",confirmText:l="Confirm",slotProps:t,cancelButtonProps:c,confirmButtonProps:P,...g}=y,m=e(o=>({hideCloseButton:!0,size:"md",...o,...g}),[g]),u=e(o=>({...o,...t?.content}),[t?.content]),d=e(o=>({className:"flex gap-1 flex-col",...o,...t?.body}),[t?.body]),f=e(o=>({...o,...t?.footer}),[t?.footer]),x=e(o=>({onClick:n,color:"danger",...o,...P}),[n,P]),B=e(o=>({onClick:a,...o,...c}),[a,c]),C=e(o=>({variant:"h6",...o,...t?.title}),[t?.title]),D=e(o=>({variant:"paragraph2",className:"text-foreground-secondary",...o,...t?.message}),[t?.message]);return T(()=>({getDialogProps:m,getContentProps:u,getBodyProps:d,getFooterProps:f,getConfirmButtonProps:x,getCancelButtonProps:B,getTitleProps:C,getMessageProps:D,cancelText:p,confirmText:l,message:r,title:s,children:i}),[p,i,l,d,B,x,u,m,f,D,C,r,s])};export{R as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as r}from"./chunk-VTOWZPYV.mjs";import{a as g}from"./chunk-DAOQOXYD.mjs";import{Button as i}from"@jamsrui/button";import{Dialog as F,DialogBody as h,DialogCloseTrigger as l,DialogContent as M,DialogFooter as b,DialogTrigger as k}from"@jamsrui/dialog";import{Text as s}from"@jamsrui/text";import{mergeConfigProps as q}from"@jamsrui/utils";import{jsx as o,jsxs as e}from"react/jsx-runtime";var I=n=>{let t=r(),a=q(t,t,n),p=g(a),{getBodyProps:D,getCancelButtonProps:m,getConfirmButtonProps:c,getContentProps:P,getDialogProps:f,getFooterProps:T,getMessageProps:C,getTitleProps:x,cancelText:u,confirmText:B,message:d,title:A,children:y}=p;return e(F,{...f({}),children:[o(k,{children:y}),e(M,{...P({}),children:[e(h,{...D({}),children:[o(s,{...x({}),children:A}),o(s,{...C({}),children:d})]}),e(b,{...T({}),children:[o(l,{children:o(i,{...m({}),children:u})}),o(l,{children:o(i,{...c({}),children:B})})]})]})]})};export{I as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{createConfigContext as o}from"@jamsrui/utils";var[e,i]=o({displayName:"AlertDialogConfig"});export{e as a,i as b};
|
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{
|
|
1
|
+
"use client";import{a as l}from"./chunk-G3TQLDJ7.mjs";import{a as o,b as e}from"./chunk-VTOWZPYV.mjs";import"./chunk-DAOQOXYD.mjs";export{l as AlertDialog,o as AlertDialogConfig,e as useAlertDialogConfig};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{a}from"./chunk-DAOQOXYD.mjs";export{a as useAlertDialog};
|
package/package.json
CHANGED
|
@@ -1,22 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jamsrui/alert-dialog",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.11",
|
|
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/
|
|
8
|
+
"@jamsrui/button": "^0.0.11",
|
|
9
|
+
"@jamsrui/hooks": "^0.0.11",
|
|
10
|
+
"@jamsrui/core": "^0.0.10",
|
|
11
|
+
"@jamsrui/utils": "^0.0.11",
|
|
12
|
+
"@jamsrui/text": "^0.0.11",
|
|
13
|
+
"@jamsrui/dialog": "^0.0.11"
|
|
14
14
|
},
|
|
15
15
|
"exports": {
|
|
16
16
|
".": {
|
|
17
17
|
"types": "./dist/index.d.ts",
|
|
18
|
-
"import": "./dist/index.mjs"
|
|
19
|
-
"require": "./dist/index.js"
|
|
18
|
+
"import": "./dist/index.mjs"
|
|
20
19
|
}
|
|
21
20
|
},
|
|
22
21
|
"description": "A modern and beautiful Next.js UI components library.",
|