@ukpc-lib/react 0.1.21 → 0.1.23

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,4 @@
1
+ import { CheckboxProps, SvgIconProps } from '@mui/material';
2
+ export declare function UncheckedIcon(props: SvgIconProps): import("react/jsx-runtime").JSX.Element;
3
+ export declare function CheckedIcon(props: SvgIconProps): import("react/jsx-runtime").JSX.Element;
4
+ export default function BaseCheckbox(props: CheckboxProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,9 @@
1
+ import { FormControlLabelProps, SwitchProps } from '@mui/material';
2
+ import { ReactNode } from 'react';
3
+ type Props = {
4
+ formProps?: Partial<FormControlLabelProps>;
5
+ iosSwitchProps?: SwitchProps;
6
+ label?: ReactNode;
7
+ };
8
+ export default function BaseSwitch(props: Props): import("react/jsx-runtime").JSX.Element;
9
+ export {};
@@ -0,0 +1,4 @@
1
+ import { SVGProps } from 'react';
2
+ type Props = SVGProps<SVGSVGElement>;
3
+ export default function FilterIcon(props: Props): import("react/jsx-runtime").JSX.Element;
4
+ export {};
@@ -0,0 +1,9 @@
1
+ import { PropsWithChildren } from 'react';
2
+ type FilterWrapperProps = PropsWithChildren<{
3
+ onReset?(): void;
4
+ customAction?: React.ReactNode;
5
+ title: string;
6
+ resetBtnText: string;
7
+ }>;
8
+ export default function FilterWrapper(props: FilterWrapperProps): import("react/jsx-runtime").JSX.Element;
9
+ export {};
@@ -1,4 +1,4 @@
1
- import { MenuItemDto } from '../models';
1
+ import { Identity, MenuItemDto } from '../models';
2
2
  export type OwnMenuItemProps = {
3
3
  replacePath?(path: string): string;
4
4
  ssr?: boolean;
@@ -6,10 +6,10 @@ export type OwnMenuItemProps = {
6
6
  type MenuItemProps = {
7
7
  item: MenuItemDto;
8
8
  level?: number;
9
- isActive(id: number): boolean;
9
+ isActive(id: Identity): boolean;
10
10
  isCollapsed: boolean;
11
- expanded(id: number): boolean;
12
- toggleExpand: (id: number) => void;
11
+ expanded(id: Identity): boolean;
12
+ toggleExpand: (id: Identity) => void;
13
13
  } & OwnMenuItemProps;
14
14
  export default function MenuItem({ item, level, ...props }: MenuItemProps): import("react/jsx-runtime").JSX.Element;
15
15
  export {};
@@ -1,8 +1,9 @@
1
+ export type Identity = number;
1
2
  export interface MenuItemDto {
2
- id: number;
3
+ id: Identity;
3
4
  name: string;
4
5
  path?: string;
5
6
  icon?: string;
6
- parentKey: number | null;
7
+ parentKey: Identity | null;
7
8
  children?: MenuItemDto[];
8
9
  }
@@ -0,0 +1,4 @@
1
+ import { IconButtonProps } from '@mui/material';
2
+ type Props = IconButtonProps;
3
+ declare const BaseIconButton: (props: Props) => import("react/jsx-runtime").JSX.Element;
4
+ export default BaseIconButton;
@@ -0,0 +1,5 @@
1
+ type Props = {
2
+ label: string;
3
+ };
4
+ declare const RequiredLabel: (props: Props) => import("react/jsx-runtime").JSX.Element;
5
+ export default RequiredLabel;
@@ -0,0 +1,12 @@
1
+ import { ReactNode } from 'react';
2
+ export type SearchTypeProps<T> = {
3
+ listData: T[];
4
+ value?: T;
5
+ keyEqual: keyof T;
6
+ keyLabel: keyof T;
7
+ handleChange: (val: T) => void;
8
+ label?: string;
9
+ minWidth?: any;
10
+ startAdornment?: ReactNode;
11
+ };
12
+ export default function SearchTypeSelect<T>(props: SearchTypeProps<T>): import("react/jsx-runtime").JSX.Element;