@popmenu/table 0.155.0 → 0.156.0

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.
Files changed (39) hide show
  1. package/build/cjs/components/ColumnFilterChip/ColumnFilterChip.d.ts +2 -1
  2. package/build/cjs/components/ColumnFilterResetButton/ColumnFilterResetButton.d.ts +2 -1
  3. package/build/cjs/components/FilterPanel/FilterControl/FilterControl.d.ts +2 -1
  4. package/build/cjs/components/FilterPanel/FilterControl/SelectFilter/SelectFilter.d.ts +2 -1
  5. package/build/cjs/components/FilterPanel/FilterControl/ToggleFilter/ToggleFilter.d.ts +2 -1
  6. package/build/cjs/components/FilterPanel/FilterPanel.d.ts +2 -1
  7. package/build/cjs/components/FilterPanel/Panel/Panel.d.ts +2 -1
  8. package/build/cjs/components/FilterPanel/Trigger/Trigger.d.ts +2 -2
  9. package/build/cjs/components/GlobalFilter/GlobalFilter.d.ts +2 -1
  10. package/build/cjs/components/RowActions/RowActions.d.ts +2 -1
  11. package/build/cjs/components/Table/Table.d.ts +2 -1
  12. package/build/cjs/components/TableBody/TableBody.d.ts +2 -2
  13. package/build/cjs/components/TableCell/TableCell.d.ts +2 -2
  14. package/build/cjs/components/TableControlsContainer/TableControlsContainer.d.ts +2 -1
  15. package/build/cjs/components/TableFooter/TableFooter.d.ts +2 -2
  16. package/build/cjs/components/TableHeader/TableHeader.d.ts +2 -2
  17. package/build/cjs/components/TableHeaderCell/TableHeaderCell.d.ts +2 -1
  18. package/build/cjs/components/TableHeaderRow/TableHeaderRow.d.ts +2 -2
  19. package/build/cjs/components/TableRow/TableRow.d.ts +2 -2
  20. package/build/esm/components/ColumnFilterChip/ColumnFilterChip.d.ts +2 -1
  21. package/build/esm/components/ColumnFilterResetButton/ColumnFilterResetButton.d.ts +2 -1
  22. package/build/esm/components/FilterPanel/FilterControl/FilterControl.d.ts +2 -1
  23. package/build/esm/components/FilterPanel/FilterControl/SelectFilter/SelectFilter.d.ts +2 -1
  24. package/build/esm/components/FilterPanel/FilterControl/ToggleFilter/ToggleFilter.d.ts +2 -1
  25. package/build/esm/components/FilterPanel/FilterPanel.d.ts +2 -1
  26. package/build/esm/components/FilterPanel/Panel/Panel.d.ts +2 -1
  27. package/build/esm/components/FilterPanel/Trigger/Trigger.d.ts +2 -2
  28. package/build/esm/components/GlobalFilter/GlobalFilter.d.ts +2 -1
  29. package/build/esm/components/RowActions/RowActions.d.ts +2 -1
  30. package/build/esm/components/Table/Table.d.ts +2 -1
  31. package/build/esm/components/TableBody/TableBody.d.ts +2 -2
  32. package/build/esm/components/TableCell/TableCell.d.ts +2 -2
  33. package/build/esm/components/TableControlsContainer/TableControlsContainer.d.ts +2 -1
  34. package/build/esm/components/TableFooter/TableFooter.d.ts +2 -2
  35. package/build/esm/components/TableHeader/TableHeader.d.ts +2 -2
  36. package/build/esm/components/TableHeaderCell/TableHeaderCell.d.ts +2 -1
  37. package/build/esm/components/TableHeaderRow/TableHeaderRow.d.ts +2 -2
  38. package/build/esm/components/TableRow/TableRow.d.ts +2 -2
  39. package/package.json +2 -2
@@ -1,8 +1,9 @@
1
+ import React from 'react';
1
2
  import { ColumnFilter } from '@tanstack/react-table';
2
3
  interface ColumnFilterChipProps {
3
4
  columnFilter: ColumnFilter;
4
5
  label: [string, string];
5
6
  onClick: (columnFilter: ColumnFilter) => void;
6
7
  }
