freemium-ui 2.0.0-beta.63 → 2.0.0-beta.64

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
@@ -12785,14 +12785,15 @@ ref:n}))})),mI=on(oI)`
12785
12785
  }
12786
12786
  `,vI=on(fI)`
12787
12787
  fill: white;
12788
- `,gI=on(uI)``,yI=on(dI)``,bI=on(hI)``,wI=on(pI)``,CI=({children:t,trigger:n,arrow:r,hoverOutToClose:a,align:o,hoverToOpen:i,avoidCollisions:l=!0,side:c,disabled:s,onClose:u,anchorOrigin:d,autoCloseDuration:h,clickOutToClose:p,transformOrigin:f})=>{
12789
- const[m,v]=e.useState(!1),g=c??("bottom"===d?.vertical&&d.horizontal?"bottom":void 0)??("top"===d?.vertical&&d.horizontal?"top":void 0)??("center"===d?.vertical&&"left"===d.horizontal?"left":void 0)??("center"===d?.vertical&&"right"===d.horizontal?"right":void 0)??"bottom"
12790
- ;return e.createElement(gI,{open:m,onOpenChange:e=>{v(e)}},e.createElement(yI,{
12791
- asChild:!0,className:"PopoverTrigger",disabled:s},e.createElement(Zr,{
12792
- className:"TriggerButtonWrapper",onMouseEnter:()=>{i&&v(!0)}
12788
+ `,gI=on(uI)``,yI=on(dI)``,bI=on(hI)``,wI=on(pI)``,CI=({children:t,trigger:n,arrow:r,hoverOutToClose:a,align:o,hoverToOpen:i,avoidCollisions:l=!0,replaceTrigger:c=!1,side:s,disabled:u,onClose:d,anchorOrigin:h,autoCloseDuration:p,clickOutToClose:f,transformOrigin:m})=>{
12789
+ const[v,g]=e.useState(!1),y=s??("bottom"===h?.vertical&&h.horizontal?"bottom":void 0)??("top"===h?.vertical&&h.horizontal?"top":void 0)??("center"===h?.vertical&&"left"===h.horizontal?"left":void 0)??("center"===h?.vertical&&"right"===h.horizontal?"right":void 0)??"bottom"
12790
+ ;return e.createElement(gI,{open:v,onOpenChange:e=>{g(e)}
12791
+ },c?e.createElement(e.Fragment,null,n):e.createElement(yI,{asChild:!0,
12792
+ className:"PopoverTrigger",disabled:u},e.createElement(Zr,{
12793
+ className:"TriggerButtonWrapper",onMouseEnter:()=>{i&&g(!0)}
12793
12794
  },n)),e.createElement(bI,null,e.createElement(mI,{forceMount:!0,
12794
- className:"PopoverContent",onMouseLeave:()=>{a&&(v(!1),u?.())},
12795
- onInteractOutside:()=>u?.(),side:g,align:o,sideOffset:8,avoidCollisions:l
12795
+ className:"PopoverContent",onMouseLeave:()=>{a&&(g(!1),d?.())},
12796
+ onInteractOutside:()=>d?.(),side:y,align:o,sideOffset:8,avoidCollisions:l
12796
12797
  },t,r&&e.createElement(vI,null))))},zI=on.div``,MI=on(ls)`
12797
12798
  display: flex;
12798
12799
  flex-direction: column;
@@ -16426,7 +16427,7 @@ index:r})
16426
16427
  },D?D(n):e.createElement(e.Fragment,null,u?.(n)??"",o&&e.createElement(xr,{
16427
16428
  fill:I.colors.common.accent})))})))),E&&_&&e.createElement(ws,null,_))
16428
16429
  },exports.Popover=CI,
