freemium-ui 2.0.0-beta.43 → 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 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;
@@ -16066,10 +16066,11 @@ className:"BoxedRadioLabelDescription"},a))))
16066
16066
  exports.Button=tr,exports.ButtonDropdown=({size:t="normal",variant:n="primary",loading:r=!1,inline:a=!0,defaultSelectedItem:o,idAccessor:i="id",nameAccessor:l="name",onClick:c,options:s,side:u="bottom",sideOffset:d=4,align:h="end",alignOffset:p,arrowPadding:f,avoidCollisions:m,disabled:v,id:g,name:y})=>e.createElement("div",null,e.createElement(or,{
16067
16067
  id:g,name:y,size:t,variant:n,inline:a,disabled:v||r,"aria-disabled":v||r,
16068
16068
  onClick:e=>c?.(o,e),
16069
- "aria-describedby":"string"===(typeof o?.[l]??s?.[0]?.[l])?o?.[l]??s?.[0]?.[l]:void 0,
16070
- role:"button"
16069
+ "aria-describedby":"string"===(typeof o?.[l]??s?.[0]?.[l])?o?.[l]??s?.[0]?.[l]:void 0
16071
16070
  },e.createElement("span",null,o?.[l]??s?.[0]?.[l]??"")),e.createElement(Al,null,e.createElement(kl,{
16072
- asChild:!0},e.createElement(ir,null,e.createElement(ar,{variant:n
16071
+ asChild:!0},e.createElement(ir,{id:`${g}-more`,name:`${y}-more`,size:t,
16072
+ variant:n,inline:a,disabled:v||r,"aria-disabled":v||r,
16073
+ "aria-describedby":"Additional options"},e.createElement(ar,{variant:n
16073
16074
  }))),e.createElement(Tl,null,e.createElement(Pl,{side:u,sideOffset:d,align:h,
16074
16075
  alignOffset:p,arrowPadding:f,avoidCollisions:m,className:"DropdownMenuContent"
16075
16076
  },(s?.filter((e=>e?.[i]!==o?.[i]))??[]).map((t=>e.createElement(Il,{id:t?.[i],
@@ -16079,12 +16080,12 @@ exports.CardActions=Sn,exports.CardContent=En,exports.CardDescription=Hn,
16079
16080
  exports.CardText=Dn,
16080
16081
  exports.CardTitle=_n,exports.Checkbox=Ac,exports.ChevronUp=rr,
16081
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,{
16082
- open:t,onOpenChange:e=>{e||o?.("overlay")}
16083
+ open:t,onOpenChange:e=>{e||o?.("root")}
16083
16084
  },e.createElement(Ls,null,e.createElement(ks,{forceMount:!0,style:d,
16084
16085
  className:"AlertDialogOverlay",onClick:()=>o?.("overlay")}),e.createElement(Ts,{
16085
16086
  forceMount:!0,className:"AlertDialogContent",style:{...h,width:f}
16086
16087
  },n&&e.createElement(Rs,{className:"AlertDialogTitle"
16087
- },n),r&&e.createElement(Ps,{hasChildren:!!l,className:"AlertDialogDescription"
16088
+ },n),r&&e.createElement(Ps,{$hasChildren:!!l,className:"AlertDialogDescription"
16088
16089
  },r),l?e.createElement(e.Fragment,null,l):null,e.createElement(Is,{style:p
16089
16090
  },i&&e.createElement(Vs,{asChild:!0},e.createElement(tr,{variant:"secondary",
16090
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
@@ -1671,10 +1671,11 @@ const{__scopeDropdownMenu:n,...r}=e,a=Ul(n);return i(Fl,Ln({},a,r,{ref:t}))
1671
1671
  `,oc=({size:e="normal",variant:n="primary",loading:r=!1,inline:a=!0,defaultSelectedItem:o,idAccessor:i="id",nameAccessor:l="name",onClick:c,options:s,side:u="bottom",sideOffset:d=4,align:h="end",alignOffset:p,arrowPadding:f,avoidCollisions:m,disabled:v,id:g,name:y})=>t.createElement("div",null,t.createElement(Er,{
1672
1672
  id:g,name:y,size:e,variant:n,inline:a,disabled:v||r,"aria-disabled":v||r,
1673
1673
  onClick:e=>c?.(o,e),
1674
- "aria-describedby":"string"===(typeof o?.[l]??s?.[0]?.[l])?o?.[l]??s?.[0]?.[l]:void 0,
1675
- role:"button"
1674
+ "aria-describedby":"string"===(typeof o?.[l]??s?.[0]?.[l])?o?.[l]??s?.[0]?.[l]:void 0
1676
1675
  },t.createElement("span",null,o?.[l]??s?.[0]?.[l]??"")),t.createElement(Jl,null,t.createElement(ec,{
1677
- asChild:!0},t.createElement(_r,null,t.createElement(Sr,{variant:n
1676
+ asChild:!0},t.createElement(_r,{id:`${g}-more`,name:`${y}-more`,size:e,
1677
+ variant:n,inline:a,disabled:v||r,"aria-disabled":v||r,
1678
+ "aria-describedby":"Additional options"},t.createElement(Sr,{variant:n
1678
1679
  }))),t.createElement(tc,null,t.createElement(rc,{side:u,sideOffset:d,align:h,
1679
1680
  alignOffset:p,arrowPadding:f,avoidCollisions:m,className:"DropdownMenuContent"
1680
1681
  },(s?.filter((e=>e?.[i]!==o?.[i]))??[]).map((e=>t.createElement(ac,{id:e?.[i],
@@ -2057,7 +2058,7 @@ const{__scopeAlertDialog:t,...n}=e,r=Is(t);return i(_s,Ln({},r,n,{modal:!0}))
2057
2058
  line-height: ${({theme:e})=>e.typography.primary.lineHeight};
2058
2059
  letter-spacing: 0px;
2059
2060
  text-align: left;
2060
- padding: 0 32px ${({hasChildren:e})=>e?"16px":"32px"} 32px;
2061
+ padding: 0 32px ${({$hasChildren:e})=>e?"16px":"32px"} 32px;
2061
2062
  `,iu=En.div`
2062
2063
  border-top: 1px solid ${({theme:e})=>e.colors.border.light};
2063
2064
  border-bottom-right-radius: 8px;
@@ -2068,12 +2069,12 @@ const{__scopeAlertDialog:t,...n}=e,r=Is(t);return i(_s,Ln({},r,n,{modal:!0}))
2068
2069
  gap: 8px;
2069
2070
  justify-content: flex-end;
2070
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,{
2071
- open:e,onOpenChange:e=>{e||o?.("overlay")}
2072
+ open:e,onOpenChange:e=>{e||o?.("root")}
2072
2073
  },t.createElement(Js,null,t.createElement(nu,{forceMount:!0,style:d,
2073
2074
  className:"AlertDialogOverlay",onClick:()=>o?.("overlay")}),t.createElement(ru,{
2074
2075
  forceMount:!0,className:"AlertDialogContent",style:{...h,width:f}
2075
2076
  },n&&t.createElement(au,{className:"AlertDialogTitle"
2076
- },n),r&&t.createElement(ou,{hasChildren:!!l,className:"AlertDialogDescription"
2077
+ },n),r&&t.createElement(ou,{$hasChildren:!!l,className:"AlertDialogDescription"
2077
2078
  },r),l?t.createElement(t.Fragment,null,l):null,t.createElement(iu,{style:p
2078
2079
  },i&&t.createElement(eu,{asChild:!0},t.createElement(zr,{variant:"secondary",
2079
2080
  autoFocus:!0,"aria-disabled":c,disabled:c,onClick:()=>o?.("button"),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "freemium-ui",
3
- "version": "2.0.0-beta.43",
3
+ "version": "2.0.0-beta.45",
4
4
  "description": "React Ui Components for Freemium Apps",
5
5
  "main": "./index.js",
6
6
  "module": "./index.js",