7
- export declare const ColumnFilterChip: (props: ColumnFilterChipProps) => JSX.Element;
8
+ export declare const ColumnFilterChip: (props: ColumnFilterChipProps) => React.JSX.Element;
8
9
  export {};
@@ -1,2 +1,3 @@
1
+ import React from 'react';
1
2
  import { ButtonProps } from '@popmenu/admin-ui';
2
- export declare const ColumnFilterResetButton: (props: ButtonProps) => JSX.Element;
3
+ export declare const ColumnFilterResetButton: (props: ButtonProps) => React.JSX.Element;
@@ -1,2 +1,3 @@
1
+ import React from 'react';
1
2
  import { ColumnFilter } from '../FilterPanelProps';
2
- export declare const FilterControl: (props: ColumnFilter) => JSX.Element;
3
+ export declare const FilterControl: (props: ColumnFilter) => React.JSX.Element;
@@ -1,4 +1,5 @@
1
+ import React from 'react';
1
2
  import { ColumnFilter } from '../../FilterPanelProps';
2
3
  export declare const SelectFilter: (props: Pick<ColumnFilter, "options" | "columnId"> & {
3
4
  multiple: boolean;
4
- }) => JSX.Element;
5
+ }) => React.JSX.Element;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  export declare const ToggleFilter: (props: {
2
3
  columnId: string;
3
- }) => JSX.Element;
4
+ }) => React.JSX.Element;
@@ -1 +1,2 @@
1
- export declare const FilterPanel: () => JSX.Element;
1
+ import React from 'react';
2
+ export declare const FilterPanel: () => React.JSX.Element;
@@ -1,6 +1,7 @@
1
+ import React from 'react';
1
2
  type PanelProps = {
2
3
  anchorEl: null | Element;
3
4
  onClose: () => void;
4
5
  };
5
- export declare const Panel: (props: PanelProps) => JSX.Element;
6
+ export declare const Panel: (props: PanelProps) => React.JSX.Element;
6
7
  export {};
@@ -1,7 +1,7 @@
1
- import { SyntheticEvent } from 'react';
1
+ import React, { SyntheticEvent } from 'react';
2
2
  type FitlerPanelTriggerProps = {
3
3
  onClick: (event: SyntheticEvent) => void;
4
4
  label?: string;
5
5
  };
6
- export declare const Trigger: (props: FitlerPanelTriggerProps) => JSX.Element;
6
+ export declare const Trigger: (props: FitlerPanelTriggerProps) => React.JSX.Element;
7
7
  export {};
@@ -1,2 +1,3 @@
1
+ import React from 'react';
1
2
  import { GlobalFilterProps } from './GlobalFilterProps';
2
- export declare const GlobalFilter: (props: GlobalFilterProps) => JSX.Element;
3
+ export declare const GlobalFilter: (props: GlobalFilterProps) => React.JSX.Element;
@@ -1,2 +1,3 @@
1
+ import React from 'react';
1
2
  import { RowActionsProps } from './RowActionsProps';
2
- export declare const RowActions: (props: RowActionsProps) => JSX.Element;
3
+ export declare const RowActions: (props: RowActionsProps) => React.JSX.Element;
@@ -1,2 +1,3 @@
1
+ import React from 'react';
1
2
  import { TableProps } from './TableProps';
2
- export declare const Table: <T>({ title, data, columns, enableSortingRemoval, fullWidth, loading, searchable, sortable, filterState: externalFilterState, globalFilterState: externalGlobalFilterState, paginationState: externalPaginationState, sortingState: externalSortingState, visibilityState: externalVisibilityState, paginated, pageCount, GlobalFilterProps, Empty, idBase, stageFilterSelections, }: TableProps<T>) => JSX.Element;
3
+ export declare const Table: <T>({ title, data, columns, enableSortingRemoval, fullWidth, loading, searchable, sortable, filterState: externalFilterState, globalFilterState: externalGlobalFilterState, paginationState: externalPaginationState, sortingState: externalSortingState, visibilityState: externalVisibilityState, paginated, pageCount, GlobalFilterProps, Empty, idBase, stageFilterSelections, }: TableProps<T>) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- import { HTMLAttributes, PropsWithChildren } from 'react';
1
+ import React, { HTMLAttributes, PropsWithChildren } from 'react';
2
2
  type TableBodyProps = PropsWithChildren<HTMLAttributes<HTMLTableSectionElement>>;
