@ballistix.digital/react-components 0.1.5 → 0.1.6
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/dist/@types/components/Element/Avatar/AvatarElement.d.ts +17 -0
- package/dist/@types/components/Element/Avatar/AvatarElement.styles.d.ts +14 -0
- package/dist/@types/components/Element/Avatar/index.d.ts +3 -0
- package/dist/@types/components/Element/Badge/BadgeElement.d.ts +15 -0
- package/dist/@types/components/Element/Badge/BadgeElement.styles.d.ts +11 -0
- package/dist/@types/components/Element/Badge/index.d.ts +3 -0
- package/dist/@types/components/Element/Button/ButtonElement.d.ts +15 -0
- package/dist/@types/components/Element/Button/ButtonElement.styles.d.ts +9 -0
- package/dist/@types/components/Element/Button/index.d.ts +3 -0
- package/dist/@types/components/Element/ButtonGroup/ButtonGroupElement.d.ts +8 -0
- package/dist/@types/components/Element/ButtonGroup/ButtonGroupElement.styles.d.ts +12 -0
- package/dist/@types/components/Element/ButtonGroup/index.d.ts +3 -0
- package/dist/@types/components/Element/Dropdown/DropdownElement.d.ts +15 -0
- package/dist/@types/components/Element/Dropdown/DropdownElement.styles.d.ts +15 -0
- package/dist/@types/components/Element/Dropdown/index.d.ts +3 -0
- package/dist/@types/components/Layout/Container/ContainerLayout.d.ts +9 -0
- package/dist/@types/components/Layout/Container/ContainerLayout.styles.d.ts +17 -0
- package/dist/@types/components/Layout/Container/index.d.ts +3 -0
- package/dist/@types/components/Layout/Divider/DividerLayout.d.ts +9 -0
- package/dist/@types/components/Layout/Divider/DividerLayout.styles.d.ts +13 -0
- package/dist/@types/components/Layout/Divider/index.d.ts +3 -0
- package/dist/@types/components/Layout/ListContainer/ListContainerLayout.d.ts +9 -0
- package/dist/@types/components/Layout/ListContainer/ListContainerLayout.styles.d.ts +11 -0
- package/dist/@types/components/Layout/ListContainer/index.d.ts +3 -0
- package/dist/@types/components/Layout/MediaObject/MediaObjectLayout.d.ts +12 -0
- package/dist/@types/components/Layout/MediaObject/MediaObjectLayout.styles.d.ts +13 -0
- package/dist/@types/components/Layout/MediaObject/index.d.ts +3 -0
- package/dist/@types/components/Layout/Panel/PanelLayout.d.ts +16 -0
- package/dist/@types/components/Layout/Panel/PanelLayout.styles.d.ts +6 -0
- package/dist/@types/components/Layout/Panel/index.d.ts +3 -0
- package/dist/@types/components/Navigation/Breadcrumbs/BreadcrumbsNavigation.d.ts +15 -0
- package/dist/@types/components/Navigation/Breadcrumbs/BreadcrumbsNavigation.styles.d.ts +145 -0
- package/dist/@types/components/Navigation/Breadcrumbs/index.d.ts +3 -0
- package/dist/@types/components/Navigation/PagePagination/PagePaginationNavigation.d.ts +10 -0
- package/dist/@types/components/Navigation/PagePagination/PagePaginationNavigation.styles.d.ts +45 -0
- package/dist/@types/components/Navigation/PagePagination/index.d.ts +3 -0
- package/dist/@types/components/Navigation/PanelPagination/PanelPagination.d.ts +15 -0
- package/dist/@types/components/Navigation/PanelPagination/PanelPagination.styles.d.ts +43 -0
- package/dist/@types/components/Navigation/PanelPagination/index.d.ts +3 -0
- package/dist/@types/components/Navigation/Sidebar/SidebarNavigation.d.ts +35 -0
- package/dist/@types/components/Navigation/Sidebar/SidebarNavigation.styles.d.ts +29 -0
- package/dist/@types/components/Navigation/Sidebar/index.d.ts +3 -0
- package/dist/@types/components/Navigation/Tab/TabNavigation.d.ts +34 -0
- package/dist/@types/components/Navigation/Tab/TabNavigation.styles.d.ts +49 -0
- package/dist/@types/components/Navigation/Tab/index.d.ts +3 -0
- package/dist/@types/components/Navigation/Vertical/VerticalNavigation.d.ts +34 -0
- package/dist/@types/components/Navigation/Vertical/VerticalNavigation.styles.d.ts +23 -0
- package/dist/@types/components/Navigation/Vertical/index.d.ts +3 -0
- package/dist/@types/components/Overlay/Modal/ModalOverlay.d.ts +16 -0
- package/dist/@types/components/Overlay/Modal/ModalOverlay.styles.d.ts +64 -0
- package/dist/@types/components/Overlay/Modal/index.d.ts +3 -0
- package/dist/@types/components/Overlay/Notification/NotificationOverlay.d.ts +22 -0
- package/dist/@types/components/Overlay/Notification/NotificationOverlay.styles.d.ts +67 -0
- package/dist/@types/components/Overlay/Notification/index.d.ts +3 -0
- package/dist/@types/components/Overlay/SlideOver/SlideOverOverlay.d.ts +16 -0
- package/dist/@types/components/Overlay/SlideOver/SlideOverOverlay.styles.d.ts +66 -0
- package/dist/@types/components/Overlay/SlideOver/index.d.ts +3 -0
- package/dist/@types/index.d.ts +19 -0
- package/dist/index.esm.js +425 -303
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +442 -305
- package/dist/index.js.map +1 -1
- package/package.json +3 -2
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
import { StylesType } from '.';
|
|
4
|
+
export interface Props {
|
|
5
|
+
src?: string | undefined;
|
|
6
|
+
placeholder?: string | undefined;
|
|
7
|
+
children?: ReactNode | ReactNode[] | string;
|
|
8
|
+
url?: string;
|
|
9
|
+
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
10
|
+
figure?: 'block' | 'rounded';
|
|
11
|
+
status?: 'offline' | 'online' | 'blocked';
|
|
12
|
+
isDisabled?: boolean;
|
|
13
|
+
isLoading?: boolean;
|
|
14
|
+
styles?: StylesType;
|
|
15
|
+
}
|
|
16
|
+
declare const AvatarElement: FC<Props>;
|
|
17
|
+
export default AvatarElement;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export type StylesType = {
|
|
2
|
+
loading?: string;
|
|
3
|
+
empty?: string;
|
|
4
|
+
placeholder?: string;
|
|
5
|
+
container?: string;
|
|
6
|
+
indicator?: string;
|
|
7
|
+
spinner?: string;
|
|
8
|
+
};
|
|
9
|
+
declare const styles: {
|
|
10
|
+
[Key in StylesType as string]: {
|
|
11
|
+
[key: string]: string;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
export default styles;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ReactNode, FC } from 'react';
|
|
2
|
+
import { StylesType } from '.';
|
|
3
|
+
export interface Props {
|
|
4
|
+
children: string | ReactNode;
|
|
5
|
+
color?: 'gray' | 'red' | 'yellow' | 'green' | 'blue' | 'indigo' | 'purple' | 'pink';
|
|
6
|
+
type?: 'normal' | 'indicator' | 'close';
|
|
7
|
+
size?: 'sm' | 'lg';
|
|
8
|
+
figure?: 'block' | 'rounded';
|
|
9
|
+
isDisabled?: boolean;
|
|
10
|
+
isLoading?: boolean;
|
|
11
|
+
onClose?: () => void;
|
|
12
|
+
styles?: StylesType;
|
|
13
|
+
}
|
|
14
|
+
declare const BadgeElement: FC<Props>;
|
|
15
|
+
export default BadgeElement;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ReactNode, FC } from 'react';
|
|
2
|
+
import { StylesType } from '.';
|
|
3
|
+
import '../../../styles/index.css';
|
|
4
|
+
export interface Props {
|
|
5
|
+
children: string | ReactNode;
|
|
6
|
+
type?: 'primary' | 'secondary' | 'outline';
|
|
7
|
+
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
8
|
+
figure?: 'block' | 'rounded';
|
|
9
|
+
status?: 'idle' | 'loading' | 'success' | 'error';
|
|
10
|
+
isDisabled?: boolean;
|
|
11
|
+
styles?: StylesType;
|
|
12
|
+
onClick: () => void;
|
|
13
|
+
}
|
|
14
|
+
declare const ButtonElement: FC<Props>;
|
|
15
|
+
export default ButtonElement;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Menu } from '@headlessui/react';
|
|
2
|
+
import { FC, ReactElement } from 'react';
|
|
3
|
+
import { StylesType } from '.';
|
|
4
|
+
export interface Props {
|
|
5
|
+
children: ReactElement | ReactElement[];
|
|
6
|
+
label: string;
|
|
7
|
+
type?: 'button' | 'compact';
|
|
8
|
+
direction?: 'left' | 'right';
|
|
9
|
+
styles?: StylesType;
|
|
10
|
+
}
|
|
11
|
+
declare const DropdownElement: {
|
|
12
|
+
Container: FC<Props>;
|
|
13
|
+
Item: typeof Menu.Item;
|
|
14
|
+
};
|
|
15
|
+
export default DropdownElement;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export type StylesType = {
|
|
2
|
+
container?: string;
|
|
3
|
+
button?: string;
|
|
4
|
+
compact?: string;
|
|
5
|
+
dots?: string;
|
|
6
|
+
items?: string;
|
|
7
|
+
left?: string;
|
|
8
|
+
right?: string;
|
|
9
|
+
};
|
|
10
|
+
declare const styles: {
|
|
11
|
+
[selector: string]: {
|
|
12
|
+
[key: string]: string;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export default styles;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
|
+
import { StylesType } from '.';
|
|
3
|
+
export interface Props {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
type?: 'break' | 'center' | 'fill';
|
|
6
|
+
styles?: StylesType;
|
|
7
|
+
}
|
|
8
|
+
declare const ContainerLayout: FC<Props>;
|
|
9
|
+
export default ContainerLayout;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export type StylesType = {
|
|
2
|
+
container?: string;
|
|
3
|
+
content?: string;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: {
|
|
6
|
+
break: {
|
|
7
|
+
container: string;
|
|
8
|
+
};
|
|
9
|
+
center: {
|
|
10
|
+
container: string;
|
|
11
|
+
content: string;
|
|
12
|
+
};
|
|
13
|
+
fill: {
|
|
14
|
+
container: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FC, ReactElement } from 'react';
|
|
2
|
+
import { StylesType } from '.';
|
|
3
|
+
export interface Props {
|
|
4
|
+
children: ReactElement | ReactElement[];
|
|
5
|
+
type?: 'fill' | 'fill-sticky' | 'center' | 'center-sticky' | 'card' | 'card-sticky';
|
|
6
|
+
styles?: StylesType;
|
|
7
|
+
}
|
|
8
|
+
declare const ListContainerLayout: FC<Props>;
|
|
9
|
+
export default ListContainerLayout;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FC, ReactNode, DetailedReactHTMLElement, HTMLAttributes } from 'react';
|
|
2
|
+
import { StylesType } from '.';
|
|
3
|
+
export type Element = DetailedReactHTMLElement<HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
4
|
+
export interface Props {
|
|
5
|
+
title: string;
|
|
6
|
+
paragraph: string;
|
|
7
|
+
figure?: ReactNode;
|
|
8
|
+
type?: 'top' | 'top-reversed' | 'center' | 'center-reversed' | 'bottom' | 'bottom-reversed' | 'stretch' | 'stretch-reversed' | 'responsive' | 'responsive-reversed' | 'wide' | 'wide-reversed';
|
|
9
|
+
styles?: StylesType;
|
|
10
|
+
}
|
|
11
|
+
declare const MediaObjectLayout: FC<Props>;
|
|
12
|
+
export default MediaObjectLayout;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
import { StylesType } from '.';
|
|
3
|
+
export interface ContainerProps {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
type?: 'normal' | 'sticky';
|
|
6
|
+
styles?: StylesType;
|
|
7
|
+
}
|
|
8
|
+
export interface HeadProps {
|
|
9
|
+
children: ReactNode;
|
|
10
|
+
styles?: StylesType;
|
|
11
|
+
}
|
|
12
|
+
declare const LayoutPanel: {
|
|
13
|
+
Container: React.FC<ContainerProps>;
|
|
14
|
+
Section: React.FC<HeadProps>;
|
|
15
|
+
};
|
|
16
|
+
export default LayoutPanel;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
|
+
import { StylesType } from '.';
|
|
3
|
+
export interface Props {
|
|
4
|
+
href: string;
|
|
5
|
+
pages: {
|
|
6
|
+
name: string;
|
|
7
|
+
href: string;
|
|
8
|
+
isCurrent: boolean;
|
|
9
|
+
}[];
|
|
10
|
+
type?: 'slashes' | 'chevrons' | 'panel' | 'bar';
|
|
11
|
+
separator?: ReactNode;
|
|
12
|
+
styles?: StylesType;
|
|
13
|
+
}
|
|
14
|
+
declare const BreadcrumbsNavigation: FC<Props>;
|
|
15
|
+
export default BreadcrumbsNavigation;
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
export type StylesType = {
|
|
2
|
+
slashes?: {
|
|
3
|
+
container?: string;
|
|
4
|
+
list?: string;
|
|
5
|
+
separator?: string;
|
|
6
|
+
home?: {
|
|
7
|
+
container?: string;
|
|
8
|
+
content?: string;
|
|
9
|
+
link?: string;
|
|
10
|
+
icon?: string;
|
|
11
|
+
span?: string;
|
|
12
|
+
};
|
|
13
|
+
page?: {
|
|
14
|
+
container?: string;
|
|
15
|
+
content?: string;
|
|
16
|
+
link?: string;
|
|
17
|
+
span?: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
chevrons?: {
|
|
21
|
+
container?: string;
|
|
22
|
+
list?: string;
|
|
23
|
+
separator?: string;
|
|
24
|
+
home?: {
|
|
25
|
+
container?: string;
|
|
26
|
+
content?: string;
|
|
27
|
+
link?: string;
|
|
28
|
+
icon?: string;
|
|
29
|
+
span?: string;
|
|
30
|
+
};
|
|
31
|
+
page?: {
|
|
32
|
+
container?: string;
|
|
33
|
+
content?: string;
|
|
34
|
+
link?: string;
|
|
35
|
+
span?: string;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
panel?: {
|
|
39
|
+
container?: string;
|
|
40
|
+
list?: string;
|
|
41
|
+
separator?: string;
|
|
42
|
+
home?: {
|
|
43
|
+
container?: string;
|
|
44
|
+
content?: string;
|
|
45
|
+
link?: string;
|
|
46
|
+
icon?: string;
|
|
47
|
+
span?: string;
|
|
48
|
+
};
|
|
49
|
+
page?: {
|
|
50
|
+
container?: string;
|
|
51
|
+
content?: string;
|
|
52
|
+
link?: string;
|
|
53
|
+
span?: string;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
bar?: {
|
|
57
|
+
container?: string;
|
|
58
|
+
list?: string;
|
|
59
|
+
separator?: string;
|
|
60
|
+
home?: {
|
|
61
|
+
container?: string;
|
|
62
|
+
content?: string;
|
|
63
|
+
link?: string;
|
|
64
|
+
icon?: string;
|
|
65
|
+
span?: string;
|
|
66
|
+
};
|
|
67
|
+
page?: {
|
|
68
|
+
container?: string;
|
|
69
|
+
content?: string;
|
|
70
|
+
link?: string;
|
|
71
|
+
span?: string;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
declare const styles: {
|
|
76
|
+
slashes: {
|
|
77
|
+
container: string;
|
|
78
|
+
list: string;
|
|
79
|
+
separator: string;
|
|
80
|
+
home: {
|
|
81
|
+
container: string;
|
|
82
|
+
content: string;
|
|
83
|
+
link: string;
|
|
84
|
+
icon: string;
|
|
85
|
+
span: string;
|
|
86
|
+
};
|
|
87
|
+
page: {
|
|
88
|
+
container: string;
|
|
89
|
+
content: string;
|
|
90
|
+
link: string;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
chevrons: {
|
|
94
|
+
container: string;
|
|
95
|
+
list: string;
|
|
96
|
+
separator: string;
|
|
97
|
+
home: {
|
|
98
|
+
container: string;
|
|
99
|
+
content: string;
|
|
100
|
+
link: string;
|
|
101
|
+
icon: string;
|
|
102
|
+
span: string;
|
|
103
|
+
};
|
|
104
|
+
page: {
|
|
105
|
+
container: string;
|
|
106
|
+
content: string;
|
|
107
|
+
link: string;
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
panel: {
|
|
111
|
+
container: string;
|
|
112
|
+
list: string;
|
|
113
|
+
separator: string;
|
|
114
|
+
home: {
|
|
115
|
+
container: string;
|
|
116
|
+
content: string;
|
|
117
|
+
link: string;
|
|
118
|
+
icon: string;
|
|
119
|
+
span: string;
|
|
120
|
+
};
|
|
121
|
+
page: {
|
|
122
|
+
container: string;
|
|
123
|
+
content: string;
|
|
124
|
+
link: string;
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
bar: {
|
|
128
|
+
container: string;
|
|
129
|
+
list: string;
|
|
130
|
+
separator: string;
|
|
131
|
+
home: {
|
|
132
|
+
container: string;
|
|
133
|
+
content: string;
|
|
134
|
+
link: string;
|
|
135
|
+
icon: string;
|
|
136
|
+
span: string;
|
|
137
|
+
};
|
|
138
|
+
page: {
|
|
139
|
+
container: string;
|
|
140
|
+
content: string;
|
|
141
|
+
link: string;
|
|
142
|
+
};
|
|
143
|
+
};
|
|
144
|
+
};
|
|
145
|
+
export default styles;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { StylesType } from '.';
|
|
3
|
+
export interface Props {
|
|
4
|
+
min?: number;
|
|
5
|
+
max: number;
|
|
6
|
+
styles?: StylesType;
|
|
7
|
+
onChange?: (current: number) => void;
|
|
8
|
+
}
|
|
9
|
+
declare const PagePaginationNavigation: React.FC<Props>;
|
|
10
|
+
export default PagePaginationNavigation;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export type StylesType = {
|
|
2
|
+
container?: string;
|
|
3
|
+
left?: {
|
|
4
|
+
container?: string;
|
|
5
|
+
button?: string;
|
|
6
|
+
icon?: string;
|
|
7
|
+
};
|
|
8
|
+
center?: {
|
|
9
|
+
container?: string;
|
|
10
|
+
};
|
|
11
|
+
right?: {
|
|
12
|
+
container?: string;
|
|
13
|
+
button?: string;
|
|
14
|
+
icon?: string;
|
|
15
|
+
};
|
|
16
|
+
button?: {
|
|
17
|
+
default?: string;
|
|
18
|
+
active?: string;
|
|
19
|
+
disabled?: string;
|
|
20
|
+
};
|
|
21
|
+
divider?: string;
|
|
22
|
+
};
|
|
23
|
+
declare const styles: {
|
|
24
|
+
container: string;
|
|
25
|
+
left: {
|
|
26
|
+
container: string;
|
|
27
|
+
button: string;
|
|
28
|
+
icon: string;
|
|
29
|
+
};
|
|
30
|
+
center: {
|
|
31
|
+
container: string;
|
|
32
|
+
};
|
|
33
|
+
right: {
|
|
34
|
+
container: string;
|
|
35
|
+
button: string;
|
|
36
|
+
icon: string;
|
|
37
|
+
};
|
|
38
|
+
button: {
|
|
39
|
+
default: string;
|
|
40
|
+
active: string;
|
|
41
|
+
disabled: string;
|
|
42
|
+
};
|
|
43
|
+
divider: string;
|
|
44
|
+
};
|
|
45
|
+
export default styles;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
import { StylesType } from '.';
|
|
3
|
+
export interface Props {
|
|
4
|
+
min?: number;
|
|
5
|
+
max: number;
|
|
6
|
+
children: ({ min, max, current, }: {
|
|
7
|
+
min: number;
|
|
8
|
+
max: number;
|
|
9
|
+
current: number;
|
|
10
|
+
}) => ReactNode;
|
|
11
|
+
styles?: StylesType;
|
|
12
|
+
onChange?: (current: number) => void;
|
|
13
|
+
}
|
|
14
|
+
declare const PanelPaginationNavigation: React.FC<Props>;
|
|
15
|
+
export default PanelPaginationNavigation;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export type StylesType = {
|
|
2
|
+
container?: string;
|
|
3
|
+
mobile?: {
|
|
4
|
+
container?: string;
|
|
5
|
+
button?: string;
|
|
6
|
+
};
|
|
7
|
+
desktop?: {
|
|
8
|
+
container?: string;
|
|
9
|
+
leftButton?: string;
|
|
10
|
+
rightButton?: string;
|
|
11
|
+
navigation?: string;
|
|
12
|
+
};
|
|
13
|
+
button?: {
|
|
14
|
+
default?: string;
|
|
15
|
+
active?: string;
|
|
16
|
+
disabled?: string;
|
|
17
|
+
};
|
|
18
|
+
divider?: string;
|
|
19
|
+
label: string;
|
|
20
|
+
icon: string;
|
|
21
|
+
};
|
|
22
|
+
declare const styles: {
|
|
23
|
+
container: string;
|
|
24
|
+
mobile: {
|
|
25
|
+
container: string;
|
|
26
|
+
button: string;
|
|
27
|
+
};
|
|
28
|
+
desktop: {
|
|
29
|
+
container: string;
|
|
30
|
+
leftButton: string;
|
|
31
|
+
rightButton: string;
|
|
32
|
+
navigation: string;
|
|
33
|
+
};
|
|
34
|
+
button: {
|
|
35
|
+
default: string;
|
|
36
|
+
active: string;
|
|
37
|
+
disabled: string;
|
|
38
|
+
};
|
|
39
|
+
divider: string;
|
|
40
|
+
label: string;
|
|
41
|
+
icon: string;
|
|
42
|
+
};
|
|
43
|
+
export default styles;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
import { ContainerStylesType, NavigationStylesType } from '.';
|
|
3
|
+
export interface ContainerProps {
|
|
4
|
+
children: ({ active, setActive, }: {
|
|
5
|
+
active: string;
|
|
6
|
+
setActive: any;
|
|
7
|
+
}) => ReactNode | ReactNode[];
|
|
8
|
+
styles?: ContainerStylesType;
|
|
9
|
+
}
|
|
10
|
+
export interface ListProps {
|
|
11
|
+
children: ReactNode | ReactNode[];
|
|
12
|
+
active: string;
|
|
13
|
+
setActive: any;
|
|
14
|
+
styles?: NavigationStylesType;
|
|
15
|
+
}
|
|
16
|
+
export interface ItemProps {
|
|
17
|
+
accessor: string;
|
|
18
|
+
href?: string;
|
|
19
|
+
type?: string;
|
|
20
|
+
children: ReactNode;
|
|
21
|
+
isCurrent?: boolean;
|
|
22
|
+
isInitial?: boolean;
|
|
23
|
+
onClick?: (accessor: any) => void;
|
|
24
|
+
}
|
|
25
|
+
export interface FooterProps {
|
|
26
|
+
children: ReactNode | ReactNode[];
|
|
27
|
+
styles?: NavigationStylesType;
|
|
28
|
+
}
|
|
29
|
+
declare const SidebarNavigation: {
|
|
30
|
+
Container: React.FC<ContainerProps>;
|
|
31
|
+
List: React.FC<ListProps>;
|
|
32
|
+
Item: React.FC<ItemProps>;
|
|
33
|
+
Footer: React.FC<FooterProps>;
|
|
34
|
+
};
|
|
35
|
+
export default SidebarNavigation;
|