@indico-data/design-system 2.59.2 → 2.60.1
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/lib/components/tanstackTable/TankstackTable.types.d.ts +1 -0
- package/lib/components/tanstackTable/TanstackTable.d.ts +1 -1
- package/lib/index.css +93 -62
- package/lib/index.d.ts +2 -1
- package/lib/index.esm.css +93 -62
- package/lib/index.esm.js +2 -1
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +2 -1
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/badge/styles/Badge.scss +1 -1
- package/src/components/button/styles/_variables.scss +18 -18
- package/src/components/forms/form/styles/Form.scss +3 -3
- package/src/components/forms/select/styles/Select.scss +2 -2
- package/src/components/menu/styles/_variables.scss +2 -2
- package/src/components/skeleton/styles/Skeleton.scss +7 -7
- package/src/components/stepper/styles/Stepper.scss +30 -9
- package/src/components/table/Table.mdx +1 -1
- package/src/components/table/Table.stories.tsx +1 -1
- package/src/components/table/styles/Table.scss +0 -9
- package/src/components/tanstackTable/TankstackTable.types.ts +1 -0
- package/src/components/tanstackTable/TanstackTable.stories.tsx +54 -0
- package/src/components/tanstackTable/TanstackTable.tsx +3 -2
- package/src/components/tanstackTable/components/ActionBar/ActionBar.scss +1 -1
- package/src/components/tanstackTable/styles/_variables.scss +14 -9
- package/src/components/tanstackTable/styles/table.scss +23 -4
- package/src/components/toast/styles/Toast.scss +8 -6
- package/src/styles/globals.scss +2 -2
- package/src/styles/variables/_borders.scss +1 -1
package/package.json
CHANGED
|
@@ -31,41 +31,41 @@
|
|
|
31
31
|
// Light Theme Specific Variables
|
|
32
32
|
:root [data-theme='light'] {
|
|
33
33
|
// solid colors
|
|
34
|
-
--pf-button-solid-background-color: var(--pf-
|
|
34
|
+
--pf-button-solid-background-color: var(--pf-secondary-color-400);
|
|
35
35
|
--pf-button-solid-color: var(--pf-white-color);
|
|
36
|
-
--pf-button-solid-hover-background-color: var(--pf-
|
|
37
|
-
--pf-button-solid-focus-background-color: var(--pf-
|
|
36
|
+
--pf-button-solid-hover-background-color: var(--pf-secondary-color-500);
|
|
37
|
+
--pf-button-solid-focus-background-color: var(--pf-secondary-color-400);
|
|
38
38
|
--pf-button-solid-disabled-background-color: var(--pf-primary-color-300);
|
|
39
|
-
--pf-button-solid-disabled-color: var(--pf-gray-color-
|
|
39
|
+
--pf-button-solid-disabled-color: var(--pf-gray-color-800);
|
|
40
40
|
|
|
41
41
|
// outline colors
|
|
42
|
-
--pf-button-outline-color: var(--pf-
|
|
43
|
-
--pf-button-outline-border-color: var(--pf-
|
|
44
|
-
--pf-button-outline-hover-color: var(--pf-
|
|
42
|
+
--pf-button-outline-color: var(--pf-secondary-color-400);
|
|
43
|
+
--pf-button-outline-border-color: var(--pf-secondary-color-400);
|
|
44
|
+
--pf-button-outline-hover-color: var(--pf-secondary-color-500);
|
|
45
45
|
--pf-button-outline-disabled-color: var(--pf-primary-color-300);
|
|
46
46
|
|
|
47
47
|
// link
|
|
48
|
-
--pf-button-link-color: var(--pf-
|
|
49
|
-
--pf-button-link-hover-color: var(--pf-
|
|
48
|
+
--pf-button-link-color: var(--pf-secondary-color-400);
|
|
49
|
+
--pf-button-link-hover-color: var(--pf-secondary-color-500);
|
|
50
50
|
--pf-button-link-disabled-color: var(--pf-primary-color-300);
|
|
51
51
|
|
|
52
52
|
// action
|
|
53
|
-
--pf-button-action-color: var(--pf-
|
|
54
|
-
--pf-button-action-border-color: var(--pf-
|
|
55
|
-
--pf-button-action-hover-background-color: var(--pf-
|
|
56
|
-
--pf-button-action-hover-border-color: var(--pf-
|
|
57
|
-
--pf-button-action-hover-color: var(--pf-
|
|
58
|
-
--pf-button-action-disabled-border-color: var(--pf-
|
|
53
|
+
--pf-button-action-color: var(--pf-secondary-color-400);
|
|
54
|
+
--pf-button-action-border-color: var(--pf-secondary-color-400);
|
|
55
|
+
--pf-button-action-hover-background-color: var(--pf-secondary-color-500);
|
|
56
|
+
--pf-button-action-hover-border-color: var(--pf-secondary-color-500);
|
|
57
|
+
--pf-button-action-hover-color: var(--pf-white-color);
|
|
58
|
+
--pf-button-action-disabled-border-color: var(--pf-secondary-color-400);
|
|
59
59
|
--pf-button-action-disabled-color: var(--pf-primary-color-300);
|
|
60
60
|
|
|
61
61
|
// destructive
|
|
62
|
-
--pf-button-destructive-background-color: var(--pf-
|
|
62
|
+
--pf-button-destructive-background-color: var(--pf-red-color-400);
|
|
63
63
|
--pf-button-destructive-color: var(--pf-white-color);
|
|
64
|
-
--pf-button-destructive-hover-background-color: var(--pf-red-color-
|
|
64
|
+
--pf-button-destructive-hover-background-color: var(--pf-red-color-500);
|
|
65
65
|
--pf-button-destructive-hover-color: var(--pf-white-color);
|
|
66
66
|
--pf-button-destructive-focus-background-color: var(--pf-red-color);
|
|
67
67
|
--pf-button-destructive-focus-color: var(--pf-white-color);
|
|
68
|
-
--pf-button-destructive-disabled-background-color: var(--pf-red-color-
|
|
68
|
+
--pf-button-destructive-disabled-background-color: var(--pf-red-color-100);
|
|
69
69
|
--pf-button-destructive-disabled-color: var(--pf-white-color);
|
|
70
70
|
|
|
71
71
|
// soft
|
|
@@ -11,11 +11,11 @@ form {
|
|
|
11
11
|
--pf-form-input-color: var(--pf-gray-color);
|
|
12
12
|
--pf-form-input-placeholder-color: var(--pf-gray-color-300);
|
|
13
13
|
--pf-form-input-help-color: var(--pf-gray-color-400);
|
|
14
|
-
--pf-form-input-hover-background-color: var(--pf-gray-color-
|
|
15
|
-
--pf-form-input-focus-background-color: var(--pf-gray-color-
|
|
14
|
+
--pf-form-input-hover-background-color: var(--pf-gray-color-900);
|
|
15
|
+
--pf-form-input-focus-background-color: var(--pf-gray-color-950);
|
|
16
16
|
--pf-form-input-focus-border-color: var(--pf-secondary-color-800);
|
|
17
17
|
--pf-form-input-focus-outline-color: var(--pf-primary-color);
|
|
18
|
-
--pf-form-input-disabled-background-color: var(--pf-gray-color-
|
|
18
|
+
--pf-form-input-disabled-background-color: var(--pf-gray-color-700);
|
|
19
19
|
--pf-form-input-disabled-border-color: var(--pf-gray-color-100);
|
|
20
20
|
--pf-form-input-disabled-color: var(--pf-gray-color-400);
|
|
21
21
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// Light Theme Specific Variables
|
|
2
2
|
:root [data-theme='light'] {
|
|
3
3
|
--pf-select-indicator-color: var(--pf-gray-color);
|
|
4
|
-
--pf-select-option-selected-color: var(--pf-
|
|
4
|
+
--pf-select-option-selected-color: var(--pf-gray-color-950);
|
|
5
5
|
--pf-select-option-color: var(--pf-gray-color);
|
|
6
|
-
--pf-select-option-hover-color: var(--pf-
|
|
6
|
+
--pf-select-option-hover-color: var(--pf-gray-color-900);
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
// Dark Theme and Default Variables
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
|
|
5
5
|
// Light Theme Specific Variables
|
|
6
6
|
:root [data-theme='light'] {
|
|
7
|
-
--pf-menu-item-hover-color: var(--pf-
|
|
7
|
+
--pf-menu-item-hover-color: var(--pf-gray-color-950);
|
|
8
8
|
--pf-menu-item-background-color: var(--pf-white-color);
|
|
9
9
|
--pf-menu-item-color: var(--pf-gray-color);
|
|
10
|
-
--pf-menu-item-focus-color: var(--pf-
|
|
10
|
+
--pf-menu-item-focus-color: var(--pf-gray-color-900);
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
// Dark Theme Specific Variables
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
//
|
|
2
|
-
:root
|
|
3
|
-
:
|
|
4
|
-
:
|
|
5
|
-
--pf-skeleton-color
|
|
6
|
-
--pf-skeleton-color-two: var(--pf-gray-color-100);
|
|
1
|
+
// Light Theme Specific Variables
|
|
2
|
+
:root [data-theme='light'] {
|
|
3
|
+
--pf-skeleton-color-one: var(--pf-gray-color-800);
|
|
4
|
+
--pf-skeleton-color-two: var(--pf-gray-color-950);
|
|
5
|
+
--pf-skeleton-background-color: var(--pf-gray-color-700);
|
|
7
6
|
}
|
|
8
7
|
|
|
9
8
|
// Dark Theme Specific Variables
|
|
10
9
|
:root [data-theme='dark'] {
|
|
11
10
|
--pf-skeleton-color-one: var(--pf-primary-color-500);
|
|
12
11
|
--pf-skeleton-color-two: var(--pf-primary-color-400);
|
|
12
|
+
--pf-skeleton-background-color: var(--pf-gray-color-900);
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
.skeleton {
|
|
16
16
|
border-radius: var(--pf-rounded);
|
|
17
|
-
background-color: var(--pf-
|
|
17
|
+
background-color: var(--pf-skeleton-background-color);
|
|
18
18
|
opacity: 0.7;
|
|
19
19
|
animation: skeleton-loading 1s linear infinite alternate;
|
|
20
20
|
display: flex;
|
|
@@ -1,11 +1,25 @@
|
|
|
1
|
-
// Common Variables
|
|
2
|
-
:root,
|
|
3
|
-
:root [data-theme='light'],
|
|
4
|
-
:root [data-theme='dark'] {
|
|
5
|
-
}
|
|
6
|
-
|
|
7
1
|
// Light Theme Specific Variables
|
|
8
2
|
:root [data-theme='light'] {
|
|
3
|
+
// Stepper Legend
|
|
4
|
+
--pf-stepper-background-color: var(--pf-gray-color-900);
|
|
5
|
+
--pf-stepper-legend-background-color: var(--pf-gray-color-950);
|
|
6
|
+
// Default Step
|
|
7
|
+
--pf-stepper-legend-circle-background-color: var(--pf-gray-color-800);
|
|
8
|
+
--pf-stepper-legend-circle-text-color: var(--pf-white-color);
|
|
9
|
+
--pf-stepper-legend-line-background-color: var(--pf-gray-color-800);
|
|
10
|
+
--pf-stepper-legend-step-text-color: var(--pf-white-color);
|
|
11
|
+
--pf-stepper-legend-step-disabled-text-color: var(--pf-gray-color-800);
|
|
12
|
+
|
|
13
|
+
// Completed Step
|
|
14
|
+
--pf-stepper-legend-circle-completed-background-color: var(--pf-secondary-color);
|
|
15
|
+
--pf-stepper-legend-circle-completed-text-color: var(--pf-white-color);
|
|
16
|
+
--pf-stepper-legend-line-completed-background-color: var(--pf-secondary-color);
|
|
17
|
+
--pf-stepper-legend-step-completed-text-color: var(--pf-secondary-color);
|
|
18
|
+
// Current Step
|
|
19
|
+
--pf-stepper-legend-circle-current-background-color: var(--pf-secondary-color);
|
|
20
|
+
--pf-stepper-legend-circle-current-border-color: var(--pf-white-color);
|
|
21
|
+
--pf-stepper-legend-circle-current-text-color: var(--pf-white-color);
|
|
22
|
+
--pf-stepper-legend-step-current-text-color: var(--pf-secondary-color);
|
|
9
23
|
}
|
|
10
24
|
|
|
11
25
|
// Dark Theme Specific Variables
|
|
@@ -23,11 +37,12 @@
|
|
|
23
37
|
// Completed Step
|
|
24
38
|
--pf-stepper-legend-circle-completed-background-color: var(--pf-secondary-color);
|
|
25
39
|
--pf-stepper-legend-circle-completed-text-color: var(--pf-white-color);
|
|
40
|
+
--pf-stepper-legend-step-completed-text-color: var(--pf-secondary-color);
|
|
26
41
|
--pf-stepper-legend-line-completed-background-color: var(--pf-secondary-color);
|
|
27
42
|
// Current Step
|
|
28
43
|
--pf-stepper-legend-circle-current-background-color: var(--pf-secondary-color);
|
|
29
44
|
--pf-stepper-legend-circle-current-border-color: var(--pf-white-color);
|
|
30
|
-
--pf-stepper-legend-
|
|
45
|
+
--pf-stepper-legend-circle-current-text-color: var(--pf-white-color);
|
|
31
46
|
--pf-stepper-legend-step-current-text-color: var(--pf-secondary-color);
|
|
32
47
|
}
|
|
33
48
|
|
|
@@ -43,8 +58,7 @@
|
|
|
43
58
|
flex-direction: column;
|
|
44
59
|
justify-content: space-between;
|
|
45
60
|
height: 100%;
|
|
46
|
-
|
|
47
|
-
}
|
|
61
|
+
|
|
48
62
|
.stepper-actions {
|
|
49
63
|
display: flex;
|
|
50
64
|
justify-content: end;
|
|
@@ -91,6 +105,7 @@
|
|
|
91
105
|
|
|
92
106
|
&.current {
|
|
93
107
|
background-color: var(--pf-stepper-legend-circle-current-background-color);
|
|
108
|
+
color: var(--pf-stepper-legend-circle-current-text-color);
|
|
94
109
|
}
|
|
95
110
|
}
|
|
96
111
|
|
|
@@ -115,6 +130,12 @@
|
|
|
115
130
|
color: var(--pf-stepper-legend-step-text-color);
|
|
116
131
|
}
|
|
117
132
|
|
|
133
|
+
&--completed-step {
|
|
134
|
+
.btn {
|
|
135
|
+
color: var(--pf-stepper-legend-step-completed-text-color);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
118
139
|
&--current-step {
|
|
119
140
|
.btn {
|
|
120
141
|
color: var(--pf-stepper-legend-step-current-text-color);
|
|
@@ -166,12 +166,3 @@
|
|
|
166
166
|
}
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
|
-
|
|
170
|
-
.table__pagination {
|
|
171
|
-
padding-bottom: var(--pf-padding-4);
|
|
172
|
-
padding-top: var(--pf-padding-4);
|
|
173
|
-
background-color: var(--pf-table-pagination-background-color);
|
|
174
|
-
padding-left: var(
|
|
175
|
-
--pf-padding-4
|
|
176
|
-
); // buttons have a visual illusion of having a gap, so we add padding to adjust the left side when the total results exist
|
|
177
|
-
}
|
|
@@ -22,8 +22,18 @@ const meta: Meta = {
|
|
|
22
22
|
enableRowSelection: true,
|
|
23
23
|
showPagination: false,
|
|
24
24
|
onClickRow: null,
|
|
25
|
+
isStriped: true,
|
|
25
26
|
},
|
|
26
27
|
argTypes: {
|
|
28
|
+
isStriped: {
|
|
29
|
+
description: 'Striped rows',
|
|
30
|
+
defaultValue: { summary: 'true' },
|
|
31
|
+
control: { type: 'boolean' },
|
|
32
|
+
table: {
|
|
33
|
+
category: 'Props',
|
|
34
|
+
type: { summary: 'boolean' },
|
|
35
|
+
},
|
|
36
|
+
},
|
|
27
37
|
data: {
|
|
28
38
|
description:
|
|
29
39
|
'Array of data items. These are the items that will be displayed in the table cell.',
|
|
@@ -181,6 +191,50 @@ const meta: Meta = {
|
|
|
181
191
|
type: { summary: 'string' },
|
|
182
192
|
},
|
|
183
193
|
},
|
|
194
|
+
|
|
195
|
+
onRowClick: {
|
|
196
|
+
description: 'Callback when a row is clicked.',
|
|
197
|
+
action: 'onRowClick',
|
|
198
|
+
control: false,
|
|
199
|
+
table: {
|
|
200
|
+
category: 'Callbacks',
|
|
201
|
+
type: { summary: '(row: Row<T>) => void' },
|
|
202
|
+
},
|
|
203
|
+
},
|
|
204
|
+
activeRows: {
|
|
205
|
+
description: 'Array of active rows.',
|
|
206
|
+
control: false,
|
|
207
|
+
table: {
|
|
208
|
+
category: 'Props',
|
|
209
|
+
type: { summary: 'string[]' },
|
|
210
|
+
},
|
|
211
|
+
},
|
|
212
|
+
onSelectAllChange: {
|
|
213
|
+
description: 'Callback when all rows are selected.',
|
|
214
|
+
action: 'onSelectAllChange',
|
|
215
|
+
control: false,
|
|
216
|
+
table: {
|
|
217
|
+
category: 'Callbacks',
|
|
218
|
+
type: { summary: '(isSelected: boolean) => void' },
|
|
219
|
+
},
|
|
220
|
+
},
|
|
221
|
+
onRowSelectionChange: {
|
|
222
|
+
description: 'Callback when a row is selected.',
|
|
223
|
+
action: 'onRowSelectionChange',
|
|
224
|
+
control: false,
|
|
225
|
+
table: {
|
|
226
|
+
category: 'Callbacks',
|
|
227
|
+
type: { summary: '(updater: Record<string, boolean>) => void' },
|
|
228
|
+
},
|
|
229
|
+
},
|
|
230
|
+
rowSelection: {
|
|
231
|
+
description: 'Row selection state.',
|
|
232
|
+
control: false,
|
|
233
|
+
table: {
|
|
234
|
+
category: 'Props',
|
|
235
|
+
type: { summary: 'Record<string, boolean>' },
|
|
236
|
+
},
|
|
237
|
+
},
|
|
184
238
|
},
|
|
185
239
|
decorators: [(Story) => <Story />],
|
|
186
240
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useEffect, useRef } from 'react';
|
|
2
2
|
|
|
3
|
-
import { useReactTable, getCoreRowModel
|
|
3
|
+
import { useReactTable, getCoreRowModel } from '@tanstack/react-table';
|
|
4
4
|
import classNames from 'classnames';
|
|
5
5
|
|
|
6
6
|
import { ActionBar } from './components/ActionBar';
|
|
@@ -11,7 +11,6 @@ import { Props } from './TankstackTable.types';
|
|
|
11
11
|
import { useTanstackTable } from './useTanstackTable';
|
|
12
12
|
import { TableHeader } from './components/TableHeader';
|
|
13
13
|
import { TableBody } from './components/TableBody';
|
|
14
|
-
import { columns } from './mock-data/table-configuration';
|
|
15
14
|
|
|
16
15
|
export function TanstackTable<T extends object>({
|
|
17
16
|
columns: defaultColumns,
|
|
@@ -32,6 +31,7 @@ export function TanstackTable<T extends object>({
|
|
|
32
31
|
defaultPinnedColumns,
|
|
33
32
|
onRowClick,
|
|
34
33
|
activeRows = [],
|
|
34
|
+
isStriped = true,
|
|
35
35
|
actionBarClassName,
|
|
36
36
|
...rest
|
|
37
37
|
}: Props<T & { id: string }>) {
|
|
@@ -135,6 +135,7 @@ export function TanstackTable<T extends object>({
|
|
|
135
135
|
<table
|
|
136
136
|
className={classNames('tanstack-table', className, {
|
|
137
137
|
'is-Loading': isLoading,
|
|
138
|
+
'is-striped': isStriped,
|
|
138
139
|
})}
|
|
139
140
|
>
|
|
140
141
|
<thead className="tanstack-table__thead">
|
|
@@ -2,23 +2,28 @@
|
|
|
2
2
|
|
|
3
3
|
:root [data-theme='light'] {
|
|
4
4
|
--pf-tanstack-table-background-color: var(--pf-white-color);
|
|
5
|
-
--pf-tanstack-table-
|
|
6
|
-
|
|
7
|
-
--pf-tanstack-table-
|
|
8
|
-
--pf-tanstack-table-
|
|
5
|
+
--pf-tanstack-table-header-background-color: var(--pf-gray-color-900);
|
|
6
|
+
|
|
7
|
+
--pf-tanstack-table-font-color: var(--pf-gray-color-300);
|
|
8
|
+
--pf-tanstack-table-border-color: var(--pf-gray-color-700);
|
|
9
|
+
--pf-tanstack-table-stripe-color: var(--pf-gray-color-950);
|
|
10
|
+
--pf-tanstack-table-hover-color: var(--pf-secondary-color-900);
|
|
9
11
|
--pf-tanstack-table-disabled-color: var(--pf-gray-color-300);
|
|
10
|
-
--pf-tanstack-table-checked-color: var(--pf-
|
|
11
|
-
--pf-tanstack-table-clicked-color: var(--pf-
|
|
12
|
-
--pf-tanstack-table-highlighted-color: var(--pf-gray-color-
|
|
13
|
-
--pf-tanstack-table-highlighted-box-shadow: 0 4px 8px rgba(0, 0, 0, 0.
|
|
14
|
-
0 8px
|
|
12
|
+
--pf-tanstack-table-checked-color: var(--pf-gray-color-900);
|
|
13
|
+
--pf-tanstack-table-clicked-color: var(--pf-gray-color-800);
|
|
14
|
+
--pf-tanstack-table-highlighted-color: var(--pf-gray-color-700);
|
|
15
|
+
--pf-tanstack-table-highlighted-box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1),
|
|
16
|
+
0 4px 8px rgba(0, 0, 0, 0.1);
|
|
15
17
|
--pf-tanstack-table-font-size: var(--pf-font-size-body2);
|
|
18
|
+
--pf-tanstack-table-pagination-background-color: var(--pf-gray-color-900);
|
|
16
19
|
}
|
|
17
20
|
|
|
18
21
|
// Dark Theme Specific Variables
|
|
19
22
|
:root [data-theme='dark'],
|
|
20
23
|
:root {
|
|
21
24
|
--pf-tanstack-table-background-color: var(--pf-primary-color-800);
|
|
25
|
+
--pf-tanstack-table-header-background-color: var(--pf-primary-color-800);
|
|
26
|
+
|
|
22
27
|
--pf-tanstack-table-font-color: var(--pf-white-color);
|
|
23
28
|
--pf-tanstack-table-border-color: var(--pf-tertiary-color-800);
|
|
24
29
|
--pf-tanstack-table-stripe-color: var(--pf-primary-color-700);
|
|
@@ -64,6 +64,16 @@
|
|
|
64
64
|
border-radius: var(--pf-rounded-lg);
|
|
65
65
|
width: 100%;
|
|
66
66
|
|
|
67
|
+
&.is-striped {
|
|
68
|
+
.tanstack-table__tbody {
|
|
69
|
+
tr:nth-child(odd) {
|
|
70
|
+
td {
|
|
71
|
+
background-color: var(--pf-tanstack-table-stripe-color);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
67
77
|
.is-loading {
|
|
68
78
|
border: var(--pf-border-thin) solid var(--pf-border-color);
|
|
69
79
|
height: 350px;
|
|
@@ -92,7 +102,7 @@
|
|
|
92
102
|
|
|
93
103
|
&__th {
|
|
94
104
|
color: var(--pf-tanstack-table-font-color);
|
|
95
|
-
background: var(--pf-tanstack-table-background-color);
|
|
105
|
+
background: var(--pf-tanstack-table-header-background-color);
|
|
96
106
|
font-size: var(--pf-tanstack-table-font-size);
|
|
97
107
|
font-weight: var(--pf-font-weight-medium);
|
|
98
108
|
box-sizing: border-box;
|
|
@@ -135,14 +145,14 @@
|
|
|
135
145
|
|
|
136
146
|
&.is-selected {
|
|
137
147
|
td {
|
|
138
|
-
background: var(--pf-tanstack-table-checked-color);
|
|
148
|
+
background: var(--pf-tanstack-table-checked-color) !important;
|
|
139
149
|
}
|
|
140
150
|
}
|
|
141
151
|
|
|
142
152
|
&.show-hover {
|
|
143
153
|
&:hover {
|
|
144
154
|
td {
|
|
145
|
-
background-color: var(--pf-tanstack-table-hover-color);
|
|
155
|
+
background-color: var(--pf-tanstack-table-hover-color) !important;
|
|
146
156
|
cursor: pointer;
|
|
147
157
|
}
|
|
148
158
|
}
|
|
@@ -150,7 +160,7 @@
|
|
|
150
160
|
|
|
151
161
|
&.is-clicked {
|
|
152
162
|
td {
|
|
153
|
-
background-color: var(--pf-tanstack-table-clicked-color);
|
|
163
|
+
background-color: var(--pf-tanstack-table-clicked-color) !important;
|
|
154
164
|
}
|
|
155
165
|
}
|
|
156
166
|
}
|
|
@@ -216,3 +226,12 @@
|
|
|
216
226
|
}
|
|
217
227
|
}
|
|
218
228
|
}
|
|
229
|
+
|
|
230
|
+
.table__pagination {
|
|
231
|
+
padding-bottom: var(--pf-padding-4);
|
|
232
|
+
padding-top: var(--pf-padding-4);
|
|
233
|
+
background-color: var(--pf-tanstack-table-pagination-background-color);
|
|
234
|
+
padding-left: var(
|
|
235
|
+
--pf-padding-4
|
|
236
|
+
); // buttons have a visual illusion of having a gap, so we add padding to adjust the left side when the total results exist
|
|
237
|
+
}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
//
|
|
2
|
-
:root
|
|
3
|
-
:
|
|
4
|
-
:
|
|
5
|
-
--toastify-color-dark: var(--pf-background-color-light);
|
|
6
|
-
--toastify-color-progress-dark: var(--pf-primary-color-400);
|
|
1
|
+
// Light Theme Specific Variables
|
|
2
|
+
:root [data-theme='light'] {
|
|
3
|
+
--toastify-color-dark: var(--pf-white-color);
|
|
4
|
+
--toastify-color-progress-dark: var(--pf-primary-color-200);
|
|
7
5
|
--toastify-icon-color-success: var(--pf-success-color);
|
|
8
6
|
--toastify-color-progress-bgo: 0.2;
|
|
7
|
+
--toastify-text-color-dark: var(
|
|
8
|
+
--pf-gray-color-600
|
|
9
|
+
); // This is accurate since the library uses css-in-js but we use data-theme instead.
|
|
9
10
|
}
|
|
10
11
|
|
|
11
12
|
// Dark Theme Specific Variables
|
|
@@ -14,4 +15,5 @@
|
|
|
14
15
|
--toastify-color-progress-dark: var(--pf-primary-color-400);
|
|
15
16
|
--toastify-icon-color-success: var(--pf-success-color);
|
|
16
17
|
--toastify-color-progress-bgo: 0.2;
|
|
18
|
+
--toastify-text-color-dark: var(--pf-font-color);
|
|
17
19
|
}
|
package/src/styles/globals.scss
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
// ***********************************************************************************************************************************
|
|
4
4
|
--pf-white-color: #ffffff;
|
|
5
5
|
--pf-black-color: #000000;
|
|
6
|
-
--pf-background-color-light: var(--pf-gray-color-
|
|
6
|
+
--pf-background-color-light: var(--pf-gray-color-900);
|
|
7
7
|
--pf-background-color: var(--pf-white-color);
|
|
8
|
-
--pf-background-color-dark: var(--pf-gray-color-
|
|
8
|
+
--pf-background-color-dark: var(--pf-gray-color-100);
|
|
9
9
|
--pf-background-secondary-color-light: var(--pf-secondary-color-300);
|
|
10
10
|
--pf-background-color-secondary: var(--pf-secondary-color-500);
|
|
11
11
|
--pf-background-color-secondary-dark: var(--pf-secondary-color-900);
|