3
- export declare const TableBody: (props: TableBodyProps) => JSX.Element;
3
+ export declare const TableBody: (props: TableBodyProps) => React.JSX.Element;
4
4
  export {};
@@ -1,4 +1,4 @@
1
- import { HTMLAttributes, PropsWithChildren } from 'react';
1
+ import React, { HTMLAttributes, PropsWithChildren } from 'react';
2
2
  type TableCellProps = PropsWithChildren<HTMLAttributes<HTMLTableCellElement>>;
3
- export declare const TableCell: (props: TableCellProps) => JSX.Element;
3
+ export declare const TableCell: (props: TableCellProps) => React.JSX.Element;
4
4
  export {};
@@ -1,2 +1,3 @@
1
+ import React from 'react';
1
2
  import { TableControlsContainerProps } from './TableControlsContainerProps';
2
- export declare const TableControlsContainer: (props: TableControlsContainerProps) => JSX.Element;
3
+ export declare const TableControlsContainer: (props: TableControlsContainerProps) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- import { HTMLAttributes, PropsWithChildren } from 'react';
1
+ import React, { HTMLAttributes, PropsWithChildren } from 'react';
2
2
  type TableFooterProps = PropsWithChildren<HTMLAttributes<HTMLDivElement>>;
3
- export declare const TableFooter: (props: TableFooterProps) => JSX.Element;
3
+ export declare const TableFooter: (props: TableFooterProps) => React.JSX.Element;
4
4
  export {};
@@ -1,4 +1,4 @@
1
- import { HTMLAttributes, PropsWithChildren } from 'react';
1
+ import React, { HTMLAttributes, PropsWithChildren } from 'react';
2
2
  type TableHeadProps = PropsWithChildren<HTMLAttributes<HTMLTableSectionElement>>;
3
- export declare const TableHeader: (props: TableHeadProps) => JSX.Element;
3
+ export declare const TableHeader: (props: TableHeadProps) => React.JSX.Element;
4
4
  export {};
@@ -1,2 +1,3 @@
1
+ import React from 'react';
1
2
  import { TableHeaderCellProps } from './TableHeaderCellProps';
2
- export declare const TableHeaderCell: (props: TableHeaderCellProps) => JSX.Element;
3
+ export declare const TableHeaderCell: (props: TableHeaderCellProps) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- import { PropsWithChildren, HTMLAttributes } from 'react';
1
+ import React, { PropsWithChildren, HTMLAttributes } from 'react';
2
2
  type TableHaderRowProps = PropsWithChildren<HTMLAttributes<HTMLTableRowElement>>;
3
- export declare const TableHeaderRow: (props: TableHaderRowProps) => JSX.Element;
3
+ export declare const TableHeaderRow: (props: TableHaderRowProps) => React.JSX.Element;
4
4
  export {};
@@ -1,4 +1,4 @@
1
- import { HTMLAttributes, PropsWithChildren } from 'react';
1
+ import React, { HTMLAttributes, PropsWithChildren } from 'react';
2
2
  type TableRowProps = PropsWithChildren<HTMLAttributes<HTMLTableRowElement>>;
3
- export declare const TableRow: (props: TableRowProps) => JSX.Element;
3
+ export declare const TableRow: (props: TableRowProps) => React.JSX.Element;
4
4
  export {};
@@ -1,8 +1,9 @@
1
+ import React from 'react';
1
2
  import { ColumnFilter } from '@tanstack/react-table';
2
3
  interface ColumnFilterChipProps {
3
4
  columnFilter: ColumnFilter;
4
5
  label: [string, string];
5
6
  onClick: (columnFilter: ColumnFilter) => void;
6
7
  }
