@ukpc-lib/react 0.10.1 → 0.10.3

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 (86) hide show
  1. package/dist/application.d.ts +1 -0
  2. package/dist/components/BaseCheckBox/index.d.ts +1 -0
  3. package/dist/components/BaseSwitch/index.d.ts +1 -0
  4. package/dist/components/FavoriteMenu/components/Dropdown.d.ts +0 -1
  5. package/dist/components/FavoriteMenu/components/MenuIconComponent.d.ts +2 -1
  6. package/dist/components/FavoriteMenu/components/MenuItem.d.ts +1 -0
  7. package/dist/components/FavoriteMenu/components/Placeholder.d.ts +2 -1
  8. package/dist/components/FavoriteMenu/components/Tooltip.d.ts +2 -1
  9. package/dist/components/FavoriteMenu/icons/IconDown.d.ts +0 -1
  10. package/dist/components/FavoriteMenu/icons/IconLogout.d.ts +0 -1
  11. package/dist/components/FavoriteMenu/index.d.ts +1 -0
  12. package/dist/components/FilterWraper/FilterIcon.d.ts +1 -0
  13. package/dist/components/FilterWraper/index.d.ts +1 -0
  14. package/dist/components/GlobalMenu/components/Dropdown.d.ts +0 -1
  15. package/dist/components/GlobalMenu/components/MenuIconComponent.d.ts +2 -1
  16. package/dist/components/GlobalMenu/components/MenuItem.d.ts +1 -0
  17. package/dist/components/GlobalMenu/components/Placeholder.d.ts +2 -1
  18. package/dist/components/GlobalMenu/components/Tooltip.d.ts +2 -1
  19. package/dist/components/GlobalMenu/hooks/useOpenMenuIds.d.ts +1 -2
  20. package/dist/components/GlobalMenu/icons/IconDown.d.ts +0 -1
  21. package/dist/components/GlobalMenu/icons/IconLogout.d.ts +0 -1
  22. package/dist/components/GlobalMenu/index.d.ts +1 -0
  23. package/dist/components/IconButton/index.d.ts +1 -0
  24. package/dist/components/MultiProvider.d.ts +2 -1
  25. package/dist/components/NoData/index.d.ts +1 -0
  26. package/dist/components/Notification/NotificationList/components/AllContent.d.ts +1 -0
  27. package/dist/components/Notification/NotificationList/components/CustomOpenListContext.d.ts +2 -1
  28. package/dist/components/Notification/NotificationList/components/NotitficationItem.d.ts +1 -0
  29. package/dist/components/Notification/NotificationList/components/query.d.ts +1 -0
  30. package/dist/components/Notification/NotificationList/index.d.ts +1 -0
  31. package/dist/components/Notification/Subcription/index.d.ts +1 -0
  32. package/dist/components/Notification/Tabs/index.d.ts +1 -1
  33. package/dist/components/Notification/firebase/firebaseConfig.d.ts +1 -0
  34. package/dist/components/Notification/models/NotiticationDto.d.ts +2 -2
  35. package/dist/components/PopUp/index.d.ts +1 -0
  36. package/dist/components/PopUp/types.d.ts +3 -2
  37. package/dist/components/SearchTypeSelect/index.d.ts +1 -0
  38. package/dist/components/ShadownDom/index.d.ts +2 -1
  39. package/dist/components/StyledAutocomplete/AutocompleteOption.d.ts +1 -0
  40. package/dist/components/StyledAutocomplete/StyledAutocomplete.d.ts +1 -0
  41. package/dist/components/StyledAutocomplete/useStyledAutocomplete.d.ts +1 -0
  42. package/dist/components/StyledDateRangePicker/BlockIcon.d.ts +1 -0
  43. package/dist/components/StyledDateRangePicker/index.d.ts +1 -0
  44. package/dist/components/Toast/ToastConfig.d.ts +1 -0
  45. package/dist/components/Toast/ToastConfigNotification.d.ts +1 -0
  46. package/dist/components/Toast/index.d.ts +1 -1
  47. package/dist/components/Topbar/components/autocomplete/ClearIcon.d.ts +7 -0
  48. package/dist/components/Topbar/components/autocomplete/Results.d.ts +17 -0
  49. package/dist/components/Topbar/components/autocomplete/SearchIcon.d.ts +3 -0
  50. package/dist/components/Topbar/components/autocomplete/SearchInput.d.ts +18 -0
  51. package/dist/components/Topbar/components/autocomplete/config/config.d.ts +22 -0
  52. package/dist/components/Topbar/components/autocomplete/searchAutocomplete.d.ts +32 -0
  53. package/dist/components/Topbar/components/autocomplete/utils/utils.d.ts +1 -0
  54. package/dist/components/Topbar/icons/MessageIcon.d.ts +2 -1
  55. package/dist/components/Topbar/icons/NotificationIcon.d.ts +1 -0
  56. package/dist/components/Topbar/icons/SearchIcon.d.ts +2 -1
  57. package/dist/components/Topbar/icons/country-flags/GermanyIcon.d.ts +1 -0
  58. package/dist/components/Topbar/icons/country-flags/UnitedKingdomIcon.d.ts +1 -0
  59. package/dist/components/Topbar/index.d.ts +1 -0
  60. package/dist/components/index.cjs +31 -44
  61. package/dist/components/index.d.ts +1 -1
  62. package/dist/components/index.js +5074 -4033
  63. package/dist/{index.module-eda9cb3b.js → index.module-0d16ee2f.js} +10045 -10014
  64. package/dist/{index.module-7e4f51f2.cjs → index.module-9fbc52eb.cjs} +136 -136
  65. package/dist/main.d.ts +1 -0
  66. package/dist/share/AuthProvider/index.d.ts +2 -1
  67. package/dist/share/TranslationProvider/index.d.ts +5 -4
  68. package/dist/share/hooks/useUser.d.ts +1 -1
  69. package/dist/share/hooks/useUserPermissions.d.ts +1 -1
  70. package/dist/share/index.cjs +1 -1
  71. package/dist/share/index.js +1 -1
  72. package/dist/share/interceptor/index.d.ts +2 -2
  73. package/dist/share/permissions/HasPermission.d.ts +1 -0
  74. package/dist/share/permissions/PermissionRoute.d.ts +1 -0
  75. package/dist/theme/SaasThemeProvider.d.ts +1 -0
  76. package/dist/theme/Theme.d.ts +2 -1
  77. package/dist/theme/typography.d.ts +1 -0
  78. package/dist/translations/config.d.ts +2 -1
  79. package/package.json +7 -3
  80. package/web-components-bundle/access-denied/index.js +1 -1
  81. package/web-components-bundle/favorite-menu/index.js +2 -2
  82. package/web-components-bundle/global-menu/index.js +2 -2
  83. package/web-components-bundle/global-topbar/index.js +2 -2
  84. package/web-components-bundle/has-permission/index.js +2 -2
  85. package/web-components-bundle/{index-c429861b.js → index-1fcfd93b.js} +17250 -15767
  86. package/web-components-bundle/{index-0de70dab.js → index-da73806d.js} +1994 -1968
