@equinor/apollo-components 3.7.3 → 3.7.5
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/LICENCE +21 -0
- package/README.md +16 -0
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +34 -2484
- package/dist/index.mjs +12 -2482
- package/package.json +25 -31
package/LICENCE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2020 Equinor ASA
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
[<-- Go back](../../README.md)
|
|
2
|
+
|
|
3
|
+
# @equinor/apollo-components DEPRECATED
|
|
4
|
+
|
|
5
|
+
This package is deprecated in favor of [@equinor/eds-data-grid-react](https://github.com/equinor/design-system/tree/develop/packages/eds-data-grid-react).
|
|
6
|
+
|
|
7
|
+
## Installation
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
yarn add @equinor/apollo-components
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Components
|
|
14
|
+
|
|
15
|
+
- `DataTable` - A feature rich table component based on `EDS` and `@tanstack/react-table`.
|
|
16
|
+
- `TypographyCustom` - An extension of the EDS `Typography` component to allow displaying all content on hover in the table.
|
package/dist/index.d.mts
CHANGED
|
@@ -8,7 +8,6 @@ import * as styled_components_dist_types from 'styled-components/dist/types';
|
|
|
8
8
|
import * as _equinor_eds_core_react from '@equinor/eds-core-react';
|
|
9
9
|
import { CellProps, TypographyProps as TypographyProps$1 } from '@equinor/eds-core-react';
|
|
10
10
|
import * as _equinor_eds_core_react_dist_types_components_Table_Table_types from '@equinor/eds-core-react/dist/types/components/Table/Table.types';
|
|
11
|
-
import { ColumnDef as ColumnDef$1 } from '@tanstack/table-core';
|
|
12
11
|
import { SetRequired } from 'type-fest';
|
|
13
12
|
import * as styled_components from 'styled-components';
|
|
14
13
|
import { Variants } from '@equinor/eds-core-react/dist/types/components/types';
|
|
@@ -244,7 +243,7 @@ interface PopoverCellProps {
|
|
|
244
243
|
}
|
|
245
244
|
declare function PopoverCell(props: PopoverCellProps): react_jsx_runtime.JSX.Element;
|
|
246
245
|
|
|
247
|
-
declare function SelectColumnDef<T>(props: SetRequired<DataTableProps<T>, 'rowSelection'>['rowSelection']): ColumnDef
|
|
246
|
+
declare function SelectColumnDef<T>(props: SetRequired<DataTableProps<T>, 'rowSelection'>['rowSelection']): ColumnDef<T, any>;
|
|
248
247
|
|
|
249
248
|
declare const leftCellShadow: styled_components.RuleSet<object>;
|
|
250
249
|
declare const StickyCell: styled_components_dist_types.IStyledComponentBase<"web", styled_components_dist_types.Substitute<(Omit<{
|
|
@@ -363,8 +362,9 @@ interface EditableDropdownSingleCellProps<T extends FormMeta> extends Omit<Edita
|
|
|
363
362
|
*/
|
|
364
363
|
options: Option[];
|
|
365
364
|
onChange?: (value: Option) => void;
|
|
365
|
+
label?: string;
|
|
366
366
|
}
|
|
367
|
-
declare function EditableDropdownSingleCell<T extends FormMeta>({ options, error: errorFromProps, onChange: onChangeFromProps, ...context }: EditableDropdownSingleCellProps<T>): react_jsx_runtime.JSX.Element;
|
|
367
|
+
declare function EditableDropdownSingleCell<T extends FormMeta>({ options, error: errorFromProps, onChange: onChangeFromProps, label, ...context }: EditableDropdownSingleCellProps<T>): react_jsx_runtime.JSX.Element;
|
|
368
368
|
|
|
369
369
|
declare function EditableNumberCell<T extends FormMeta>({ error: errorFromProps, ...context }: EditableCellBaseProps<T, number>): react_jsx_runtime.JSX.Element;
|
|
370
370
|
|
package/dist/index.d.ts
CHANGED
|
@@ -8,7 +8,6 @@ import * as styled_components_dist_types from 'styled-components/dist/types';
|
|
|
8
8
|
import * as _equinor_eds_core_react from '@equinor/eds-core-react';
|
|
9
9
|
import { CellProps, TypographyProps as TypographyProps$1 } from '@equinor/eds-core-react';
|
|
10
10
|
import * as _equinor_eds_core_react_dist_types_components_Table_Table_types from '@equinor/eds-core-react/dist/types/components/Table/Table.types';
|
|
11
|
-
import { ColumnDef as ColumnDef$1 } from '@tanstack/table-core';
|
|
12
11
|
import { SetRequired } from 'type-fest';
|
|
13
12
|
import * as styled_components from 'styled-components';
|
|
14
13
|
import { Variants } from '@equinor/eds-core-react/dist/types/components/types';
|
|
@@ -244,7 +243,7 @@ interface PopoverCellProps {
|
|
|
244
243
|
}
|
|
245
244
|
declare function PopoverCell(props: PopoverCellProps): react_jsx_runtime.JSX.Element;
|
|
246
245
|
|
|
247
|
-
declare function SelectColumnDef<T>(props: SetRequired<DataTableProps<T>, 'rowSelection'>['rowSelection']): ColumnDef
|
|
246
|
+
declare function SelectColumnDef<T>(props: SetRequired<DataTableProps<T>, 'rowSelection'>['rowSelection']): ColumnDef<T, any>;
|
|
248
247
|
|
|
249
248
|
declare const leftCellShadow: styled_components.RuleSet<object>;
|
|
250
249
|
declare const StickyCell: styled_components_dist_types.IStyledComponentBase<"web", styled_components_dist_types.Substitute<(Omit<{
|
|
@@ -363,8 +362,9 @@ interface EditableDropdownSingleCellProps<T extends FormMeta> extends Omit<Edita
|
|
|
363
362
|
*/
|
|
364
363
|
options: Option[];
|
|
365
364
|
onChange?: (value: Option) => void;
|
|
365
|
+
label?: string;
|
|
366
366
|
}
|
|
367
|
-
declare function EditableDropdownSingleCell<T extends FormMeta>({ options, error: errorFromProps, onChange: onChangeFromProps, ...context }: EditableDropdownSingleCellProps<T>): react_jsx_runtime.JSX.Element;
|
|
367
|
+
declare function EditableDropdownSingleCell<T extends FormMeta>({ options, error: errorFromProps, onChange: onChangeFromProps, label, ...context }: EditableDropdownSingleCellProps<T>): react_jsx_runtime.JSX.Element;
|
|
368
368
|
|
|
369
369
|
declare function EditableNumberCell<T extends FormMeta>({ error: errorFromProps, ...context }: EditableCellBaseProps<T, number>): react_jsx_runtime.JSX.Element;
|
|
370
370
|
|