@reapit/elements 4.0.0-beta.2 → 4.0.0-beta.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.
@@ -1,19 +1,12 @@
1
- <svg width="1em" height="1em" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <g id="App launcher">
3
- <g id="Vector">
4
- <path d="M5 7C3.89543 7 3 6.10457 3 5C3 3.89543 3.89543 3 5 3C6.10457 3 7 3.89543 7 5C7 6.10457 6.10457 7 5 7Z" fill="currentColor"/>
5
- <path d="M3 12C3 13.1046 3.89543 14 5 14C6.10457 14 7 13.1046 7 12C7 10.8954 6.10457 10 5 10C3.89543 10 3 10.8954 3 12Z" fill="currentColor"/>
6
- <path d="M3 19C3 20.1046 3.89543 21 5 21C6.10457 21 7 20.1046 7 19C7 17.8954 6.10457 17 5 17C3.89543 17 3 17.8954 3 19Z" fill="currentColor"/>
7
- </g>
8
- <g id="Vector_2">
9
- <path d="M12 7C10.8954 7 10 6.10457 10 5C10 3.89543 10.8954 3 12 3C13.1046 3 14 3.89543 14 5C14 6.10457 13.1046 7 12 7Z" fill="currentColor"/>
10
- <path d="M10 12C10 13.1046 10.8954 14 12 14C13.1046 14 14 13.1046 14 12C14 10.8954 13.1046 10 12 10C10.8954 10 10 10.8954 10 12Z" fill="currentColor"/>
11
- <path d="M10 19C10 20.1046 10.8954 21 12 21C13.1046 21 14 20.1046 14 19C14 17.8954 13.1046 17 12 17C10.8954 17 10 17.8954 10 19Z" fill="currentColor"/>
12
- </g>
13
- <g id="Vector_3">
14
- <path d="M19 7C17.8954 7 17 6.10457 17 5C17 3.89543 17.8954 3 19 3C20.1046 3 21 3.89543 21 5C21 6.10457 20.1046 7 19 7Z" fill="currentColor"/>
15
- <path d="M17 12C17 13.1046 17.8954 14 19 14C20.1046 14 21 13.1046 21 12C21 10.8954 20.1046 10 19 10C17.8954 10 17 10.8954 17 12Z" fill="currentColor"/>
16
- <path d="M17 19C17 20.1046 17.8954 21 19 21C20.1046 21 21 20.1046 21 19C21 17.8954 20.1046 17 19 17C17.8954 17 17 17.8954 17 19Z" fill="currentColor"/>
17
- </g>
18
- </g>
1
+ <svg width="36" height="36" viewBox="0 0 36 36" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <rect width="36" height="36" rx="4" fill="white"/>
3
+ <circle cx="10" cy="10" r="2" fill="#798DA1"/>
4
+ <circle cx="18" cy="10" r="2" fill="#798DA1"/>
5
+ <circle cx="26" cy="10" r="2" fill="#798DA1"/>
6
+ <circle cx="10" cy="18" r="2" fill="#798DA1"/>
7
+ <circle cx="18" cy="18" r="2" fill="#798DA1"/>
8
+ <circle cx="26" cy="18" r="2" fill="#798DA1"/>
9
+ <circle cx="10" cy="26" r="2" fill="#798DA1"/>
10
+ <circle cx="18" cy="26" r="2" fill="#798DA1"/>
11
+ <circle cx="26" cy="26" r="2" fill="#798DA1"/>
19
12
  </svg>
@@ -7,12 +7,17 @@ export interface KeyValueItem {
7
7
  iconName?: IconNames;
8
8
  icon?: ReactNode;
9
9
  intent?: Intent;
10
+ colSize?: 'half' | 'full';
11
+ textEllipsis?: boolean;
12
+ }
13
+ export interface KeyValueContentProps {
14
+ item: KeyValueItem;
10
15
  }
11
16
  export interface KeyValueListProps extends HTMLAttributes<HTMLDivElement> {
12
17
  items: KeyValueItem[];
13
- hasLargeGrid?: boolean;
14
- hasSmallGrid?: boolean;
18
+ hasGrid?: boolean;
15
19
  }
16
20
  export declare const KeyValueIconWrap: FC<HTMLAttributes<HTMLDivElement>>;
17
21
  export declare const KeyValueListWrap: FC<HTMLAttributes<HTMLDivElement>>;
22
+ export declare const KeyValueContent: FC<KeyValueContentProps>;
18
23
  export declare const KeyValueList: FC<KeyValueListProps>;
@@ -1,4 +1,7 @@
1
1
  /// <reference types="react" />
2
+ export declare const ElNavBg: import("@linaria/react").StyledMeta & import("react").FunctionComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown> & {
3
+ as?: import("react").ElementType<any> | undefined;
4
+ }>;
2
5
  export declare const ElNavContainer: import("@linaria/react").StyledMeta & import("react").FunctionComponent<import("react").ClassAttributes<HTMLElement> & import("react").HTMLAttributes<HTMLElement> & Record<never, unknown> & {
3
6
  as?: import("react").ElementType<any> | undefined;
4
7
  }>;
