@entur-partner/common 5.2.0 → 5.3.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.
- package/dist/PageTitle.d.ts +14 -0
- package/dist/common.cjs.development.js +31 -8
- 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 +32 -10
- package/dist/common.esm.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/styles.css +153 -153
- package/package.json +5 -3
package/dist/styles.css
CHANGED
|
@@ -11,14 +11,6 @@ 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
|
-
.eps-logo-wrapper {
|
|
15
|
-
display: inline-block;
|
|
16
|
-
}
|
|
17
|
-
.eps-logo-wrapper .logo {
|
|
18
|
-
height: auto;
|
|
19
|
-
width: 170px;
|
|
20
|
-
}/* DO NOT CHANGE!*/
|
|
21
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
22
14
|
button.eps-link-button {
|
|
23
15
|
cursor: pointer;
|
|
24
16
|
}
|
|
@@ -34,6 +26,48 @@ button.eps-link-button:hover {
|
|
|
34
26
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
35
27
|
/* DO NOT CHANGE!*/
|
|
36
28
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
29
|
+
.eps-action-bar {
|
|
30
|
+
position: fixed;
|
|
31
|
+
bottom: 0;
|
|
32
|
+
left: 0;
|
|
33
|
+
right: 0;
|
|
34
|
+
background-color: #f8f8f8;
|
|
35
|
+
border-top: 2px solid #e9e9e9;
|
|
36
|
+
padding: 15px 15px 15px 80px;
|
|
37
|
+
display: flex;
|
|
38
|
+
justify-content: space-between;
|
|
39
|
+
z-index: 3;
|
|
40
|
+
}
|
|
41
|
+
@media screen and (min-width: 50rem) {
|
|
42
|
+
.eps-action-bar {
|
|
43
|
+
left: 20rem;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
.eps-action-bar-right {
|
|
47
|
+
display: flex;
|
|
48
|
+
align-items: flex-start;
|
|
49
|
+
}
|
|
50
|
+
.eps-action-bar-right > *:not(:first-child) {
|
|
51
|
+
margin-left: 1rem;
|
|
52
|
+
}
|
|
53
|
+
.eps-action-bar-left > *:not(:first-child) {
|
|
54
|
+
margin-left: 1rem;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.eps-action-bar-padding {
|
|
58
|
+
height: 100px;
|
|
59
|
+
}/* DO NOT CHANGE!*/
|
|
60
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
61
|
+
.eps-logo-wrapper {
|
|
62
|
+
display: inline-block;
|
|
63
|
+
}
|
|
64
|
+
.eps-logo-wrapper .logo {
|
|
65
|
+
height: auto;
|
|
66
|
+
width: 170px;
|
|
67
|
+
}/* DO NOT CHANGE!*/
|
|
68
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
69
|
+
/* DO NOT CHANGE!*/
|
|
70
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
37
71
|
.eps-menu {
|
|
38
72
|
position: relative;
|
|
39
73
|
width: 100%;
|
|
@@ -48,8 +82,6 @@ button.eps-link-button:hover {
|
|
|
48
82
|
width: 20rem;
|
|
49
83
|
overflow-y: scroll;
|
|
50
84
|
}
|
|
51
|
-
}.multi-language-input:focus {
|
|
52
|
-
outline: none;
|
|
53
85
|
}/* DO NOT CHANGE!*/
|
|
54
86
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
55
87
|
/* DO NOT CHANGE!*/
|
|
@@ -63,38 +95,98 @@ button.eps-link-button:hover {
|
|
|
63
95
|
}
|
|
64
96
|
}/* DO NOT CHANGE!*/
|
|
65
97
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
.
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
98
|
+
/**
|
|
99
|
+
PS! We use #eps-user-menu to prevent the micro frontends overriding the styles. By using
|
|
100
|
+
an id we have a higher specificity. We should explore a better solution later. Ideally
|
|
101
|
+
each micro frontend should be contained by a ShadowDom, but there are too many gotchas
|
|
102
|
+
running React in ShadowDom for now.
|
|
103
|
+
*/
|
|
104
|
+
#eps-user-menu {
|
|
105
|
+
z-index: 50;
|
|
106
|
+
}
|
|
107
|
+
#eps-user-menu .eps-user-menu__trigger-button {
|
|
108
|
+
border: none;
|
|
109
|
+
width: 100%;
|
|
110
|
+
}
|
|
111
|
+
#eps-user-menu .eps-user-menu__trigger-button .eds-overflow-menu__user-icon {
|
|
112
|
+
margin-right: 0.75rem;
|
|
113
|
+
padding: 0.5rem;
|
|
114
|
+
background: #393d79;
|
|
115
|
+
border-radius: 50%;
|
|
116
|
+
color: #ffffff;
|
|
117
|
+
height: 2.5rem;
|
|
118
|
+
width: 2.5rem;
|
|
119
|
+
}
|
|
120
|
+
#eps-user-menu .eps-user-menu__trigger-button[aria-expanded=true] .eps-arrow-icon svg {
|
|
121
|
+
transform: rotate(180deg);
|
|
122
|
+
color: #ffffff;
|
|
123
|
+
}
|
|
124
|
+
#eps-user-menu .eps-overflow-menu {
|
|
76
125
|
display: flex;
|
|
77
|
-
|
|
78
|
-
z-index: 3;
|
|
126
|
+
flex-direction: column;
|
|
79
127
|
}
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
128
|
+
#eps-user-menu .eps-overflow-menu__group {
|
|
129
|
+
display: none;
|
|
130
|
+
flex-direction: column;
|
|
131
|
+
z-index: 20;
|
|
84
132
|
}
|
|
85
|
-
.eps-
|
|
133
|
+
#eps-user-menu .eps-overflow-menu__group--open {
|
|
86
134
|
display: flex;
|
|
87
|
-
align-items: flex-start;
|
|
88
135
|
}
|
|
89
|
-
|
|
90
|
-
|
|
136
|
+
#eps-user-menu .eps-overflow-menu__button {
|
|
137
|
+
padding-left: 0.25rem;
|
|
91
138
|
}
|
|
92
|
-
.eps-
|
|
93
|
-
|
|
139
|
+
#eps-user-menu .eps-overflow-menu__button:active .eps-overflow-menu__button-contens {
|
|
140
|
+
color: #181c56;
|
|
141
|
+
}
|
|
142
|
+
#eps-user-menu .eps-overflow-menu__button-contents {
|
|
143
|
+
display: flex;
|
|
144
|
+
justify-content: flex-start;
|
|
145
|
+
align-items: center;
|
|
146
|
+
}
|
|
147
|
+
#eps-user-menu .eps-overflow-menu__item {
|
|
148
|
+
appearance: none;
|
|
149
|
+
border: none;
|
|
150
|
+
font-size: 0.875rem;
|
|
151
|
+
font-family: inherit;
|
|
152
|
+
color: #181c56;
|
|
153
|
+
background: #f8f8f8;
|
|
154
|
+
display: block;
|
|
155
|
+
height: 3rem;
|
|
156
|
+
cursor: pointer;
|
|
157
|
+
width: 100%;
|
|
158
|
+
line-height: 1.25rem;
|
|
159
|
+
text-align: left;
|
|
160
|
+
padding: 0.5rem 1rem;
|
|
161
|
+
}
|
|
162
|
+
#eps-user-menu .eps-overflow-menu__item .eps-version-icon {
|
|
163
|
+
transform: rotate(90deg);
|
|
164
|
+
}
|
|
165
|
+
#eps-user-menu .eps-overflow-menu__item .eds-icon {
|
|
166
|
+
font-size: 1rem;
|
|
167
|
+
margin-right: 0.75rem;
|
|
168
|
+
}
|
|
169
|
+
#eps-user-menu .eps-overflow-menu__item:focus {
|
|
170
|
+
outline: none;
|
|
171
|
+
box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
|
|
172
|
+
}
|
|
173
|
+
#eps-user-menu .eps-overflow-menu__item:hover {
|
|
174
|
+
background: #d1d3d3;
|
|
94
175
|
}
|
|
95
176
|
|
|
96
|
-
|
|
97
|
-
|
|
177
|
+
#eps-overflow-menu {
|
|
178
|
+
position: absolute;
|
|
179
|
+
width: 14rem;
|
|
180
|
+
z-index: 20;
|
|
181
|
+
}
|
|
182
|
+
#eps-overflow-menu .eps-overflow-menu__icon-margin {
|
|
183
|
+
margin-right: 0.75rem;
|
|
184
|
+
}
|
|
185
|
+
#eps-overflow-menu .eps-overflow-menu__item {
|
|
186
|
+
border-radius: 0.25rem;
|
|
187
|
+
border: solid 0.0625rem #54568c;
|
|
188
|
+
}.multi-language-input:focus {
|
|
189
|
+
outline: none;
|
|
98
190
|
}/* DO NOT CHANGE!*/
|
|
99
191
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
100
192
|
.eps-language-select {
|
|
@@ -105,21 +197,20 @@ button.eps-link-button:hover {
|
|
|
105
197
|
}
|
|
106
198
|
.eps-language-select .asterisk-margin {
|
|
107
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;
|
|
108
210
|
}/* DO NOT CHANGE!*/
|
|
109
211
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
110
|
-
.
|
|
111
|
-
|
|
112
|
-
margin-top: 1rem;
|
|
113
|
-
font-size: 0.875rem;
|
|
114
|
-
}
|
|
115
|
-
.ep-audit-info > div {
|
|
116
|
-
display: flex;
|
|
117
|
-
justify-content: space-between;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
.ep-audit-info-label {
|
|
121
|
-
margin-right: 3rem;
|
|
122
|
-
font-weight: 600;
|
|
212
|
+
.eps-confirm-modal-content {
|
|
213
|
+
margin-bottom: 1rem;
|
|
123
214
|
}/* DO NOT CHANGE!*/
|
|
124
215
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
125
216
|
.eps-status-label {
|
|
@@ -141,20 +232,21 @@ button.eps-link-button:hover {
|
|
|
141
232
|
}
|
|
142
233
|
.eps-status-label__bullet.active {
|
|
143
234
|
background: #1a8e60;
|
|
144
|
-
}.eps-unbutton, .eps-unbutton:hover, .eps-unbutton:focus, .eps-unbutton:active:focus, .eps-unbutton:active:hover, .eps-unbutton:active {
|
|
145
|
-
background: none;
|
|
146
|
-
background-color: inherit;
|
|
147
|
-
color: inherit;
|
|
148
|
-
border: none;
|
|
149
|
-
padding: 0;
|
|
150
|
-
font: inherit;
|
|
151
|
-
outline: inherit;
|
|
152
|
-
height: inherit;
|
|
153
|
-
min-width: inherit;
|
|
154
235
|
}/* DO NOT CHANGE!*/
|
|
155
236
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
156
|
-
.
|
|
157
|
-
|
|
237
|
+
.ep-audit-info {
|
|
238
|
+
float: right;
|
|
239
|
+
margin-top: 1rem;
|
|
240
|
+
font-size: 0.875rem;
|
|
241
|
+
}
|
|
242
|
+
.ep-audit-info > div {
|
|
243
|
+
display: flex;
|
|
244
|
+
justify-content: space-between;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.ep-audit-info-label {
|
|
248
|
+
margin-right: 3rem;
|
|
249
|
+
font-weight: 600;
|
|
158
250
|
}/* DO NOT CHANGE!*/
|
|
159
251
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
160
252
|
/* DO NOT CHANGE!*/
|
|
@@ -2401,8 +2493,6 @@ button.eps-link-button:hover {
|
|
|
2401
2493
|
|
|
2402
2494
|
.eps-bg-lavender {
|
|
2403
2495
|
background-color: #aeb7e2;
|
|
2404
|
-
}ol.eds-breadcrumbs {
|
|
2405
|
-
padding: 0;
|
|
2406
2496
|
}/* DO NOT CHANGE!*/
|
|
2407
2497
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
2408
2498
|
/* DO NOT CHANGE!*/
|
|
@@ -2679,96 +2769,6 @@ button.eps-link-button:hover {
|
|
|
2679
2769
|
|
|
2680
2770
|
.eps-font-weight-heading {
|
|
2681
2771
|
font-weight: 1rem;
|
|
2682
|
-
}
|
|
2683
|
-
|
|
2684
|
-
/**
|
|
2685
|
-
PS! We use #eps-user-menu to prevent the micro frontends overriding the styles. By using
|
|
2686
|
-
an id we have a higher specificity. We should explore a better solution later. Ideally
|
|
2687
|
-
each micro frontend should be contained by a ShadowDom, but there are too many gotchas
|
|
2688
|
-
running React in ShadowDom for now.
|
|
2689
|
-
*/
|
|
2690
|
-
#eps-user-menu {
|
|
2691
|
-
z-index: 50;
|
|
2692
|
-
}
|
|
2693
|
-
#eps-user-menu .eps-user-menu__trigger-button {
|
|
2694
|
-
border: none;
|
|
2695
|
-
width: 100%;
|
|
2696
|
-
}
|
|
2697
|
-
#eps-user-menu .eps-user-menu__trigger-button .eds-overflow-menu__user-icon {
|
|
2698
|
-
margin-right: 0.75rem;
|
|
2699
|
-
padding: 0.5rem;
|
|
2700
|
-
background: #393d79;
|
|
2701
|
-
border-radius: 50%;
|
|
2702
|
-
color: #ffffff;
|
|
2703
|
-
height: 2.5rem;
|
|
2704
|
-
width: 2.5rem;
|
|
2705
|
-
}
|
|
2706
|
-
#eps-user-menu .eps-user-menu__trigger-button[aria-expanded=true] .eps-arrow-icon svg {
|
|
2707
|
-
transform: rotate(180deg);
|
|
2708
|
-
color: #ffffff;
|
|
2709
|
-
}
|
|
2710
|
-
#eps-user-menu .eps-overflow-menu {
|
|
2711
|
-
display: flex;
|
|
2712
|
-
flex-direction: column;
|
|
2713
|
-
}
|
|
2714
|
-
#eps-user-menu .eps-overflow-menu__group {
|
|
2715
|
-
display: none;
|
|
2716
|
-
flex-direction: column;
|
|
2717
|
-
z-index: 20;
|
|
2718
|
-
}
|
|
2719
|
-
#eps-user-menu .eps-overflow-menu__group--open {
|
|
2720
|
-
display: flex;
|
|
2721
|
-
}
|
|
2722
|
-
#eps-user-menu .eps-overflow-menu__button {
|
|
2723
|
-
padding-left: 0.25rem;
|
|
2724
|
-
}
|
|
2725
|
-
#eps-user-menu .eps-overflow-menu__button:active .eps-overflow-menu__button-contens {
|
|
2726
|
-
color: #181c56;
|
|
2727
|
-
}
|
|
2728
|
-
#eps-user-menu .eps-overflow-menu__button-contents {
|
|
2729
|
-
display: flex;
|
|
2730
|
-
justify-content: flex-start;
|
|
2731
|
-
align-items: center;
|
|
2732
|
-
}
|
|
2733
|
-
#eps-user-menu .eps-overflow-menu__item {
|
|
2734
|
-
appearance: none;
|
|
2735
|
-
border: none;
|
|
2736
|
-
font-size: 0.875rem;
|
|
2737
|
-
font-family: inherit;
|
|
2738
|
-
color: #181c56;
|
|
2739
|
-
background: #f8f8f8;
|
|
2740
|
-
display: block;
|
|
2741
|
-
height: 3rem;
|
|
2742
|
-
cursor: pointer;
|
|
2743
|
-
width: 100%;
|
|
2744
|
-
line-height: 1.25rem;
|
|
2745
|
-
text-align: left;
|
|
2746
|
-
padding: 0.5rem 1rem;
|
|
2747
|
-
}
|
|
2748
|
-
#eps-user-menu .eps-overflow-menu__item .eps-version-icon {
|
|
2749
|
-
transform: rotate(90deg);
|
|
2750
|
-
}
|
|
2751
|
-
#eps-user-menu .eps-overflow-menu__item .eds-icon {
|
|
2752
|
-
font-size: 1rem;
|
|
2753
|
-
margin-right: 0.75rem;
|
|
2754
|
-
}
|
|
2755
|
-
#eps-user-menu .eps-overflow-menu__item:focus {
|
|
2756
|
-
outline: none;
|
|
2757
|
-
box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
|
|
2758
|
-
}
|
|
2759
|
-
#eps-user-menu .eps-overflow-menu__item:hover {
|
|
2760
|
-
background: #d1d3d3;
|
|
2761
|
-
}
|
|
2762
|
-
|
|
2763
|
-
#eps-overflow-menu {
|
|
2764
|
-
position: absolute;
|
|
2765
|
-
width: 14rem;
|
|
2766
|
-
z-index: 20;
|
|
2767
|
-
}
|
|
2768
|
-
#eps-overflow-menu .eps-overflow-menu__icon-margin {
|
|
2769
|
-
margin-right: 0.75rem;
|
|
2770
|
-
}
|
|
2771
|
-
#eps-overflow-menu .eps-overflow-menu__item {
|
|
2772
|
-
border-radius: 0.25rem;
|
|
2773
|
-
border: solid 0.0625rem #54568c;
|
|
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": "5.
|
|
3
|
+
"version": "5.3.0",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/common.esm.js",
|
|
@@ -33,16 +33,18 @@
|
|
|
33
33
|
"@entur/tooltip": "^2.4.7",
|
|
34
34
|
"react": ">=16.8.0",
|
|
35
35
|
"react-dom": ">=16.8.0",
|
|
36
|
+
"react-helmet-async": "^1.3.0",
|
|
36
37
|
"react-router-dom": "^5.2.0"
|
|
37
38
|
},
|
|
38
39
|
"dependencies": {
|
|
39
|
-
"@entur-partner/util": "^1.
|
|
40
|
+
"@entur-partner/util": "^1.2.0",
|
|
40
41
|
"classnames": "^2.2.6"
|
|
41
42
|
},
|
|
42
43
|
"devDependencies": {
|
|
43
44
|
"@entur-partner/permission-client-node": "2.3.2",
|
|
44
45
|
"@entur/tokens": "3.11.0",
|
|
45
46
|
"identity-obj-proxy": "3.0.0",
|
|
47
|
+
"react-helmet-async": "1.3.0",
|
|
46
48
|
"react-router-dom": "5.3.3"
|
|
47
49
|
},
|
|
48
50
|
"jest": {
|
|
@@ -58,5 +60,5 @@
|
|
|
58
60
|
"reportFile": "jest-sonar-report.xml",
|
|
59
61
|
"indent": 4
|
|
60
62
|
},
|
|
61
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "6b4d8ff774ed55234506f8922078fefc0aadd246"
|
|
62
64
|
}
|