freemium-ui 2.0.21 → 2.0.23
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 +4888 -4777
- package/lib/index.d.ts +6 -6
- package/lib/index.js +4842 -4727
- package/lib/package.json +1 -1
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -1149,20 +1149,20 @@ type ReorderProps<T extends ReorderItemType = ReorderItemType> = {
|
|
|
1149
1149
|
*/
|
|
1150
1150
|
declare const Reorder: <T extends ReorderItemType = ReorderItemType>(props: ReorderProps<T>) => react__default.JSX.Element;
|
|
1151
1151
|
|
|
1152
|
-
type
|
|
1152
|
+
type RowDataType = {
|
|
1153
1153
|
[key in string]: any;
|
|
1154
1154
|
};
|
|
1155
1155
|
type SortingOptionsType = {
|
|
1156
1156
|
id: string;
|
|
1157
1157
|
name: string;
|
|
1158
1158
|
};
|
|
1159
|
-
interface FuiTableColumnType<T extends
|
|
1159
|
+
interface FuiTableColumnType<T extends RowDataType> {
|
|
1160
1160
|
id: string;
|
|
1161
1161
|
Header: string;
|
|
1162
1162
|
accessorFn: (row: T) => React.ReactNode | string | null;
|
|
1163
1163
|
disableSortBy?: boolean;
|
|
1164
1164
|
}
|
|
1165
|
-
interface TableProps<T extends
|
|
1165
|
+
interface TableProps<T extends RowDataType> {
|
|
1166
1166
|
/**
|
|
1167
1167
|
* How large should the button be?
|
|
1168
1168
|
*/
|
|
@@ -1201,7 +1201,7 @@ interface TableProps<T extends RowData> {
|
|
|
1201
1201
|
onPreviousPageClick?: () => void;
|
|
1202
1202
|
onSelectAllRows?: (checked: boolean) => void;
|
|
1203
1203
|
onRowSelect?: (row: T, checked: boolean) => void;
|
|
1204
|
-
rowMenuOptions?: (
|
|
1204
|
+
rowMenuOptions?: (RowDataType: T) => MenuItemProps[];
|
|
1205
1205
|
onMenuOptionSelect?: (optionId: string, row: T) => void;
|
|
1206
1206
|
onRowClick?: (row: T, column: ColumnDef<T, unknown>) => void;
|
|
1207
1207
|
dataKey?: string;
|
|
@@ -1227,7 +1227,7 @@ interface TableProps<T extends RowData> {
|
|
|
1227
1227
|
/**
|
|
1228
1228
|
* Table component is used to display data in a tabular format. It is used to show data in a structured manner. It can be used to show data in a grid format.
|
|
1229
1229
|
*/
|
|
1230
|
-
declare const Table: <T extends
|
|
1230
|
+
declare const Table: <T extends RowDataType = RowDataType>(props: TableProps<T>) => react__default.JSX.Element;
|
|
1231
1231
|
|
|
1232
1232
|
declare const TabsRoot: styled_components.IStyledComponent<"web", styled_components_dist_types.FastOmit<Omit<Tabs$1.TabsProps & react.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
1233
1233
|
ref?: ((instance: HTMLDivElement | null) => void) | react.RefObject<HTMLDivElement> | null | undefined;
|
|
@@ -1772,4 +1772,4 @@ declare namespace index_d {
|
|
|
1772
1772
|
export { index_d_Z_INDEX as Z_INDEX, index_d_dark as dark, index_d_hextoRGB as hextoRGB, index_d_light as light };
|
|
1773
1773
|
}
|
|
1774
1774
|
|
|
1775
|
-
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, _default as FreemiumUIGlobalStyles, 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
|
|
1775
|
+
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, _default as FreemiumUIGlobalStyles, 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 RowDataType, 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, dialogContentMixin, dialogOverlayMixin, useToasts };
|