greenole-design-system 1.1.97 → 1.1.99

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.
@@ -13,6 +13,7 @@ export interface DropdownMenuProps {
13
13
  usePortal?: boolean;
14
14
  container?: HTMLElement | null;
15
15
  closeOnContentClick?: boolean;
16
+ closeOtherDropdowns?: boolean;
16
17
  }
17
18
  export type DropdownMenuPositionProps = 'top' | 'bottom' | 'left' | 'right';
18
19
  export type SetOpenState = React.Dispatch<React.SetStateAction<boolean>>;
@@ -1,6 +1,7 @@
1
1
  export declare const Sidebar: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLElement>, HTMLElement>, never>> & string;
2
2
  export declare const Header: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
3
3
  export declare const BackButton: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>> & string;
4
+ export declare const BackButtonLabel: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
4
5
  export declare const Title: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, never>> & string;
5
6
  export declare const Subtitle: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, never>> & string;
6
7
  export declare const StepsList: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').OlHTMLAttributes<HTMLOListElement>, HTMLOListElement>, never>> & string;
@@ -1,4 +1,4 @@
1
1
  import { default as React } from 'react';
2
2
  import { TableProps } from './Table.types';
3
- declare const Table: <T extends Record<string, any>>({ columns, data, currentPage, totalItems, headerExtra, filterContent, actions, isMobile, itemsPerPage, loading, striped, showSearch, showManageColumns, tableKey, fetchData, queryResult, onPageChange, onItemsPerPageChange, onSearchChange, sortingMode, filteringMode, enableFilterByColumnsMobile, mobileCentralizedFilter, enableFilterByColumns, desktopIntegratedFilter, desktopCentralizedFilter, initialColumnFilters, title, filterConfig, onFilterChange, rowActions, rowActionsLabel, enableRowSelection, rowIdKey, rowIdResolver, onSelectionChange, onCurrentPageDataChange, t: tProp, }: Readonly<TableProps<T>>) => React.JSX.Element;
3
+ declare const Table: <T extends Record<string, any>>({ columns, data, currentPage, totalItems, headerExtra, filterContent, actions, isMobile, itemsPerPage, loading, striped, showSearch, showManageColumns, tableKey, fetchData, queryResult, onPageChange, onItemsPerPageChange, onSearchChange, sortingMode, filteringMode, enableFilterByColumnsMobile, mobileCentralizedFilter, enableFilterByColumns, desktopIntegratedFilter, desktopCentralizedFilter, initialColumnFilters, title, filterConfig, onFilterChange, rowActions, rowActionsLabel, enableRowSelection, onRowClick, isRowSelectable, highlightedRowId, rowIdKey, rowIdResolver, onSelectionChange, onCurrentPageDataChange, t: tProp, }: Readonly<TableProps<T>>) => React.JSX.Element;
4
4
  export default Table;
@@ -22,6 +22,10 @@ export declare const WithFilterAndActions: Story;
22
22
  export declare const WithFilterAndFetchData: Story;
23
23
  export declare const WithRowActions: Story;
24
24
  export declare const WithRowSelection: Story;
25
+ export declare const ClickableRows: Story;
26
+ export declare const WithSelectiveRowSelection: Story;
27
+ export declare const ClickableRowsWithDisabledSelection: Story;
28
+ export declare const HighlightedRows: Story;
25
29
  export declare const WithRowSelectionUsingResolver: Story;
26
30
  export declare const DesktopVisualizationFilterActive: Story;
27
31
  export declare const MobileVisualizationClientSide: Story;
@@ -61,6 +61,9 @@ interface BaseTableProps<T = any> {
61
61
  actions?: ReactNode;
62
62
  t?: THookTypes;
63
63
  enableRowSelection?: boolean;
64
+ onRowClick?: (row: T) => void;
65
+ isRowSelectable?: (row: T) => boolean;
66
+ highlightedRowId?: string | number | null;
64
67
  rowIdKey?: keyof T | string;
65
68
  rowIdResolver?: (row: T, rowIndex: number) => string | number | null | undefined;
66
69
  onSelectionChange?: (selectedRowIds: string[]) => void;