freemium-ui 2.0.0-beta.50 → 2.0.0-beta.52
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 +4955 -4938
- package/index.d.ts +17 -9
- package/index.js +4900 -4885
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import * as react from 'react';
|
|
3
|
-
import react__default, { ReactNode } from 'react';
|
|
3
|
+
import react__default, { ReactNode, HTMLAttributes } from 'react';
|
|
4
4
|
import { AccordionSingleProps } from '@radix-ui/react-accordion';
|
|
5
5
|
import * as Popover$1 from '@radix-ui/react-popover';
|
|
6
6
|
import { PopperContentProps } from '@radix-ui/react-popover';
|
|
7
7
|
import { RadioGroupProps as RadioGroupProps$1, RadioGroupContextValue } from '@radix-ui/react-radio-group';
|
|
8
8
|
import { CheckboxProps as CheckboxProps$1 } from '@radix-ui/react-checkbox';
|
|
9
9
|
import * as Select from '@radix-ui/react-select';
|
|
10
|
-
import { SelectProps,
|
|
10
|
+
import { SelectProps, SelectItemProps } from '@radix-ui/react-select';
|
|
11
11
|
export { Item as RadixSelectItem } from '@radix-ui/react-select';
|
|
12
12
|
import * as styled_components from 'styled-components';
|
|
13
13
|
import * as styled_components_dist_types from 'styled-components/dist/types';
|
|
@@ -113,14 +113,20 @@ interface AlertProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
113
113
|
onClose?: () => any;
|
|
114
114
|
/**
|
|
115
115
|
* Function to be called when the alert is dismissed
|
|
116
|
+
*
|
|
116
117
|
*/
|
|
117
118
|
onDisappear?: () => any;
|
|
119
|
+
/**
|
|
120
|
+
* Icon to be displayed in the alert
|
|
121
|
+
* @default getAlertIcon(level)
|
|
122
|
+
**/
|
|
123
|
+
icon?: React.ReactNode;
|
|
118
124
|
}
|
|
119
125
|
|
|
120
126
|
/**
|
|
121
127
|
* Alert displays an alert on the user interface and enables displaying additional information to the context of the page.
|
|
122
128
|
*/
|
|
123
|
-
declare const Alert: ({ canDismiss, onClose, children, level, onDisappear, data, timeout, overideClassName, ...props }: AlertProps) => react__default.JSX.Element | null;
|
|
129
|
+
declare const Alert: ({ canDismiss, onClose, children, level, onDisappear, data, icon, timeout, overideClassName, ...props }: AlertProps) => react__default.JSX.Element | null;
|
|
124
130
|
|
|
125
131
|
type ButtonSizeKey = 'mini' | 'normal' | 'large';
|
|
126
132
|
type ButtonVariant = 'primary' | 'secondary' | 'danger' | 'link';
|
|
@@ -493,10 +499,6 @@ interface DropdownProps<T extends DefaultDropdownItem = DefaultDropdownItem> ext
|
|
|
493
499
|
*
|
|
494
500
|
*/
|
|
495
501
|
isMenuLoading?: boolean;
|
|
496
|
-
/**
|
|
497
|
-
*
|
|
498
|
-
*/
|
|
499
|
-
matchButtonWidth?: boolean;
|
|
500
502
|
/**
|
|
501
503
|
*
|
|
502
504
|
*/
|
|
@@ -529,7 +531,7 @@ interface DropdownProps<T extends DefaultDropdownItem = DefaultDropdownItem> ext
|
|
|
529
531
|
*/
|
|
530
532
|
useComboboxProps?: UseComboboxProps<T>;
|
|
531
533
|
itemComponent?: (item: T, props?: DropdownItemProps | DropdownInputItemProps) => React.ReactNode | string;
|
|
532
|
-
|
|
534
|
+
contentProps?: Pick<HTMLAttributes<HTMLElement>, 'style' | 'className'>;
|
|
533
535
|
}
|
|
534
536
|
interface DropdownButtonProps<T extends DefaultDropdownItem = DefaultDropdownItem> extends DropdownProps<T> {
|
|
535
537
|
}
|
|
@@ -557,6 +559,12 @@ declare const TickIcon: react__default.ForwardRefExoticComponent<Omit<react__def
|
|
|
557
559
|
|
|
558
560
|
declare const Warning: react__default.ForwardRefExoticComponent<Omit<react__default.SVGProps<SVGSVGElement>, "ref"> & react__default.RefAttributes<SVGSVGElement>>;
|
|
559
561
|
|
|
562
|
+
declare const ErrorIcon: react__default.ForwardRefExoticComponent<Omit<react__default.SVGProps<SVGSVGElement>, "ref"> & react__default.RefAttributes<SVGSVGElement>>;
|
|
563
|
+
|
|
564
|
+
declare const Checkmark: react__default.ForwardRefExoticComponent<Omit<react__default.SVGProps<SVGSVGElement>, "ref"> & react__default.RefAttributes<SVGSVGElement>>;
|
|
565
|
+
|
|
566
|
+
declare const InfoIcon: react__default.ForwardRefExoticComponent<Omit<react__default.SVGProps<SVGSVGElement>, "ref"> & react__default.RefAttributes<SVGSVGElement>>;
|
|
567
|
+
|
|
560
568
|
declare const Minus: react__default.ForwardRefExoticComponent<Omit<react__default.SVGProps<SVGSVGElement>, "ref"> & react__default.RefAttributes<SVGSVGElement>>;
|
|
561
569
|
|
|
562
570
|
declare const MoreVertical: react__default.ForwardRefExoticComponent<Omit<react__default.SVGProps<SVGSVGElement>, "ref"> & react__default.RefAttributes<SVGSVGElement>>;
|
|
@@ -1707,4 +1715,4 @@ declare namespace index_d {
|
|
|
1707
1715
|
export { index_d_dark as dark, index_d_hextoRGB as hextoRGB, index_d_light as light };
|
|
1708
1716
|
}
|
|
1709
1717
|
|
|
1710
|
-
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, 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, type FreemiumUiTheme, FreshLink, type FreshworksPalette, type FuiContextType, IconButton, 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 };
|
|
1718
|
+
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 };
|