16429
- exports.PopoverClose=wI,exports.Radio=({checked:t,className:n,disabled:r,id:a,isRequired:o,label:i,name:l,readOnly:c,...s})=>e.createElement(MI,{
16430
+ exports.PopoverClose=wI,exports.PopoverTrigger=yI,exports.Radio=({checked:t,className:n,disabled:r,id:a,isRequired:o,label:i,name:l,readOnly:c,...s})=>e.createElement(MI,{
16430
16431
  className:`RadioGroupRoot ${n??""}`.trim(),id:a,name:l,
16431
16432
  "aria-label":i||"Radio button",value:t?"default":"",required:o,disabled:r,
16432
16433
  "aria-readonly":c,...s},e.createElement(SI,null,e.createElement(EI,{checked:t,
package/index.d.ts CHANGED
@@ -972,6 +972,7 @@ interface PopoverProps {
972
972
  * Which variant the button should be
973
973
  */
974
974
  disabled?: boolean;
975
+ replaceTrigger?: boolean;
975
976
  /**
976
977
  * The children or label
977
978
  */
@@ -1029,8 +1030,11 @@ interface PopoverProps {
1029
1030
  /**
1030
1031
  * 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.
1031
1032
  */
1032
- declare const Popover: ({ children, trigger, arrow, hoverOutToClose, align, hoverToOpen, avoidCollisions, side: s, disabled, onClose, anchorOrigin, autoCloseDuration, clickOutToClose, transformOrigin, }: PopoverProps) => react__default.JSX.Element;
1033
+ declare const Popover: ({ children, trigger, arrow, hoverOutToClose, align, hoverToOpen, avoidCollisions, replaceTrigger, side: s, disabled, onClose, anchorOrigin, autoCloseDuration, clickOutToClose, transformOrigin, }: PopoverProps) => react__default.JSX.Element;
1033
1034
 
1035
+ declare const PopoverTrigger: styled_components.IStyledComponent<"web", styled_components_dist_types.FastOmit<Omit<Popover$1.PopoverTriggerProps & react.RefAttributes<HTMLButtonElement>, "ref"> & {
1036
+ ref?: ((instance: HTMLButtonElement | null) => void) | react.RefObject<HTMLButtonElement> | null | undefined;
1037
+ }, never>> & Omit<react.ForwardRefExoticComponent<Popover$1.PopoverTriggerProps & react.RefAttributes<HTMLButtonElement>>, keyof react.Component<any, {}, any>>;
1034
1038
  declare const PopoverClose: styled_components.IStyledComponent<"web", styled_components_dist_types.FastOmit<Omit<Popover$1.PopoverCloseProps & react.RefAttributes<HTMLButtonElement>, "ref"> & {
1035
1039
  ref?: ((instance: HTMLButtonElement | null) => void) | react.RefObject<HTMLButtonElement> | null | undefined;
1036
1040
  }, never>> & Omit<react.ForwardRefExoticComponent<Popover$1.PopoverCloseProps & react.RefAttributes<HTMLButtonElement>>, keyof react.Component<any, {}, any>>;
@@ -1728,4 +1732,4 @@ declare namespace index_d {
1728
1732
  export { index_d_dark as dark, index_d_hextoRGB as hextoRGB, index_d_light as light };
1729
1733
  }
1730
1734
 
1731
- export { Accordion, type AccordionItemProps, type AccordionProps, Alert, type AlertProps, BoxedRadio, type BoxedRadioItemProps, type BoxedRadioProps, Button, ButtonDropdown, type ButtonDropdownItemProps, type ButtonDropdownProps, type ButtonProps, type ButtonSizeKey, type ButtonVariant, CardActions, CardContent, CardDescription, CardText, CardTitle, Checkbox, type CheckboxProps, Checkmark, ChevronUp, Confirmation, type ConfirmationProps, Cross as CrossIcon, DatePicker, type DatePickerProps, DateRangePicker, type DateRangePickerProps, DateTimePicker, type DateTimePickerProps, DateTimeRangePicker, type DateTimeRangePickerProps, type DefaultDropdownItem, type DefaultMultiSelectDropdownItem, type DefaultProps, Drawer, type DrawerPlacement, type DrawerProps, type DrawerSizeType, Dropdown, type DropdownButtonProps, ListItem as DropdownInputItem, type DropdownInputItemProps, type DropdownInputProps, Item as DropdownItem, type DropdownItemProps, DropdownMenuItem, type DropdownProps, type DropdownTypes, ErrorIcon, type FreemiumUiTheme, FreshLink, type FreshworksPalette, type FuiContextType, IconButton, InfoIcon, Input, InputLabel, type InputProps, type LevelType, Loader, type LoaderPropTypes, type LoaderSizes, type LoaderSpeeds, Menu, type MenuItemProps, type MenuProps, Minus, Modal, type ModalAlignType, type ModalCssType, type ModalPositionType, type ModalProps, type ModalSizeType, MoreVertical, MultiSelectDropdown, type MultiSelectDropdownProps, type Origin, Popover, PopoverClose, type PopoverProps, Radio, RadioGroup, type RadioGroupProps, type RadioItemProps, type RadioProps, Reorder, type ReorderItemType, type ReorderProps, RequiredIndicator, type RowData, StyledLabel, type StyledListItemType, Table, type TableProps, Tabs, TabsContent, type TabsItemProps, TabsList, type TabsProps, TabsRoot, TabsTrigger, Tag, type TagProps, TextArea, type TextAreaProps, ThemeProvider, type ThemeProviderType, index_d as Themes, TickIcon, TimePicker, type TimePickerProps, type ToastContextType, type ToastItemProps, ToastProvider, type ToastType, type ToastTypes, type ToastWithID, Toggle, type ToggleProps, type ToggleSizes, Tooltip, type TooltipAlign, type TooltipPosition, type TooltipProps, type TooltipSide, TriggerButtonWrapper, Typography, type TypographyProps, type TypographyVariantType, type TypographyWeightType, type UpdateToastsFunction, Warning, basicHide, basicShow, contentHide, contentShow, slideDownAndFade, slideLeftAndFade, slideRightAndFade, slideUpAndFade, useToasts };
1735
+ export { Accordion, type AccordionItemProps, type AccordionProps, Alert, type AlertProps, BoxedRadio, type BoxedRadioItemProps, type BoxedRadioProps, Button, ButtonDropdown, type ButtonDropdownItemProps, type ButtonDropdownProps, type ButtonProps, type ButtonSizeKey, type ButtonVariant, CardActions, CardContent, CardDescription, CardText, CardTitle, Checkbox, type CheckboxProps, Checkmark, ChevronUp, Confirmation, type ConfirmationProps, Cross as CrossIcon, DatePicker, type DatePickerProps, DateRangePicker, type DateRangePickerProps, DateTimePicker, type DateTimePickerProps, DateTimeRangePicker, type DateTimeRangePickerProps, type DefaultDropdownItem, type DefaultMultiSelectDropdownItem, type DefaultProps, Drawer, type DrawerPlacement, type DrawerProps, type DrawerSizeType, Dropdown, type DropdownButtonProps, ListItem as DropdownInputItem, type DropdownInputItemProps, type DropdownInputProps, Item as DropdownItem, type DropdownItemProps, DropdownMenuItem, type DropdownProps, type DropdownTypes, ErrorIcon, type FreemiumUiTheme, FreshLink, type FreshworksPalette, type FuiContextType, IconButton, InfoIcon, Input, InputLabel, type InputProps, type LevelType, Loader, type LoaderPropTypes, type LoaderSizes, type LoaderSpeeds, Menu, type MenuItemProps, type MenuProps, Minus, Modal, type ModalAlignType, type ModalCssType, type ModalPositionType, type ModalProps, type ModalSizeType, MoreVertical, MultiSelectDropdown, type MultiSelectDropdownProps, type Origin, Popover, PopoverClose, type PopoverProps, PopoverTrigger, Radio, RadioGroup, type RadioGroupProps, type RadioItemProps, type RadioProps, Reorder, type ReorderItemType, type ReorderProps, RequiredIndicator, type RowData, StyledLabel, type StyledListItemType, Table, type TableProps, Tabs, TabsContent, type TabsItemProps, TabsList, type TabsProps, TabsRoot, TabsTrigger, Tag, type TagProps, TextArea, type TextAreaProps, ThemeProvider, type ThemeProviderType, index_d as Themes, TickIcon, TimePicker, type TimePickerProps, type ToastContextType, type ToastItemProps, ToastProvider, type ToastType, type ToastTypes, type ToastWithID, Toggle, type ToggleProps, type ToggleSizes, Tooltip, type TooltipAlign, type TooltipPosition, type TooltipProps, type TooltipSide, TriggerButtonWrapper, Typography, type TypographyProps, type TypographyVariantType, type TypographyWeightType, type UpdateToastsFunction, Warning, basicHide, basicShow, contentHide, contentShow, slideDownAndFade, slideLeftAndFade, slideRightAndFade, slideUpAndFade, useToasts };
package/index.js CHANGED
@@ -12896,14 +12896,15 @@ ref:t}))})),KR=En(OR)`
12896
12896
  }
12897
12897
  `,qR=En(GR)`
12898
12898
  fill: white;
12899
- `,ZR=En($R)``,XR=En(UR)``,QR=En(YR)``,JR=En(WR)``,eO=({children:e,trigger:n,arrow:r,hoverOutToClose:a,align:o,hoverToOpen:i,avoidCollisions:l=!0,side:c,disabled:s,onClose:u,anchorOrigin:d,autoCloseDuration:h,clickOutToClose:p,transformOrigin:f})=>{
12900
- const[m,v]=t.useState(!1),g=c??("bottom"===d?.vertical&&d.horizontal?"bottom":void 0)??("top"===d?.vertical&&d.horizontal?"top":void 0)??("center"===d?.vertical&&"left"===d.horizontal?"left":void 0)??("center"===d?.vertical&&"right"===d.horizontal?"right":void 0)??"bottom"
12901
- ;return t.createElement(ZR,{open:m,onOpenChange:e=>{v(e)}},t.createElement(XR,{
12902
- asChild:!0,className:"PopoverTrigger",disabled:s},t.createElement(ga,{
12903
- className:"TriggerButtonWrapper",onMouseEnter:()=>{i&&v(!0)}
12899
+ `,ZR=En($R)``,XR=En(UR)``,QR=En(YR)``,JR=En(WR)``,eO=({children:e,trigger:n,arrow:r,hoverOutToClose:a,align:o,hoverToOpen:i,avoidCollisions:l=!0,replaceTrigger:c=!1,side:s,disabled:u,onClose:d,anchorOrigin:h,autoCloseDuration:p,clickOutToClose:f,transformOrigin:m})=>{
12900
+ const[v,g]=t.useState(!1),y=s??("bottom"===h?.vertical&&h.horizontal?"bottom":void 0)??("top"===h?.vertical&&h.horizontal?"top":void 0)??("center"===h?.vertical&&"left"===h.horizontal?"left":void 0)??("center"===h?.vertical&&"right"===h.horizontal?"right":void 0)??"bottom"
12901
+ ;return t.createElement(ZR,{open:v,onOpenChange:e=>{g(e)}
12902
+ },c?t.createElement(t.Fragment,null,n):t.createElement(XR,{asChild:!0,
12903
+ className:"PopoverTrigger",disabled:u},t.createElement(ga,{
12904
+ className:"TriggerButtonWrapper",onMouseEnter:()=>{i&&g(!0)}
12904
12905
  },n)),t.createElement(QR,null,t.createElement(KR,{forceMount:!0,
12905
- className:"PopoverContent",onMouseLeave:()=>{a&&(v(!1),u?.())},
12906
- onInteractOutside:()=>u?.(),side:g,align:o,sideOffset:8,avoidCollisions:l
12906
+ className:"PopoverContent",onMouseLeave:()=>{a&&(g(!1),d?.())},
12907
+ onInteractOutside:()=>d?.(),side:y,align:o,sideOffset:8,avoidCollisions:l
12907
12908
  },e,r&&t.createElement(qR,null))))},tO=En.div``,nO=En(Vs)`
12908
12909
  display: flex;
12909
12910
  flex-direction: column;
@@ -16434,4 +16435,4 @@ return n=bx(e),t!==Cx.STANDARD?[3,2]:[4,Promise.resolve().then((function(){
16434
16435
  return Mx}))];case 1:return r=a.sent(),[3,4];case 2:
16435
16436
  return[4,Promise.resolve().then((function(){return Sx}))];case 3:
16436
16437
  r=a.sent(),a.label=4;case 4:return[2,r[n]]}}))}))}})