@@ -1 +1,2 @@
1
+
1
2
  export default function Application(): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,5 @@
1
1
  import { CheckboxProps, SvgIconProps } from '@mui/material';
2
+
2
3
  export declare function UncheckedIcon(props: SvgIconProps): import("react/jsx-runtime").JSX.Element;
3
4
  export declare function CheckedIcon(props: SvgIconProps): import("react/jsx-runtime").JSX.Element;
4
5
  export declare function BaseCheckbox(props: CheckboxProps): import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,6 @@
1
1
  import { FormControlLabelProps, SwitchProps } from '@mui/material';
2
2
  import { ReactNode } from 'react';
3
+
3
4
  type Props = {
4
5
  formProps?: Partial<FormControlLabelProps>;
5
6
  iosSwitchProps?: SwitchProps;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  type C = {
3
2
  maxHeight: any;
4
3
  };
@@ -1,6 +1,7 @@
1
1
  import { ReactElement } from 'react';
2
2
  import { MenuItemDto } from '../models';
3
+
3
4
  export type IconType = 'text' | 'svgHtml' | 'svgHttp' | 'img';
4
5
  export declare function IconComponent({ item }: {
5
6
  item: MenuItemDto;
6
- }): ReactElement<any, string | import("react").JSXElementConstructor<any>>;
7
+ }): ReactElement<any, string | import('react').JSXElementConstructor<any>>;
@@ -1,6 +1,7 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { Identity, MenuItemDto } from '../models';
3
3
  import { ColorsType } from '../../../theme/Colors';
