freemium-ui 2.0.60 → 2.0.62

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.d.ts CHANGED
@@ -1242,7 +1242,7 @@ type SortingOptionsType = {
1242
1242
  id: string;
1243
1243
  name: string;
1244
1244
  };
1245
- interface FuiTableColumnType<T extends RowDataType> {
1245
+ interface FuiTableColumnType$1<T extends RowDataType> {
1246
1246
  id: string;
1247
1247
  Header: string;
1248
1248
  accessorFn: (row: T) => React.ReactNode | string | null;
@@ -1253,7 +1253,7 @@ interface TableProps<T extends RowDataType> {
1253
1253
  * How large should the button be?
1254
1254
  */
1255
1255
  data: CoreOptions<T>['data'];
1256
- columns: FuiTableColumnType<T>[];
1256
+ columns: FuiTableColumnType$1<T>[];
1257
1257
  count?: number;
1258
1258
  pageSize?: number;
1259
1259
  pageIndex?: number;
@@ -1274,6 +1274,7 @@ interface TableProps<T extends RowDataType> {
1274
1274
  showTableOnLoading?: boolean;
1275
1275
  hideLoaderOnTopPagination?: boolean;
1276
1276
  hideActions?: boolean;
1277
+ showWorkspaceActions?: boolean;
1277
1278
  hideSelectAllInTable?: boolean;
1278
1279
  hideBottomPagination?: boolean;
1279
1280
  disableRowSelect?: boolean;
@@ -1765,6 +1766,80 @@ declare const Typography: react__default.ForwardRefExoticComponent<TypographyPro
1765
1766
  */
1766
1767
  declare const SortDropdown: <T extends DefaultMenuItemProps>(props: TableSortingMenuProps<T>) => react__default.JSX.Element;
1767
1768
 
1769
+ type WorkspaceRowDataType = {
1770
+ [key in string]: any;
1771
+ };
1772
+ interface FuiTableColumnType<T extends WorkspaceRowDataType> {
1773
+ id: string;
1774
+ Header: string;
1775
+ accessorFn: (row: T) => React.ReactNode | string | null;
1776
+ disableSortBy?: boolean;
1777
+ }
1778
+ interface WorkspaceTableProps<T extends WorkspaceRowDataType> {
1779
+ /**
1780
+ * How large should the button be?
1781
+ */
1782
+ data: CoreOptions<T>['data'];
1783
+ columns: FuiTableColumnType<T>[];
1784
+ count?: number;
1785
+ pageSize?: number;
1786
+ pageIndex?: number;
1787
+ enablePreviousPage?: boolean;
1788
+ enableNextPage?: boolean;
1789
+ isLoading?: boolean;
1790
+ isFetching?: boolean;
1791
+ showFooter?: boolean;
1792
+ hideColumnSettings?: boolean;
1793
+ hideTableOnEmpty?: boolean;
1794
+ hideTopPagination?: boolean;
1795
+ hideFilters?: boolean;
1796
+ showTableOnLoading?: boolean;
1797
+ hideLoaderOnTopPagination?: boolean;
1798
+ showWorkspaceActions?: boolean;
1799
+ hideSelectAllInTable?: boolean;
1800
+ isWSOpen?: boolean;
1801
+ hideBottomPagination?: boolean;
1802
+ disableRowSelect?: boolean;
1803
+ infoComponent?: React.ReactElement;
1804
+ filterComponent?: React.ReactElement;
1805
+ isDisableSortDropdown?: boolean | null;
1806
+ isFilterOpenByDefault?: boolean | null;
1807
+ emptyComponent?: React.ReactElement;
1808
+ loadingComponent?: React.ReactElement;
1809
+ headerComponent?: React.ReactElement;
1810
+ translationTexts?: Record<string, any> | null;
1811
+ onNextPageClick?: () => void;
1812
+ onPreviousPageClick?: () => void;
1813
+ onSelectAllRows?: (checked: boolean) => void;
1814
+ onRowSelect?: (row: T, checked: boolean) => void;
1815
+ rowMenuOptions?: (RowDataType: T) => MenuItemProps[];
1816
+ onMenuOptionSelect?: (optionId: string, row: T) => void;
1817
+ onRowClick?: (row: T, column: ColumnDef<T, unknown>) => void;
1818
+ dataKey?: string;
1819
+ rowPropGetter?: (row: T) => React.HTMLAttributes<HTMLTableRowElement>;
1820
+ cellPropGetter?: (cell: Cell<T, unknown>) => React.HTMLAttributes<HTMLTableCellElement>;
1821
+ /**
1822
+ * @deprecated
1823
+ */
1824
+ tableOptions?: any;
1825
+ /**
1826
+ * @deprecated
1827
+ */
1828
+ loaderStyles?: React.CSSProperties;
1829
+ setPageIndex?: (pageIndex: number) => void | React.Dispatch<React.SetStateAction<number>>;
1830
+ hiddenColumns?: string[];
1831
+ setHiddenColumns?: (hiddenColumns: string[]) => void | React.Dispatch<React.SetStateAction<string[]>>;
1832
+ columnOrder?: string[];
1833
+ setColumnOrder?: (columnOrder: string[]) => void | React.Dispatch<React.SetStateAction<string[]>>;
1834
+ selectedRowIds?: RowSelectionState;
1835
+ setSelectedRowIds?: (selectedRowIds: RowSelectionState) => void | React.Dispatch<React.SetStateAction<RowSelectionState>>;
1836
+ }
1837
+
1838
+ /**
1839
+ * 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.
1840
+ */
1841
+ declare const WorkspaceTable: <T extends WorkspaceRowDataType = WorkspaceRowDataType>(props: WorkspaceTableProps<T>) => react__default.JSX.Element;
1842
+
1768
1843
  type FreshworksPalette = {
1769
1844
  primary: {
1770
1845
  elephant: string;
@@ -1902,4 +1977,4 @@ declare namespace index_d {
1902
1977
  export { index_d_Z_INDEX as Z_INDEX, index_d_dark as dark, index_d_hextoRGB as hextoRGB, index_d_light as light };
1903
1978
  }
1904
1979
 
1905
- export { Accordion, type AccordionItemProps, type AccordionProps, Alert, type AlertProps, AutoComplete, type AutoCompleteInputItemProps, type AutoCompleteProps, 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 DefaultAutoCompleteItem, 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, Freddy, _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, SortDropdown, 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 };
1980
+ export { Accordion, type AccordionItemProps, type AccordionProps, Alert, type AlertProps, AutoComplete, type AutoCompleteInputItemProps, type AutoCompleteProps, 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 DefaultAutoCompleteItem, 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, Freddy, _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, SortDropdown, 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, type WorkspaceRowDataType, WorkspaceTable, type WorkspaceTableProps, dialogContentMixin, dialogOverlayMixin, useToasts };