@entur-partner/common 10.0.2-alpha.0 → 11.0.0-alpha.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/BetaTopNavigation.d.ts +9 -0
- package/dist/common.cjs.development.js +10 -67
- 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 +11 -66
- package/dist/common.esm.js.map +1 -1
- package/dist/index.d.ts +1 -2
- package/dist/styles.css +119 -48
- package/package.json +5 -5
- package/dist/ProjectProvider.d.ts +0 -15
- package/dist/useNavigateParams.d.ts +0 -9
package/dist/styles.css
CHANGED
|
@@ -2278,6 +2278,8 @@
|
|
|
2278
2278
|
|
|
2279
2279
|
.eps-bg-lavender {
|
|
2280
2280
|
background-color: #aeb7e2;
|
|
2281
|
+
}ol.eds-breadcrumbs {
|
|
2282
|
+
padding: 0;
|
|
2281
2283
|
}/* DO NOT CHANGE!*/
|
|
2282
2284
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
2283
2285
|
.ep-audit-info {
|
|
@@ -2293,12 +2295,6 @@
|
|
|
2293
2295
|
.ep-audit-info-label {
|
|
2294
2296
|
margin-right: 3rem;
|
|
2295
2297
|
font-weight: 600;
|
|
2296
|
-
}ol.eds-breadcrumbs {
|
|
2297
|
-
padding: 0;
|
|
2298
|
-
}/* DO NOT CHANGE!*/
|
|
2299
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
2300
|
-
.eps-confirm-modal-content {
|
|
2301
|
-
margin-bottom: 1rem;
|
|
2302
2298
|
}/* DO NOT CHANGE!*/
|
|
2303
2299
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
2304
2300
|
/* DO NOT CHANGE!*/
|
|
@@ -2310,6 +2306,77 @@
|
|
|
2310
2306
|
.eps-content {
|
|
2311
2307
|
margin: 1.5rem 1.5rem 1.5rem 22rem;
|
|
2312
2308
|
}
|
|
2309
|
+
}
|
|
2310
|
+
|
|
2311
|
+
.eps-public-content {
|
|
2312
|
+
padding-top: 5rem;
|
|
2313
|
+
}
|
|
2314
|
+
@media screen and (min-width: 50rem) {
|
|
2315
|
+
.eps-public-content {
|
|
2316
|
+
margin-left: 12rem;
|
|
2317
|
+
}
|
|
2318
|
+
}@import '@entur/loader/dist/styles.css';
|
|
2319
|
+
/* DO NOT CHANGE!*/
|
|
2320
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
2321
|
+
.top-navigation {
|
|
2322
|
+
display: flex;
|
|
2323
|
+
align-items: center;
|
|
2324
|
+
position: fixed;
|
|
2325
|
+
top: 0;
|
|
2326
|
+
left: 0;
|
|
2327
|
+
padding-inline: 2.5rem;
|
|
2328
|
+
justify-content: flex-start;
|
|
2329
|
+
border-bottom: 0.125rem solid var(--designentur-header-default-divider);
|
|
2330
|
+
background: #292b6a;
|
|
2331
|
+
width: 100%;
|
|
2332
|
+
height: 5rem;
|
|
2333
|
+
z-index: 20;
|
|
2334
|
+
transition: margin-left 0.1s ease-out;
|
|
2335
|
+
gap: 1.5rem;
|
|
2336
|
+
}
|
|
2337
|
+
.top-navigation .eds-top-navigation-item {
|
|
2338
|
+
color: white;
|
|
2339
|
+
}
|
|
2340
|
+
.top-navigation .eds-top-navigation-item:hover {
|
|
2341
|
+
color: white;
|
|
2342
|
+
}
|
|
2343
|
+
.top-navigation .eds-top-navigation-item--active {
|
|
2344
|
+
color: white;
|
|
2345
|
+
font-weight: bold;
|
|
2346
|
+
}
|
|
2347
|
+
.top-navigation--frontpage {
|
|
2348
|
+
border-bottom: none;
|
|
2349
|
+
}
|
|
2350
|
+
.top-navigation__logo {
|
|
2351
|
+
margin-right: 1.5rem;
|
|
2352
|
+
}
|
|
2353
|
+
.top-navigation__logo:focus-visible {
|
|
2354
|
+
outline: none;
|
|
2355
|
+
box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
|
|
2356
|
+
outline-offset: 0.125rem;
|
|
2357
|
+
}
|
|
2358
|
+
.top-navigation__actions {
|
|
2359
|
+
margin-left: auto;
|
|
2360
|
+
display: flex;
|
|
2361
|
+
align-items: center;
|
|
2362
|
+
}
|
|
2363
|
+
.top-navigation__button {
|
|
2364
|
+
color: #ffffff;
|
|
2365
|
+
}
|
|
2366
|
+
.top-navigation__button:hover {
|
|
2367
|
+
color: #292b6a;
|
|
2368
|
+
}
|
|
2369
|
+
@media screen and (max-width: 1108px) {
|
|
2370
|
+
.top-navigation {
|
|
2371
|
+
padding-inline: 1.5rem;
|
|
2372
|
+
}
|
|
2373
|
+
.top-navigation .eds-top-navigation-item {
|
|
2374
|
+
font-size: 14px;
|
|
2375
|
+
padding: 0.75rem;
|
|
2376
|
+
}
|
|
2377
|
+
.top-navigation__logo {
|
|
2378
|
+
margin-right: 1.5rem;
|
|
2379
|
+
}
|
|
2313
2380
|
}/* DO NOT CHANGE!*/
|
|
2314
2381
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
2315
2382
|
.eps-language-select {
|
|
@@ -2322,12 +2389,8 @@
|
|
|
2322
2389
|
margin-left: 0.125rem;
|
|
2323
2390
|
}/* DO NOT CHANGE!*/
|
|
2324
2391
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
2325
|
-
.eps-
|
|
2326
|
-
|
|
2327
|
-
}
|
|
2328
|
-
.eps-logo-wrapper .logo {
|
|
2329
|
-
height: auto;
|
|
2330
|
-
width: 170px;
|
|
2392
|
+
.eps-confirm-modal-content {
|
|
2393
|
+
margin-bottom: 1rem;
|
|
2331
2394
|
}/* DO NOT CHANGE!*/
|
|
2332
2395
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
2333
2396
|
button.eps-link-button {
|
|
@@ -2345,25 +2408,12 @@ button.eps-link-button:hover {
|
|
|
2345
2408
|
outline: none;
|
|
2346
2409
|
}/* DO NOT CHANGE!*/
|
|
2347
2410
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
2348
|
-
.eps-
|
|
2349
|
-
display:
|
|
2350
|
-
align-items: center;
|
|
2351
|
-
}
|
|
2352
|
-
.eps-status-label.center {
|
|
2353
|
-
justify-content: center;
|
|
2354
|
-
}
|
|
2355
|
-
.eps-status-label__bullet {
|
|
2356
|
-
padding: 5px;
|
|
2357
|
-
margin-bottom: 4px;
|
|
2358
|
-
border-radius: 50%;
|
|
2359
|
-
background: #d1d3d3;
|
|
2360
|
-
margin-right: 10px;
|
|
2361
|
-
}
|
|
2362
|
-
.eps-status-label__bullet.aggressive {
|
|
2363
|
-
background: #ff5959;
|
|
2411
|
+
.eps-logo-wrapper {
|
|
2412
|
+
display: inline-block;
|
|
2364
2413
|
}
|
|
2365
|
-
.eps-
|
|
2366
|
-
|
|
2414
|
+
.eps-logo-wrapper .logo {
|
|
2415
|
+
height: auto;
|
|
2416
|
+
width: 170px;
|
|
2367
2417
|
}/* DO NOT CHANGE!*/
|
|
2368
2418
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
2369
2419
|
/* DO NOT CHANGE!*/
|
|
@@ -2640,6 +2690,27 @@ button.eps-link-button:hover {
|
|
|
2640
2690
|
|
|
2641
2691
|
.eps-font-weight-heading {
|
|
2642
2692
|
font-weight: 1rem;
|
|
2693
|
+
}/* DO NOT CHANGE!*/
|
|
2694
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
2695
|
+
.eps-status-label {
|
|
2696
|
+
display: flex;
|
|
2697
|
+
align-items: center;
|
|
2698
|
+
}
|
|
2699
|
+
.eps-status-label.center {
|
|
2700
|
+
justify-content: center;
|
|
2701
|
+
}
|
|
2702
|
+
.eps-status-label__bullet {
|
|
2703
|
+
padding: 5px;
|
|
2704
|
+
margin-bottom: 4px;
|
|
2705
|
+
border-radius: 50%;
|
|
2706
|
+
background: #d1d3d3;
|
|
2707
|
+
margin-right: 10px;
|
|
2708
|
+
}
|
|
2709
|
+
.eps-status-label__bullet.aggressive {
|
|
2710
|
+
background: #ff5959;
|
|
2711
|
+
}
|
|
2712
|
+
.eps-status-label__bullet.active {
|
|
2713
|
+
background: #1a8e60;
|
|
2643
2714
|
}.eps-unbutton, .eps-unbutton:hover, .eps-unbutton:focus, .eps-unbutton:active:focus, .eps-unbutton:active:hover, .eps-unbutton:active {
|
|
2644
2715
|
background: none;
|
|
2645
2716
|
background-color: inherit;
|
|
@@ -2652,6 +2723,24 @@ button.eps-link-button:hover {
|
|
|
2652
2723
|
min-width: inherit;
|
|
2653
2724
|
}/* DO NOT CHANGE!*/
|
|
2654
2725
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
2726
|
+
/* DO NOT CHANGE!*/
|
|
2727
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
2728
|
+
.eps-menu {
|
|
2729
|
+
position: relative;
|
|
2730
|
+
width: 100%;
|
|
2731
|
+
z-index: 30;
|
|
2732
|
+
}
|
|
2733
|
+
@media screen and (min-width: 50rem) {
|
|
2734
|
+
.eps-menu {
|
|
2735
|
+
left: 0;
|
|
2736
|
+
top: 0;
|
|
2737
|
+
position: fixed;
|
|
2738
|
+
height: 100vh;
|
|
2739
|
+
width: 20rem;
|
|
2740
|
+
overflow-y: scroll;
|
|
2741
|
+
}
|
|
2742
|
+
}/* DO NOT CHANGE!*/
|
|
2743
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
2655
2744
|
/**
|
|
2656
2745
|
PS! We use #eps-user-menu to prevent the micro frontends overriding the styles. By using
|
|
2657
2746
|
an id we have a higher specificity. We should explore a better solution later. Ideally
|
|
@@ -2742,24 +2831,6 @@ button.eps-link-button:hover {
|
|
|
2742
2831
|
#eps-overflow-menu .eps-overflow-menu__item {
|
|
2743
2832
|
border-radius: 0.25rem;
|
|
2744
2833
|
border: solid 0.0625rem #54568c;
|
|
2745
|
-
}/* DO NOT CHANGE!*/
|
|
2746
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
2747
|
-
/* DO NOT CHANGE!*/
|
|
2748
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
2749
|
-
.eps-menu {
|
|
2750
|
-
position: relative;
|
|
2751
|
-
width: 100%;
|
|
2752
|
-
z-index: 30;
|
|
2753
|
-
}
|
|
2754
|
-
@media screen and (min-width: 50rem) {
|
|
2755
|
-
.eps-menu {
|
|
2756
|
-
left: 0;
|
|
2757
|
-
top: 0;
|
|
2758
|
-
position: fixed;
|
|
2759
|
-
height: 100vh;
|
|
2760
|
-
width: 20rem;
|
|
2761
|
-
overflow-y: scroll;
|
|
2762
|
-
}
|
|
2763
2834
|
}:root {
|
|
2764
2835
|
--eps-common: 1;
|
|
2765
2836
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@entur-partner/common",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "11.0.0-alpha.1",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/common.esm.js",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"@entur/tooltip": ">=2.4.7 <6.0.0",
|
|
34
34
|
"react": ">=18.0.0",
|
|
35
35
|
"react-dom": ">=18.0.0",
|
|
36
|
-
"react-router-dom": "
|
|
36
|
+
"react-router-dom": "^6.22.0"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@entur-partner/util": "^1.3.3",
|
|
@@ -41,9 +41,9 @@
|
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@entur-partner/permission-client-node": "3.4.6",
|
|
44
|
-
"@entur/tokens": "3.
|
|
44
|
+
"@entur/tokens": "3.20.0",
|
|
45
45
|
"identity-obj-proxy": "3.0.0",
|
|
46
|
-
"react-router-dom": "
|
|
46
|
+
"react-router-dom": "6.30.1"
|
|
47
47
|
},
|
|
48
48
|
"jest": {
|
|
49
49
|
"moduleNameMapper": {
|
|
@@ -58,5 +58,5 @@
|
|
|
58
58
|
"reportFile": "jest-sonar-report.xml",
|
|
59
59
|
"indent": 4
|
|
60
60
|
},
|
|
61
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "155f3d881a185e71bb143db88082de77e9972bfc"
|
|
62
62
|
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
export declare const useProject: () => {
|
|
3
|
-
defaultProjectId: string;
|
|
4
|
-
projectName: string;
|
|
5
|
-
};
|
|
6
|
-
type ProjectProviderProps = {
|
|
7
|
-
defaultProjectId: string;
|
|
8
|
-
projectName: string;
|
|
9
|
-
children: React.ReactNode;
|
|
10
|
-
};
|
|
11
|
-
/**
|
|
12
|
-
* A Provider to sync project id across micro-frontends. Used by useNavigateParams to ensure project id is always present in the url.
|
|
13
|
-
*/
|
|
14
|
-
export declare const ProjectProvider: ({ defaultProjectId, projectName, children, }: ProjectProviderProps) => React.JSX.Element;
|
|
15
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { NavigateFunction } from "react-router-dom";
|
|
2
|
-
/**
|
|
3
|
-
* A custom hook that wraps the useNavigate hook from react-router-dom for MicroFrontend State
|
|
4
|
-
*
|
|
5
|
-
* @param to can be a string path, a To object, or a number (delta)
|
|
6
|
-
* @param options contains options for modifying the navigation
|
|
7
|
-
* @returns a function that navigates to the specified path with organisationId in the search params
|
|
8
|
-
*/
|
|
9
|
-
export declare function useNavigateParams(): NavigateFunction;
|