freemium-ui 2.0.0-beta.44 → 2.0.0-beta.45
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/index.cjs.js +3 -3
- package/index.d.ts +1 -1
- package/index.js +3 -3
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -2062,7 +2062,7 @@ modal:!0}))}))``,Ls=on(zs)``,Vs=on(Ss)``,As=on(Es)``,ks=on(Ms)`
|
|
|
2062
2062
|
line-height: ${({theme:e})=>e.typography.primary.lineHeight};
|
|
2063
2063
|
letter-spacing: 0px;
|
|
2064
2064
|
text-align: left;
|
|
2065
|
-
padding: 0 32px ${({hasChildren:e})=>e?"16px":"32px"} 32px;
|
|
2065
|
+
padding: 0 32px ${({$hasChildren:e})=>e?"16px":"32px"} 32px;
|
|
2066
2066
|
`,Is=on.div`
|
|
2067
2067
|
border-top: 1px solid ${({theme:e})=>e.colors.border.light};
|
|
2068
2068
|
border-bottom-right-radius: 8px;
|
|
@@ -16080,12 +16080,12 @@ exports.CardActions=Sn,exports.CardContent=En,exports.CardDescription=Hn,
|
|
|
16080
16080
|
exports.CardText=Dn,
|
|
16081
16081
|
exports.CardTitle=_n,exports.Checkbox=Ac,exports.ChevronUp=rr,
|
|
16082
16082
|
exports.Confirmation=({isOpen:t,title:n,description:r,onConfirm:a,onDismiss:o,cancelButtonText:i,children:l,cancelButtonDisabled:c,confirmButtonDisabled:s,confirmButtonText:u,bodyStyles:d,contentStyles:h,footerStyles:p,width:f="520px"})=>e.createElement(Ds,{
|
|
16083
|
-
open:t,onOpenChange:e=>{e||o?.("
|
|
16083
|
+
open:t,onOpenChange:e=>{e||o?.("root")}
|
|
16084
16084
|
},e.createElement(Ls,null,e.createElement(ks,{forceMount:!0,style:d,
|
|
16085
16085
|
className:"AlertDialogOverlay",onClick:()=>o?.("overlay")}),e.createElement(Ts,{
|
|
16086
16086
|
forceMount:!0,className:"AlertDialogContent",style:{...h,width:f}
|
|
16087
16087
|
},n&&e.createElement(Rs,{className:"AlertDialogTitle"
|
|
16088
|
-
},n),r&&e.createElement(Ps,{hasChildren:!!l,className:"AlertDialogDescription"
|
|
16088
|
+
},n),r&&e.createElement(Ps,{$hasChildren:!!l,className:"AlertDialogDescription"
|
|
16089
16089
|
},r),l?e.createElement(e.Fragment,null,l):null,e.createElement(Is,{style:p
|
|
16090
16090
|
},i&&e.createElement(Vs,{asChild:!0},e.createElement(tr,{variant:"secondary",
|
|
16091
16091
|
autoFocus:!0,"aria-disabled":c,disabled:c,onClick:()=>o?.("button"),
|
package/index.d.ts
CHANGED
|
@@ -268,7 +268,7 @@ interface ConfirmationProps {
|
|
|
268
268
|
/**
|
|
269
269
|
* Function to be called when the confirmation is dismissed
|
|
270
270
|
*/
|
|
271
|
-
onDismiss?: (type: 'overlay' | 'button') => void;
|
|
271
|
+
onDismiss?: (type: 'overlay' | 'button' | 'root') => void;
|
|
272
272
|
/**
|
|
273
273
|
* Function to be called when the confirmation is confirmed
|
|
274
274
|
*/
|
package/index.js
CHANGED
|
@@ -2058,7 +2058,7 @@ const{__scopeAlertDialog:t,...n}=e,r=Is(t);return i(_s,Ln({},r,n,{modal:!0}))
|
|
|
2058
2058
|
line-height: ${({theme:e})=>e.typography.primary.lineHeight};
|
|
2059
2059
|
letter-spacing: 0px;
|
|
2060
2060
|
text-align: left;
|
|
2061
|
-
padding: 0 32px ${({hasChildren:e})=>e?"16px":"32px"} 32px;
|
|
2061
|
+
padding: 0 32px ${({$hasChildren:e})=>e?"16px":"32px"} 32px;
|
|
2062
2062
|
`,iu=En.div`
|
|
2063
2063
|
border-top: 1px solid ${({theme:e})=>e.colors.border.light};
|
|
2064
2064
|
border-bottom-right-radius: 8px;
|
|
@@ -2069,12 +2069,12 @@ const{__scopeAlertDialog:t,...n}=e,r=Is(t);return i(_s,Ln({},r,n,{modal:!0}))
|
|
|
2069
2069
|
gap: 8px;
|
|
2070
2070
|
justify-content: flex-end;
|
|
2071
2071
|
`,lu=({isOpen:e,title:n,description:r,onConfirm:a,onDismiss:o,cancelButtonText:i,children:l,cancelButtonDisabled:c,confirmButtonDisabled:s,confirmButtonText:u,bodyStyles:d,contentStyles:h,footerStyles:p,width:f="520px"})=>t.createElement(Qs,{
|
|
2072
|
-
open:e,onOpenChange:e=>{e||o?.("
|
|
2072
|
+
open:e,onOpenChange:e=>{e||o?.("root")}
|
|
2073
2073
|
},t.createElement(Js,null,t.createElement(nu,{forceMount:!0,style:d,
|
|
2074
2074
|
className:"AlertDialogOverlay",onClick:()=>o?.("overlay")}),t.createElement(ru,{
|
|
2075
2075
|
forceMount:!0,className:"AlertDialogContent",style:{...h,width:f}
|
|
2076
2076
|
},n&&t.createElement(au,{className:"AlertDialogTitle"
|
|
2077
|
-
},n),r&&t.createElement(ou,{hasChildren:!!l,className:"AlertDialogDescription"
|
|
2077
|
+
},n),r&&t.createElement(ou,{$hasChildren:!!l,className:"AlertDialogDescription"
|
|
2078
2078
|
},r),l?t.createElement(t.Fragment,null,l):null,t.createElement(iu,{style:p
|
|
2079
2079
|
},i&&t.createElement(eu,{asChild:!0},t.createElement(zr,{variant:"secondary",
|
|
2080
2080
|
autoFocus:!0,"aria-disabled":c,disabled:c,onClick:()=>o?.("button"),
|