@entur-partner/common 6.0.0 → 6.0.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/dist/ActionBar.d.ts +4 -4
- package/dist/Box.d.ts +22 -22
- package/dist/ConfirmModal.d.ts +1 -1
- package/dist/ErrorBoundary.d.ts +4 -4
- package/dist/ExpandableMultiLanguageInput.d.ts +3 -3
- package/dist/FeatureToggle.d.ts +2 -2
- package/dist/LanguageSelect.d.ts +1 -1
- package/dist/LinkButton.d.ts +2 -2
- package/dist/MultiLanguageInput.d.ts +1 -1
- package/dist/PageTitle.d.ts +3 -2
- package/dist/Stack.d.ts +2 -2
- package/dist/Text.d.ts +6 -6
- package/dist/common.cjs.development.js +172 -277
- package/dist/common.cjs.development.js.map +1 -1
- package/dist/common.cjs.production.min.js +1 -1
- package/dist/common.cjs.production.min.js.map +1 -1
- package/dist/common.esm.js +174 -278
- package/dist/common.esm.js.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/styles.css +64 -64
- package/package.json +3 -3
- package/dist/PermissionCheckedRoute.d.ts +0 -11
package/dist/styles.css
CHANGED
|
@@ -11,6 +11,19 @@ main .eds-table--sticky-header--active .eds-table__head,
|
|
|
11
11
|
top: 1rem;
|
|
12
12
|
}/* DO NOT CHANGE!*/
|
|
13
13
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
14
|
+
button.eps-link-button {
|
|
15
|
+
cursor: pointer;
|
|
16
|
+
}
|
|
17
|
+
button.eps-link-button, button.eps-link-button:hover, button.eps-link-button:focus, button.eps-link-button:active:focus, button.eps-link-button:active:hover, button.eps-link-button:active {
|
|
18
|
+
background: none;
|
|
19
|
+
background-color: inherit;
|
|
20
|
+
border: none;
|
|
21
|
+
padding: 0;
|
|
22
|
+
}
|
|
23
|
+
button.eps-link-button:hover {
|
|
24
|
+
color: #aeb7e2;
|
|
25
|
+
}/* DO NOT CHANGE!*/
|
|
26
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
14
27
|
/* DO NOT CHANGE!*/
|
|
15
28
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
16
29
|
.eps-action-bar {
|
|
@@ -45,30 +58,6 @@ main .eds-table--sticky-header--active .eds-table__head,
|
|
|
45
58
|
height: 100px;
|
|
46
59
|
}/* DO NOT CHANGE!*/
|
|
47
60
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
48
|
-
/* DO NOT CHANGE!*/
|
|
49
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
50
|
-
.eps-content {
|
|
51
|
-
margin: 1rem;
|
|
52
|
-
}
|
|
53
|
-
@media screen and (min-width: 50rem) {
|
|
54
|
-
.eps-content {
|
|
55
|
-
margin: 1.5rem 1.5rem 1.5rem 22rem;
|
|
56
|
-
}
|
|
57
|
-
}/* DO NOT CHANGE!*/
|
|
58
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
59
|
-
button.eps-link-button {
|
|
60
|
-
cursor: pointer;
|
|
61
|
-
}
|
|
62
|
-
button.eps-link-button, button.eps-link-button:hover, button.eps-link-button:focus, button.eps-link-button:active:focus, button.eps-link-button:active:hover, button.eps-link-button:active {
|
|
63
|
-
background: none;
|
|
64
|
-
background-color: inherit;
|
|
65
|
-
border: none;
|
|
66
|
-
padding: 0;
|
|
67
|
-
}
|
|
68
|
-
button.eps-link-button:hover {
|
|
69
|
-
color: #aeb7e2;
|
|
70
|
-
}/* DO NOT CHANGE!*/
|
|
71
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
72
61
|
.eps-logo-wrapper {
|
|
73
62
|
display: inline-block;
|
|
74
63
|
}
|
|
@@ -95,24 +84,15 @@ button.eps-link-button:hover {
|
|
|
95
84
|
}
|
|
96
85
|
}/* DO NOT CHANGE!*/
|
|
97
86
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
flex: initial;
|
|
87
|
+
/* DO NOT CHANGE!*/
|
|
88
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
89
|
+
.eps-content {
|
|
90
|
+
margin: 1rem;
|
|
103
91
|
}
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
background-color: inherit;
|
|
109
|
-
color: inherit;
|
|
110
|
-
border: none;
|
|
111
|
-
padding: 0;
|
|
112
|
-
font: inherit;
|
|
113
|
-
outline: inherit;
|
|
114
|
-
height: inherit;
|
|
115
|
-
min-width: inherit;
|
|
92
|
+
@media screen and (min-width: 50rem) {
|
|
93
|
+
.eps-content {
|
|
94
|
+
margin: 1.5rem 1.5rem 1.5rem 22rem;
|
|
95
|
+
}
|
|
116
96
|
}.multi-language-input:focus {
|
|
117
97
|
outline: none;
|
|
118
98
|
}/* DO NOT CHANGE!*/
|
|
@@ -209,6 +189,26 @@ button.eps-link-button:hover {
|
|
|
209
189
|
border: solid 0.0625rem #54568c;
|
|
210
190
|
}/* DO NOT CHANGE!*/
|
|
211
191
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
192
|
+
.eps-language-select {
|
|
193
|
+
color: #181c56;
|
|
194
|
+
}
|
|
195
|
+
.eps-language-select label {
|
|
196
|
+
flex: initial;
|
|
197
|
+
}
|
|
198
|
+
.eps-language-select .asterisk-margin {
|
|
199
|
+
margin-left: 0.125rem;
|
|
200
|
+
}.eps-unbutton, .eps-unbutton:hover, .eps-unbutton:focus, .eps-unbutton:active:focus, .eps-unbutton:active:hover, .eps-unbutton:active {
|
|
201
|
+
background: none;
|
|
202
|
+
background-color: inherit;
|
|
203
|
+
color: inherit;
|
|
204
|
+
border: none;
|
|
205
|
+
padding: 0;
|
|
206
|
+
font: inherit;
|
|
207
|
+
outline: inherit;
|
|
208
|
+
height: inherit;
|
|
209
|
+
min-width: inherit;
|
|
210
|
+
}/* DO NOT CHANGE!*/
|
|
211
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
212
212
|
.ep-audit-info {
|
|
213
213
|
float: right;
|
|
214
214
|
margin-top: 1rem;
|
|
@@ -228,6 +228,29 @@ button.eps-link-button:hover {
|
|
|
228
228
|
margin-bottom: 1rem;
|
|
229
229
|
}/* DO NOT CHANGE!*/
|
|
230
230
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
231
|
+
.eps-status-label {
|
|
232
|
+
display: flex;
|
|
233
|
+
align-items: center;
|
|
234
|
+
}
|
|
235
|
+
.eps-status-label.center {
|
|
236
|
+
justify-content: center;
|
|
237
|
+
}
|
|
238
|
+
.eps-status-label__bullet {
|
|
239
|
+
padding: 5px;
|
|
240
|
+
margin-bottom: 4px;
|
|
241
|
+
border-radius: 50%;
|
|
242
|
+
background: #d1d3d3;
|
|
243
|
+
margin-right: 10px;
|
|
244
|
+
}
|
|
245
|
+
.eps-status-label__bullet.aggressive {
|
|
246
|
+
background: #ff5959;
|
|
247
|
+
}
|
|
248
|
+
.eps-status-label__bullet.active {
|
|
249
|
+
background: #1a8e60;
|
|
250
|
+
}ol.eds-breadcrumbs {
|
|
251
|
+
padding: 0;
|
|
252
|
+
}/* DO NOT CHANGE!*/
|
|
253
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
231
254
|
/* DO NOT CHANGE!*/
|
|
232
255
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
233
256
|
.eps-pt-none {
|
|
@@ -2748,27 +2771,4 @@ button.eps-link-button:hover {
|
|
|
2748
2771
|
|
|
2749
2772
|
.eps-font-weight-heading {
|
|
2750
2773
|
font-weight: 1rem;
|
|
2751
|
-
}/* DO NOT CHANGE!*/
|
|
2752
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
2753
|
-
.eps-status-label {
|
|
2754
|
-
display: flex;
|
|
2755
|
-
align-items: center;
|
|
2756
|
-
}
|
|
2757
|
-
.eps-status-label.center {
|
|
2758
|
-
justify-content: center;
|
|
2759
|
-
}
|
|
2760
|
-
.eps-status-label__bullet {
|
|
2761
|
-
padding: 5px;
|
|
2762
|
-
margin-bottom: 4px;
|
|
2763
|
-
border-radius: 50%;
|
|
2764
|
-
background: #d1d3d3;
|
|
2765
|
-
margin-right: 10px;
|
|
2766
|
-
}
|
|
2767
|
-
.eps-status-label__bullet.aggressive {
|
|
2768
|
-
background: #ff5959;
|
|
2769
|
-
}
|
|
2770
|
-
.eps-status-label__bullet.active {
|
|
2771
|
-
background: #1a8e60;
|
|
2772
|
-
}ol.eds-breadcrumbs {
|
|
2773
|
-
padding: 0;
|
|
2774
2774
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@entur-partner/common",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.1",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/common.esm.js",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@entur/tokens": "3.12.0",
|
|
46
46
|
"identity-obj-proxy": "3.0.0",
|
|
47
47
|
"react-helmet-async": "1.3.0",
|
|
48
|
-
"react-router-dom": "6.22.
|
|
48
|
+
"react-router-dom": "6.22.1"
|
|
49
49
|
},
|
|
50
50
|
"jest": {
|
|
51
51
|
"moduleNameMapper": {
|
|
@@ -60,5 +60,5 @@
|
|
|
60
60
|
"reportFile": "jest-sonar-report.xml",
|
|
61
61
|
"indent": 4
|
|
62
62
|
},
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "c691310480d1a3416eb5d2d2a3a7ceaba47ffda1"
|
|
64
64
|
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { BusinessCapability } from '@entur-partner/permission-client-node';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { PathRouteProps } from 'react-router-dom';
|
|
4
|
-
interface PermissionCheckedRouteProps extends PathRouteProps, Omit<PathRouteProps, 'location'> {
|
|
5
|
-
actualPermissions: BusinessCapability[];
|
|
6
|
-
all?: BusinessCapability[];
|
|
7
|
-
oneOf?: BusinessCapability[];
|
|
8
|
-
onReject?: React.ReactNode;
|
|
9
|
-
}
|
|
10
|
-
export declare const PermissionCheckedRoute: ({ children, actualPermissions, all, oneOf, onReject, ...props }: PermissionCheckedRouteProps) => JSX.Element;
|
|
11
|
-
export {};
|