@equinor/apollo-components 1.10.1 → 1.11.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.
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { IconData } from '@equinor/eds-icons';
2
2
  import * as react from 'react';
3
3
  import { ReactNode, ReactElement, ComponentProps } from 'react';
4
- import { Cell, CellContext, Table, Row, ColumnDef, RowSelectionState, SortingState, HeaderContext } from '@tanstack/react-table';
4
+ import { Cell, CellContext, Table, Row, ColumnDef, VisibilityState, RowSelectionState, SortingState, HeaderContext } from '@tanstack/react-table';
5
5
  import { ColumnDef as ColumnDef$1 } from '@tanstack/table-core';
6
6
  import * as styled_components from 'styled-components';
7
7
  import { CellProps, TypographyProps as TypographyProps$1 } from '@equinor/eds-core-react';
@@ -123,6 +123,9 @@ declare function DataTable$1<T>(props: DataTableProps<T>): JSX.Element;
123
123
  declare type DataTableProviderProps = ComponentProps<typeof Provider>;
124
124
  declare function DataTableProvider({ children, ...props }: DataTableProviderProps): JSX.Element;
125
125
 
126
+ declare const columnVisibilityAtom: jotai.PrimitiveAtom<VisibilityState> & {
127
+ init: VisibilityState;
128
+ };
126
129
  declare const globalFilterAtom: jotai.PrimitiveAtom<string> & {
127
130
  init: string;
128
131
  };
@@ -169,4 +172,4 @@ declare type TypographyProps = {
169
172
  } & TypographyProps$1;
170
173
  declare const TypographyCustom: (props: TypographyProps) => JSX.Element;
171
174
 
172
- export { AppShell, AppSidebar, CellConfig, ChipsCell, ColumnSelect, DataTable, DataTableCommonProps, DataTableConfig, DataTableProps, DataTableRawProps, DynamicCell, FilterConfig, HeaderConfig, HierarchyCell, RowConfig, RowSelectionMode, SelectColumnDef, StickyCell, TableHeader, TableLayout, TableRowWrapper, TableRowWrapperProps, TruncateMode, TypographyCustom, capitalizeHeader, globalFilterAtom, prependSelectColumn, rowSelectionAtom, tableSortingAtom };
175
+ export { AppShell, AppSidebar, CellConfig, ChipsCell, ColumnSelect, DataTable, DataTableCommonProps, DataTableConfig, DataTableProps, DataTableRawProps, DynamicCell, FilterConfig, HeaderConfig, HierarchyCell, RowConfig, RowSelectionMode, SelectColumnDef, StickyCell, TableHeader, TableLayout, TableRowWrapper, TableRowWrapperProps, TruncateMode, TypographyCustom, capitalizeHeader, columnVisibilityAtom, globalFilterAtom, prependSelectColumn, rowSelectionAtom, tableSortingAtom };
package/dist/index.js CHANGED
@@ -38,6 +38,7 @@ __export(src_exports, {
38
38
  TableHeader: () => TableHeader,
39
39
  TypographyCustom: () => TypographyCustom,
40
40
  capitalizeHeader: () => capitalizeHeader,
41
+ columnVisibilityAtom: () => columnVisibilityAtom,
41
42
  globalFilterAtom: () => globalFilterAtom,
42
43
  prependSelectColumn: () => prependSelectColumn,
43
44
  rowSelectionAtom: () => rowSelectionAtom,
@@ -1071,6 +1072,7 @@ DataTable2.Provider = DataTableProvider;
1071
1072
  TableHeader,
1072
1073
  TypographyCustom,
1073
1074
  capitalizeHeader,
1075
+ columnVisibilityAtom,
1074
1076
  globalFilterAtom,
1075
1077
  prependSelectColumn,
1076
1078
  rowSelectionAtom,
package/dist/index.mjs CHANGED
@@ -1031,6 +1031,7 @@ export {
1031
1031
  TableHeader,
1032
1032
  TypographyCustom,
1033
1033
  capitalizeHeader,
1034
+ columnVisibilityAtom,
1034
1035
  globalFilterAtom,
1035
1036
  prependSelectColumn,
1036
1037
  rowSelectionAtom,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equinor/apollo-components",
3
- "version": "1.10.1",
3
+ "version": "1.11.0",
4
4
  "license": "MIT",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",