@equinor/eds-data-grid-react 1.2.0 → 1.2.2

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.
@@ -3,11 +3,11 @@ import { getSortedRowModel, getCoreRowModel, getExpandedRowModel, getFacetedRowM
3
3
  import { useVirtualizer } from '@tanstack/react-virtual';
4
4
  import { forwardRef, useState, useEffect, useMemo, useRef, useCallback } from 'react';
5
5
  import styled from 'styled-components';
6
- import { TableProvider } from './EdsDataGridContext.js';
7
- import { TableHeaderRow } from './components/TableHeaderRow.js';
8
- import { TableFooterRow } from './components/TableFooterRow.js';
9
- import { TableRow } from './components/TableRow.js';
10
- import { addPxSuffixIfInputHasNoPrefix, logDevelopmentWarningOfPropUse, getMeasureElementHandler } from './utils.js';
6
+ import { TableProvider } from './EdsDataGridContext.mjs';
7
+ import { TableHeaderRow } from './components/TableHeaderRow.mjs';
8
+ import { TableFooterRow } from './components/TableFooterRow.mjs';
9
+ import { TableRow } from './components/TableRow.mjs';
10
+ import { addPxSuffixIfInputHasNoPrefix, logDevelopmentWarningOfPropUse, getMeasureElementHandler } from './utils.mjs';
11
11
  import { mergeRefs } from '@equinor/eds-utils';
12
12
  import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
13
13
 
@@ -1,5 +1,5 @@
1
1
  import { useMemo } from 'react';
2
- import { DebouncedInput } from './DebouncedInput.js';
2
+ import { DebouncedInput } from './DebouncedInput.mjs';
3
3
  import styled from 'styled-components';
4
4
  import { jsxs, jsx } from 'react/jsx-runtime';
5
5
 
@@ -2,9 +2,9 @@ import { useState, useRef, useCallback } from 'react';
2
2
  import { Button, Icon, Popover } from '@equinor/eds-core-react';
3
3
  import { filter_alt_active, filter_alt } from '@equinor/eds-icons';
4
4
  import { tokens } from '@equinor/eds-tokens';
5
- import { Filter } from './Filter.js';
6
- import { useTableContext } from '../EdsDataGridContext.js';
7
- import { FilterVisibility } from './TableCell.js';
5
+ import { Filter } from './Filter.mjs';
6
+ import { useTableContext } from '../EdsDataGridContext.mjs';
7
+ import { FilterVisibility } from './TableCell.mjs';
8
8
  import { jsxs, jsx } from 'react/jsx-runtime';
9
9
 
10
10
  /* istanbul ignore file */
@@ -2,7 +2,7 @@ import { Table } from '@equinor/eds-core-react';
2
2
  import { flexRender } from '@tanstack/react-table';
3
3
  import { useMemo } from 'react';
4
4
  import styled from 'styled-components';
5
- import { useTableContext } from '../EdsDataGridContext.js';
5
+ import { useTableContext } from '../EdsDataGridContext.mjs';
6
6
  import { jsx } from 'react/jsx-runtime';
7
7
 
8
8
  const StyledCell = styled(Table.Cell).withConfig({
@@ -1,7 +1,7 @@
1
1
  import { Table } from '@equinor/eds-core-react';
2
2
  import { tokens } from '@equinor/eds-tokens';
3
3
  import styled from 'styled-components';
4
- import { ResizeInner } from './Resizer.js';
4
+ import { ResizeInner } from './Resizer.mjs';
5
5
 
6
6
  const FilterVisibility = styled.div.withConfig({
7
7
  displayName: "TableCell__FilterVisibility",
@@ -1,9 +1,9 @@
1
1
  import { flexRender } from '@tanstack/react-table';
2
- import { useTableContext } from '../EdsDataGridContext.js';
2
+ import { useTableContext } from '../EdsDataGridContext.mjs';
3
3
  import { useMemo } from 'react';
4
- import { SortIndicator } from './SortIndicator.js';
5
- import { Resizer, ResizeInner } from './Resizer.js';
6
- import { TableCell } from './TableCell.js';
4
+ import { SortIndicator } from './SortIndicator.mjs';
5
+ import { Resizer, ResizeInner } from './Resizer.mjs';
6
+ import { TableCell } from './TableCell.mjs';
7
7
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
8
8
 
9
9
  function TableFooterCell({
@@ -1,5 +1,5 @@
1
1
  import { Table } from '@equinor/eds-core-react';
2
- import { TableFooterCell } from './TableFooterCell.js';
2
+ import { TableFooterCell } from './TableFooterCell.mjs';
3
3
  import { jsx } from 'react/jsx-runtime';
4
4
 
5
5
  function TableFooterRow({
@@ -1,10 +1,10 @@
1
1
  import { flexRender } from '@tanstack/react-table';
2
- import { useTableContext } from '../EdsDataGridContext.js';
2
+ import { useTableContext } from '../EdsDataGridContext.mjs';
3
3
  import { useMemo } from 'react';
4
- import { FilterWrapper } from './FilterWrapper.js';
5
- import { SortIndicator } from './SortIndicator.js';
6
- import { Resizer, ResizeInner } from './Resizer.js';
7
- import { TableCell, FilterVisibility } from './TableCell.js';
4
+ import { FilterWrapper } from './FilterWrapper.mjs';
5
+ import { SortIndicator } from './SortIndicator.mjs';
6
+ import { Resizer, ResizeInner } from './Resizer.mjs';
7
+ import { TableCell, FilterVisibility } from './TableCell.mjs';
8
8
  import styled from 'styled-components';
9
9
  import { useEds } from '@equinor/eds-core-react';
10
10
  import { jsx, jsxs } from 'react/jsx-runtime';
@@ -1,5 +1,5 @@
1
1
  import { Table } from '@equinor/eds-core-react';
2
- import { TableHeaderCell } from './TableHeaderCell.js';
2
+ import { TableHeaderCell } from './TableHeaderCell.mjs';
3
3
  import { jsx } from 'react/jsx-runtime';
4
4
 
5
5
  function TableHeaderRow({
@@ -1,8 +1,8 @@
1
1
  import { Table } from '@equinor/eds-core-react';
2
2
  import { useRef, useEffect, useCallback } from 'react';
3
3
  import styled from 'styled-components';
4
- import { useTableContext } from '../EdsDataGridContext.js';
5
- import { TableBodyCell } from './TableBodyCell.js';
4
+ import { useTableContext } from '../EdsDataGridContext.mjs';
5
+ import { TableBodyCell } from './TableBodyCell.mjs';
6
6
  import { jsx } from 'react/jsx-runtime';
7
7
 
8
8
  function TableRow({
@@ -0,0 +1,4 @@
1
+ export { createColumnHelper } from '@tanstack/react-table';
2
+ export { EdsDataGrid } from './EdsDataGrid.mjs';
3
+ export { FilterWrapper } from './components/FilterWrapper.mjs';
4
+ export { SortIndicator } from './components/SortIndicator.mjs';
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@equinor/eds-data-grid-react",
3
- "version": "1.2.0",
3
+ "version": "1.2.2",
4
4
  "description": "A feature-rich data-grid written in React, implementing the Equinor Design System",
5
5
  "license": "MIT",
6
6
  "types": "dist/types/index.d.ts",
7
7
  "main": "dist/eds-data-grid-react.cjs",
8
- "module": "./dist/esm/index.js",
8
+ "module": "./dist/esm/index.mjs",
9
9
  "exports": {
10
10
  ".": {
11
11
  "types": "./dist/types/index.d.ts",
12
- "import": "./dist/esm/index.js",
12
+ "import": "./dist/esm/index.mjs",
13
13
  "require": "./dist/eds-data-grid-react.cjs"
14
14
  }
15
15
  },
@@ -21,7 +21,7 @@
21
21
  "email": "fg_eds@equinor.com"
22
22
  },
23
23
  "peerDependencies": {
24
- "@equinor/eds-core-react": "^1",
24
+ "@equinor/eds-core-react": ">=1 <3",
25
25
  "react": "^19",
26
26
  "react-dom": "^19",
27
27
  "styled-components": "^6"
@@ -29,12 +29,12 @@
29
29
  "dependencies": {
30
30
  "@tanstack/react-table": "^8.21.3",
31
31
  "@tanstack/react-virtual": "^3.13.12",
32
- "@equinor/eds-icons": "^1.1.0",
33
- "@equinor/eds-utils": "^2.0.0",
34
- "@equinor/eds-tokens": "^2.1.1"
32
+ "@equinor/eds-tokens": "^2.1.1",
33
+ "@equinor/eds-icons": "^1.2.1",
34
+ "@equinor/eds-utils": "^2.0.0"
35
35
  },
36
36
  "devDependencies": {
37
- "@equinor/eds-core-react": "^1",
37
+ "@equinor/eds-core-react": "^2",
38
38
  "@rollup/plugin-babel": "^6.1.0",
39
39
  "@rollup/plugin-commonjs": "^28.0.8",
40
40
  "@rollup/plugin-node-resolve": "^16.0.3",
package/dist/esm/index.js DELETED
@@ -1,4 +0,0 @@
1
- export { createColumnHelper } from '@tanstack/react-table';
2
- export { EdsDataGrid } from './EdsDataGrid.js';
3
- export { FilterWrapper } from './components/FilterWrapper.js';
4
- export { SortIndicator } from './components/SortIndicator.js';
File without changes
File without changes