master-components-react-ts 2.4.22 → 2.5.1

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.
@@ -0,0 +1,8 @@
1
+ import { DropdownPillProps } from './DropdownPill.types';
2
+ declare const DropdownPill: {
3
+ ({ text, dropdownSlot, leftSlot, rightSlot, selected, selectedType, dropdownPillStyle, dropdownPillTextStyle, onClick, }: DropdownPillProps): import("react/jsx-runtime").JSX.Element;
4
+ propKeys: readonly ["text", "dropdownSlot", "leftSlot", "rightSlot", "selected", "selectedType", "dropdownPillStyle", "dropdownPillTextStyle", "onClick"];
5
+ displayName: string;
6
+ description: string;
7
+ };
8
+ export default DropdownPill;
@@ -0,0 +1,11 @@
1
+ export interface DropdownPillProps {
2
+ text: string;
3
+ dropdownSlot?: React.ReactNode;
4
+ leftSlot?: React.ReactNode;
5
+ rightSlot?: React.ReactNode;
6
+ selected?: boolean;
7
+ selectedType?: 'default' | 'alt';
8
+ dropdownPillStyle?: React.CSSProperties;
9
+ dropdownPillTextStyle?: React.CSSProperties;
10
+ onClick?: () => void;
11
+ }
@@ -1,7 +1,7 @@
1
1
  import { MainButtonProps } from './MainButton.types';
2
2
  declare const MainButton: {
3
- ({ label, size, leftSlot, rightSlot, buttonSlot, type, colorType, buttonType, withFocus, onlyIcon, customFocus, disabled, loading, spaceBetween, buttonStyle, mainButtonContentStyle, mainButtonLabelStyle, leftSlotStyle, rightSlotStyle, onClick, }: MainButtonProps): import("react/jsx-runtime").JSX.Element;
4
- propKeys: readonly ["label", "size", "leftSlot", "rightSlot", "buttonSlot", "type", "colorType", "buttonType", "withFocus", "onlyIcon", "customFocus", "disabled", "loading", "spaceBetween", "buttonStyle", "mainButtonContentStyle", "mainButtonLabelStyle", "leftSlotStyle", "rightSlotStyle", "onClick"];
3
+ ({ label, size, leftSlot, rightSlot, buttonSlot, type, colorType, buttonType, withFocus, onlyIcon, customFocus, disabled, loading, spaceBetween, customLoader, buttonStyle, mainButtonContentStyle, mainButtonLabelStyle, leftSlotStyle, rightSlotStyle, onClick, }: MainButtonProps): import("react/jsx-runtime").JSX.Element;
4
+ propKeys: readonly ["label", "size", "leftSlot", "rightSlot", "buttonSlot", "type", "colorType", "buttonType", "withFocus", "onlyIcon", "customFocus", "disabled", "loading", "spaceBetween", "customLoader", "buttonStyle", "mainButtonContentStyle", "mainButtonLabelStyle", "leftSlotStyle", "rightSlotStyle", "onClick"];
5
5
  displayName: string;
6
6
  description: string;
7
7
  };
@@ -15,6 +15,7 @@ export interface MainButtonProps {
15
15
  disabled?: boolean;
16
16
  loading?: boolean;
17
17
  spaceBetween?: boolean;
18
+ customLoader?: React.ReactNode;
18
19
  buttonStyle?: CSSProperties;
19
20
  mainButtonContentStyle?: CSSProperties;
20
21
  mainButtonLabelStyle?: CSSProperties;
@@ -1,6 +1,6 @@
1
1
  import { TableProps } from './Table.types';
2
2
  declare const Table: {
3
- ({ uniqueKey, columns, data, onRowClick, onHeaderClick, sort, selectedRows, onSelectionChange, withSelectAll, actionButtonText, actionButtonIcon, onActionButtonClick, actionButtons, withColumnConfiguration, headerSlot, onColumnOrderChange, onColumnVisibilityChange, withActions, currentPage, totalPages, onPageChange, showPagination, rowsPerPage, rowsPerPageOptions, onRowsPerPageChange, totalItems, startItem, endItem, onRowEdit, onRowDelete, rowActions, }: TableProps): import("react/jsx-runtime").JSX.Element;
3
+ ({ uniqueKey, columns, data, onRowClick, onHeaderClick, sort, selectedRows, onSelectionChange, withSelectAll, actionButtonText, actionButtonIcon, onActionButtonClick, actionButtons, withColumnConfiguration, headerSlot, onColumnOrderChange, onColumnVisibilityChange, withActions, currentPage, totalPages, onPageChange, showPagination, rowsPerPage, rowsPerPageOptions, onRowsPerPageChange, totalItems, startItem, endItem, rowTooltipProps, onRowEdit, onRowDelete, rowActions, }: TableProps): import("react/jsx-runtime").JSX.Element;
4
4
  propKeys: readonly ["uniqueKey", "columns", "data", "onRowClick", "onHeaderClick", "sort", "selectedRows", "onSelectionChange", "withSelectAll", "actionButtonText", "actionButtonIcon", "onActionButtonClick", "actionButtons", "withColumnConfiguration", "headerSlot", "onColumnOrderChange", "onColumnVisibilityChange", "currentPage", "totalPages", "onPageChange", "showPagination", "rowsPerPage", "rowsPerPageOptions", "onRowsPerPageChange", "totalItems", "startItem", "endItem", "onRowEdit", "onRowDelete", "rowActions"];
5
5
  displayName: string;
6
6
  description: string;
@@ -1,3 +1,4 @@
1
+ import { TooltipProps } from '../Tooltip/Tooltip.types';
1
2
  export type ColumnType = {
2
3
  key?: string;
3
4
  label?: string;
@@ -51,6 +52,7 @@ export interface TableProps {
51
52
  totalItems?: number;
52
53
  startItem?: number;
53
54
  endItem?: number;
55
+ rowTooltipProps?: TooltipProps;
54
56
  onRowEdit?: (row: any, rowIndex: number) => void;
55
57
  onRowDelete?: (row: any, rowIndex: number) => void;
56
58
  rowActions?: RowActionType[];
@@ -13,6 +13,7 @@ export interface UserData {
13
13
  createdAt?: string;
14
14
  updatedAt?: string;
15
15
  progress?: number;
16
+ longDescription?: string;
16
17
  }
17
18
  export interface SortConfig {
18
19
  selector: keyof UserData;
package/dist/index.d.ts CHANGED
@@ -26,3 +26,4 @@ export type { FilterOptionsTypes } from './components/FilterWithTags/FilterWithT
26
26
  export { default as Table } from './components/Table/Table';
27
27
  export type { ColumnType, SortType, RowActionType, ActionButtonType } from './components/Table/Table.types';
28
28
  export { default as FileUploader } from './components/FileUploader/FileUploader';
29
+ export { default as DropdownPill } from './components/DropdownPill/DropdownPill';