@entur/table 5.1.0 → 5.2.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.
@@ -0,0 +1,248 @@
1
+ [data-color-mode=light],
2
+ :root{
3
+ --components-table-contrast-cell-fill:rgba(255, 255, 255, 0);
4
+ --components-table-contrast-cell-fill-hover:#393d79;
5
+ --components-table-contrast-cell-fill-negative:#2e0505;
6
+ --components-table-contrast-header-fill:#181c56;
7
+ --components-table-contrast-icon:#ffffff;
8
+ --components-table-contrast-stroke:#8284ab;
9
+ --components-table-contrast-text:#ffffff;
10
+ --components-table-standard-cell-fill:rgba(255, 255, 255, 0);
11
+ --components-table-standard-cell-fill-hover:#f2f5f7;
12
+ --components-table-standard-fill-negative:#ffcece;
13
+ --components-table-standard-header-fill:#ffffff;
14
+ --components-table-standard-icon:#181c56;
15
+ --components-table-standard-stroke:#e3e6e8;
16
+ --components-table-standard-text:#181c56;
17
+ }
18
+
19
+ [data-color-mode=dark]{
20
+ --components-table-contrast-cell-fill:rgba(255, 255, 255, 0);
21
+ --components-table-contrast-cell-fill-hover:rgba(229, 229, 233, 0.1490196078);
22
+ --components-table-contrast-cell-fill-negative:#2e0505;
23
+ --components-table-contrast-header-fill:#08091c;
24
+ --components-table-contrast-icon:#e5e5e9;
25
+ --components-table-contrast-stroke:#81828f;
26
+ --components-table-contrast-text:#e5e5e9;
27
+ --components-table-standard-cell-fill:rgba(255, 255, 255, 0);
28
+ --components-table-standard-cell-fill-hover:rgba(229, 229, 233, 0.1490196078);
29
+ --components-table-standard-fill-negative:#2e0505;
30
+ --components-table-standard-header-fill:#08091c;
31
+ --components-table-standard-icon:#e5e5e9;
32
+ --components-table-standard-stroke:#81828f;
33
+ --components-table-standard-text:#e5e5e9;
34
+ }
35
+
36
+ :root{
37
+ --eds-table:1;
38
+ }
39
+
40
+ .eds-table{
41
+ border-collapse:collapse;
42
+ width:100%;
43
+ }
44
+ .eds-table--fixed{
45
+ table-layout:fixed;
46
+ }
47
+ .eds-table--sticky-header{
48
+ position:relative;
49
+ }
50
+ .eds-table__data-cell{
51
+ height:3.75rem;
52
+ padding:1rem 1.5rem;
53
+ }
54
+ .eds-contrast .eds-table__data-cell{
55
+ border-bottom-color:#8284ab;
56
+ border-bottom-color:var(--components-table-contrast-stroke);
57
+ }
58
+ .eds-table--middle .eds-table__data-cell{
59
+ padding:0.5rem 1rem;
60
+ height:3rem;
61
+ }
62
+ .eds-table--small .eds-table__data-cell{
63
+ padding:0.25rem 1rem;
64
+ height:2rem;
65
+ }
66
+ .eds-table__data-cell--padding-checkbox{
67
+ width:3rem;
68
+ padding:0.5rem 0 0.75rem 1.25rem;
69
+ }
70
+ .eds-table__data-cell--padding-radio{
71
+ width:3rem;
72
+ padding:1rem 0 1rem 1.25rem;
73
+ }
74
+ .eds-table__data-cell--padding-overflow-menu{
75
+ width:3rem;
76
+ padding:1rem 0.75rem;
77
+ }
78
+ .eds-table__body > .eds-table__row{
79
+ border-bottom:0.0625rem solid #e3e6e8;
80
+ border-bottom:0.0625rem solid var(--components-table-standard-stroke);
81
+ }
82
+ .eds-contrast .eds-table__body > .eds-table__row{
83
+ border-color:#8284ab;
84
+ border-color:var(--components-table-contrast-stroke);
85
+ }
86
+ .eds-table__body > .eds-table__row:focus-visible{
87
+ outline:2px solid #181c56;
88
+ outline-color:#181c56;
89
+ outline-color:var(--basecolors-stroke-focus-standard);
90
+ outline-offset:0.125rem;
91
+ }
92
+ .eds-contrast .eds-table__body > .eds-table__row:focus-visible{
93
+ outline-color:#aeb7e2;
94
+ outline-color:var(--basecolors-stroke-focus-contrast);
95
+ }
96
+ .eds-table__body > .eds-table__row--hover:hover{
97
+ background:#f2f5f7;
98
+ background:var(--components-table-standard-cell-fill-hover);
99
+ }
100
+ .eds-contrast .eds-table__body > .eds-table__row--hover:hover{
101
+ background:#393d79;
102
+ background:var(--components-table-contrast-cell-fill-hover);
103
+ }
104
+ .eds-table__body > .eds-table__row--active{
105
+ background:#f2f5f7;
106
+ background:var(--components-table-standard-cell-fill-hover);
107
+ }
108
+ .eds-contrast .eds-table__body > .eds-table__row--active{
109
+ background:#393d79;
110
+ background:var(--components-table-contrast-cell-fill-hover);
111
+ }
112
+ .eds-table__body > .eds-table__row--error{
113
+ background:#ffcece;
114
+ background:var(--components-table-standard-fill-negative);
115
+ }
116
+ .eds-contrast .eds-table__body > .eds-table__row--error{
117
+ background:#2e0505;
118
+ background:var(--components-table-contrast-cell-fill-negative);
119
+ }
120
+ .eds-table__head{
121
+ border-bottom:0.125rem solid #e3e6e8;
122
+ border-bottom:0.125rem solid var(--components-table-standard-stroke);
123
+ }
124
+ .eds-contrast .eds-table__head{
125
+ border-color:#8284ab;
126
+ border-color:var(--components-table-contrast-stroke);
127
+ }
128
+ .eds-table--sticky-header .eds-table__head{
129
+ position:-webkit-sticky;
130
+ position:sticky;
131
+ top:0;
132
+ z-index:2;
133
+ }
134
+ .eds-table--sticky-header--active .eds-table__head{
135
+ -webkit-box-shadow:0 10px 8px -10px rgba(0, 0, 0, 0.15);
136
+ -moz-box-shadow:0 10px 8px -10px rgba(0, 0, 0, 0.15);
137
+ box-shadow:0 10px 8px -10px rgba(0, 0, 0, 0.15);
138
+ border-bottom:none;
139
+ }.eds-table__header-cell{
140
+ color:var(--components-table-standard-text);
141
+ font-size:1rem;
142
+ font-weight:600;
143
+ text-align:left;
144
+ height:3rem;
145
+ padding:0 1.5rem;
146
+ }
147
+ .eds-table--middle .eds-table__header-cell, .eds-table--small .eds-table__header-cell{
148
+ padding:0 1rem;
149
+ }
150
+ .eds-contrast .eds-table__header-cell{
151
+ color:var(--components-table-contrast-text);
152
+ border-bottom-color:var(--components-table-contrast-stroke);
153
+ }
154
+ .eds-table__header-cell--padding-checkbox{
155
+ width:3rem;
156
+ padding:0 0 1rem 1.25rem;
157
+ }
158
+ .eds-table__header-cell--padding-radio{
159
+ width:3rem;
160
+ padding:0 0 1rem 1.25rem;
161
+ }
162
+ .eds-table__header-cell--padding-overflow-menu{
163
+ width:3rem;
164
+ padding:1rem 0.75rem;
165
+ }
166
+ .eds-table__header-cell--sortable:focus-visible{
167
+ outline:2px solid #181c56;
168
+ outline-color:var(--basecolors-stroke-focus-standard);
169
+ outline-offset:0.125rem;
170
+ }
171
+ .eds-contrast .eds-table__header-cell--sortable:focus-visible{
172
+ outline-color:var(--basecolors-stroke-focus-contrast);
173
+ }
174
+ .eds-table__header-cell-button{
175
+ position:relative;
176
+ text-align:left;
177
+ height:100%;
178
+ width:100%;
179
+ padding:0;
180
+ cursor:pointer;
181
+ -webkit-appearance:none;
182
+ -moz-appearance:none;
183
+ appearance:none;
184
+ border:none;
185
+ background:none;
186
+ color:inherit;
187
+ font-size:inherit;
188
+ font-weight:inherit;
189
+ font-family:inherit;
190
+ }
191
+ .eds-table__header-cell-button-icon{
192
+ position:absolute;
193
+ margin-left:0.25rem;
194
+ }
195
+ .eds-table__header-cell-button:focus-visible{
196
+ outline:2px solid #181c56;
197
+ outline-color:var(--basecolors-stroke-focus-standard);
198
+ outline-offset:0.125rem;
199
+ }
200
+ .eds-contrast .eds-table__header-cell-button:focus-visible{
201
+ outline-color:var(--basecolors-stroke-focus-contrast);
202
+ }
203
+ .eds-table--sticky-header .eds-table__header-cell{
204
+ background-color:var(--components-table-standard-header-fill);
205
+ position:-webkit-sticky;
206
+ position:sticky;
207
+ top:0;
208
+ }
209
+ .eds-contrast .eds-table--sticky-header .eds-table__header-cell{
210
+ background-color:var(--components-table-contrast-header-fill);
211
+ }.eds-editable-cell{
212
+ padding:0.25rem 0.75rem;
213
+ }
214
+ .eds-table--middle .eds-editable-cell{
215
+ padding:0.25rem 0.5rem;
216
+ }
217
+ .eds-table--small .eds-editable-cell{
218
+ padding:0.125rem 0.5rem;
219
+ }
220
+ .eds-editable-cell .eds-form-control-wrapper:not(.eds-datepicker__datefield){
221
+ min-height:0;
222
+ }
223
+ .eds-editable-cell .eds-form-control-wrapper:not(.eds-datepicker__datefield) .eds-form-control{
224
+ padding:0.75rem;
225
+ }
226
+ .eds-table--middle .eds-editable-cell .eds-form-control-wrapper:not(.eds-datepicker__datefield) .eds-form-control{
227
+ padding:0.25rem -webkit-calc(0.5rem - 0.0625rem);
228
+ padding:0.25rem -moz-calc(0.5rem - 0.0625rem);
229
+ padding:0.25rem calc(0.5rem - 0.0625rem);
230
+ }
231
+ .eds-table--small .eds-editable-cell .eds-form-control-wrapper:not(.eds-datepicker__datefield) .eds-form-control{
232
+ padding:-webkit-calc(0.25rem - 0.125rem) -webkit-calc(0.5rem - 0.0625rem);
233
+ padding:-moz-calc(0.25rem - 0.125rem) -moz-calc(0.5rem - 0.0625rem);
234
+ padding:calc(0.25rem - 0.125rem) calc(0.5rem - 0.0625rem);
235
+ }.eds-expand-row-button__icon{
236
+ -webkit-transition:-webkit-transform ease-in-out 0.2s;
237
+ transition:-webkit-transform ease-in-out 0.2s;
238
+ -o-transition:-o-transform ease-in-out 0.2s;
239
+ -moz-transition:transform ease-in-out 0.2s, -moz-transform ease-in-out 0.2s;
240
+ transition:transform ease-in-out 0.2s;
241
+ transition:transform ease-in-out 0.2s, -webkit-transform ease-in-out 0.2s, -moz-transform ease-in-out 0.2s, -o-transform ease-in-out 0.2s;
242
+ }
243
+ .eds-expand-row-button--open .eds-expand-row-button__icon{
244
+ -webkit-transform:rotate(180deg);
245
+ -moz-transform:rotate(180deg);
246
+ -o-transform:rotate(180deg);
247
+ transform:rotate(180deg);
248
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@entur/table",
3
- "version": "5.1.0",
3
+ "version": "5.2.0",
4
4
  "license": "EUPL-1.2",
5
5
  "main": "dist/table.cjs",
6
6
  "module": "dist/table.mjs",
@@ -26,15 +26,15 @@
26
26
  "react-dom": ">=18.0.0"
27
27
  },
