freemium-ui 2.0.0-beta.63 → 2.0.0-beta.65
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 +10 -9
- package/index.d.ts +8 -2
- package/index.js +10 -9
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -12785,15 +12785,16 @@ 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,
|
|
12789
|
-
const[
|
|
12790
|
-
;return e.createElement(gI,{open:
|
|
12791
|
-
|
|
12792
|
-
className:"
|
|
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,popoverContentProps:h,popoverRootProps:p,anchorOrigin:f,autoCloseDuration:m,clickOutToClose:v,transformOrigin:g})=>{
|
|
12789
|
+
const[y,b]=e.useState(!1),w=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"
|
|
12790
|
+
;return e.createElement(gI,{open:y,onOpenChange:e=>{b(e)},...p
|
|
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&&b(!0)}
|
|
12793
12794
|
},n)),e.createElement(bI,null,e.createElement(mI,{forceMount:!0,
|
|
12794
|
-
className:"PopoverContent",onMouseLeave:()=>{a&&(
|
|
12795
|
-
onInteractOutside:()=>
|
|
12796
|
-
},t,r&&e.createElement(vI,null))))},zI=on.div``,MI=on(ls)`
|
|
12795
|
+
className:"PopoverContent",onMouseLeave:()=>{a&&(b(!1),d?.())},
|
|
12796
|
+
onInteractOutside:()=>{b(!1),d?.()},side:w,align:o,sideOffset:8,
|
|
12797
|
+
avoidCollisions:l,...h},t,r&&e.createElement(vI,null))))},zI=on.div``,MI=on(ls)`
|
|
12797
12798
|
display: flex;
|
|
12798
12799
|
flex-direction: column;
|
|
12799
12800
|
gap: 4px;
|
|
@@ -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,9 @@ interface PopoverProps {
|
|
|
972
972
|
* Which variant the button should be
|
|
973
973
|
*/
|
|
974
974
|
disabled?: boolean;
|
|
975
|
+
replaceTrigger?: boolean;
|
|
976
|
+
popoverContentProps?: Popover$1.PopoverContentProps;
|
|
977
|
+
popoverRootProps?: Popover$1.PopoverProps;
|
|
975
978
|
/**
|
|
976
979
|
* The children or label
|
|
977
980
|
*/
|
|
@@ -1029,8 +1032,11 @@ interface PopoverProps {
|
|
|
1029
1032
|
/**
|
|
1030
1033
|
* 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
1034
|
*/
|
|
1032
|
-
declare const Popover: ({ children, trigger, arrow, hoverOutToClose, align, hoverToOpen, avoidCollisions, side: s, disabled, onClose, anchorOrigin, autoCloseDuration, clickOutToClose, transformOrigin, }: PopoverProps) => react__default.JSX.Element;
|
|
1035
|
+
declare const Popover: ({ children, trigger, arrow, hoverOutToClose, align, hoverToOpen, avoidCollisions, replaceTrigger, side: s, disabled, onClose, popoverContentProps, popoverRootProps, anchorOrigin, autoCloseDuration, clickOutToClose, transformOrigin, }: PopoverProps) => react__default.JSX.Element;
|
|
1033
1036
|
|
|
1037
|
+
declare const PopoverTrigger: styled_components.IStyledComponent<"web", styled_components_dist_types.FastOmit<Omit<Popover$1.PopoverTriggerProps & react.RefAttributes<HTMLButtonElement>, "ref"> & {
|
|
1038
|
+
ref?: ((instance: HTMLButtonElement | null) => void) | react.RefObject<HTMLButtonElement> | null | undefined;
|
|
1039
|
+
}, never>> & Omit<react.ForwardRefExoticComponent<Popover$1.PopoverTriggerProps & react.RefAttributes<HTMLButtonElement>>, keyof react.Component<any, {}, any>>;
|
|
1034
1040
|
declare const PopoverClose: styled_components.IStyledComponent<"web", styled_components_dist_types.FastOmit<Omit<Popover$1.PopoverCloseProps & react.RefAttributes<HTMLButtonElement>, "ref"> & {
|
|
1035
1041
|
ref?: ((instance: HTMLButtonElement | null) => void) | react.RefObject<HTMLButtonElement> | null | undefined;
|
|
1036
1042
|
}, never>> & Omit<react.ForwardRefExoticComponent<Popover$1.PopoverCloseProps & react.RefAttributes<HTMLButtonElement>>, keyof react.Component<any, {}, any>>;
|
|
@@ -1728,4 +1734,4 @@ declare namespace index_d {
|
|
|
1728
1734
|
export { index_d_dark as dark, index_d_hextoRGB as hextoRGB, index_d_light as light };
|
|
1729
1735
|
}
|
|
1730
1736
|
|
|
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 };
|
|
1737
|
+
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,15 +12896,16 @@ 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,
|
|
12900
|
-
const[
|
|
12901
|
-
;return t.createElement(ZR,{open:
|
|
12902
|
-
|
|
12903
|
-
className:"
|
|
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,popoverContentProps:h,popoverRootProps:p,anchorOrigin:f,autoCloseDuration:m,clickOutToClose:v,transformOrigin:g})=>{
|
|
12900
|
+
const[y,b]=t.useState(!1),w=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"
|
|
12901
|
+
;return t.createElement(ZR,{open:y,onOpenChange:e=>{b(e)},...p
|
|
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&&b(!0)}
|
|
12904
12905
|
},n)),t.createElement(QR,null,t.createElement(KR,{forceMount:!0,
|
|
12905
|
-
className:"PopoverContent",onMouseLeave:()=>{a&&(
|
|
12906
|
-
onInteractOutside:()=>
|
|
12907
|
-
},e,r&&t.createElement(qR,null))))},tO=En.div``,nO=En(Vs)`
|
|
12906
|
+
className:"PopoverContent",onMouseLeave:()=>{a&&(b(!1),d?.())},
|
|
12907
|
+
onInteractOutside:()=>{b(!1),d?.()},side:w,align:o,sideOffset:8,
|
|
12908
|
+
avoidCollisions:l,...h},e,r&&t.createElement(qR,null))))},tO=En.div``,nO=En(Vs)`
|
|
12908
12909
|
display: flex;
|
|
12909
12910
|
flex-direction: column;
|
|
12910
12911
|
gap: 4px;
|
|
@@ -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};
|