@entur/table 4.6.16 → 4.6.18
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/DataCell.d.ts +12 -12
- package/dist/EditableCell.d.ts +20 -20
- package/dist/ExpandRowButton.d.ts +7 -7
- package/dist/ExpandableRow.d.ts +12 -12
- package/dist/HeaderCell.d.ts +24 -24
- package/dist/Table.d.ts +21 -21
- package/dist/TableBody.d.ts +9 -9
- package/dist/TableFooter.d.ts +6 -6
- package/dist/TableHead.d.ts +8 -8
- package/dist/TableRow.d.ts +21 -21
- package/dist/index.d.ts +13 -13
- package/dist/styles.css +126 -126
- package/dist/table.cjs.development.js +45 -51
- package/dist/table.cjs.development.js.map +1 -1
- package/dist/table.cjs.production.min.js +1 -1
- package/dist/table.cjs.production.min.js.map +1 -1
- package/dist/table.esm.js +4 -4
- package/dist/useSortableTable.d.ts +41 -41
- package/dist/useTableKeyboardNavigation.d.ts +14 -14
- package/package.json +9 -9
package/dist/DataCell.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export type DataCellProps = {
|
|
3
|
-
/** Innholdet i tabellcellen */
|
|
4
|
-
children: React.ReactNode;
|
|
5
|
-
/** Ekstra klassenavn */
|
|
6
|
-
className?: string;
|
|
7
|
-
/** Størrelse som settes for DataCell for ulikt innhold av komponenter */
|
|
8
|
-
padding?: 'default' | 'checkbox' | 'radio' | 'overflow-menu';
|
|
9
|
-
/** Viser en status-sirkel for DataCell */
|
|
10
|
-
status?: 'positive' | 'negative' | 'neutral';
|
|
11
|
-
} & React.DetailedHTMLProps<React.TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>;
|
|
12
|
-
export declare const DataCell: React.ForwardRefExoticComponent<
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type DataCellProps = {
|
|
3
|
+
/** Innholdet i tabellcellen */
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
/** Ekstra klassenavn */
|
|
6
|
+
className?: string;
|
|
7
|
+
/** Størrelse som settes for DataCell for ulikt innhold av komponenter */
|
|
8
|
+
padding?: 'default' | 'checkbox' | 'radio' | 'overflow-menu';
|
|
9
|
+
/** Viser en status-sirkel for DataCell */
|
|
10
|
+
status?: 'positive' | 'negative' | 'neutral';
|
|
11
|
+
} & React.DetailedHTMLProps<React.TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>;
|
|
12
|
+
export declare const DataCell: React.ForwardRefExoticComponent<Omit<DataCellProps, "ref"> & React.RefAttributes<HTMLTableDataCellElement>>;
|
package/dist/EditableCell.d.ts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { VariantType } from '@entur/form';
|
|
3
|
-
import './EditableCell.scss';
|
|
4
|
-
type EditableCellProps = {
|
|
5
|
-
/** Ekstra klassenavn */
|
|
6
|
-
className?: string;
|
|
7
|
-
/** Inputelementet som skal være i tabellcellen */
|
|
8
|
-
children: React.ReactElement;
|
|
9
|
-
/** Valideringsvariant for EditableCell */
|
|
10
|
-
variant?: VariantType;
|
|
11
|
-
/** Varselmelding, som vil komme som en Tooltip under EditableCell */
|
|
12
|
-
feedback?: string;
|
|
13
|
-
/** Om cellen skal vise omriss til enhver tid
|
|
14
|
-
* @default false
|
|
15
|
-
*/
|
|
16
|
-
outlined?: boolean;
|
|
17
|
-
[key: string]: any;
|
|
18
|
-
};
|
|
19
|
-
export declare const EditableCell: React.FC<EditableCellProps>;
|
|
20
|
-
export {};
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { VariantType } from '@entur/form';
|
|
3
|
+
import './EditableCell.scss';
|
|
4
|
+
type EditableCellProps = {
|
|
5
|
+
/** Ekstra klassenavn */
|
|
6
|
+
className?: string;
|
|
7
|
+
/** Inputelementet som skal være i tabellcellen */
|
|
8
|
+
children: React.ReactElement;
|
|
9
|
+
/** Valideringsvariant for EditableCell */
|
|
10
|
+
variant?: VariantType;
|
|
11
|
+
/** Varselmelding, som vil komme som en Tooltip under EditableCell */
|
|
12
|
+
feedback?: string;
|
|
13
|
+
/** Om cellen skal vise omriss til enhver tid
|
|
14
|
+
* @default false
|
|
15
|
+
*/
|
|
16
|
+
outlined?: boolean;
|
|
17
|
+
[key: string]: any;
|
|
18
|
+
};
|
|
19
|
+
export declare const EditableCell: React.FC<EditableCellProps>;
|
|
20
|
+
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './ExpandRowButton.scss';
|
|
3
|
-
export type ExpandRowButtonProps = {
|
|
4
|
-
open: boolean;
|
|
5
|
-
onClick: (e: React.MouseEvent) => void;
|
|
6
|
-
} & React.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
7
|
-
export declare const ExpandRowButton: React.FC<ExpandRowButtonProps>;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './ExpandRowButton.scss';
|
|
3
|
+
export type ExpandRowButtonProps = {
|
|
4
|
+
open: boolean;
|
|
5
|
+
onClick: (e: React.MouseEvent) => void;
|
|
6
|
+
} & React.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
7
|
+
export declare const ExpandRowButton: React.FC<ExpandRowButtonProps>;
|
package/dist/ExpandableRow.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export type ExpandableRowProps = {
|
|
3
|
-
/** Antall kolonner tabellraden er */
|
|
4
|
-
colSpan: number;
|
|
5
|
-
/** Innholdet til ExpandableRow */
|
|
6
|
-
children: React.ReactNode;
|
|
7
|
-
/** Om ExpandableRow er åpen
|
|
8
|
-
* @default false
|
|
9
|
-
*/
|
|
10
|
-
open?: boolean;
|
|
11
|
-
};
|
|
12
|
-
export declare const ExpandableRow: React.FC<ExpandableRowProps>;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type ExpandableRowProps = {
|
|
3
|
+
/** Antall kolonner tabellraden er */
|
|
4
|
+
colSpan: number;
|
|
5
|
+
/** Innholdet til ExpandableRow */
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
/** Om ExpandableRow er åpen
|
|
8
|
+
* @default false
|
|
9
|
+
*/
|
|
10
|
+
open?: boolean;
|
|
11
|
+
};
|
|
12
|
+
export declare const ExpandableRow: React.FC<ExpandableRowProps>;
|
package/dist/HeaderCell.d.ts
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ExternalSortConfig } from '.';
|
|
3
|
-
import './HeaderCell.scss';
|
|
4
|
-
export type HeaderCellProps = {
|
|
5
|
-
/** Kolonneoverskrift */
|
|
6
|
-
children: React.ReactNode;
|
|
7
|
-
/** Ekstra klassenavn */
|
|
8
|
-
className?: string;
|
|
9
|
-
/** Størrelse som settes for HeaderCell for ulikt innhold av komponenter */
|
|
10
|
-
padding?: 'default' | 'checkbox' | 'radio' | 'overflow-menu';
|
|
11
|
-
/** Ekstra props som kan sendes til sorteringsknappelementet. Benyttes via useSortableTable */
|
|
12
|
-
sortableButtonProps?: React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>;
|
|
13
|
-
/** Om komponenten brukes til sortering. Benytt via useSortableTable
|
|
14
|
-
* @default false
|
|
15
|
-
*/
|
|
16
|
-
sortable?: boolean;
|
|
17
|
-
/** Konfigurering og rekkefølgen på sortering. Benyttes via useSortableTable */
|
|
18
|
-
sortConfig?: ExternalSortConfig;
|
|
19
|
-
/** Navnet det skal sorteres på. Benyttes via useSortableTable */
|
|
20
|
-
name?: string;
|
|
21
|
-
sortedAscendingAriaLabel?: string;
|
|
22
|
-
sortedDescendingAriaLabel?: string;
|
|
23
|
-
} & React.DetailedHTMLProps<React.ThHTMLAttributes<HTMLTableCellElement>, HTMLTableCellElement>;
|
|
24
|
-
export declare const HeaderCell: React.ForwardRefExoticComponent<
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ExternalSortConfig } from '.';
|
|
3
|
+
import './HeaderCell.scss';
|
|
4
|
+
export type HeaderCellProps = {
|
|
5
|
+
/** Kolonneoverskrift */
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
/** Ekstra klassenavn */
|
|
8
|
+
className?: string;
|
|
9
|
+
/** Størrelse som settes for HeaderCell for ulikt innhold av komponenter */
|
|
10
|
+
padding?: 'default' | 'checkbox' | 'radio' | 'overflow-menu';
|
|
11
|
+
/** Ekstra props som kan sendes til sorteringsknappelementet. Benyttes via useSortableTable */
|
|
12
|
+
sortableButtonProps?: React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>;
|
|
13
|
+
/** Om komponenten brukes til sortering. Benytt via useSortableTable
|
|
14
|
+
* @default false
|
|
15
|
+
*/
|
|
16
|
+
sortable?: boolean;
|
|
17
|
+
/** Konfigurering og rekkefølgen på sortering. Benyttes via useSortableTable */
|
|
18
|
+
sortConfig?: ExternalSortConfig;
|
|
19
|
+
/** Navnet det skal sorteres på. Benyttes via useSortableTable */
|
|
20
|
+
name?: string;
|
|
21
|
+
sortedAscendingAriaLabel?: string;
|
|
22
|
+
sortedDescendingAriaLabel?: string;
|
|
23
|
+
} & React.DetailedHTMLProps<React.ThHTMLAttributes<HTMLTableCellElement>, HTMLTableCellElement>;
|
|
24
|
+
export declare const HeaderCell: React.ForwardRefExoticComponent<Omit<HeaderCellProps, "ref"> & React.RefAttributes<HTMLTableCellElement>>;
|
package/dist/Table.d.ts
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export type TableProps = {
|
|
3
|
-
/** Ekstra klassenavn */
|
|
4
|
-
className?: string;
|
|
5
|
-
/** Setter tettheten mellom rader og kolonner. Bruk gjerne middle og small for for sider med høy informasjonstetthet
|
|
6
|
-
* @default "default"
|
|
7
|
-
*/
|
|
8
|
-
spacing?: 'default' | 'middle' | 'small';
|
|
9
|
-
/** Setter kolonne-layout til å være uavhengig av innhold
|
|
10
|
-
* @default false
|
|
11
|
-
*/
|
|
12
|
-
fixed?: boolean;
|
|
13
|
-
/** Om header-raden skal bli værende på skjermen når man skroller tabellen
|
|
14
|
-
* @default false
|
|
15
|
-
*/
|
|
16
|
-
stickyHeader?: boolean;
|
|
17
|
-
/** Innholdet i tabellen */
|
|
18
|
-
children: React.ReactNode;
|
|
19
|
-
[key: string]: any;
|
|
20
|
-
};
|
|
21
|
-
export declare const Table: React.ForwardRefExoticComponent<
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type TableProps = {
|
|
3
|
+
/** Ekstra klassenavn */
|
|
4
|
+
className?: string;
|
|
5
|
+
/** Setter tettheten mellom rader og kolonner. Bruk gjerne middle og small for for sider med høy informasjonstetthet
|
|
6
|
+
* @default "default"
|
|
7
|
+
*/
|
|
8
|
+
spacing?: 'default' | 'middle' | 'small';
|
|
9
|
+
/** Setter kolonne-layout til å være uavhengig av innhold
|
|
10
|
+
* @default false
|
|
11
|
+
*/
|
|
12
|
+
fixed?: boolean;
|
|
13
|
+
/** Om header-raden skal bli værende på skjermen når man skroller tabellen
|
|
14
|
+
* @default false
|
|
15
|
+
*/
|
|
16
|
+
stickyHeader?: boolean;
|
|
17
|
+
/** Innholdet i tabellen */
|
|
18
|
+
children: React.ReactNode;
|
|
19
|
+
[key: string]: any;
|
|
20
|
+
};
|
|
21
|
+
export declare const Table: React.ForwardRefExoticComponent<Omit<TableProps, "ref"> & React.RefAttributes<HTMLTableElement>>;
|
package/dist/TableBody.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export type TableBodyProps = {
|
|
3
|
-
/** Tabellrader */
|
|
4
|
-
children: React.ReactNode;
|
|
5
|
-
/** Ekstra klassenavn */
|
|
6
|
-
className?: string;
|
|
7
|
-
ref?: React.Ref<HTMLTableSectionElement>;
|
|
8
|
-
} & React.DetailedHTMLProps<React.HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>;
|
|
9
|
-
export declare const TableBody: React.ForwardRefExoticComponent<
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type TableBodyProps = {
|
|
3
|
+
/** Tabellrader */
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
/** Ekstra klassenavn */
|
|
6
|
+
className?: string;
|
|
7
|
+
ref?: React.Ref<HTMLTableSectionElement>;
|
|
8
|
+
} & React.DetailedHTMLProps<React.HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>;
|
|
9
|
+
export declare const TableBody: React.ForwardRefExoticComponent<Omit<TableBodyProps, "ref"> & React.RefAttributes<HTMLTableSectionElement>>;
|
package/dist/TableFooter.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export type TableFooterProps = {
|
|
3
|
-
/** Tabellrader */
|
|
4
|
-
children: React.ReactNode;
|
|
5
|
-
} & React.DetailedHTMLProps<React.HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>;
|
|
6
|
-
export declare const TableFooter: React.ForwardRefExoticComponent<
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type TableFooterProps = {
|
|
3
|
+
/** Tabellrader */
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
} & React.DetailedHTMLProps<React.HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>;
|
|
6
|
+
export declare const TableFooter: React.ForwardRefExoticComponent<Omit<TableFooterProps, "ref"> & React.RefAttributes<HTMLTableSectionElement>>;
|
package/dist/TableHead.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export type TableHeadProps = {
|
|
3
|
-
/** Kolonneoverskrifter */
|
|
4
|
-
children: React.ReactNode;
|
|
5
|
-
/** Esktra klassenavn */
|
|
6
|
-
className?: string;
|
|
7
|
-
} & React.DetailedHTMLProps<React.HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>;
|
|
8
|
-
export declare const TableHead: React.ForwardRefExoticComponent<
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type TableHeadProps = {
|
|
3
|
+
/** Kolonneoverskrifter */
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
/** Esktra klassenavn */
|
|
6
|
+
className?: string;
|
|
7
|
+
} & React.DetailedHTMLProps<React.HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>;
|
|
8
|
+
export declare const TableHead: React.ForwardRefExoticComponent<Omit<TableHeadProps, "ref"> & React.RefAttributes<HTMLTableSectionElement>>;
|
package/dist/TableRow.d.ts
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export type TableRowProps = {
|
|
3
|
-
/** Tabellceller */
|
|
4
|
-
children: React.ReactNode;
|
|
5
|
-
/** Ekstra klassenavn */
|
|
6
|
-
className?: string;
|
|
7
|
-
/**Hvis satt, så vil tabellraden endre fargen ved hover
|
|
8
|
-
* @default false
|
|
9
|
-
*/
|
|
10
|
-
hover?: boolean;
|
|
11
|
-
/** Om raden er klikkbar, så vil raden endre farge, og musepekeren vil symbolisere interaktivitet
|
|
12
|
-
* @default false
|
|
13
|
-
*/
|
|
14
|
-
active?: boolean;
|
|
15
|
-
/**Signalisere om at det er en feil i tabellraden
|
|
16
|
-
* @default false
|
|
17
|
-
*/
|
|
18
|
-
error?: boolean;
|
|
19
|
-
ref?: React.Ref<HTMLTableRowElement>;
|
|
20
|
-
} & React.DetailedHTMLProps<React.HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>;
|
|
21
|
-
export declare const TableRow: React.ForwardRefExoticComponent<
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type TableRowProps = {
|
|
3
|
+
/** Tabellceller */
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
/** Ekstra klassenavn */
|
|
6
|
+
className?: string;
|
|
7
|
+
/**Hvis satt, så vil tabellraden endre fargen ved hover
|
|
8
|
+
* @default false
|
|
9
|
+
*/
|
|
10
|
+
hover?: boolean;
|
|
11
|
+
/** Om raden er klikkbar, så vil raden endre farge, og musepekeren vil symbolisere interaktivitet
|
|
12
|
+
* @default false
|
|
13
|
+
*/
|
|
14
|
+
active?: boolean;
|
|
15
|
+
/**Signalisere om at det er en feil i tabellraden
|
|
16
|
+
* @default false
|
|
17
|
+
*/
|
|
18
|
+
error?: boolean;
|
|
19
|
+
ref?: React.Ref<HTMLTableRowElement>;
|
|
20
|
+
} & React.DetailedHTMLProps<React.HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>;
|
|
21
|
+
export declare const TableRow: React.ForwardRefExoticComponent<Omit<TableRowProps, "ref"> & React.RefAttributes<HTMLTableRowElement>>;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import './index.scss';
|
|
2
|
-
export * from './Table';
|
|
3
|
-
export * from './TableHead';
|
|
4
|
-
export * from './TableBody';
|
|
5
|
-
export * from './TableFooter';
|
|
6
|
-
export * from './TableRow';
|
|
7
|
-
export * from './DataCell';
|
|
8
|
-
export * from './HeaderCell';
|
|
9
|
-
export * from './useSortableTable';
|
|
10
|
-
export * from './EditableCell';
|
|
11
|
-
export * from './ExpandableRow';
|
|
12
|
-
export * from './ExpandRowButton';
|
|
13
|
-
export * from './useTableKeyboardNavigation';
|
|
1
|
+
import './index.scss';
|
|
2
|
+
export * from './Table';
|
|
3
|
+
export * from './TableHead';
|
|
4
|
+
export * from './TableBody';
|
|
5
|
+
export * from './TableFooter';
|
|
6
|
+
export * from './TableRow';
|
|
7
|
+
export * from './DataCell';
|
|
8
|
+
export * from './HeaderCell';
|
|
9
|
+
export * from './useSortableTable';
|
|
10
|
+
export * from './EditableCell';
|
|
11
|
+
export * from './ExpandableRow';
|
|
12
|
+
export * from './ExpandRowButton';
|
|
13
|
+
export * from './useTableKeyboardNavigation';
|
package/dist/styles.css
CHANGED
|
@@ -1,123 +1,5 @@
|
|
|
1
1
|
/* DO NOT CHANGE!*/
|
|
2
2
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
3
|
-
:root {
|
|
4
|
-
--eds-table: 1;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.eds-table {
|
|
8
|
-
border-collapse: collapse;
|
|
9
|
-
width: 100%;
|
|
10
|
-
}
|
|
11
|
-
.eds-table--fixed {
|
|
12
|
-
table-layout: fixed;
|
|
13
|
-
}
|
|
14
|
-
.eds-table--sticky-header {
|
|
15
|
-
position: relative;
|
|
16
|
-
}
|
|
17
|
-
.eds-table__data-cell {
|
|
18
|
-
height: 3.75rem;
|
|
19
|
-
padding: 1rem 1.5rem;
|
|
20
|
-
}
|
|
21
|
-
.eds-contrast .eds-table__data-cell {
|
|
22
|
-
border-bottom-color: #393d79;
|
|
23
|
-
}
|
|
24
|
-
.eds-table--middle .eds-table__data-cell {
|
|
25
|
-
padding: 0.5rem 1rem;
|
|
26
|
-
height: 3rem;
|
|
27
|
-
}
|
|
28
|
-
.eds-table--small .eds-table__data-cell {
|
|
29
|
-
padding: 0.25rem 1rem;
|
|
30
|
-
height: 2rem;
|
|
31
|
-
}
|
|
32
|
-
.eds-table__data-cell--padding-checkbox {
|
|
33
|
-
width: 3rem;
|
|
34
|
-
padding: 0.5rem 0 0.75rem 1.25rem;
|
|
35
|
-
}
|
|
36
|
-
.eds-table__data-cell--padding-radio {
|
|
37
|
-
width: 3rem;
|
|
38
|
-
padding: 1rem 0 1rem 1.25rem;
|
|
39
|
-
}
|
|
40
|
-
.eds-table__data-cell--padding-overflow-menu {
|
|
41
|
-
width: 3rem;
|
|
42
|
-
padding: 1rem 0.75rem;
|
|
43
|
-
}
|
|
44
|
-
.eds-table__data-cell[class*=eds-table__data-cell--status] {
|
|
45
|
-
position: relative;
|
|
46
|
-
}
|
|
47
|
-
.eds-table__data-cell[class*=eds-table__data-cell--status]:before {
|
|
48
|
-
left: 0;
|
|
49
|
-
top: 1.3125rem;
|
|
50
|
-
content: "";
|
|
51
|
-
position: absolute;
|
|
52
|
-
height: 0.625rem;
|
|
53
|
-
width: 0.625rem;
|
|
54
|
-
border-radius: 50%;
|
|
55
|
-
}
|
|
56
|
-
.eds-table--small .eds-table__data-cell[class*=eds-table__data-cell--status]:before {
|
|
57
|
-
top: 0.5625rem;
|
|
58
|
-
}
|
|
59
|
-
.eds-table--middle .eds-table__data-cell[class*=eds-table__data-cell--status]:before {
|
|
60
|
-
top: 0.8125rem;
|
|
61
|
-
}
|
|
62
|
-
.eds-table__data-cell--status-positive:before {
|
|
63
|
-
background: #1a8e60;
|
|
64
|
-
}
|
|
65
|
-
.eds-contrast .eds-table__data-cell--status-positive:before {
|
|
66
|
-
background: #5ac39a;
|
|
67
|
-
}
|
|
68
|
-
.eds-table__data-cell--status-negative:before {
|
|
69
|
-
background: #d31b1b;
|
|
70
|
-
}
|
|
71
|
-
.eds-contrast .eds-table__data-cell--status-negative:before {
|
|
72
|
-
background: #ff9494;
|
|
73
|
-
}
|
|
74
|
-
.eds-table__data-cell--status-neutral:before {
|
|
75
|
-
background: #d1d3d3;
|
|
76
|
-
}
|
|
77
|
-
.eds-contrast .eds-table__data-cell--status-neutral:before {
|
|
78
|
-
background: #babbcf;
|
|
79
|
-
}
|
|
80
|
-
.eds-table__body > .eds-table__row {
|
|
81
|
-
border-bottom: 0.125rem solid #e9e9e9;
|
|
82
|
-
}
|
|
83
|
-
.eds-contrast .eds-table__body > .eds-table__row {
|
|
84
|
-
border-color: #393d79;
|
|
85
|
-
}
|
|
86
|
-
.eds-table__body > .eds-table__row:focus {
|
|
87
|
-
outline: 2px solid #181c56;
|
|
88
|
-
}
|
|
89
|
-
.eds-table__body > .eds-table__row--hover:hover {
|
|
90
|
-
background: #f3f3f3;
|
|
91
|
-
}
|
|
92
|
-
.eds-contrast .eds-table__body > .eds-table__row--hover:hover {
|
|
93
|
-
background: #292b6a;
|
|
94
|
-
}
|
|
95
|
-
.eds-table__body > .eds-table__row--active {
|
|
96
|
-
background: #ebebf1;
|
|
97
|
-
border: 0.125rem solid #d1d4e3;
|
|
98
|
-
}
|
|
99
|
-
.eds-contrast .eds-table__body > .eds-table__row--active {
|
|
100
|
-
border-color: #393d79;
|
|
101
|
-
background: #393d79;
|
|
102
|
-
}
|
|
103
|
-
.eds-table__body > .eds-table__row--error {
|
|
104
|
-
background: #ffcece;
|
|
105
|
-
border-color: #ff9494;
|
|
106
|
-
}
|
|
107
|
-
.eds-table__head {
|
|
108
|
-
border-bottom: 0.125rem solid #e9e9e9;
|
|
109
|
-
}
|
|
110
|
-
.eds-contrast .eds-table__head {
|
|
111
|
-
border-color: #393d79;
|
|
112
|
-
}
|
|
113
|
-
.eds-table--sticky-header--active .eds-table__head {
|
|
114
|
-
position: sticky;
|
|
115
|
-
top: 0;
|
|
116
|
-
box-shadow: 0px 10px 8px -10px rgba(0, 0, 0, 0.15);
|
|
117
|
-
border-bottom: none;
|
|
118
|
-
}
|
|
119
|
-
/* DO NOT CHANGE!*/
|
|
120
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
121
3
|
.eds-table__header-cell {
|
|
122
4
|
color: #656782;
|
|
123
5
|
font-size: 0.875rem;
|
|
@@ -187,14 +69,6 @@
|
|
|
187
69
|
}
|
|
188
70
|
/* DO NOT CHANGE!*/
|
|
189
71
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
190
|
-
.eds-expand-row-button__icon {
|
|
191
|
-
transition: transform ease-in-out 0.2s;
|
|
192
|
-
}
|
|
193
|
-
.eds-expand-row-button--open .eds-expand-row-button__icon {
|
|
194
|
-
transform: rotate(180deg);
|
|
195
|
-
}
|
|
196
|
-
/* DO NOT CHANGE!*/
|
|
197
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
198
72
|
.eds-editable-cell {
|
|
199
73
|
padding: 0.25rem 0.75rem;
|
|
200
74
|
}
|
|
@@ -310,3 +184,129 @@
|
|
|
310
184
|
.eds-table--small .eds-editable-cell .eds-form-control-wrapper .eds-form-control {
|
|
311
185
|
padding: calc(0.25rem - 0.125rem) calc(0.5rem - 0.0625rem);
|
|
312
186
|
}
|
|
187
|
+
/* DO NOT CHANGE!*/
|
|
188
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
189
|
+
.eds-expand-row-button__icon {
|
|
190
|
+
transition: transform ease-in-out 0.2s;
|
|
191
|
+
}
|
|
192
|
+
.eds-expand-row-button--open .eds-expand-row-button__icon {
|
|
193
|
+
transform: rotate(180deg);
|
|
194
|
+
}
|
|
195
|
+
/* DO NOT CHANGE!*/
|
|
196
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
197
|
+
:root {
|
|
198
|
+
--eds-table: 1;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.eds-table {
|
|
202
|
+
border-collapse: collapse;
|
|
203
|
+
width: 100%;
|
|
204
|
+
}
|
|
205
|
+
.eds-table--fixed {
|
|
206
|
+
table-layout: fixed;
|
|
207
|
+
}
|
|
208
|
+
.eds-table--sticky-header {
|
|
209
|
+
position: relative;
|
|
210
|
+
}
|
|
211
|
+
.eds-table__data-cell {
|
|
212
|
+
height: 3.75rem;
|
|
213
|
+
padding: 1rem 1.5rem;
|
|
214
|
+
}
|
|
215
|
+
.eds-contrast .eds-table__data-cell {
|
|
216
|
+
border-bottom-color: #393d79;
|
|
217
|
+
}
|
|
218
|
+
.eds-table--middle .eds-table__data-cell {
|
|
219
|
+
padding: 0.5rem 1rem;
|
|
220
|
+
height: 3rem;
|
|
221
|
+
}
|
|
222
|
+
.eds-table--small .eds-table__data-cell {
|
|
223
|
+
padding: 0.25rem 1rem;
|
|
224
|
+
height: 2rem;
|
|
225
|
+
}
|
|
226
|
+
.eds-table__data-cell--padding-checkbox {
|
|
227
|
+
width: 3rem;
|
|
228
|
+
padding: 0.5rem 0 0.75rem 1.25rem;
|
|
229
|
+
}
|
|
230
|
+
.eds-table__data-cell--padding-radio {
|
|
231
|
+
width: 3rem;
|
|
232
|
+
padding: 1rem 0 1rem 1.25rem;
|
|
233
|
+
}
|
|
234
|
+
.eds-table__data-cell--padding-overflow-menu {
|
|
235
|
+
width: 3rem;
|
|
236
|
+
padding: 1rem 0.75rem;
|
|
237
|
+
}
|
|
238
|
+
.eds-table__data-cell[class*=eds-table__data-cell--status] {
|
|
239
|
+
position: relative;
|
|
240
|
+
}
|
|
241
|
+
.eds-table__data-cell[class*=eds-table__data-cell--status]:before {
|
|
242
|
+
left: 0;
|
|
243
|
+
top: 1.3125rem;
|
|
244
|
+
content: "";
|
|
245
|
+
position: absolute;
|
|
246
|
+
height: 0.625rem;
|
|
247
|
+
width: 0.625rem;
|
|
248
|
+
border-radius: 50%;
|
|
249
|
+
}
|
|
250
|
+
.eds-table--small .eds-table__data-cell[class*=eds-table__data-cell--status]:before {
|
|
251
|
+
top: 0.5625rem;
|
|
252
|
+
}
|
|
253
|
+
.eds-table--middle .eds-table__data-cell[class*=eds-table__data-cell--status]:before {
|
|
254
|
+
top: 0.8125rem;
|
|
255
|
+
}
|
|
256
|
+
.eds-table__data-cell--status-positive:before {
|
|
257
|
+
background: #1a8e60;
|
|
258
|
+
}
|
|
259
|
+
.eds-contrast .eds-table__data-cell--status-positive:before {
|
|
260
|
+
background: #5ac39a;
|
|
261
|
+
}
|
|
262
|
+
.eds-table__data-cell--status-negative:before {
|
|
263
|
+
background: #d31b1b;
|
|
264
|
+
}
|
|
265
|
+
.eds-contrast .eds-table__data-cell--status-negative:before {
|
|
266
|
+
background: #ff9494;
|
|
267
|
+
}
|
|
268
|
+
.eds-table__data-cell--status-neutral:before {
|
|
269
|
+
background: #d1d3d3;
|
|
270
|
+
}
|
|
271
|
+
.eds-contrast .eds-table__data-cell--status-neutral:before {
|
|
272
|
+
background: #babbcf;
|
|
273
|
+
}
|
|
274
|
+
.eds-table__body > .eds-table__row {
|
|
275
|
+
border-bottom: 0.125rem solid #e9e9e9;
|
|
276
|
+
}
|
|
277
|
+
.eds-contrast .eds-table__body > .eds-table__row {
|
|
278
|
+
border-color: #393d79;
|
|
279
|
+
}
|
|
280
|
+
.eds-table__body > .eds-table__row:focus {
|
|
281
|
+
outline: 2px solid #181c56;
|
|
282
|
+
}
|
|
283
|
+
.eds-table__body > .eds-table__row--hover:hover {
|
|
284
|
+
background: #f3f3f3;
|
|
285
|
+
}
|
|
286
|
+
.eds-contrast .eds-table__body > .eds-table__row--hover:hover {
|
|
287
|
+
background: #292b6a;
|
|
288
|
+
}
|
|
289
|
+
.eds-table__body > .eds-table__row--active {
|
|
290
|
+
background: #ebebf1;
|
|
291
|
+
border: 0.125rem solid #d1d4e3;
|
|
292
|
+
}
|
|
293
|
+
.eds-contrast .eds-table__body > .eds-table__row--active {
|
|
294
|
+
border-color: #393d79;
|
|
295
|
+
background: #393d79;
|
|
296
|
+
}
|
|
297
|
+
.eds-table__body > .eds-table__row--error {
|
|
298
|
+
background: #ffcece;
|
|
299
|
+
border-color: #ff9494;
|
|
300
|
+
}
|
|
301
|
+
.eds-table__head {
|
|
302
|
+
border-bottom: 0.125rem solid #e9e9e9;
|
|
303
|
+
}
|
|
304
|
+
.eds-contrast .eds-table__head {
|
|
305
|
+
border-color: #393d79;
|
|
306
|
+
}
|
|
307
|
+
.eds-table--sticky-header--active .eds-table__head {
|
|
308
|
+
position: sticky;
|
|
309
|
+
top: 0;
|
|
310
|
+
box-shadow: 0px 10px 8px -10px rgba(0, 0, 0, 0.15);
|
|
311
|
+
border-bottom: none;
|
|
312
|
+
}
|