@entur-partner/common 9.3.3-alpha.4 → 10.0.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.
Files changed (47) hide show
  1. package/package.json +3 -3
  2. package/dist/ActionBar.d.ts +0 -9
  3. package/dist/AuditInfo.d.ts +0 -14
  4. package/dist/Box.d.ts +0 -57
  5. package/dist/Breadcrumbs.d.ts +0 -8
  6. package/dist/ConfirmModal.d.ts +0 -28
  7. package/dist/Content.d.ts +0 -10
  8. package/dist/EnturPartnerLogo.d.ts +0 -19
  9. package/dist/ErrorBoundary.d.ts +0 -22
  10. package/dist/ExpandableMultiLanguageInput.d.ts +0 -17
  11. package/dist/FeatureToggle.d.ts +0 -25
  12. package/dist/FormatCurrencyAmount.d.ts +0 -8
  13. package/dist/FormatDateTime.d.ts +0 -7
  14. package/dist/LanguageSelect.d.ts +0 -16
  15. package/dist/Link.d.ts +0 -6
  16. package/dist/LinkButton.d.ts +0 -8
  17. package/dist/Menu.d.ts +0 -10
  18. package/dist/MultiLanguageInput.d.ts +0 -28
  19. package/dist/OrganisationDropdown.d.ts +0 -14
  20. package/dist/PageTitle.d.ts +0 -6
  21. package/dist/Pager.d.ts +0 -8
  22. package/dist/PermissionCheck.d.ts +0 -24
  23. package/dist/RouteLeavingGuard.d.ts +0 -14
  24. package/dist/Stack.d.ts +0 -9
  25. package/dist/StatusLabel.d.ts +0 -11
  26. package/dist/Text.d.ts +0 -21
  27. package/dist/Unbutton.d.ts +0 -7
  28. package/dist/UserMenu/components/CookieSettingsMenuItem.d.ts +0 -9
  29. package/dist/UserMenu/components/CustomOverflowMenu.d.ts +0 -11
  30. package/dist/UserMenu/components/CustomOverflowMenuItem.d.ts +0 -3
  31. package/dist/UserMenu/components/LanguageSwitchMenuItem.d.ts +0 -10
  32. package/dist/UserMenu/components/LogOutMenuItem.d.ts +0 -9
  33. package/dist/UserMenu/components/UserMenuItem.d.ts +0 -9
  34. package/dist/UserMenu/components/VersionMenuItem.d.ts +0 -5
  35. package/dist/UserMenu/index.d.ts +0 -26
  36. package/dist/UserMenu/useOutsideClick.d.ts +0 -2
  37. package/dist/common.cjs.development.js +0 -1131
  38. package/dist/common.cjs.development.js.map +0 -1
  39. package/dist/common.cjs.production.min.js +0 -2
  40. package/dist/common.cjs.production.min.js.map +0 -1
  41. package/dist/common.esm.js +0 -1092
  42. package/dist/common.esm.js.map +0 -1
  43. package/dist/environment.d.ts +0 -13
  44. package/dist/index.d.ts +0 -30
  45. package/dist/index.js +0 -8
  46. package/dist/styles.css +0 -2774
  47. package/dist/useEventListener.d.ts +0 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@entur-partner/common",
3
- "version": "9.3.3-alpha.4",
3
+ "version": "10.0.0",
4
4
  "license": "EUPL-1.2",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/common.esm.js",
@@ -36,7 +36,7 @@
36
36
  "react-router-dom": "^6.22.0"
37
37
  },
38
38
  "dependencies": {
39
- "@entur-partner/util": "^1.3.2-alpha.1",
39
+ "@entur-partner/util": "^1.3.2",
40
40
  "classnames": "^2.2.6"
41
41
  },
42
42
  "devDependencies": {
@@ -58,5 +58,5 @@
58
58
  "reportFile": "jest-sonar-report.xml",
59
59
  "indent": 4
60
60
  },
61
- "gitHead": "f43d055e200cc03274f11b099ee846eef93a11f4"
61
+ "gitHead": "2b5279bfd81f7154664ec025a85d275d6c8c6079"
62
62
  }