@@ -19,3 +22,20 @@ export declare const elNavSubItemExpanded: import("@linaria/core").LinariaClassN
19
22
  export declare const elNavSubItemActive: import("@linaria/core").LinariaClassName;
20
23
  export declare const elNavItemHideDesktop: import("@linaria/core").LinariaClassName;
21
24
  export declare const elNavIsDesktop: import("@linaria/core").LinariaClassName;
25
+ export declare const elNavIsHidden: import("@linaria/core").LinariaClassName;
26
+ export declare const ElNavMenu: import("@linaria/react").StyledMeta & import("react").FunctionComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown> & {
27
+ as?: import("react").ElementType<any> | undefined;
28
+ }>;
29
+ export declare const ElNavMenuOption: import("@linaria/react").StyledMeta & import("react").FunctionComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown> & {
30
+ as?: import("react").ElementType<any> | undefined;
31
+ }>;
32
+ export declare const ElNavMenuOptionDivider: import("@linaria/react").StyledMeta & import("react").FunctionComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown> & {
33
+ as?: import("react").ElementType<any> | undefined;
34
+ }>;
35
+ export declare const ElNavResponsiveAvatarWrap: import("@linaria/react").StyledMeta & import("react").FunctionComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown> & {
36
+ as?: import("react").ElementType<any> | undefined;
37
+ }>;
38
+ export declare const elAppSwitcherOpen: import("@linaria/core").LinariaClassName;
39
+ export declare const ElNavResponsiveAppSwitcherWrap: import("@linaria/react").StyledMeta & import("react").FunctionComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown> & {
40
+ as?: import("react").ElementType<any> | undefined;
41
+ }>;
@@ -1,21 +1,44 @@
1
- import { Dispatch, FC, HTMLAttributes, ReactNode, SetStateAction } from 'react';
1
+ import { Dispatch, FC, HTMLAttributes, ReactNode, SetStateAction, MouseEvent } from 'react';
2
2
  import { IconNames } from '../icon';
3
3
  export type NavResponsiveItemType = 'ICON' | 'ITEM' | 'SECONDARY';
4
4
  export interface NavResponsiveOption {
5
5
  itemIndex: number;
6
- isSecondary?: boolean;
7
6
  callback?: () => void;
8
7
  text?: string;
9
8
  href?: string;
10
9
  subItems?: NavResponsiveOption[];
10
+ isSecondary?: boolean;
11
11
  icon?: ReactNode;
12
12
  iconId?: IconNames;
13
13
  }
14
+ export interface NavResponsiveAvatarOption {
15
+ text?: string;
16
+ callback?: () => void;
17
+ }
18
+ export interface NavResponsiveAppSwitcherOption {
19
+ text?: string;
20
+ callback?: () => void;
21
+ iconUrl?: ReactNode;
22
+ }
14
23
  export interface NavResponsiveProps extends HTMLAttributes<HTMLDivElement> {
15
24
  options: NavResponsiveOption[];
25
+ appSwitcherOptions?: NavResponsiveAppSwitcherOption[];
26
+ avatarOptions?: NavResponsiveAvatarOption[];
27
+ avatarText?: string;
16
28
  defaultNavIndex?: number;
17
29
  defaultNavSubIndex?: number;
18
30
  }
31
+ export interface NavResponsiveAvatarProps {
32
+ options: NavResponsiveAvatarOption[];
33
+ text: string;
34
+ isHidden: boolean;
35
+ }
36
+ export interface NavResponsiveAppSwitcherProps {
37
+ options: NavResponsiveAppSwitcherOption[];
38
+ }
19
39
  export type LogoIcon = 'reapitLogoSelectedMenu' | 'reapitLogoMenu';
20
40
  export declare const handleToggleLogo: (logoState: LogoIcon, setLogoState: Dispatch<SetStateAction<LogoIcon>>) => () => void;
41
+ export declare const handleToggleMenu: (setState: Dispatch<SetStateAction<boolean>>, callback?: () => void) => (event: MouseEvent<HTMLDivElement>) => void;
42
+ export declare const NavResponsiveAvatar: FC<NavResponsiveAvatarProps>;
43
+ export declare const NavResponsiveAppSwitcher: FC<NavResponsiveAppSwitcherProps>;
21
44
  export declare const NavResponsive: FC<NavResponsiveProps>;
@@ -6,6 +6,7 @@ export interface SearchableDropdownProps<T> extends React.InputHTMLAttributes<HT
6
6
  getResultLabel: (result: T) => string;
7
7
  icon?: IconNames;
8
8
  defaultVal?: T;
9
+ label?: string;
9
10
  }
10
11
  export interface ControlledSearchableDropdownProps<T> extends React.InputHTMLAttributes<HTMLInputElement> {
11
12
  isResultsListVisible: boolean;
@@ -22,8 +23,9 @@ export interface ControlledSearchableDropdownProps<T> extends React.InputHTMLAtt
22
23
  }) => void;
