@entur-partner/common 11.0.0 → 11.1.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/styles.css CHANGED
@@ -34,8 +34,19 @@
34
34
  height: 100px;
35
35
  }/* DO NOT CHANGE!*/
36
36
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
37
- .eps-confirm-modal-content {
38
- margin-bottom: 1rem;
37
+ .ep-audit-info {
38
+ float: right;
39
+ margin-top: 1rem;
40
+ font-size: 0.875rem;
41
+ }
42
+ .ep-audit-info > div {
43
+ display: flex;
44
+ justify-content: space-between;
45
+ }
46
+
47
+ .ep-audit-info-label {
48
+ margin-right: 3rem;
49
+ font-weight: 600;
39
50
  }/* DO NOT CHANGE!*/
40
51
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
41
52
  /* DO NOT CHANGE!*/
@@ -2282,21 +2293,12 @@
2282
2293
 
2283
2294
  .eps-bg-lavender {
2284
2295
  background-color: #aeb7e2;
2296
+ }ol.eds-breadcrumbs {
2297
+ padding: 0;
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
+ .eps-confirm-modal-content {
2301
+ margin-bottom: 1rem;
2300
2302
  }/* DO NOT CHANGE!*/
2301
2303
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
2302
2304
  /* DO NOT CHANGE!*/
@@ -2316,8 +2318,6 @@
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 {
@@ -2330,6 +2330,19 @@
2330
2330
  margin-left: 0.125rem;
2331
2331
  }/* DO NOT CHANGE!*/
2332
2332
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
2333
+ button.eps-link-button {
2334
+ cursor: pointer;
2335
+ }
2336
+ 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 {
2337
+ background: none;
2338
+ background-color: inherit;
2339
+ border: none;
2340
+ padding: 0;
2341
+ }
2342
+ button.eps-link-button:hover {
2343
+ color: #aeb7e2;
2344
+ }/* DO NOT CHANGE!*/
2345
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
2333
2346
  /* DO NOT CHANGE!*/
2334
2347
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
2335
2348
  .eps-menu {
@@ -2371,29 +2384,6 @@
2371
2384
  background: #1a8e60;
2372
2385
  }/* DO NOT CHANGE!*/
2373
2386
  /* 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
- }.eps-unbutton, .eps-unbutton:hover, .eps-unbutton:focus, .eps-unbutton:active:focus, .eps-unbutton:active:hover, .eps-unbutton:active {
2386
- background: none;
2387
- background-color: inherit;
2388
- color: inherit;
2389
- border: none;
2390
- padding: 0;
2391
- font: inherit;
2392
- outline: inherit;
2393
- height: inherit;
2394
- min-width: inherit;
2395
- }/* DO NOT CHANGE!*/
2396
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
2397
2387
  /* DO NOT CHANGE!*/
2398
2388
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
2399
2389
  .eps-font-size-extraSmall {
@@ -2668,6 +2658,16 @@ button.eps-link-button:hover {
2668
2658
 
2669
2659
  .eps-font-weight-heading {
2670
2660
  font-weight: 1rem;
2661
+ }.eps-unbutton, .eps-unbutton:hover, .eps-unbutton:focus, .eps-unbutton:active:focus, .eps-unbutton:active:hover, .eps-unbutton:active {
2662
+ background: none;
2663
+ background-color: inherit;
2664
+ color: inherit;
2665
+ border: none;
2666
+ padding: 0;
2667
+ font: inherit;
2668
+ outline: inherit;
2669
+ height: inherit;
2670
+ min-width: inherit;
2671
2671
  }:root {
2672
2672
  --eps-common: 1;
2673
2673
  }
@@ -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) => React.JSX.Element;
5
+ export declare const CookieSettingsMenuItem: ({ locale, onClick }: Props) => import("react/jsx-runtime").JSX.Element;
7
6
  export {};
@@ -1,8 +1,8 @@
1
- import React from "react";
1
+ import { type FC, type ReactNode } from "react";
2
2
  import { Environment } from "../../environment";
3
- export declare const CustomOverflowMenu: React.FC<{
3
+ export declare const CustomOverflowMenu: FC<{
4
4
  className?: string;
5
- children: React.ReactNode;
5
+ children: ReactNode;
6
6
  userName: string;
7
7
  open: boolean;
8
8
  onOpenChange: (open: boolean) => void;
@@ -1,2 +1,2 @@
1
- import React from "react";
2
- export declare const CustomOverflowMenuItem: React.FC<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>>;
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) => React.JSX.Element;
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) => React.JSX.Element;
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) => React.JSX.Element;
5
+ export declare const UserMenuItem: ({ locale, onClick }: Props) => import("react/jsx-runtime").JSX.Element;
7
6
  export {};
@@ -1,5 +1,5 @@
1
- import React from "react";
2
- export declare const VersionMenuItem: React.FC<{
1
+ import type { FC } from "react";
2
+ export declare const VersionMenuItem: FC<{
3
3
  locale: "nb-NO" | "en-GB";
4
4
  onClick: () => void;
5
5
  }>;
@@ -1,2 +1,2 @@
1
- import React from "react";
2
- export declare function useOutsideClick(ref: React.RefObject<HTMLDivElement | null>, buttonRef: React.RefObject<HTMLButtonElement | null>, handler: () => void): void;
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.0",
3
+ "version": "11.1.0",
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.6",
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.1",
44
- "@entur/tokens": "3.22.1",
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.0"
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": "b167f46c19c7ae5949e8df86b375eb56067dbbc8"
64
+ "gitHead": "da8d10d67fa8c3ec058bfba84cd5739c73cae5cb"
65
65
  }