@@ -1,9 +0,0 @@
1
- import "./ActionBar.scss";
2
- import React, { type ReactNode } from "react";
3
- export interface ActionBarProps {
4
- children: ReactNode;
5
- }
6
- declare const ActionBarLeft: ({ children }: ActionBarProps) => React.JSX.Element;
7
- declare const ActionBarRight: ({ children }: ActionBarProps) => React.JSX.Element;
8
- declare const ActionBar: ({ children }: ActionBarProps) => React.JSX.Element;
9
- export { ActionBar, ActionBarLeft, ActionBarRight };
@@ -1,14 +0,0 @@
1
- import "./AuditInfo.scss";
2
- import { type FC } from "react";
3
- interface Item {
4
- label: string;
5
- value: Date | string;
6
- }
7
- export interface AuditInfoProps {
8
- items: Item[];
9
- locale: string;
10
- className?: string;
11
- [key: string]: object | string | number | boolean | undefined;
12
- }
13
- export declare const AuditInfo: FC<AuditInfoProps>;
14
- export {};
package/dist/Box.d.ts DELETED
@@ -1,57 +0,0 @@
1
- import "./Box.scss";
2
- import type { ReactNode } from "react";
3
- import React from "react";
4
- type StyleSpacing = "none" | "extraSmall2" | "extraSmall" | "small" | "medium" | "large" | "extraLarge" | "extraLarge2" | "extraLarge3" | "extraLarge4" | "extraLarge5" | "extraLarge6" | "extraLarge7" | "extraLarge8" | "extraLarge9";
5
- type StyleMargin = StyleSpacing | "auto";
6
- type StyleDisplay = "block" | "flex" | "inline" | "inline-block";
7
- type StyleJustifyContent = "center" | "space-between" | "start" | "end";
8
- type StyleAlignItems = "center" | "start" | "end" | "stretch" | "baseline";
9
- type StyleMaxWidth = "none" | "extraSmall" | "small" | "medium" | "large" | "extraLarge" | "extraLarge2" | "extraLarge3" | "extraLarge4" | "extraLarge5" | "extraLarge6" | "full";
10
- type StyleWidth = "auto" | "full";
11
- export type StyleBackground = "blue" | "lavender" | "white" | "blue70";
12
- export type StyleColor = "blue" | "lavender" | "white" | "black";
13
- type StyleFlexDirection = "row" | "column" | "row-reverse" | "column-reverse";
14
- type StyleFlexWrap = "wrap" | "nowrap" | "wrap-reverse";
15
- export type ResponsiveStyleSpacing = StyleSpacing | [StyleSpacing?, StyleSpacing?, StyleSpacing?];
16
- export type ResponsiveStyleMargin = StyleMargin | [StyleMargin?, StyleMargin?, StyleMargin?];
17
- export type ResponsiveStyleDisplay = StyleDisplay | [StyleDisplay?, StyleDisplay?, StyleDisplay?];
18
- export type ResponsiveStyleJustifyContent = StyleJustifyContent | [StyleJustifyContent?, StyleJustifyContent?, StyleJustifyContent?];
19
- export type ResponsiveStyleAlignItems = StyleAlignItems | [StyleAlignItems?, StyleAlignItems?, StyleAlignItems?];
20
- export type ResponsiveStyleMaxWidth = StyleMaxWidth | [StyleMaxWidth?, StyleMaxWidth?, StyleMaxWidth?];
21
- export type ResponsiveStyleWidth = StyleWidth | [StyleWidth?, StyleWidth?, StyleWidth?];
22
- export type ResponsiveStyleFlexDirection = StyleFlexDirection | [StyleFlexDirection?, StyleFlexDirection?, StyleFlexDirection?];
23
- export type ResponsiveStyleFlexWrap = StyleFlexWrap | [StyleFlexWrap?, StyleFlexWrap?, StyleFlexWrap?];
24
- export interface BoxProps {
25
- className?: string;
26
- as?: React.ElementType;
27
- [key: string]: object | string | number | boolean | undefined | ReactNode;
28
- children: ReactNode;
29
- contrast?: boolean;
30
- paddingTop?: ResponsiveStyleSpacing;
31
- paddingRight?: ResponsiveStyleSpacing;
32
- paddingBottom?: ResponsiveStyleSpacing;
33
- paddingLeft?: ResponsiveStyleSpacing;
34
- paddingX?: ResponsiveStyleSpacing;
35
- paddingY?: ResponsiveStyleSpacing;
36
- padding?: ResponsiveStyleSpacing;
37
- marginTop?: ResponsiveStyleMargin;
38
- marginRight?: ResponsiveStyleMargin;
39
- marginBottom?: ResponsiveStyleMargin;
40
- marginLeft?: ResponsiveStyleMargin;
41
- marginX?: ResponsiveStyleMargin;
42
- marginY?: ResponsiveStyleMargin;
43
- margin?: ResponsiveStyleMargin;
44
- display?: ResponsiveStyleDisplay;
45
- justifyContent?: ResponsiveStyleJustifyContent;
46
- alignItems?: ResponsiveStyleAlignItems;
47
- maxWidth?: ResponsiveStyleMaxWidth;
48
- width?: ResponsiveStyleWidth;
49
- background?: StyleBackground;
50
- color?: StyleColor;
51
- flexDirection?: ResponsiveStyleFlexDirection;
52
- flexWrap?: ResponsiveStyleFlexWrap;
53
- }
54
- type ResponsiveProp = string | [string?, string?, string?];
55
- export declare function responsiveProp(prefix: string, prop: ResponsiveProp): string[];
56
- export declare const Box: ({ as: Component, children, contrast, paddingTop, paddingRight, paddingBottom, paddingLeft, paddingX, paddingY, padding, marginTop, marginRight, marginBottom, marginLeft, marginX, marginY, margin, display, justifyContent, alignItems, maxWidth, width, background, color, flexDirection, flexWrap, className, ...rest }: BoxProps) => React.JSX.Element;
57
- export {};
@@ -1,8 +0,0 @@
1
- import "./Breadcrumbs.scss";
2
- import { type FC, type ReactElement } from "react";
3
- export interface BreadcrumbsProps {
4
- pathname: string;
5
- onBreadcrumbLookup: (path: string) => string | undefined;
6
- prependBreadcrumbItem?: ReactElement;
7
- }
8
- export declare const Breadcrumbs: FC<BreadcrumbsProps>;
@@ -1,28 +0,0 @@
1
- import "./ConfirmModal.scss";
2
- import { type ModalProps } from "@entur/modal";
3
- import type { FC, ReactNode } from "react";
4
- import React from "react";
5
- export interface BaseConfirmModalProps extends Partial<ModalProps> {
6
- title: string;
7
- children: React.ReactNode;
8
- closeLabel: string;
9
- /** Deprecated use children prop */
10
- message?: ReactNode;
11
- /** Deprecated use open prop */
12
- isOpen?: boolean;
13
- /** Deprecated use onDismiss prop */
14
- onClose?: () => void;
15
- }
16
- interface CustomConfirmModalButtons extends BaseConfirmModalProps {
17
- buttons: ReactNode[];
18
- }
19
- interface DefaultConfirmModalHandler extends BaseConfirmModalProps {
20
- onConfirm: () => void;
21
- messages: {
22
- confirm: string;
23
- cancel: string;
24
- };
25
- }
26
- export type ConfirmModalProps = CustomConfirmModalButtons | DefaultConfirmModalHandler;
27
- export declare const ConfirmModal: FC<ConfirmModalProps>;
28
- export {};
package/dist/Content.d.ts DELETED
@@ -1,10 +0,0 @@
1
- import "./Content.scss";
2
- import type { FC, ReactNode } from "react";
3
- import React from "react";
4
- interface ContentProps {
5
- children: ReactNode;
6
- as?: "main" | React.ElementType;
7
- className?: string;
8
- }
9
- export declare const Content: FC<ContentProps>;
10
- export {};
@@ -1,19 +0,0 @@
1
- import "./EnturPartnerLogo.scss";
2
- import type { FC } from "react";
3
- import React from "react";
4
- import { Environment } from "./environment";
5
- interface LogoProps {
6
- title: string;
7
- className?: string;
8
- accentColor?: string;
9
- [key: string]: object | string | number | boolean | undefined;
10
- }
11
- export declare const EnturPartnerLogoSvg: FC<LogoProps>;
12
- interface EnturPartnerLogoProps {
13
- altText: string;
14
- as?: "div" | React.ElementType;
15
- className?: string;
16
- environment?: Environment;
17
- }
18
- export declare const EnturPartnerLogo: FC<EnturPartnerLogoProps>;
19
- export {};
@@ -1,22 +0,0 @@
1
- import React, { Component, type ErrorInfo, type ReactNode } from "react";
2
- type FallbackOptions = {
3
- retry: () => void;
4
- error: Error;
5
- };
6
- type RenderProp = (options: FallbackOptions) => ReactNode;
7
- type Props = {
8
- handleError?: (error: Error, errorInfo: ErrorInfo) => void;
9
- fallback: ReactNode | RenderProp;
10
- children: ReactNode;
11
- };
12
- type State = {
13
- error: null | Error;
14
- };
15
- export declare class ErrorBoundary extends Component<Props, State> {
16
- constructor(props: Props);
17
- static getDerivedStateFromError(error: Error): State;
18
- componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
19
- render(): string | number | boolean | Iterable<React.ReactNode> | React.JSX.Element | null | undefined;
20
- }
21
- export declare const LANGUAGE_STORAGE_KEY = "EP::locale";
22
- export {};
@@ -1,17 +0,0 @@
1
- import type { VariantType } from "@entur/form";
2
- import React from "react";
3
- import type { LanguageKey, LanguageOption } from "./LanguageSelect";
4
- export type MultiLanguageValues = Record<LanguageKey, string>;
5
- type ExpandableMultiLanguageInputProps = {
6
- title: string;
7
- inputComponent: React.ElementType;
8
- languages: LanguageOption[];
9
- values: MultiLanguageValues;
10
- onChange: (values: MultiLanguageValues) => void;
11
- name: string;
12
- variant?: (lang: LanguageKey) => VariantType;
13
- feedback?: (lang: LanguageKey) => string;
14
- [key: string]: object | string | number | boolean | undefined;
15
- };
16
- export declare const ExpandableMultiLanguageInput: ({ title, inputComponent: InputComponent, languages, values, onChange, name, variant, feedback, ...rest }: ExpandableMultiLanguageInputProps) => React.JSX.Element;
17
- export {};
@@ -1,25 +0,0 @@
1
- import React, { type ReactNode } from "react";
2
- /**
3
- * Returns true if the provided flag exist in localStorage
4
- * or is set as an environment variable.
5
- *
6
- * @param flag case sensitive flag. If it is an environment variable
7
- * you can drop the VITE_APP_ prefix.
8
- */
9
- export declare function featureFlag(flag: string): boolean;
10
- /**
11
- * Returns true if the provided flag exist in localStorage
12
- * or is set as an environment variable.
13
- *
14
- * @param flag case sensitive flag. If it is an environment variable
15
- * you can drop the VITE_APP_ prefix.
16
- */
17
- export declare function useFeatureToggle(flag: string): boolean;
18
- export interface FeatureToggleProps {
19
- /** Visible if flag exist, hidden if not.*/
20
- children: ReactNode;
21
- /** Case sensitive flag. If it is an environment variable
22
- * you can drop the VITE_APP_ prefix. */
23
- flag: string;
24
- }
25
- export declare const FeatureToggle: ({ children, flag }: FeatureToggleProps) => React.JSX.Element | null;
@@ -1,8 +0,0 @@
1
- import type { FC } from "react";
2
- import React from "react";
3
- export interface FormatCurrencyAmountProps {
4
- amount: number | string;
5
- as?: "span" | React.ElementType;
6
- [key: string]: object | string | number | boolean | undefined;
7
- }
8
- export declare const FormatCurrencyAmount: FC<FormatCurrencyAmountProps>;
@@ -1,7 +0,0 @@
1
- import { type FC } from "react";
2
- export interface FormatDateTimeProps {
3
- date: string | Date;
4
- locale: string;
5
- [key: string]: any;
6
- }
7
- export declare const FormatDateTime: FC<FormatDateTimeProps>;
@@ -1,16 +0,0 @@
1
- import "./LanguageSelect.scss";
2
- import { type FC } from "react";
3
- export type LanguageKey = "nob" | "nno" | "eng";
4
- export interface LanguageOption {
5
- value: LanguageKey;
6
- label: string;
7
- required: boolean;
8
- }
9
- export interface LanguageSelectProps {
10
- language: string;
11
- options: LanguageOption[];
12
- className?: string;
13
- onChange: (language: string) => void;
14
- [key: string]: object | string | number | boolean | undefined;
15
- }
16
- export declare const LanguageSelect: FC<LanguageSelectProps>;
package/dist/Link.d.ts DELETED
@@ -1,6 +0,0 @@
1
- import { type FC } from "react";
2
- import { type LinkProps } from "react-router-dom";
3
- interface Props extends LinkProps {
4
- }
5
- export declare const Link: FC<Props>;
6
- export {};
@@ -1,8 +0,0 @@
1
- import "./LinkButton.scss";
2
- import React, { type ReactNode } from "react";
3
- export interface LinkButtonProps {
4
- children: ReactNode;
5
- className?: string;
6
- [key: string]: object | string | number | boolean | undefined | ReactNode;
7
- }
8
- export declare const LinkButton: ({ children, className, ...rest }: LinkButtonProps) => React.JSX.Element;
package/dist/Menu.d.ts DELETED
@@ -1,10 +0,0 @@
1
- import "./Menu.scss";
2
- import type { FC, ReactNode } from "react";
3
- import React from "react";
4
- interface MenuProps {
5
- children: ReactNode;
6
- as?: "div" | React.ElementType;
7
- className?: string;
8
- }
9
- export declare const Menu: FC<MenuProps>;
10
- export {};
@@ -1,28 +0,0 @@
1
- import "./MultiLanguageInput.scss";
2
- import type { VariantType } from "@entur/form";
3
- import React, { type FC, type FocusEvent } from "react";
4
- import { type LanguageOption } from "./LanguageSelect";
5
- type Values = {
6
- [key: string]: string;
7
- };
8
- export interface MultiLanguageInputProps {
9
- className?: string;
10
- onBlur?: (e: FocusEvent<HTMLDivElement>) => void;
11
- inputComponent: React.ElementType;
12
- values: {
13
- [key: string]: string;
14
- };
15
- languages: LanguageOption[];
16
- onChange: (values: Values) => void;
17
- name: string;
18
- alertLevel?: VariantType;
19
- alertLabel?: string;
20
- label?: string;
21
- defaultLanguage?: string;
22
- [key: string]: object | string | number | boolean | undefined;
23
- }
24
- /**
25
- * @deprecated use ExpandableMultiLanguageInput
26
- */
27
- export declare const MultiLanguageInput: FC<MultiLanguageInputProps>;
28
- export {};
@@ -1,14 +0,0 @@
1
- import { type FC } from "react";
2
- interface OrganisationV3 {
3
- organisationId: number;
4
- tradingName: string;
5
- }
6
- interface OrganisationDropDownProps {
7
- label: string;
8
- onChange: (organisationId: number) => void;
9
- organisations: OrganisationV3[];
10
- selectedOrganisationId?: number;
11
- [key: string]: object | string | number | boolean | undefined;
12
- }
13
- export declare const OrganisationDropDown: FC<OrganisationDropDownProps>;
14
- export {};
@@ -1,6 +0,0 @@
1
- type Props = {
2
- readonly pathname: string;
3
- readonly onBreadcrumbLookup: (path: string) => string | undefined;
4
- };
5
- export declare const PageTitle: ({ pathname, onBreadcrumbLookup }: Props) => null;
6
- export {};
package/dist/Pager.d.ts DELETED
@@ -1,8 +0,0 @@
1
- import { type FC } from "react";
2
- export interface PagerProps {
3
- currentPage: number;
4
- collectionSize: number;
5
- pageSize: number;
6
- onPageChange: (page: number) => void;
7
- }
8
- export declare const Pager: FC<PagerProps>;
@@ -1,24 +0,0 @@
1
- import type { BusinessCapability } from "@entur-partner/permission-client-node";
2
- import { type FC, type ReactNode } from "react";
3
- /**
4
- * Note: We use BusinessCapability here, not because we only want to check
5
- * BusinessCapabilities but because it represents a minimal subset of what we
6
- * need to check.
7
- */
8
- export interface PermissionCheckProps {
9
- children: ReactNode;
10
- /** User permissions to check */
11
- permissions: BusinessCapability[];
12
- /** Check that at least one of the permissions is present */
13
- oneOf?: BusinessCapability[];
14
- /** Check that all of the permissions is present */
15
- all?: BusinessCapability[] | BusinessCapability;
16
- /** Rendered if check fails. Defaults to null */
17
- fallback?: ReactNode;
18
- }
19
- /**
20
- * Note: This component uses BusinessCapability, not because we only want to
21
- * check BusinessCapabilities but because it represents a minimal subset of
22
- * what we need to check.
23
- */
24
- export declare const PermissionCheck: FC<PermissionCheckProps>;
@@ -1,14 +0,0 @@
1
- import type { ModalProps } from "@entur/modal";
2
- import type { Location } from "history";
3
- import { type FC, type ReactNode } from "react";
4
- export interface RouteLeavingGuardProps extends Partial<ModalProps> {
5
- title: string;
6
- closeLabel: string;
7
- messages: {
8
- cancel: string;
9
- confirm: string;
10
- };
11
- children: ReactNode;
12
- shouldBlockNavigation: (location: Location) => boolean;
13
- }
14
- export declare const RouteLeavingGuard: FC<RouteLeavingGuardProps>;
package/dist/Stack.d.ts DELETED
@@ -1,9 +0,0 @@
1
- /** biome-ignore-all lint/suspicious/noArrayIndexKey: Ignore for now. Should be tested properly before doing changes */
2
- import React, { type ReactNode } from "react";
3
- import { type ResponsiveStyleSpacing } from "./Box";
4
- export interface StackProps {
5
- className?: string;
6
- children: ReactNode;
7
- space: ResponsiveStyleSpacing;
8
- }
9
- export declare const Stack: ({ children, space, className }: StackProps) => React.JSX.Element;
@@ -1,11 +0,0 @@
1
- import "./StatusLabel.scss";
2
- import { type FC } from "react";
3
- interface StatusLabelProps {
4
- label: string;
5
- active: boolean;
6
- aggressiveInactive?: boolean;
7
- showBullet?: boolean;
8
- center?: boolean;
9
- }
10
- export declare const StatusLabel: FC<StatusLabelProps>;
11
- export {};
package/dist/Text.d.ts DELETED
@@ -1,21 +0,0 @@
1
- import "./Text.scss";
2
- import type { ReactNode } from "react";
3
- import React from "react";
4
- import { type StyleColor } from "./Box";
5
- type StyleFontSize = "extraSmall" | "small" | "medium" | "large" | "extraLarge" | "extraLarge2" | "extraLarge3" | "extraLarge4";
6
- type StyleFontWeight = "body" | "heading";
7
- type StyleLineHeight = "extraSmall" | "small" | "medium" | "large" | "extraLarge" | "extraLarge2" | "extraLarge3" | "extraLarge4" | "extraLarge5" | "extraLarge6" | "extraLarge7";
8
- export type ResponsiveStyleFontSize = StyleFontSize | [StyleFontSize?, StyleFontSize?, StyleFontSize?];
9
- export type ResponsiveStyleLineHeight = StyleLineHeight | [StyleLineHeight?, StyleLineHeight?, StyleLineHeight?];
10
- export interface TextProps {
11
- className?: string;
12
- as?: React.ElementType;
13
- children: ReactNode;
14
- fontSize?: ResponsiveStyleFontSize;
15
- lineHeight?: ResponsiveStyleLineHeight;
16
- color?: StyleColor;
17
- fontWeight?: StyleFontWeight;
18
- [key: string]: any;
19
- }
20
- export declare const Text: ({ as: component, children, fontSize, color, lineHeight, fontWeight, className, ...rest }: TextProps) => React.JSX.Element;
21
- export {};
@@ -1,7 +0,0 @@
1
- import "./Unbutton.scss";
2
- import { Button, type ButtonProps } from "@entur/button";
3
- import { type FC } from "react";
4
- interface UnbuttonProps extends Omit<ButtonProps<typeof Button>, "variant"> {
5
- }
6
- export declare const Unbutton: FC<UnbuttonProps>;
7
- export {};
@@ -1,9 +0,0 @@
1
- import "../index.scss";
2
- import React from "react";
3
- type Props = {
4
- name: string;
5
- setOpen: (open: boolean) => void;
6
- onCookieSettingsOpen: () => void;
7
- };
8
- export declare const CookieSettingsMenuItem: ({ name, setOpen, onCookieSettingsOpen, }: Props) => React.JSX.Element;
9
- export {};
@@ -1,11 +0,0 @@
1
- import "../index.scss";
2
- import React from "react";
3
- import { Environment } from "../../environment";
4
- export declare const CustomOverflowMenu: React.FC<{
5
- className?: string;
6
- children: React.ReactNode;
7
- userName: string;
8
- open: boolean;
9
- onOpenChange: (open: boolean) => void;
10
- environment?: Environment;
11
- }>;
@@ -1,3 +0,0 @@
1
- import "../index.scss";
2
- import React from "react";
3
- export declare const CustomOverflowMenuItem: React.FC<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>>;
@@ -1,10 +0,0 @@
1
- import "../index.scss";
2
- import React from "react";
3
- type Props = {
4
- language: string;
5
- onLanguageChange: (language: string) => void;
6
- setOpen: (open: boolean) => void;
7
- name: string;
8
- };
9
- export declare const LanguageSwitchMenuItem: ({ language, onLanguageChange, setOpen, name, }: Props) => React.JSX.Element;
10
- export {};
@@ -1,9 +0,0 @@
1
- import "../index.scss";
2
- import React from "react";
3
- type Props = {
4
- name: string;
5
- setOpen: (open: boolean) => void;
6
- onLogout: () => void;
7
- };
8
- export declare const LogOutMenuItem: ({ name, setOpen, onLogout }: Props) => React.JSX.Element;
9
- export {};
@@ -1,9 +0,0 @@
1
- import "../index.scss";
2
- import React from "react";
3
- type Props = {
4
- name: string;
5
- setOpen: (open: boolean) => void;
6
- onNavigateToMyProfile: () => void;
7
- };
8
- export declare const UserMenuItem: ({ name, setOpen, onNavigateToMyProfile, }: Props) => React.JSX.Element;
9
- export {};
@@ -1,5 +0,0 @@
1
- import React from "react";
2
- export declare const VersionMenuItem: React.FC<{
3
- title: string;
4
- setOpen: (isOpen: boolean) => void;
5
- }>;
@@ -1,26 +0,0 @@
1
- /** biome-ignore-all lint/correctness/useUniqueElementIds: Ignore unique id for now */
2
- import "./index.scss";
3
- import { type FC } from "react";
4
- import type { Environment } from "../environment";
5
- interface UserMenuProps {
6
- userName: string;
7
- messages: {
8
- logout: string;
9
- switchLanguage: string;
10
- appVersion?: string;
11
- myProfile?: string;
12
- cookieSettings?: string;
13
- };
14
- onLogout: () => void;
15
- onLanguageChange: (language: string) => void;
16
- language: string;
17
- className?: string;
18
- environment?: Environment;
19
- showVersionItem?: boolean;
20
- showMyProfileItem?: boolean;
21
- showCookieSettingsItem?: boolean;
22
- onNavigateToMyProfile: () => void;
23
- onCookieSettingsOpen?: () => void;
24
- }
25
- export declare const UserMenu: FC<UserMenuProps>;
26
- export {};
@@ -1,2 +0,0 @@
1
- import React from "react";
2
- export declare function useOutsideClick(ref: React.RefObject<HTMLDivElement>, buttonRef: React.RefObject<HTMLButtonElement>, handler: () => void): void;