23
24
  onClear: () => void;
24
25
  icon?: IconNames;
26
+ label?: string;
25
27
  }
26
- export declare const SearchableDropdownControlledInner: <T extends unknown>({ isResultsListVisible, icon, loading, resultsList, onResultClick, onClear, isClearVisible, value, selectedValue, id, ...inputProps }: ControlledSearchableDropdownProps<T>, ref: React.ForwardedRef<HTMLInputElement>) => JSX.Element;
28
+ export declare const SearchableDropdownControlledInner: <T extends unknown>({ isResultsListVisible, icon, loading, resultsList, onResultClick, onClear, isClearVisible, value, selectedValue, id, label, ...inputProps }: ControlledSearchableDropdownProps<T>, ref: React.ForwardedRef<HTMLInputElement>) => JSX.Element;
27
29
  export declare const ControlledSearchableDropdown: <T>(props: ControlledSearchableDropdownProps<T> & {
28
30
  ref?: React.ForwardedRef<HTMLInputElement> | undefined;
29
31
  }) => ReturnType<typeof SearchableDropdownControlledInner>;
@@ -30,6 +30,15 @@ export declare const ElTableCtaCell: import("@linaria/react").StyledMeta & impor
30
30
  export declare const ElTableCell: import("@linaria/react").StyledMeta & import("react").FunctionComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown> & {
31
31
  as?: import("react").ElementType<any> | undefined;
32
32
  }>;
33
+ export declare const ElTableCellSplitWrap: import("@linaria/react").StyledMeta & import("react").FunctionComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown> & {
34
+ as?: import("react").ElementType<any> | undefined;
35
+ }>;
36
+ export declare const ElTableCellSplitData: import("@linaria/react").StyledMeta & import("react").FunctionComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown> & {
37
+ as?: import("react").ElementType<any> | undefined;
38
+ }>;
39
+ export declare const ElTableCellSplitSubData: import("@linaria/react").StyledMeta & import("react").FunctionComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown> & {
40
+ as?: import("react").ElementType<any> | undefined;
41
+ }>;
33
42
  export declare const ElTableExpandableRowTriggerCell: import("@linaria/react").StyledMeta & import("react").FunctionComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown> & {
34
43
  as?: import("react").ElementType<any> | undefined;
35
44
  }>;
@@ -1,4 +1,4 @@
1
- import { FC, HTMLAttributes } from 'react';
1
+ import { FC, HTMLAttributes, ReactNode } from 'react';
2
2
  import { IconNames } from '../icon';
3
3
  export type NarrowOrderType = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
4
4
  export interface TableCellProps extends HTMLAttributes<HTMLDivElement> {
@@ -9,6 +9,10 @@ export interface TableCellProps extends HTMLAttributes<HTMLDivElement> {
9
9
  className?: string;
10
10
  narrowOrder?: NarrowOrderType;
11
11
  }
12
+ export interface TableCellSplitProps extends HTMLAttributes<HTMLDivElement> {
13
+ data?: ReactNode;
14
+ subData?: ReactNode;
15
+ }
12
16
  export interface TableExpandableRowTriggerCellProps extends HTMLAttributes<HTMLDivElement> {
13
17
  isOpen?: boolean;
14
18
  narrowIsFullWidth?: boolean;
@@ -30,6 +34,7 @@ export declare const resolveNarrowOrderClass: (order: number) => string | undefi
30
34
  export declare const TableHeadersRow: FC<HTMLAttributes<HTMLDivElement>>;
31
35
  export declare const TableHeader: FC<HTMLAttributes<HTMLDivElement>>;
32
36
  export declare const TableRow: FC<HTMLAttributes<HTMLDivElement>>;
37
+ export declare const TableCellSplit: FC<TableCellSplitProps>;
33
38
  export declare const TableCell: FC<TableCellProps>;
34
39
  export declare const TableExpandableRowTriggerCell: FC<TableExpandableRowTriggerCellProps>;
35
40
  export declare const TableCtaTriggerCell: FC<TableCtaTriggerCellProps>;
@@ -11,7 +11,7 @@ export interface CellProps {
11
11
  label: string;
12
12
  labelChild?: ReactNode;
13
13
  onLabelClick?: (event: React.MouseEvent) => void;
14
- value: ReactNode;
14
+ value?: ReactNode;
15
15
  children?: ReactNode;
16
16
  icon?: IconNames;
17
17
  className?: string;
@@ -12,7 +12,7 @@ export interface NavStateContextProps {
12
12
  }
13
13
  export interface UseNavState {
14
14
  navState: NavState;
15
- setNavState: (newState: Partial<NavState>) => (event: MouseEvent<HTMLAnchorElement>) => void;
15
+ setNavState: (newState: Partial<NavState>) => (event: MouseEvent<HTMLAnchorElement | HTMLDivElement>) => void;
16
16
  }
17
17
  export declare const NavStateContext: React.Context<NavStateContextProps>;
18
18
  export declare const NavStateProvider: FC<PropsWithChildren>;