@ukpc-lib/react 0.0.6 → 0.0.8

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.
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ type DropdownProps = {
3
+ children: React.ReactNode;
4
+ parentRef: React.RefObject<HTMLDivElement>;
5
+ onlyChild?: boolean;
6
+ };
7
+ export default function Dropdown(props: DropdownProps): import("react").ReactNode;
8
+ export {};
@@ -0,0 +1,11 @@
1
+ import { MenuItemDto } from '../models';
2
+ type MenuItemProps = {
3
+ item: MenuItemDto;
4
+ level?: number;
5
+ isActive(id: number): boolean;
6
+ isCollapsed: boolean;
7
+ expanded(id: number): boolean;
8
+ toggleExpand: (id: number) => void;
9
+ };
10
+ export default function MenuItem({ item, level, ...props }: MenuItemProps): import("react/jsx-runtime").JSX.Element;
11
+ export {};
@@ -0,0 +1,2 @@
1
+ declare function IconCollapsed(): import("react/jsx-runtime").JSX.Element;
2
+ export default IconCollapsed;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare function IconDown(props: React.SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
3
+ export default IconDown;
@@ -0,0 +1,2 @@
1
+ declare function IconExpand(): import("react/jsx-runtime").JSX.Element;
2
+ export default IconExpand;
@@ -1,6 +1,7 @@
1
1
  type GlobalMenuProps = {
2
2
  baseUrl: string;
3
3
  menuPath?: string;
4
+ logout(): void;
4
5
  };
5
6
  export declare function GlobalMenu(props: GlobalMenuProps): import("react/jsx-runtime").JSX.Element;
6
7
  export {};
@@ -0,0 +1 @@
1
+ export default function LanguageSwitcher(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,8 @@
1
+ import React, { PropsWithChildren } from 'react';
2
+ type OwnProps = {
3
+ styles?: string[];
4
+ };
5
+ type ElementProps = React.HTMLProps<HTMLElement>;
6
+ type Props = PropsWithChildren<OwnProps & ElementProps>;
7
+ export declare function ShadowDomWrapper({ children, styles, ...props }: Props): import("react/jsx-runtime").JSX.Element;
8
+ export {};
@@ -1,4 +1,9 @@
1
1
  import { CSSProperties } from 'react';
2
+ type CustomColors = {
3
+ primaryColor: string;
4
+ bgColor: string;
5
+ color: string;
6
+ };
2
7
  type User = {
3
8
  firstName: string;
4
9
  lastName: string;
@@ -13,5 +18,6 @@ export declare function TopBar({ logo, user, baseUrl, style, classNames, }: {
13
18
  baseUrl: string;
14
19
  style?: CSSProperties;
15
20
  classNames?: string;
21
+ customColors?: CustomColors;
16
22
  }): import("react/jsx-runtime").JSX.Element;
17
23
  export {};