@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.
- package/assets/menu-icons/appLauncherMenu.svg +11 -18
- package/dist/cjs/components/key-value-list/key-value-list.d.ts +7 -2
- package/dist/cjs/components/nav/__styles__/index.d.ts +20 -0
- package/dist/cjs/components/nav/nav-responsive.d.ts +25 -2
- package/dist/cjs/components/searchable-dropdown/searchable-dropdown.d.ts +3 -1
- package/dist/cjs/components/table/__styles__/index.d.ts +9 -0
- package/dist/cjs/components/table/molecules.d.ts +6 -1
- package/dist/cjs/components/table/table.d.ts +1 -1
- package/dist/cjs/hooks/use-nav-state/index.d.ts +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/storybook/deprecate-var.d.ts +1 -0
- package/dist/cjs/styles/typography.d.ts +1 -0
- package/dist/esm/components/key-value-list/key-value-list.d.ts +7 -2
- package/dist/esm/components/nav/__styles__/index.d.ts +20 -0
- package/dist/esm/components/nav/nav-responsive.d.ts +25 -2
- package/dist/esm/components/searchable-dropdown/searchable-dropdown.d.ts +3 -1
- package/dist/esm/components/table/__styles__/index.d.ts +9 -0
- package/dist/esm/components/table/molecules.d.ts +6 -1
- package/dist/esm/components/table/table.d.ts +1 -1
- package/dist/esm/hooks/use-nav-state/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/storybook/deprecate-var.d.ts +1 -0
- package/dist/esm/styles/typography.d.ts +1 -0
- package/dist/index.css +57 -45
- package/package.json +1 -1
|
@@ -1,19 +1,12 @@
|
|
|
1
|
-
<svg width="
|
|
2
|
-
<
|
|
3
|
-
<
|
|
4
|
-
<
|
|
5
|
-
<
|
|
6
|
-
<
|
|
7
|
-
|
|
8
|
-
<
|
|
9
|
-
<
|
|
10
|
-
<
|
|
11
|
-
<
|
|
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
|
-
|
|
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>;
|
|
@@ -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>;
|