7
- export declare const ColumnFilterChip: (props: ColumnFilterChipProps) => JSX.Element;
8
+ export declare const ColumnFilterChip: (props: ColumnFilterChipProps) => React.JSX.Element;
8
9
  export {};
@@ -1,2 +1,3 @@
1
+ import React from 'react';
1
2
  import { ButtonProps } from '@popmenu/admin-ui';
2
- export declare const ColumnFilterResetButton: (props: ButtonProps) => JSX.Element;
3
+ export declare const ColumnFilterResetButton: (props: ButtonProps) => React.JSX.Element;
@@ -1,2 +1,3 @@
1
+ import React from 'react';
1
2
  import { ColumnFilter } from '../FilterPanelProps';
2
- export declare const FilterControl: (props: ColumnFilter) => JSX.Element;
3
+ export declare const FilterControl: (props: ColumnFilter) => React.JSX.Element;
@@ -1,4 +1,5 @@
1
+ import React from 'react';
1
2
  import { ColumnFilter } from '../../FilterPanelProps';
2
3
  export declare const SelectFilter: (props: Pick<ColumnFilter, "options" | "columnId"> & {
3
4
  multiple: boolean;
4
- }) => JSX.Element;
5
+ }) => React.JSX.Element;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  export declare const ToggleFilter: (props: {
2
3
  columnId: string;
3
- }) => JSX.Element;
4
+ }) => React.JSX.Element;
@@ -1 +1,2 @@
1
- export declare const FilterPanel: () => JSX.Element;
1
+ import React from 'react';
2
+ export declare const FilterPanel: () => React.JSX.Element;
@@ -1,6 +1,7 @@
1
+ import React from 'react';
1
2
  type PanelProps = {
2
3
  anchorEl: null | Element;
3
4
  onClose: () => void;
4
5
  };
5
- export declare const Panel: (props: PanelProps) => JSX.Element;
6
+ export declare const Panel: (props: PanelProps) => React.JSX.Element;
6
7
  export {};
@@ -1,7 +1,7 @@
1
- import { SyntheticEvent } from 'react';
1
+ import React, { SyntheticEvent } from 'react';
2
2
  type FitlerPanelTriggerProps = {
3
3
  onClick: (event: SyntheticEvent) => void;
4
4
  label?: string;
5
5
  };
6
- export declare const Trigger: (props: FitlerPanelTriggerProps) => JSX.Element;
6
+ export declare const Trigger: (props: FitlerPanelTriggerProps) => React.JSX.Element;
7
7
  export {};
@@ -1,2 +1,3 @@
1
+ import React from 'react';
1
2
  import { GlobalFilterProps } from './GlobalFilterProps';
2
- export declare const GlobalFilter: (props: GlobalFilterProps) => JSX.Element;
3
+ export declare const GlobalFilter: (props: GlobalFilterProps) => React.JSX.Element;
@@ -1,2 +1,3 @@
1
+ import React from 'react';
1
2
  import { RowActionsProps } from './RowActionsProps';
2
- export declare const RowActions: (props: RowActionsProps) => JSX.Element;
3
+ export declare const RowActions: (props: RowActionsProps) => React.JSX.Element;
@@ -1,2 +1,3 @@
1
+ import React from 'react';
1
2
  import { TableProps } from './TableProps';
2
- export declare const Table: <T>({ title, data, columns, enableSortingRemoval, fullWidth, loading, searchable, sortable, filterState: externalFilterState, globalFilterState: externalGlobalFilterState, paginationState: externalPaginationState, sortingState: externalSortingState, visibilityState: externalVisibilityState, paginated, pageCount, GlobalFilterProps, Empty, idBase, stageFilterSelections, }: TableProps<T>) => JSX.Element;
3
+ export declare const Table: <T>({ title, data, columns, enableSortingRemoval, fullWidth, loading, searchable, sortable, filterState: externalFilterState, globalFilterState: externalGlobalFilterState, paginationState: externalPaginationState, sortingState: externalSortingState, visibilityState: externalVisibilityState, paginated, pageCount, GlobalFilterProps, Empty, idBase, stageFilterSelections, }: TableProps<T>) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- import { HTMLAttributes, PropsWithChildren } from 'react';
1
+ import React, { HTMLAttributes, PropsWithChildren } from 'react';
2
2
  type TableBodyProps = PropsWithChildren<HTMLAttributes<HTMLTableSectionElement>>;
