@entur-partner/common 9.3.3-alpha.0 → 9.3.3-alpha.2
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 +9 -9
- package/dist/AuditInfo.d.ts +14 -14
- package/dist/Box.d.ts +57 -57
- package/dist/Breadcrumbs.d.ts +8 -8
- package/dist/ConfirmModal.d.ts +28 -28
- package/dist/Content.d.ts +10 -10
- package/dist/EnturPartnerLogo.d.ts +19 -19
- package/dist/ErrorBoundary.d.ts +22 -22
- package/dist/ExpandableMultiLanguageInput.d.ts +17 -17
- package/dist/FeatureToggle.d.ts +25 -25
- package/dist/FormatCurrencyAmount.d.ts +8 -8
- package/dist/FormatDateTime.d.ts +7 -7
- package/dist/LanguageSelect.d.ts +16 -16
- package/dist/LegacyPageTitle.d.ts +16 -0
- package/dist/Link.d.ts +6 -6
- package/dist/LinkButton.d.ts +8 -8
- package/dist/Menu.d.ts +10 -10
- package/dist/MultiLanguageInput.d.ts +28 -28
- package/dist/OrganisationDropdown.d.ts +14 -14
- package/dist/PageTitle.d.ts +6 -15
- package/dist/Pager.d.ts +8 -8
- package/dist/PermissionCheck.d.ts +24 -24
- package/dist/RouteLeavingGuard.d.ts +14 -14
- package/dist/Stack.d.ts +9 -9
- package/dist/StatusLabel.d.ts +11 -11
- package/dist/Text.d.ts +21 -21
- package/dist/Unbutton.d.ts +7 -7
- package/dist/UserMenu/components/CookieSettingsMenuItem.d.ts +9 -9
- package/dist/UserMenu/components/CustomOverflowMenu.d.ts +11 -11
- package/dist/UserMenu/components/CustomOverflowMenuItem.d.ts +3 -3
- package/dist/UserMenu/components/LanguageSwitchMenuItem.d.ts +10 -10
- package/dist/UserMenu/components/LogOutMenuItem.d.ts +9 -9
- package/dist/UserMenu/components/UserMenuItem.d.ts +9 -9
- package/dist/UserMenu/components/VersionMenuItem.d.ts +5 -5
- package/dist/UserMenu/index.d.ts +26 -25
- package/dist/UserMenu/useOutsideClick.d.ts +2 -2
- package/dist/common.cjs.development.js +199 -191
- 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 +79 -67
- package/dist/common.esm.js.map +1 -1
- package/dist/environment.d.ts +13 -13
- package/dist/index.d.ts +31 -30
- package/dist/styles.css +185 -185
- package/dist/useEventListener.d.ts +3 -3
- package/package.json +6 -7
package/dist/index.d.ts
CHANGED
|
@@ -1,30 +1,31 @@
|
|
|
1
|
-
import "./index.scss";
|
|
2
|
-
export { ActionBar, ActionBarLeft, ActionBarRight } from "./ActionBar";
|
|
3
|
-
export { AuditInfo, AuditInfoProps } from "./AuditInfo";
|
|
4
|
-
export * from "./Box";
|
|
5
|
-
export * from "./Breadcrumbs";
|
|
6
|
-
export * from "./ConfirmModal";
|
|
7
|
-
export { Content } from "./Content";
|
|
8
|
-
export { EnturPartnerLogo, EnturPartnerLogoSvg } from "./EnturPartnerLogo";
|
|
9
|
-
export { ErrorBoundary } from "./ErrorBoundary";
|
|
10
|
-
export { ExpandableMultiLanguageInput, MultiLanguageValues, } from "./ExpandableMultiLanguageInput";
|
|
11
|
-
export * from "./environment";
|
|
12
|
-
export { FeatureToggle, featureFlag, useFeatureToggle } from "./FeatureToggle";
|
|
13
|
-
export { FormatCurrencyAmount, FormatCurrencyAmountProps, } from "./FormatCurrencyAmount";
|
|
14
|
-
export { FormatDateTime } from "./FormatDateTime";
|
|
15
|
-
export { LanguageKey, LanguageOption, LanguageSelect } from "./LanguageSelect";
|
|
16
|
-
export * from "./
|
|
17
|
-
export
|
|
18
|
-
export {
|
|
19
|
-
export {
|
|
20
|
-
export {
|
|
21
|
-
export
|
|
22
|
-
export * from "./
|
|
23
|
-
export * from "./
|
|
24
|
-
export * from "./
|
|
25
|
-
export
|
|
26
|
-
export
|
|
27
|
-
export * from "./
|
|
28
|
-
export
|
|
29
|
-
export {
|
|
30
|
-
export {
|
|
1
|
+
import "./index.scss";
|
|
2
|
+
export { ActionBar, ActionBarLeft, ActionBarRight } from "./ActionBar";
|
|
3
|
+
export { AuditInfo, AuditInfoProps } from "./AuditInfo";
|
|
4
|
+
export * from "./Box";
|
|
5
|
+
export * from "./Breadcrumbs";
|
|
6
|
+
export * from "./ConfirmModal";
|
|
7
|
+
export { Content } from "./Content";
|
|
8
|
+
export { EnturPartnerLogo, EnturPartnerLogoSvg } from "./EnturPartnerLogo";
|
|
9
|
+
export { ErrorBoundary } from "./ErrorBoundary";
|
|
10
|
+
export { ExpandableMultiLanguageInput, MultiLanguageValues, } from "./ExpandableMultiLanguageInput";
|
|
11
|
+
export * from "./environment";
|
|
12
|
+
export { FeatureToggle, featureFlag, useFeatureToggle } from "./FeatureToggle";
|
|
13
|
+
export { FormatCurrencyAmount, FormatCurrencyAmountProps, } from "./FormatCurrencyAmount";
|
|
14
|
+
export { FormatDateTime } from "./FormatDateTime";
|
|
15
|
+
export { LanguageKey, LanguageOption, LanguageSelect } from "./LanguageSelect";
|
|
16
|
+
export * from "./LegacyPageTitle";
|
|
17
|
+
export * from "./Link";
|
|
18
|
+
export { LinkButton } from "./LinkButton";
|
|
19
|
+
export { Menu } from "./Menu";
|
|
20
|
+
export { MultiLanguageInput } from "./MultiLanguageInput";
|
|
21
|
+
export { OrganisationDropDown } from "./OrganisationDropdown";
|
|
22
|
+
export * from "./Pager";
|
|
23
|
+
export * from "./PageTitle";
|
|
24
|
+
export * from "./PermissionCheck";
|
|
25
|
+
export * from "./RouteLeavingGuard";
|
|
26
|
+
export { Stack } from "./Stack";
|
|
27
|
+
export * from "./StatusLabel";
|
|
28
|
+
export * from "./Text";
|
|
29
|
+
export { Unbutton } from "./Unbutton";
|
|
30
|
+
export { UserMenu } from "./UserMenu";
|
|
31
|
+
export { useEventListener } from "./useEventListener";
|
package/dist/styles.css
CHANGED
|
@@ -1,15 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
--eps-common: 1;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
main .eds-table--sticky-header--active .eds-table__head,
|
|
6
|
-
.app-shell-content .eds-table--sticky-header--active .eds-table__head {
|
|
7
|
-
z-index: 1;
|
|
8
|
-
}
|
|
9
|
-
.epp-environment-banner ~ main .eds-table--sticky-header--active .eds-table__head,
|
|
10
|
-
.epp-environment-banner ~ .app-shell-content .eds-table--sticky-header--active .eds-table__head {
|
|
11
|
-
top: 1rem;
|
|
12
|
-
}/* DO NOT CHANGE!*/
|
|
1
|
+
/* DO NOT CHANGE!*/
|
|
13
2
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
14
3
|
/* DO NOT CHANGE!*/
|
|
15
4
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
@@ -45,10 +34,6 @@ main .eds-table--sticky-header--active .eds-table__head,
|
|
|
45
34
|
height: 100px;
|
|
46
35
|
}/* DO NOT CHANGE!*/
|
|
47
36
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
48
|
-
.eps-confirm-modal-content {
|
|
49
|
-
margin-bottom: 1rem;
|
|
50
|
-
}/* DO NOT CHANGE!*/
|
|
51
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
52
37
|
.ep-audit-info {
|
|
53
38
|
float: right;
|
|
54
39
|
margin-top: 1rem;
|
|
@@ -64,6 +49,72 @@ main .eds-table--sticky-header--active .eds-table__head,
|
|
|
64
49
|
font-weight: 600;
|
|
65
50
|
}/* DO NOT CHANGE!*/
|
|
66
51
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
52
|
+
.eps-confirm-modal-content {
|
|
53
|
+
margin-bottom: 1rem;
|
|
54
|
+
}/* DO NOT CHANGE!*/
|
|
55
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
56
|
+
/* DO NOT CHANGE!*/
|
|
57
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
58
|
+
.eps-content {
|
|
59
|
+
margin: 1rem;
|
|
60
|
+
}
|
|
61
|
+
@media screen and (min-width: 50rem) {
|
|
62
|
+
.eps-content {
|
|
63
|
+
margin: 1.5rem 1.5rem 1.5rem 22rem;
|
|
64
|
+
}
|
|
65
|
+
}/* DO NOT CHANGE!*/
|
|
66
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
67
|
+
.eps-logo-wrapper {
|
|
68
|
+
display: inline-block;
|
|
69
|
+
}
|
|
70
|
+
.eps-logo-wrapper .logo {
|
|
71
|
+
height: auto;
|
|
72
|
+
width: 170px;
|
|
73
|
+
}/* DO NOT CHANGE!*/
|
|
74
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
75
|
+
.eps-language-select {
|
|
76
|
+
color: #181c56;
|
|
77
|
+
}
|
|
78
|
+
.eps-language-select label {
|
|
79
|
+
flex: initial;
|
|
80
|
+
}
|
|
81
|
+
.eps-language-select .asterisk-margin {
|
|
82
|
+
margin-left: 0.125rem;
|
|
83
|
+
}/* DO NOT CHANGE!*/
|
|
84
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
85
|
+
/* DO NOT CHANGE!*/
|
|
86
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
87
|
+
.eps-menu {
|
|
88
|
+
position: relative;
|
|
89
|
+
width: 100%;
|
|
90
|
+
z-index: 30;
|
|
91
|
+
}
|
|
92
|
+
@media screen and (min-width: 50rem) {
|
|
93
|
+
.eps-menu {
|
|
94
|
+
left: 0;
|
|
95
|
+
top: 0;
|
|
96
|
+
position: fixed;
|
|
97
|
+
height: 100vh;
|
|
98
|
+
width: 20rem;
|
|
99
|
+
overflow-y: scroll;
|
|
100
|
+
}
|
|
101
|
+
}/* DO NOT CHANGE!*/
|
|
102
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
103
|
+
button.eps-link-button {
|
|
104
|
+
cursor: pointer;
|
|
105
|
+
}
|
|
106
|
+
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 {
|
|
107
|
+
background: none;
|
|
108
|
+
background-color: inherit;
|
|
109
|
+
border: none;
|
|
110
|
+
padding: 0;
|
|
111
|
+
}
|
|
112
|
+
button.eps-link-button:hover {
|
|
113
|
+
color: #aeb7e2;
|
|
114
|
+
}ol.eds-breadcrumbs {
|
|
115
|
+
padding: 0;
|
|
116
|
+
}/* DO NOT CHANGE!*/
|
|
117
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
67
118
|
/* DO NOT CHANGE!*/
|
|
68
119
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
69
120
|
.eps-pt-none {
|
|
@@ -2308,70 +2359,131 @@ main .eds-table--sticky-header--active .eds-table__head,
|
|
|
2308
2359
|
|
|
2309
2360
|
.eps-bg-lavender {
|
|
2310
2361
|
background-color: #aeb7e2;
|
|
2311
|
-
}
|
|
2312
|
-
|
|
2362
|
+
}.multi-language-input:focus {
|
|
2363
|
+
outline: none;
|
|
2313
2364
|
}/* DO NOT CHANGE!*/
|
|
2314
2365
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
margin: 1rem;
|
|
2366
|
+
.eps-status-label {
|
|
2367
|
+
display: flex;
|
|
2368
|
+
align-items: center;
|
|
2319
2369
|
}
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
margin: 1.5rem 1.5rem 1.5rem 22rem;
|
|
2323
|
-
}
|
|
2324
|
-
}/* DO NOT CHANGE!*/
|
|
2325
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
2326
|
-
.eps-logo-wrapper {
|
|
2327
|
-
display: inline-block;
|
|
2370
|
+
.eps-status-label.center {
|
|
2371
|
+
justify-content: center;
|
|
2328
2372
|
}
|
|
2329
|
-
.eps-
|
|
2330
|
-
|
|
2331
|
-
|
|
2373
|
+
.eps-status-label__bullet {
|
|
2374
|
+
padding: 5px;
|
|
2375
|
+
margin-bottom: 4px;
|
|
2376
|
+
border-radius: 50%;
|
|
2377
|
+
background: #d1d3d3;
|
|
2378
|
+
margin-right: 10px;
|
|
2379
|
+
}
|
|
2380
|
+
.eps-status-label__bullet.aggressive {
|
|
2381
|
+
background: #ff5959;
|
|
2382
|
+
}
|
|
2383
|
+
.eps-status-label__bullet.active {
|
|
2384
|
+
background: #1a8e60;
|
|
2332
2385
|
}/* DO NOT CHANGE!*/
|
|
2333
2386
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
2334
|
-
|
|
2387
|
+
/**
|
|
2388
|
+
PS! We use #eps-user-menu to prevent the micro frontends overriding the styles. By using
|
|
2389
|
+
an id we have a higher specificity. We should explore a better solution later. Ideally
|
|
2390
|
+
each micro frontend should be contained by a ShadowDom, but there are too many gotchas
|
|
2391
|
+
running React in ShadowDom for now.
|
|
2392
|
+
*/
|
|
2393
|
+
#eps-user-menu {
|
|
2394
|
+
z-index: 50;
|
|
2395
|
+
}
|
|
2396
|
+
#eps-user-menu .eps-user-menu__trigger-button {
|
|
2397
|
+
border: none;
|
|
2398
|
+
width: 100%;
|
|
2399
|
+
}
|
|
2400
|
+
#eps-user-menu .eps-user-menu__trigger-button .eds-overflow-menu__user-icon {
|
|
2401
|
+
margin-right: 0.75rem;
|
|
2402
|
+
padding: 0.5rem;
|
|
2403
|
+
background: #393d79;
|
|
2404
|
+
border-radius: 50%;
|
|
2405
|
+
color: #ffffff;
|
|
2406
|
+
height: 2.5rem;
|
|
2407
|
+
width: 2.5rem;
|
|
2408
|
+
}
|
|
2409
|
+
#eps-user-menu .eps-user-menu__trigger-button[aria-expanded=true] .eps-arrow-icon svg {
|
|
2410
|
+
transform: rotate(180deg);
|
|
2411
|
+
color: #ffffff;
|
|
2412
|
+
}
|
|
2413
|
+
#eps-user-menu .eps-overflow-menu {
|
|
2414
|
+
display: flex;
|
|
2415
|
+
flex-direction: column;
|
|
2416
|
+
}
|
|
2417
|
+
#eps-user-menu .eps-overflow-menu__group {
|
|
2418
|
+
display: none;
|
|
2419
|
+
flex-direction: column;
|
|
2420
|
+
z-index: 20;
|
|
2421
|
+
}
|
|
2422
|
+
#eps-user-menu .eps-overflow-menu__group--open {
|
|
2423
|
+
display: flex;
|
|
2424
|
+
}
|
|
2425
|
+
#eps-user-menu .eps-overflow-menu__button {
|
|
2426
|
+
padding-left: 0.25rem;
|
|
2427
|
+
}
|
|
2428
|
+
#eps-user-menu .eps-overflow-menu__button:active .eps-overflow-menu__button-contens {
|
|
2335
2429
|
color: #181c56;
|
|
2336
2430
|
}
|
|
2337
|
-
.eps-
|
|
2338
|
-
|
|
2431
|
+
#eps-user-menu .eps-overflow-menu__button-contents {
|
|
2432
|
+
display: flex;
|
|
2433
|
+
justify-content: flex-start;
|
|
2434
|
+
align-items: center;
|
|
2339
2435
|
}
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2436
|
+
#eps-user-menu .eps-overflow-menu__item {
|
|
2437
|
+
appearance: none;
|
|
2438
|
+
border: none;
|
|
2439
|
+
font-size: 0.875rem;
|
|
2440
|
+
font-family: inherit;
|
|
2441
|
+
color: #181c56;
|
|
2442
|
+
background: #f8f8f8;
|
|
2443
|
+
display: block;
|
|
2444
|
+
height: 3rem;
|
|
2345
2445
|
cursor: pointer;
|
|
2446
|
+
width: 100%;
|
|
2447
|
+
line-height: 1.25rem;
|
|
2448
|
+
text-align: left;
|
|
2449
|
+
padding: 0.5rem 1rem;
|
|
2346
2450
|
}
|
|
2347
|
-
|
|
2451
|
+
#eps-user-menu .eps-overflow-menu__item .eps-version-icon {
|
|
2452
|
+
transform: rotate(90deg);
|
|
2453
|
+
}
|
|
2454
|
+
#eps-user-menu .eps-overflow-menu__item .eds-icon {
|
|
2455
|
+
font-size: 1rem;
|
|
2456
|
+
margin-right: 0.75rem;
|
|
2457
|
+
}
|
|
2458
|
+
#eps-user-menu .eps-overflow-menu__item:focus {
|
|
2459
|
+
outline: none;
|
|
2460
|
+
box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
|
|
2461
|
+
}
|
|
2462
|
+
#eps-user-menu .eps-overflow-menu__item:hover {
|
|
2463
|
+
background: #d1d3d3;
|
|
2464
|
+
}
|
|
2465
|
+
|
|
2466
|
+
#eps-overflow-menu {
|
|
2467
|
+
position: absolute;
|
|
2468
|
+
width: 14rem;
|
|
2469
|
+
z-index: 20;
|
|
2470
|
+
}
|
|
2471
|
+
#eps-overflow-menu .eps-overflow-menu__icon-margin {
|
|
2472
|
+
margin-right: 0.75rem;
|
|
2473
|
+
}
|
|
2474
|
+
#eps-overflow-menu .eps-overflow-menu__item {
|
|
2475
|
+
border-radius: 0.25rem;
|
|
2476
|
+
border: solid 0.0625rem #54568c;
|
|
2477
|
+
}.eps-unbutton, .eps-unbutton:hover, .eps-unbutton:focus, .eps-unbutton:active:focus, .eps-unbutton:active:hover, .eps-unbutton:active {
|
|
2348
2478
|
background: none;
|
|
2349
2479
|
background-color: inherit;
|
|
2480
|
+
color: inherit;
|
|
2350
2481
|
border: none;
|
|
2351
2482
|
padding: 0;
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
2357
|
-
/* DO NOT CHANGE!*/
|
|
2358
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
2359
|
-
.eps-menu {
|
|
2360
|
-
position: relative;
|
|
2361
|
-
width: 100%;
|
|
2362
|
-
z-index: 30;
|
|
2363
|
-
}
|
|
2364
|
-
@media screen and (min-width: 50rem) {
|
|
2365
|
-
.eps-menu {
|
|
2366
|
-
left: 0;
|
|
2367
|
-
top: 0;
|
|
2368
|
-
position: fixed;
|
|
2369
|
-
height: 100vh;
|
|
2370
|
-
width: 20rem;
|
|
2371
|
-
overflow-y: scroll;
|
|
2372
|
-
}
|
|
2373
|
-
}.multi-language-input:focus {
|
|
2374
|
-
outline: none;
|
|
2483
|
+
font: inherit;
|
|
2484
|
+
outline: inherit;
|
|
2485
|
+
height: inherit;
|
|
2486
|
+
min-width: inherit;
|
|
2375
2487
|
}/* DO NOT CHANGE!*/
|
|
2376
2488
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
2377
2489
|
/* DO NOT CHANGE!*/
|
|
@@ -2648,127 +2760,15 @@ button.eps-link-button:hover {
|
|
|
2648
2760
|
|
|
2649
2761
|
.eps-font-weight-heading {
|
|
2650
2762
|
font-weight: 1rem;
|
|
2651
|
-
}
|
|
2652
|
-
|
|
2653
|
-
.eps-status-label {
|
|
2654
|
-
display: flex;
|
|
2655
|
-
align-items: center;
|
|
2656
|
-
}
|
|
2657
|
-
.eps-status-label.center {
|
|
2658
|
-
justify-content: center;
|
|
2659
|
-
}
|
|
2660
|
-
.eps-status-label__bullet {
|
|
2661
|
-
padding: 5px;
|
|
2662
|
-
margin-bottom: 4px;
|
|
2663
|
-
border-radius: 50%;
|
|
2664
|
-
background: #d1d3d3;
|
|
2665
|
-
margin-right: 10px;
|
|
2666
|
-
}
|
|
2667
|
-
.eps-status-label__bullet.aggressive {
|
|
2668
|
-
background: #ff5959;
|
|
2669
|
-
}
|
|
2670
|
-
.eps-status-label__bullet.active {
|
|
2671
|
-
background: #1a8e60;
|
|
2672
|
-
}.eps-unbutton, .eps-unbutton:hover, .eps-unbutton:focus, .eps-unbutton:active:focus, .eps-unbutton:active:hover, .eps-unbutton:active {
|
|
2673
|
-
background: none;
|
|
2674
|
-
background-color: inherit;
|
|
2675
|
-
color: inherit;
|
|
2676
|
-
border: none;
|
|
2677
|
-
padding: 0;
|
|
2678
|
-
font: inherit;
|
|
2679
|
-
outline: inherit;
|
|
2680
|
-
height: inherit;
|
|
2681
|
-
min-width: inherit;
|
|
2682
|
-
}/* DO NOT CHANGE!*/
|
|
2683
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
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;
|
|
2763
|
+
}:root {
|
|
2764
|
+
--eps-common: 1;
|
|
2761
2765
|
}
|
|
2762
2766
|
|
|
2763
|
-
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
z-index: 20;
|
|
2767
|
-
}
|
|
2768
|
-
#eps-overflow-menu .eps-overflow-menu__icon-margin {
|
|
2769
|
-
margin-right: 0.75rem;
|
|
2767
|
+
main .eds-table--sticky-header--active .eds-table__head,
|
|
2768
|
+
.app-shell-content .eds-table--sticky-header--active .eds-table__head {
|
|
2769
|
+
z-index: 1;
|
|
2770
2770
|
}
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2771
|
+
.epp-environment-banner ~ main .eds-table--sticky-header--active .eds-table__head,
|
|
2772
|
+
.epp-environment-banner ~ .app-shell-content .eds-table--sticky-header--active .eds-table__head {
|
|
2773
|
+
top: 1rem;
|
|
2774
2774
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
type TypedEventListener<T extends Event> = (evt: T) => void;
|
|
2
|
-
export declare function useEventListener<T extends Event = Event>(eventName: string, handler: TypedEventListener<T>, element?: WindowEventHandlers): void;
|
|
3
|
-
export {};
|
|
1
|
+
type TypedEventListener<T extends Event> = (evt: T) => void;
|
|
2
|
+
export declare function useEventListener<T extends Event = Event>(eventName: string, handler: TypedEventListener<T>, element?: WindowEventHandlers): void;
|
|
3
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@entur-partner/common",
|
|
3
|
-
"version": "9.3.3-alpha.
|
|
3
|
+
"version": "9.3.3-alpha.2",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/common.esm.js",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"@entur/dropdown": ">=5.0.3 <8.0.0",
|
|
28
28
|
"@entur/expand": "^3.2.17",
|
|
29
29
|
"@entur/form": ">=5.0.0 <9.0.0",
|
|
30
|
-
"@entur/icons": ">=7.
|
|
30
|
+
"@entur/icons": ">=7.12.0 <9.0.0",
|
|
31
31
|
"@entur/menu": ">=4.0.0 <6.0.0",
|
|
32
32
|
"@entur/modal": "^1.3.6",
|
|
33
33
|
"@entur/tooltip": ">=2.4.7 <6.0.0",
|
|
@@ -37,15 +37,14 @@
|
|
|
37
37
|
"react-router-dom": "^6.22.0"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@entur-partner/util": "^1.3.2-alpha.
|
|
40
|
+
"@entur-partner/util": "^1.3.2-alpha.1",
|
|
41
41
|
"classnames": "^2.2.6"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@entur-partner/permission-client-node": "
|
|
44
|
+
"@entur-partner/permission-client-node": "3.4.6",
|
|
45
45
|
"@entur/tokens": "3.17.3",
|
|
46
46
|
"identity-obj-proxy": "3.0.0",
|
|
47
|
-
"react-
|
|
48
|
-
"react-router-dom": "6.28.0"
|
|
47
|
+
"react-router-dom": "6.30.1"
|
|
49
48
|
},
|
|
50
49
|
"jest": {
|
|
51
50
|
"moduleNameMapper": {
|
|
@@ -60,5 +59,5 @@
|
|
|
60
59
|
"reportFile": "jest-sonar-report.xml",
|
|
61
60
|
"indent": 4
|
|
62
61
|
},
|
|
63
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "69f6ba79c7419d1903a812945300efba5b44b306"
|
|
64
63
|
}
|