@entur-partner/common 11.0.0 → 11.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 +3 -4
- package/dist/ConfirmModal.d.ts +1 -2
- package/dist/Content.d.ts +2 -3
- package/dist/EnturPartnerLogo.d.ts +2 -3
- package/dist/ErrorBoundary.d.ts +2 -2
- package/dist/ExpandableMultiLanguageInput.d.ts +3 -3
- package/dist/FeatureToggle.d.ts +2 -2
- package/dist/FormatCurrencyAmount.d.ts +2 -3
- package/dist/LinkButton.d.ts +2 -2
- package/dist/Menu.d.ts +2 -3
- package/dist/MultiLanguageInput.d.ts +2 -2
- package/dist/Stack.d.ts +2 -2
- package/dist/Text.d.ts +3 -4
- package/dist/common.cjs.development.js +477 -348
- 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 +467 -338
- package/dist/common.esm.js.map +1 -1
- package/dist/styles.css +34 -34
- package/dist/user-menu/components/CookieSettingsMenuItem.d.ts +1 -2
- package/dist/user-menu/components/CustomOverflowMenu.d.ts +3 -3
- package/dist/user-menu/components/CustomOverflowMenuItem.d.ts +2 -2
- package/dist/user-menu/components/LocaleSwitchMenuItem.d.ts +1 -2
- package/dist/user-menu/components/LogOutMenuItem.d.ts +1 -2
- package/dist/user-menu/components/UserMenuItem.d.ts +1 -2
- package/dist/user-menu/components/VersionMenuItem.d.ts +2 -2
- package/dist/user-menu/components/useOutsideClick.d.ts +2 -2
- package/package.json +6 -6
package/dist/styles.css
CHANGED
|
@@ -32,10 +32,23 @@
|
|
|
32
32
|
|
|
33
33
|
.eps-action-bar-padding {
|
|
34
34
|
height: 100px;
|
|
35
|
+
}ol.eds-breadcrumbs {
|
|
36
|
+
padding: 0;
|
|
35
37
|
}/* DO NOT CHANGE!*/
|
|
36
38
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
37
|
-
.
|
|
38
|
-
|
|
39
|
+
.ep-audit-info {
|
|
40
|
+
float: right;
|
|
41
|
+
margin-top: 1rem;
|
|
42
|
+
font-size: 0.875rem;
|
|
43
|
+
}
|
|
44
|
+
.ep-audit-info > div {
|
|
45
|
+
display: flex;
|
|
46
|
+
justify-content: space-between;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.ep-audit-info-label {
|
|
50
|
+
margin-right: 3rem;
|
|
51
|
+
font-weight: 600;
|
|
39
52
|
}/* DO NOT CHANGE!*/
|
|
40
53
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
41
54
|
/* DO NOT CHANGE!*/
|
|
@@ -2284,21 +2297,6 @@
|
|
|
2284
2297
|
background-color: #aeb7e2;
|
|
2285
2298
|
}/* DO NOT CHANGE!*/
|
|
2286
2299
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
2287
|
-
.ep-audit-info {
|
|
2288
|
-
float: right;
|
|
2289
|
-
margin-top: 1rem;
|
|
2290
|
-
font-size: 0.875rem;
|
|
2291
|
-
}
|
|
2292
|
-
.ep-audit-info > div {
|
|
2293
|
-
display: flex;
|
|
2294
|
-
justify-content: space-between;
|
|
2295
|
-
}
|
|
2296
|
-
|
|
2297
|
-
.ep-audit-info-label {
|
|
2298
|
-
margin-right: 3rem;
|
|
2299
|
-
font-weight: 600;
|
|
2300
|
-
}/* DO NOT CHANGE!*/
|
|
2301
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
2302
2300
|
/* DO NOT CHANGE!*/
|
|
2303
2301
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
2304
2302
|
.eps-content {
|
|
@@ -2310,14 +2308,16 @@
|
|
|
2310
2308
|
}
|
|
2311
2309
|
}/* DO NOT CHANGE!*/
|
|
2312
2310
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
2311
|
+
.eps-confirm-modal-content {
|
|
2312
|
+
margin-bottom: 1rem;
|
|
2313
|
+
}/* DO NOT CHANGE!*/
|
|
2314
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
2313
2315
|
.eps-logo-wrapper {
|
|
2314
2316
|
display: inline-block;
|
|
2315
2317
|
}
|
|
2316
2318
|
.eps-logo-wrapper .logo {
|
|
2317
2319
|
height: auto;
|
|
2318
2320
|
width: 170px;
|
|
2319
|
-
}ol.eds-breadcrumbs {
|
|
2320
|
-
padding: 0;
|
|
2321
2321
|
}/* DO NOT CHANGE!*/
|
|
2322
2322
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
2323
2323
|
.eps-language-select {
|
|
@@ -2328,6 +2328,8 @@
|
|
|
2328
2328
|
}
|
|
2329
2329
|
.eps-language-select .asterisk-margin {
|
|
2330
2330
|
margin-left: 0.125rem;
|
|
2331
|
+
}.multi-language-input:focus {
|
|
2332
|
+
outline: none;
|
|
2331
2333
|
}/* DO NOT CHANGE!*/
|
|
2332
2334
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
2333
2335
|
/* DO NOT CHANGE!*/
|
|
@@ -2346,8 +2348,19 @@
|
|
|
2346
2348
|
width: 20rem;
|
|
2347
2349
|
overflow-y: scroll;
|
|
2348
2350
|
}
|
|
2349
|
-
}
|
|
2350
|
-
|
|
2351
|
+
}/* DO NOT CHANGE!*/
|
|
2352
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
2353
|
+
button.eps-link-button {
|
|
2354
|
+
cursor: pointer;
|
|
2355
|
+
}
|
|
2356
|
+
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 {
|
|
2357
|
+
background: none;
|
|
2358
|
+
background-color: inherit;
|
|
2359
|
+
border: none;
|
|
2360
|
+
padding: 0;
|
|
2361
|
+
}
|
|
2362
|
+
button.eps-link-button:hover {
|
|
2363
|
+
color: #aeb7e2;
|
|
2351
2364
|
}/* DO NOT CHANGE!*/
|
|
2352
2365
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
2353
2366
|
.eps-status-label {
|
|
@@ -2369,19 +2382,6 @@
|
|
|
2369
2382
|
}
|
|
2370
2383
|
.eps-status-label__bullet.active {
|
|
2371
2384
|
background: #1a8e60;
|
|
2372
|
-
}/* DO NOT CHANGE!*/
|
|
2373
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
2374
|
-
button.eps-link-button {
|
|
2375
|
-
cursor: pointer;
|
|
2376
|
-
}
|
|
2377
|
-
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 {
|
|
2378
|
-
background: none;
|
|
2379
|
-
background-color: inherit;
|
|
2380
|
-
border: none;
|
|
2381
|
-
padding: 0;
|
|
2382
|
-
}
|
|
2383
|
-
button.eps-link-button:hover {
|
|
2384
|
-
color: #aeb7e2;
|
|
2385
2385
|
}.eps-unbutton, .eps-unbutton:hover, .eps-unbutton:focus, .eps-unbutton:active:focus, .eps-unbutton:active:hover, .eps-unbutton:active {
|
|
2386
2386
|
background: none;
|
|
2387
2387
|
background-color: inherit;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import React from "react";
|
|
2
1
|
type Props = {
|
|
3
2
|
locale: "nb-NO" | "en-GB";
|
|
4
3
|
onClick: () => void;
|
|
5
4
|
};
|
|
6
|
-
export declare const CookieSettingsMenuItem: ({ locale, onClick }: Props) =>
|
|
5
|
+
export declare const CookieSettingsMenuItem: ({ locale, onClick }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
7
6
|
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { type FC, type ReactNode } from "react";
|
|
2
2
|
import { Environment } from "../../environment";
|
|
3
|
-
export declare const CustomOverflowMenu:
|
|
3
|
+
export declare const CustomOverflowMenu: FC<{
|
|
4
4
|
className?: string;
|
|
5
|
-
children:
|
|
5
|
+
children: ReactNode;
|
|
6
6
|
userName: string;
|
|
7
7
|
open: boolean;
|
|
8
8
|
onOpenChange: (open: boolean) => void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
export declare const CustomOverflowMenuItem:
|
|
1
|
+
import type { ButtonHTMLAttributes, DetailedHTMLProps, FC } from "react";
|
|
2
|
+
export declare const CustomOverflowMenuItem: FC<DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>>;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import React from "react";
|
|
2
1
|
type Props = {
|
|
3
2
|
locale: "nb-NO" | "en-GB";
|
|
4
3
|
onLocaleChange: (locale: "nb-NO" | "en-GB") => void;
|
|
5
4
|
};
|
|
6
|
-
export declare const LocaleSwitchMenuItem: ({ locale, onLocaleChange }: Props) =>
|
|
5
|
+
export declare const LocaleSwitchMenuItem: ({ locale, onLocaleChange }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
7
6
|
export {};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import React from "react";
|
|
2
1
|
type Props = {
|
|
3
2
|
onClick: () => void;
|
|
4
3
|
locale: "en-GB" | "nb-NO";
|
|
5
4
|
};
|
|
6
|
-
export declare const LogOutMenuItem: ({ onClick, locale }: Props) =>
|
|
5
|
+
export declare const LogOutMenuItem: ({ onClick, locale }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
7
6
|
export {};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import React from "react";
|
|
2
1
|
type Props = {
|
|
3
2
|
locale: "nb-NO" | "en-GB";
|
|
4
3
|
onClick: () => void;
|
|
5
4
|
};
|
|
6
|
-
export declare const UserMenuItem: ({ locale, onClick }: Props) =>
|
|
5
|
+
export declare const UserMenuItem: ({ locale, onClick }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
7
6
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
export declare function useOutsideClick(ref:
|
|
1
|
+
import { type RefObject } from "react";
|
|
2
|
+
export declare function useOutsideClick(ref: RefObject<HTMLDivElement | null>, buttonRef: RefObject<HTMLButtonElement | null>, handler: () => void): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@entur-partner/common",
|
|
3
|
-
"version": "11.0.
|
|
3
|
+
"version": "11.0.1",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/common.esm.js",
|
|
@@ -36,14 +36,14 @@
|
|
|
36
36
|
"react-router-dom": ">=6.30.1"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@entur-partner/util": "^1.3.
|
|
39
|
+
"@entur-partner/util": "^1.3.7",
|
|
40
40
|
"classnames": "^2.5.1"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@entur-partner/permission-client-node": "3.6.
|
|
44
|
-
"@entur/tokens": "3.22.
|
|
43
|
+
"@entur-partner/permission-client-node": "3.6.2",
|
|
44
|
+
"@entur/tokens": "3.22.2",
|
|
45
45
|
"identity-obj-proxy": "3.0.0",
|
|
46
|
-
"react-router-dom": "7.13.
|
|
46
|
+
"react-router-dom": "7.13.1"
|
|
47
47
|
},
|
|
48
48
|
"jest": {
|
|
49
49
|
"setupFilesAfterEnv": [
|
|
@@ -61,5 +61,5 @@
|
|
|
61
61
|
"reportFile": "jest-sonar-report.xml",
|
|
62
62
|
"indent": 4
|
|
63
63
|
},
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "e67aee03fee7819eaa83b69f69a2c7d29ef5d3c5"
|
|
65
65
|
}
|