freemium-ui 2.0.113 → 2.0.115

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/lib/index.cjs.js CHANGED
@@ -13234,15 +13234,15 @@ const{__scopePopover:r,...o}=t,i=sF(r);return e.createElement(Wh,a({},i,o,{ref:n
13234
13234
  `}
13235
13235
  `,HF=zr(SF)`
13236
13236
  fill: ${({theme:e})=>e.colors.fill.surface};
13237
- `,DF=zr(MF)``,AF=zr(zF)``,LF=zr(xF)``,VF=zr(EF)``,kF=({children:t,trigger:n,arrow:r,hoverOutToClose:o,align:a,hoverToOpen:i,avoidCollisions:l=!0,replaceTrigger:c=!1,side:s,disabled:u,onClose:d,popoverContentProps:h,popoverRootProps:f,anchorOrigin:p})=>{
13238
- const[m,v]=e.useState(!1),g=s??("bottom"===p?.vertical&&p.horizontal?"bottom":void 0)??("top"===p?.vertical&&p.horizontal?"top":void 0)??("center"===p?.vertical&&"left"===p.horizontal?"left":void 0)??("center"===p?.vertical&&"right"===p.horizontal?"right":void 0)??"bottom",y=fr()
13239
- ;return e.createElement(DF,{open:m,onOpenChange:e=>{v(e)},...f
13240
- },c?e.createElement(e.Fragment,null,n):e.createElement(AF,{dir:y.direction,
13237
+ `,DF=zr(MF)``,AF=zr(zF)``,LF=zr(xF)``,VF=zr(EF)``,kF=({children:t,trigger:n,arrow:r,hoverOutToClose:o,align:a,hoverToOpen:i,avoidCollisions:l=!0,replaceTrigger:c=!1,side:s,disabled:u,onClose:d,popoverContentProps:h,popoverRootProps:f,popoverPortalProps:p,anchorOrigin:m})=>{
13238
+ const[v,g]=e.useState(!1),y=s??("bottom"===m?.vertical&&m.horizontal?"bottom":void 0)??("top"===m?.vertical&&m.horizontal?"top":void 0)??("center"===m?.vertical&&"left"===m.horizontal?"left":void 0)??("center"===m?.vertical&&"right"===m.horizontal?"right":void 0)??"bottom",b=fr()
13239
+ ;return e.createElement(DF,{open:v,onOpenChange:e=>{g(e)},...f
13240
+ },c?e.createElement(e.Fragment,null,n):e.createElement(AF,{dir:b.direction,
13241
13241
  asChild:!0,className:"PopoverTrigger",disabled:u},e.createElement(Uo,{
13242
- className:"TriggerButtonWrapper",onMouseEnter:()=>{i&&v(!0)}
13243
- },n)),e.createElement(LF,null,e.createElement(_F,{forceMount:!0,
13244
- className:"PopoverContent","data-popover-content":!0,dir:y.direction,
13245
- onMouseLeave:()=>{o&&(v(!1),d?.())},onInteractOutside:()=>{v(!1),d?.()},side:g,
13242
+ className:"TriggerButtonWrapper",onMouseEnter:()=>{i&&g(!0)}
13243
+ },n)),e.createElement(LF,{...p},e.createElement(_F,{forceMount:!0,
13244
+ className:"PopoverContent","data-popover-content":!0,dir:b.direction,
13245
+ onMouseLeave:()=>{o&&(g(!1),d?.())},onInteractOutside:()=>{g(!1),d?.()},side:y,
13246
13246
  align:a,sideOffset:8,avoidCollisions:l,...h},t,r&&e.createElement(HF,null))))
13247
13247
  },TF=zr.div`
13248
13248
  direction: ${({theme:e})=>e.direction};
@@ -17058,16 +17058,16 @@ isDisableSortDropdown:!!q,options:R||[],value:T,onSelect:e=>{P?.(e??[])}
17058
17058
  },!m&&e.createElement(e.Fragment,null,e.createElement(Zo,{variant:"primary",
17059
17059
  className:"pagination-text"},i&&!w?e.createElement(Am,{size:"small"
17060
17060
  }):e.createElement(e.Fragment,null,n.length>0?`${ze*xe+1} - ${Ee} ${te?.of||"of"} ${ie?""+(Me.length>0?`${te?.many||"Many"}`:"-"):M??Me.length??"-"}`:null)),!E&&e.createElement(e.Fragment,null,e.createElement(Tm,{
17061
- variant:"secondary",className:"table-pagination-button",onClick:()=>{
17062
- V?.(),ie||ge()},disabled:ie?!S:!me()||i||l},e.createElement(DU,{
17063
- fill:ne.colors.text.primary})),e.createElement(Tm,{variant:"secondary",
17064
- className:"table-pagination-button",onClick:()=>{I?.(),ie||be()},
17065
- disabled:ie?!_:!pe()||i||l},e.createElement(AU,{fill:ne.colors.text.primary
17066
- })))),!v&&e.createElement(Tm,{variant:"secondary",
17067
- className:"table-pagination-button filter-toggle",onClick:()=>oe(!re)
17068
- },e.createElement(HU,{style:{transform:re?"rotateY(180deg)":"rotateY(0deg)"},
17069
- fill:"currentcolor"}))))),e.createElement(LU,null,e.createElement(VU,{
17070
- className:"table-wrapper"
17061
+ variant:"secondary",className:"table-pagination-button",onClick:e=>{
17062
+ e?.preventDefault(),V?.(),ie||ge()},disabled:ie?!S:!me()||i||l
17063
+ },e.createElement(DU,{fill:ne.colors.text.primary})),e.createElement(Tm,{
17064
+ variant:"secondary",className:"table-pagination-button",onClick:e=>{
17065
+ e?.preventDefault(),I?.(),ie||be()},disabled:ie?!_:!pe()||i||l
17066
+ },e.createElement(AU,{fill:ne.colors.text.primary})))),!v&&e.createElement(Tm,{
17067
+ variant:"secondary",className:"table-pagination-button filter-toggle",
17068
+ onClick:e=>{e?.preventDefault(),oe(!re)}},e.createElement(HU,{style:{
17069
+ transform:re?"rotateY(180deg)":"rotateY(0deg)"},fill:"currentcolor"
17070
+ }))))),e.createElement(LU,null,e.createElement(VU,{className:"table-wrapper"
17071
17071
  },a&&e.createElement(RU,null,a),i&&!b?e.createElement(e.Fragment,null,s):e.createElement(e.Fragment,null,0===Me.length&&p?e.createElement(e.Fragment,null,c):e.createElement(FU,null,e.createElement($U,null,!H&&e.createElement(kF,{
17072
17072
  align:"end",avoidCollisions:!0,side:"top",trigger:e.createElement(aY,{
17073
17073
  fill:"currentcolor"})},e.createElement(cY,{table:ue
package/lib/index.d.ts CHANGED
@@ -1094,6 +1094,7 @@ interface PopoverProps {
1094
1094
  replaceTrigger?: boolean;
1095
1095
  popoverContentProps?: Popover$1.PopoverContentProps;
1096
1096
  popoverRootProps?: Popover$1.PopoverProps;
1097
+ popoverPortalProps?: Popover$1.PopoverPortalProps;
1097
1098
  /**
1098
1099
  * The children or label
1099
1100
  */
@@ -1151,7 +1152,7 @@ interface PopoverProps {
1151
1152
  /**
1152
1153
  * Popover need two slots popover-trigger and popover-content. By default on clicking the trigger the content will be displayed. The props can be used to change the position of the content, width of the component and the distance between the trigger and the content.
1153
1154
  */
1154
- declare const Popover: ({ children, trigger, arrow, hoverOutToClose, align, hoverToOpen, avoidCollisions, replaceTrigger, side: s, disabled, onClose, popoverContentProps, popoverRootProps, anchorOrigin, }: PopoverProps) => react__default.JSX.Element;
1155
+ declare const Popover: ({ children, trigger, arrow, hoverOutToClose, align, hoverToOpen, avoidCollisions, replaceTrigger, side: s, disabled, onClose, popoverContentProps, popoverRootProps, popoverPortalProps, anchorOrigin, }: PopoverProps) => react__default.JSX.Element;
1155
1156
 
1156
1157
  declare const PopoverTrigger: styled_components.IStyledComponent<"web", styled_components_dist_types.FastOmit<Omit<Popover$1.PopoverTriggerProps & react.RefAttributes<HTMLButtonElement>, "ref"> & {
1157
1158
  ref?: ((instance: HTMLButtonElement | null) => void) | react.RefObject<HTMLButtonElement> | null | undefined;
package/lib/index.js CHANGED
@@ -13368,15 +13368,15 @@ ref:t}))})),i$=Ur(ZF)`
13368
13368
  `}
13369
13369
  `,l$=Ur(a$)`
13370
13370
  fill: ${({theme:e})=>e.colors.fill.surface};
13371
- `,c$=Ur(t$)``,s$=Ur(n$)``,u$=Ur(r$)``,d$=Ur(o$)``,h$=({children:e,trigger:n,arrow:r,hoverOutToClose:o,align:a,hoverToOpen:i,avoidCollisions:l=!0,replaceTrigger:c=!1,side:s,disabled:u,onClose:d,popoverContentProps:h,popoverRootProps:p,anchorOrigin:f})=>{
13372
- const[m,v]=t.useState(!1),g=s??("bottom"===f?.vertical&&f.horizontal?"bottom":void 0)??("top"===f?.vertical&&f.horizontal?"top":void 0)??("center"===f?.vertical&&"left"===f.horizontal?"left":void 0)??("center"===f?.vertical&&"right"===f.horizontal?"right":void 0)??"bottom",y=Tr()
13373
- ;return t.createElement(c$,{open:m,onOpenChange:e=>{v(e)},...p
13374
- },c?t.createElement(t.Fragment,null,n):t.createElement(s$,{dir:y.direction,
13371
+ `,c$=Ur(t$)``,s$=Ur(n$)``,u$=Ur(r$)``,d$=Ur(o$)``,h$=({children:e,trigger:n,arrow:r,hoverOutToClose:o,align:a,hoverToOpen:i,avoidCollisions:l=!0,replaceTrigger:c=!1,side:s,disabled:u,onClose:d,popoverContentProps:h,popoverRootProps:p,popoverPortalProps:f,anchorOrigin:m})=>{
13372
+ const[v,g]=t.useState(!1),y=s??("bottom"===m?.vertical&&m.horizontal?"bottom":void 0)??("top"===m?.vertical&&m.horizontal?"top":void 0)??("center"===m?.vertical&&"left"===m.horizontal?"left":void 0)??("center"===m?.vertical&&"right"===m.horizontal?"right":void 0)??"bottom",b=Tr()
13373
+ ;return t.createElement(c$,{open:v,onOpenChange:e=>{g(e)},...p
13374
+ },c?t.createElement(t.Fragment,null,n):t.createElement(s$,{dir:b.direction,
13375
13375
  asChild:!0,className:"PopoverTrigger",disabled:u},t.createElement(ha,{
13376
- className:"TriggerButtonWrapper",onMouseEnter:()=>{i&&v(!0)}
13377
- },n)),t.createElement(u$,null,t.createElement(i$,{forceMount:!0,
13378
- className:"PopoverContent","data-popover-content":!0,dir:y.direction,
13379
- onMouseLeave:()=>{o&&(v(!1),d?.())},onInteractOutside:()=>{v(!1),d?.()},side:g,
13376
+ className:"TriggerButtonWrapper",onMouseEnter:()=>{i&&g(!0)}
13377
+ },n)),t.createElement(u$,{...f},t.createElement(i$,{forceMount:!0,
13378
+ className:"PopoverContent","data-popover-content":!0,dir:b.direction,
13379
+ onMouseLeave:()=>{o&&(g(!1),d?.())},onInteractOutside:()=>{g(!1),d?.()},side:y,
13380
13380
  align:a,sideOffset:8,avoidCollisions:l,...h},e,r&&t.createElement(l$,null))))
13381
13381
  },p$=Ur.div`
13382
13382
  direction: ${({theme:e})=>e.direction};
@@ -16271,16 +16271,16 @@ isDisableSortDropdown:!!q,options:P||[],value:T,onSelect:e=>{I?.(e??[])}
16271
16271
  },!m&&t.createElement(t.Fragment,null,t.createElement(ya,{variant:"primary",
16272
16272
  className:"pagination-text"},i&&!w?t.createElement(Qm,{size:"small"
16273
16273
  }):t.createElement(t.Fragment,null,n.length>0?`${Me*xe+1} - ${Ee} ${te?.of||"of"} ${ie?""+(ze.length>0?`${te?.many||"Many"}`:"-"):z??ze.length??"-"}`:null)),!E&&t.createElement(t.Fragment,null,t.createElement(ov,{
16274
- variant:"secondary",className:"table-pagination-button",onClick:()=>{
16275
- V?.(),ie||ge()},disabled:ie?!S:!me()||i||l},t.createElement(sY,{
16276
- fill:ne.colors.text.primary})),t.createElement(ov,{variant:"secondary",
16277
- className:"table-pagination-button",onClick:()=>{R?.(),ie||be()},
16278
- disabled:ie?!_:!fe()||i||l},t.createElement(uY,{fill:ne.colors.text.primary
16279
- })))),!v&&t.createElement(ov,{variant:"secondary",
16280
- className:"table-pagination-button filter-toggle",onClick:()=>oe(!re)
16281
- },t.createElement(cY,{style:{transform:re?"rotateY(180deg)":"rotateY(0deg)"},
16282
- fill:"currentcolor"}))))),t.createElement(dY,null,t.createElement(hY,{
16283
- className:"table-wrapper"
16274
+ variant:"secondary",className:"table-pagination-button",onClick:e=>{
16275
+ e?.preventDefault(),V?.(),ie||ge()},disabled:ie?!S:!me()||i||l
16276
+ },t.createElement(sY,{fill:ne.colors.text.primary})),t.createElement(ov,{
16277
+ variant:"secondary",className:"table-pagination-button",onClick:e=>{
16278
+ e?.preventDefault(),R?.(),ie||be()},disabled:ie?!_:!fe()||i||l
16279
+ },t.createElement(uY,{fill:ne.colors.text.primary})))),!v&&t.createElement(ov,{
16280
+ variant:"secondary",className:"table-pagination-button filter-toggle",
16281
+ onClick:e=>{e?.preventDefault(),oe(!re)}},t.createElement(cY,{style:{
16282
+ transform:re?"rotateY(180deg)":"rotateY(0deg)"},fill:"currentcolor"
16283
+ }))))),t.createElement(dY,null,t.createElement(hY,{className:"table-wrapper"
16284
16284
  },a&&t.createElement(mY,null,a),i&&!b?t.createElement(t.Fragment,null,s):t.createElement(t.Fragment,null,0===ze.length&&f?t.createElement(t.Fragment,null,c):t.createElement(wY,null,t.createElement(CY,null,!H&&t.createElement(h$,{
16285
16285
  align:"end",avoidCollisions:!0,side:"top",trigger:t.createElement(NY,{
16286
16286
  fill:"currentcolor"})},t.createElement(BY,{table:ue
package/lib/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "freemium-ui",
3
- "version": "2.0.113",
3
+ "version": "2.0.115",
4
4
  "description": "React Ui Components for Freemium Apps",
5
5
  "main": "./index.js",
6
6
  "module": "./index.js",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "freemium-ui",
3
- "version": "2.0.113",
3
+ "version": "2.0.115",
4
4
  "description": "React Ui Components for Freemium Apps",
5
5
  "main": "lib/index.cjs.js",
6
6
  "module": "lib/index.js",