28
28
  "dependencies": {
29
- "@entur/a11y": "^0.3.5",
30
- "@entur/button": "^5.1.0",
31
- "@entur/expand": "^4.0.6",
32
- "@entur/form": "^10.2.0",
33
- "@entur/icons": "^10.0.5",
34
- "@entur/layout": "^5.0.0",
35
- "@entur/tokens": "^4.2.0",
36
- "@entur/tooltip": "^6.0.6",
37
- "@entur/utils": "^0.15.2",
29
+ "@entur/a11y": "^0.4.0",
30
+ "@entur/button": "^5.2.0",
31
+ "@entur/expand": "^4.1.0",
32
+ "@entur/form": "^10.3.0",
33
+ "@entur/icons": "^10.1.0",
34
+ "@entur/layout": "^5.1.0",
35
+ "@entur/tokens": "^4.3.0",
36
+ "@entur/tooltip": "^6.1.0",
37
+ "@entur/utils": "^0.15.3",
38
38
  "classnames": "^2.5.1",
39
39
  "lodash.get": "^4.4.2"
40
40
  },
@@ -59,8 +59,10 @@
59
59
  "default": "./dist/table.mjs"
60
60
  },
61
61
  "./styles": "./dist/styles.css",
62
+ "./styles/no-base-tokens": "./dist/styles.no-base-tokens.css",
62
63
  "./dist/styles.css": "./dist/styles.css",
64
+ "./dist/styles.no-base-tokens.css": "./dist/styles.no-base-tokens.css",
63
65
  "./package.json": "./package.json"
64
66
  },
65
- "gitHead": "d0826c31ddea916a35916910dcba76a705e3f8ee"
67
+ "gitHead": "8caab317746945d60c1c6341ea8148a73a464db2"
66
68
  }