16437
- ;export{aa as Accordion,Na as Alert,Us as BoxedRadio,ja as Button,us as ButtonDropdown,pa as CardActions,ha as CardContent,ma as CardDescription,va as CardText,fa as CardTitle,au as Checkbox,Gr as Checkmark,jr as ChevronUp,ud as Confirmation,$r as CrossIcon,CR as DatePicker,MR as DateRangePicker,zR as DateTimePicker,xR as DateTimeRangePicker,Cd as Drawer,Hv as Dropdown,Rh as DropdownInputItem,Lv as DropdownItem,ss as DropdownMenuItem,Wr as ErrorIcon,da as FreshLink,ua as IconButton,Kr as InfoIcon,wv as Input,ca as InputLabel,_v as Loader,Av as Menu,qr as Minus,Fv as Modal,Zr as MoreVertical,ng as MultiSelectDropdown,eO as Popover,JR as PopoverClose,iO as Radio,lO as RadioGroup,ns as RadixMenuItem,Hh as RadixSelectItem,QF as Reorder,sa as RequiredIndicator,la as StyledLabel,Vj as Table,Gj as Tabs,Uj as TabsContent,Yj as TabsList,$j as TabsRoot,Wj as TabsTrigger,tg as Tag,Cv as TextArea,W$ as ThemeProvider,YU as Themes,Ur as TickIcon,ER as TimePicker,U$ as ToastProvider,lU as Toggle,FU as Tooltip,ga as TriggerButtonWrapper,Ia as Typography,Yr as Warning,ba as basicHide,Ca as basicShow,Ma as contentHide,Sa as contentShow,La as slideDownAndFade,ka as slideLeftAndFade,Da as slideRightAndFade,_a as slideUpAndFade,Y$ as useToasts};
16438
+ ;export{aa as Accordion,Na as Alert,Us as BoxedRadio,ja as Button,us as ButtonDropdown,pa as CardActions,ha as CardContent,ma as CardDescription,va as CardText,fa as CardTitle,au as Checkbox,Gr as Checkmark,jr as ChevronUp,ud as Confirmation,$r as CrossIcon,CR as DatePicker,MR as DateRangePicker,zR as DateTimePicker,xR as DateTimeRangePicker,Cd as Drawer,Hv as Dropdown,Rh as DropdownInputItem,Lv as DropdownItem,ss as DropdownMenuItem,Wr as ErrorIcon,da as FreshLink,ua as IconButton,Kr as InfoIcon,wv as Input,ca as InputLabel,_v as Loader,Av as Menu,qr as Minus,Fv as Modal,Zr as MoreVertical,ng as MultiSelectDropdown,eO as Popover,JR as PopoverClose,XR as PopoverTrigger,iO as Radio,lO as RadioGroup,ns as RadixMenuItem,Hh as RadixSelectItem,QF as Reorder,sa as RequiredIndicator,la as StyledLabel,Vj as Table,Gj as Tabs,Uj as TabsContent,Yj as TabsList,$j as TabsRoot,Wj as TabsTrigger,tg as Tag,Cv as TextArea,W$ as ThemeProvider,YU as Themes,Ur as TickIcon,ER as TimePicker,U$ as ToastProvider,lU as Toggle,FU as Tooltip,ga as TriggerButtonWrapper,Ia as Typography,Yr as Warning,ba as basicHide,Ca as basicShow,Ma as contentHide,Sa as contentShow,La as slideDownAndFade,ka as slideLeftAndFade,Da as slideRightAndFade,_a as slideUpAndFade,Y$ as useToasts};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "freemium-ui",
3
- "version": "2.0.0-beta.63",
3
+ "version": "2.0.0-beta.64",
4
4
  "description": "React Ui Components for Freemium Apps",
5
5
  "main": "./index.js",
6
6
  "module": "./index.js",