3
- export declare const TableBody: (props: TableBodyProps) => JSX.Element;
3
+ export declare const TableBody: (props: TableBodyProps) => React.JSX.Element;
4
4
  export {};
@@ -1,4 +1,4 @@
1
- import { HTMLAttributes, PropsWithChildren } from 'react';
1
+ import React, { HTMLAttributes, PropsWithChildren } from 'react';
2
2
  type TableCellProps = PropsWithChildren<HTMLAttributes<HTMLTableCellElement>>;
3
- export declare const TableCell: (props: TableCellProps) => JSX.Element;
3
+ export declare const TableCell: (props: TableCellProps) => React.JSX.Element;
4
4
  export {};
@@ -1,2 +1,3 @@
1
+ import React from 'react';
1
2
  import { TableControlsContainerProps } from './TableControlsContainerProps';
2
- export declare const TableControlsContainer: (props: TableControlsContainerProps) => JSX.Element;
3
+ export declare const TableControlsContainer: (props: TableControlsContainerProps) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- import { HTMLAttributes, PropsWithChildren } from 'react';
1
+ import React, { HTMLAttributes, PropsWithChildren } from 'react';
2
2
  type TableFooterProps = PropsWithChildren<HTMLAttributes<HTMLDivElement>>;
3
- export declare const TableFooter: (props: TableFooterProps) => JSX.Element;
3
+ export declare const TableFooter: (props: TableFooterProps) => React.JSX.Element;
4
4
  export {};
@@ -1,4 +1,4 @@
1
- import { HTMLAttributes, PropsWithChildren } from 'react';
1
+ import React, { HTMLAttributes, PropsWithChildren } from 'react';
2
2
  type TableHeadProps = PropsWithChildren<HTMLAttributes<HTMLTableSectionElement>>;
3
- export declare const TableHeader: (props: TableHeadProps) => JSX.Element;
3
+ export declare const TableHeader: (props: TableHeadProps) => React.JSX.Element;
4
4
  export {};
@@ -1,2 +1,3 @@
1
+ import React from 'react';
1
2
  import { TableHeaderCellProps } from './TableHeaderCellProps';
2
- export declare const TableHeaderCell: (props: TableHeaderCellProps) => JSX.Element;
3
+ export declare const TableHeaderCell: (props: TableHeaderCellProps) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- import { PropsWithChildren, HTMLAttributes } from 'react';
1
+ import React, { PropsWithChildren, HTMLAttributes } from 'react';
2
2
  type TableHaderRowProps = PropsWithChildren<HTMLAttributes<HTMLTableRowElement>>;
3
- export declare const TableHeaderRow: (props: TableHaderRowProps) => JSX.Element;
3
+ export declare const TableHeaderRow: (props: TableHaderRowProps) => React.JSX.Element;
4
4
  export {};
@@ -1,4 +1,4 @@
1
- import { HTMLAttributes, PropsWithChildren } from 'react';
1
+ import React, { HTMLAttributes, PropsWithChildren } from 'react';
2
2
  type TableRowProps = PropsWithChildren<HTMLAttributes<HTMLTableRowElement>>;
3
- export declare const TableRow: (props: TableRowProps) => JSX.Element;
3
+ export declare const TableRow: (props: TableRowProps) => React.JSX.Element;
4
4
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@popmenu/table",
3
- "version": "0.155.0",
3
+ "version": "0.156.0",
4
4
  "license": "MIT",
5
5
  "author": "Popmenu Design System Team",
6
6
  "description": "React components for all Popmenu apps on the web.",
@@ -34,5 +34,5 @@
34
34
  "react": "18.x || 19.x"
35
35
  },
36
36
  "sideEffects": false,
37
- "gitHead": "d90a114738a610bfea394eaaf98a1e520d1fa36b"
37
+ "gitHead": "390beafb484a58645ca5a7331c94a018ffe4dc92"
38
38
  }