4
+
4
5
  export type OwnMenuItemProps = {
5
6
  replacePath?(path: string): string;
6
7
  ssr?: boolean;
@@ -1,5 +1,6 @@
1
1
  import { NodeModel } from '@minoru/react-dnd-treeview';
2
- import React from 'react';
2
+ import { default as React } from 'react';
3
+
3
4
  type Props = {
4
5
  node: NodeModel;
5
6
  depth: number;
@@ -1,4 +1,5 @@
1
- import React from 'react';
1
+ import { default as React } from 'react';
2
+
2
3
  type TooltipProps = {
3
4
  hasTooltip?: boolean;
4
5
  children: React.ReactNode;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare function IconDown(props: React.SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
3
2
  export default IconDown;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export default function IconLogout(props: React.SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,5 @@
1
1
  import { OwnMenuItemProps } from './components/MenuItem';
2
+
2
3
  export type FavoriteMenuProps = {
3
4
  baseUrl: string;
4
5
  menuPath?: string;
@@ -1,4 +1,5 @@
1
1
  import { SVGProps } from 'react';
2
+
2
3
  type Props = SVGProps<SVGSVGElement>;
3
4
  export default function FilterIcon(props: Props): import("react/jsx-runtime").JSX.Element;
4
5
  export {};
@@ -1,4 +1,5 @@
1
1
  import { PropsWithChildren } from 'react';
2
+
2
3
  type FilterWrapperProps = PropsWithChildren<{
3
4
  onReset?(): void;
4
5
  customAction?: React.ReactNode;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  type C = {
3
2
  maxHeight: any;
4
3
  };
@@ -1,6 +1,7 @@
1
1
  import { ReactElement } from 'react';
2
2
  import { MenuItemDto } from '../models';
3
+
3
4
  export type IconType = 'text' | 'svgHtml' | 'svgHttp' | 'img';
4
5
  export declare function IconComponent({ item }: {
5
6
  item: MenuItemDto;
6
- }): ReactElement<any, string | import("react").JSXElementConstructor<any>>;
7
+ }): ReactElement<any, string | import('react').JSXElementConstructor<any>>;
@@ -1,6 +1,7 @@
1
1
  import { NodeModel, RenderParams } from '@minoru/react-dnd-treeview';
2
2
  import { ColorsType } from '../../../theme/Colors';
3
3
  import { Identity, MenuItemDto } from '../models';
4
+
4
5
  export type OwnMenuItemProps = {
5
6
  replacePath?(path: string): string;
6
7
  ssr?: boolean;
@@ -1,5 +1,6 @@
1
1
  import { NodeModel } from '@minoru/react-dnd-treeview';
2
- import React from 'react';
2
+ import { default as React } from 'react';
3
+
3
4
  type Props = {
4
5
  node: NodeModel;
5
6
  depth: number;
@@ -1,4 +1,5 @@
1
- import React from 'react';
1
+ import { default as React } from 'react';
2
+
2
3
  type TooltipProps = {
3
4
  hasTooltip?: boolean;
4
5
  children: React.ReactNode;
@@ -1,6 +1,5 @@
1
- /// <reference types="react" />
2
1
  type Props = {
3
2
  initOpenIds?: number[];
4
3
  };
5
- declare const useOpeningMenuIds: (props?: Props) => readonly [number[], import("react").Dispatch<import("react").SetStateAction<number[]>>];
4
+ declare const useOpeningMenuIds: (props?: Props) => readonly [number[], import('react').Dispatch<import('react').SetStateAction<number[]>>];
6
5
  export default useOpeningMenuIds;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare function IconDown(props: React.SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
3
2
  export default IconDown;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export default function IconLogout(props: React.SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,6 @@
1
1
  import { OwnMenuItemProps } from './components/MenuItem';
2
2
  import { MenuItemDto } from './models/MenuItemDto';
3
+
3
4
  export type GlobalMenuProps = {
4
5
  baseUrl: string;
5
6
  menuPath?: string;
@@ -1,4 +1,5 @@
1
1
  import { IconButtonProps } from '@mui/material';
2
+
2
3
  type Props = IconButtonProps;
3
4
  declare const BaseIconButton: (props: Props) => import("react/jsx-runtime").JSX.Element;
4
5
  export default BaseIconButton;
@@ -1,4 +1,5 @@
1
- import React from 'react';
1
+ import { default as React } from 'react';
2
+
2
3
  export type TMultiProviderProps = React.PropsWithChildren<{
3
4
  providers: React.ReactElement[];
4
5
  }>;
@@ -1,2 +1,3 @@
1
1
  import { FC, PropsWithChildren } from 'react';
2
+
2
3
  export declare const NoData: FC<PropsWithChildren>;
@@ -1,4 +1,5 @@
1
1
  import { FC } from 'react';
2
2
  import { NotificationItemProps } from '../../models/NotiticationDto';
3
+
3
4
  declare const AllContent: FC<NotificationItemProps>;
4
5
  export default AllContent;
@@ -1,5 +1,6 @@
1
1
  import { FC, PropsWithChildren } from 'react';
2
2
  import { AllNotificationType } from '../../models/NotiticationDto';
3
+
3
4
  type CustomProps = {
4
5
  isOpen: boolean;
5
6
  toggleOpen: () => void;
@@ -7,6 +8,6 @@ type CustomProps = {
7
8
  notidata: AllNotificationType;
8
9
  setNotiData: React.Dispatch<React.SetStateAction<AllNotificationType>>;
9
10
  };
10
- export declare const CustomOpenList: import("react").Context<CustomProps>;
11
+ export declare const CustomOpenList: import('react').Context<CustomProps>;
11
12
  export declare const CustomOpenListProvider: FC<PropsWithChildren>;
12
13
  export {};
@@ -1,5 +1,6 @@
1
1
  import { NotificationItemDto } from '../../models/NotiticationDto';
2
2
  import { ColorsType } from '../../../../theme';
3
+
3
4
  type ItemProps = {
4
5
  notification: NotificationItemDto;
5
6
  handleUpdateRead?: (id: number, isRead: boolean) => void;
@@ -1,2 +1,3 @@
1
1
  import { NotiDataType } from '../../models/NotiticationDto';
2
+
2
3
  export declare const useGetNotiData: ({ baseUrl, notiPath, setNotiData, }: NotiDataType) => () => Promise<void>;
@@ -1,3 +1,4 @@
1
1
  import { NotificationApiProps } from '../models/NotiticationDto';
2
+
2
3
  declare const NotificationList: ({ baseUrl, notiPath, brandColors, }: NotificationApiProps) => import("react/jsx-runtime").JSX.Element;
3
4
  export default NotificationList;
@@ -1,3 +1,4 @@
1
1
  import { firebaseProps } from '..';
2
+
2
3
  declare const Subscription: (props: firebaseProps) => import("react/jsx-runtime").JSX.Element;
3
4
  export default Subscription;
@@ -1,5 +1,5 @@
1
- /// <reference types="react" />
2
1
  import { ColorsType } from '../../../theme/Colors';
2
+
3
3
  export type TabsProps = {
4
4
  id: string;
5
5
  tabTitle: string;
@@ -1,5 +1,6 @@
1
1
  import { firebaseProps } from '../../main';
2
2
  import { AllNotificationType } from '../models/NotiticationDto';
3
+
3
4
  export declare const requestForToken: (props: firebaseProps) => void;
4
5
  export declare const channelBroastcast: (setNotiData: React.Dispatch<React.SetStateAction<AllNotificationType>>) => void;
5
6
  export declare const onMessageListener: (props: firebaseProps) => Promise<unknown>;
@@ -1,5 +1,5 @@
1
- /// <reference types="react" />
2
- import { ColorsType } from "../../../theme";
1
+ import { ColorsType } from '../../../theme';
2
+
3
3
  export interface NotificationItemProps {
4
4
  notidata: NotificationItemDto[];
5
5
  handleUpdateReadAll?: () => void;
@@ -1,4 +1,5 @@
1
1
  import { PopUpBaseProps, usePopUpProps } from './types';
2
+
2
3
  export declare function PopUpBase(props: PopUpBaseProps): import("react/jsx-runtime").JSX.Element;
3
4
  export declare function usePopUp(props?: boolean | usePopUpProps): {
4
5
  setTrue: () => void;
@@ -1,5 +1,6 @@
1
- import { SxProps, TypographyProps, Theme, DialogProps, DialogActionsProps } from "@mui/material";
2
- import { ReactNode } from "react";
1
+ import { SxProps, TypographyProps, Theme, DialogProps, DialogActionsProps } from '@mui/material';
2
+ import { ReactNode } from 'react';
3
+
3
4
  export type PopUpBaseProps = IPopUp & {
4
5
  title?: ReactNode;
5
6
  subTitle?: ReactNode;
@@ -1,4 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
+
2
3
  export type SearchTypeProps<T> = {
3
4
  listData: T[];
4
5
  value?: T;
@@ -1,4 +1,5 @@
1
- import React, { PropsWithChildren } from 'react';
1
+ import { default as React, PropsWithChildren } from 'react';
2
+
2
3
  type OwnProps = {
3
4
  styles?: string[];
4
5
  };
@@ -1,5 +1,6 @@
1
1
  import { StackProps } from '@mui/material';
2
2
  import { ReactNode } from 'react';
3
+
3
4
  type Props<T> = {
4
5
  option: T;
5
6
  renderOption(option: T): ReactNode;
@@ -1,5 +1,6 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { Paging } from './types';
3
+
3
4
  export type StyledAutocompleteProps<T> = {
4
5
  disabledAllOption?: boolean;
5
6
  readOnly?: boolean;
@@ -1,6 +1,7 @@
1
1
  import { DependencyList } from 'react';
2
2
  import { ListProps, Paging } from './types';
3
3
  import { StyledAutocompleteProps } from './StyledAutocomplete';
4
+
4
5
  export declare function useStyledAutocomplete<T, P extends ListProps<T>>(props: UseAutocomplete<T, P>): TypeReturn<T, P>;
5
6
  type SearchList<T> = {
6
7
  searchFields: (keyof T)[];
@@ -1,4 +1,5 @@
1
1
  import { SVGProps } from 'react';
2
+
2
3
  type BlockIconProps = SVGProps<SVGSVGElement>;
3
4
  export declare function BlockIcon(props: BlockIconProps): import("react/jsx-runtime").JSX.Element;
4
5
  export {};
@@ -1,3 +1,4 @@
1
+
1
2
  interface DateRangeValue {
2
3
  startDate?: Date;
3
4
  endDate?: Date;
@@ -1,2 +1,3 @@
1
1
  import { ToastContainerProps } from 'react-toastify';
2
+
2
3
  export declare const ToastConfig: (props: ToastContainerProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,3 @@
1
1
  import { ToastContainerProps } from 'react-toastify';
2
+
2
3
  export declare const ToastConfigNotification: (props: ToastContainerProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { ToastOptions } from 'react-toastify';
3
- import 'react-toastify/dist/ReactToastify.css';
3
+
4
4
  declare const pushSuccess: (message: ReactNode, options?: ToastOptions) => void;
5
5
  declare const pushError: (message: ReactNode, options?: ToastOptions) => void;
6
6
  declare const pushWarning: (message: ReactNode, options?: ToastOptions) => void;
@@ -0,0 +1,7 @@
1
+ export declare const ClearIcon: ({ showClear, setSearchString, searchString, setFocus, onClear, }: {
2
+ showClear: boolean;
3
+ setSearchString: Function;
4
+ searchString: string;
5
+ setFocus: Function;
6
+ onClear: Function;
7
+ }) => import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,17 @@
1
+ export type Item<T> = T & {
2
+ [key: string]: any;
3
+ };
4
+ export interface ResultsProps<T> {
5
+ results: Item<T>[];
6
+ onClick: Function;
7
+ highlightedItem: number;
8
+ setHighlightedItem: Function;
9
+ setSearchString: Function;
10
+ formatResult?: Function;
11
+ showIcon: boolean;
12
+ maxResults: number;
13
+ resultStringKeyName: string;
14
+ showNoResultsFlag?: boolean;
15
+ showNoResultsText?: string;
16
+ }
17
+ export default function Results<T>({ results, onClick, setSearchString, showIcon, maxResults, resultStringKeyName, highlightedItem, setHighlightedItem, formatResult, showNoResultsFlag, showNoResultsText, }: ResultsProps<T>): import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,3 @@
1
+ export declare const SearchIcon: ({ showIcon }: {
2
+ showIcon: boolean;
3
+ }) => import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,18 @@
1
+ import { ChangeEventHandler, FocusEventHandler } from 'react';
2
+
3
+ interface SearchInputProps {
4
+ searchString: string;
5
+ setSearchString: ChangeEventHandler<HTMLInputElement>;
6
+ setHighlightedItem: Function;
7
+ eraseResults: Function;
8
+ autoFocus: boolean;
9
+ onFocus: FocusEventHandler<HTMLInputElement>;
10
+ onClear: Function;
11
+ placeholder: string;
12
+ showIcon: boolean;
13
+ showClear: boolean;
14
+ maxLength: number;
15
+ baseUrl: string;
16
+ }
17
+ export default function searchInput({ searchString, setSearchString, setHighlightedItem, eraseResults, autoFocus, onFocus, onClear, placeholder, showIcon, showClear, maxLength, baseUrl, }: SearchInputProps): import("react/jsx-runtime").JSX.Element;
18
+ export {};
@@ -0,0 +1,22 @@
1
+ import { default as Fuse } from 'fuse.js';
2
+
3
+ export interface DefaultTheme {
4
+ height?: string;
5
+ border?: string;
6
+ borderRadius?: string;
7
+ backgroundColor?: string;
8
+ boxShadow?: string;
9
+ hoverBackgroundColor?: string;
10
+ color?: string;
11
+ fontSize?: string;
12
+ fontFamily?: string;
13
+ iconColor?: string;
14
+ lineColor?: string;
15
+ placeholderColor?: string;
16
+ zIndex?: number;
17
+ clearIconMargin?: string;
18
+ searchIconMargin?: string;
19
+ }
20
+ declare const defaultTheme: DefaultTheme;
21
+ declare const defaultFuseOptions: Fuse.IFuseOptions<any>;
22
+ export { defaultTheme, defaultFuseOptions };
@@ -0,0 +1,32 @@
1
+ import { default as Fuse } from 'fuse.js';
2
+ import { FocusEventHandler } from 'react';
3
+ import { DefaultTheme } from './config/config';
4
+
5
+ export declare const DEFAULT_INPUT_DEBOUNCE = 200;
6
+ export declare const MAX_RESULTS = 10;
7
+ export interface SearchAutocompleteProps<T> {
8
+ items: T[];
9
+ fuseOptions?: Fuse.IFuseOptions<T>;
10
+ inputDebounce?: number;
11
+ onSearch?: (keyword: string, results: T[]) => void;
12
+ onHover?: (result: T) => void;
13
+ onSelect?: (result: T) => void;
14
+ onFocus?: FocusEventHandler<HTMLInputElement>;
15
+ onClear?: Function;
16
+ showIcon?: boolean;
17
+ showClear?: boolean;
18
+ maxResults?: number;
19
+ placeholder?: string;
20
+ autoFocus?: boolean;
21
+ styling?: DefaultTheme;
22
+ resultStringKeyName?: string;
23
+ inputSearchString?: string;
24
+ formatResult?: Function;
25
+ showNoResults?: boolean;
26
+ showNoResultsText?: string;
27
+ showItemsOnFocus?: boolean;
28
+ maxLength?: number;
29
+ className?: string;
30
+ baseUrl?: string;
31
+ }
32
+ export default function SearchAutocomplete<T>({ items, fuseOptions, inputDebounce, onSearch, onHover, onSelect, onFocus, onClear, showIcon, showClear, maxResults, placeholder, autoFocus, styling, resultStringKeyName, inputSearchString, formatResult, showNoResults, showNoResultsText, showItemsOnFocus, maxLength, baseUrl, }: SearchAutocompleteProps<T>): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function debounce(func: Function, wait: number, immediate?: boolean): (this: any) => void;
@@ -1,3 +1,4 @@
1
- import { SVGProps } from "react";
1
+ import { SVGProps } from 'react';
2
+
2
3
  declare function MessageIcon(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
3
4
  export default MessageIcon;
@@ -1,4 +1,5 @@
1
1
  import { ColorsType } from '../../../theme/Colors';
2
+
2
3
  export default function NotificationIcon({ iconColor, baseUrl, notiPath, brandColors, }: {
3
4
  iconColor?: string;
4
5
  baseUrl: string;
@@ -1,3 +1,4 @@
1
- import { SVGProps } from "react";
1
+ import { SVGProps } from 'react';
2
+
2
3
  declare function SearchIcon(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
3
4
  export default SearchIcon;
@@ -1,4 +1,5 @@
1
1
  import { SVGProps } from 'react';
2
+
2
3
  type Props = {} & SVGProps<SVGSVGElement>;
3
4
  declare function GermanyIcon(props: Props): import("react/jsx-runtime").JSX.Element;
4
5
  export default GermanyIcon;
@@ -1,4 +1,5 @@
1
1
  import { SVGProps } from 'react';
2
+
2
3
  type Props = {} & SVGProps<SVGSVGElement>;
3
4
  declare function UnitedKingdomIcon(props: Props): import("react/jsx-runtime").JSX.Element;
4
5
  export default UnitedKingdomIcon;
@@ -1,6 +1,7 @@
1
1
  import { CSSProperties, ReactNode } from 'react';
2
2
  import { firebaseProps } from '..';
3
3
  import { ColorsType, User } from '../../share';
4
+
4
5
  type TopBarContentProps = {
5
6
  logo?: string;
6
7
  user: User;