@ballistix.digital/react-components 0.1.2 → 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.
Files changed (63) hide show
  1. package/dist/@types/components/Element/Avatar/AvatarElement.d.ts +17 -0
  2. package/dist/@types/components/Element/Avatar/AvatarElement.styles.d.ts +14 -0
  3. package/dist/@types/components/Element/Avatar/index.d.ts +3 -0
  4. package/dist/@types/components/Element/Badge/BadgeElement.d.ts +15 -0
  5. package/dist/@types/components/Element/Badge/BadgeElement.styles.d.ts +11 -0
  6. package/dist/@types/components/Element/Badge/index.d.ts +3 -0
  7. package/dist/@types/components/Element/Button/ButtonElement.d.ts +15 -0
  8. package/dist/@types/components/Element/Button/ButtonElement.styles.d.ts +9 -0
  9. package/dist/@types/components/Element/Button/index.d.ts +3 -0
  10. package/dist/@types/components/Element/ButtonGroup/ButtonGroupElement.d.ts +8 -0
  11. package/dist/@types/components/Element/ButtonGroup/ButtonGroupElement.styles.d.ts +12 -0
  12. package/dist/@types/components/Element/ButtonGroup/index.d.ts +3 -0
  13. package/dist/@types/components/Element/Dropdown/DropdownElement.d.ts +15 -0
  14. package/dist/@types/components/Element/Dropdown/DropdownElement.styles.d.ts +15 -0
  15. package/dist/@types/components/Element/Dropdown/index.d.ts +3 -0
  16. package/dist/@types/components/Layout/Container/ContainerLayout.d.ts +9 -0
  17. package/dist/@types/components/Layout/Container/ContainerLayout.styles.d.ts +17 -0
  18. package/dist/@types/components/Layout/Container/index.d.ts +3 -0
  19. package/dist/@types/components/Layout/Divider/DividerLayout.d.ts +9 -0
  20. package/dist/@types/components/Layout/Divider/DividerLayout.styles.d.ts +13 -0
  21. package/dist/@types/components/Layout/Divider/index.d.ts +3 -0
  22. package/dist/@types/components/Layout/ListContainer/ListContainerLayout.d.ts +9 -0
  23. package/dist/@types/components/Layout/ListContainer/ListContainerLayout.styles.d.ts +11 -0
  24. package/dist/@types/components/Layout/ListContainer/index.d.ts +3 -0
  25. package/dist/@types/components/Layout/MediaObject/MediaObjectLayout.d.ts +12 -0
  26. package/dist/@types/components/Layout/MediaObject/MediaObjectLayout.styles.d.ts +13 -0
  27. package/dist/@types/components/Layout/MediaObject/index.d.ts +3 -0
  28. package/dist/@types/components/Layout/Panel/PanelLayout.d.ts +16 -0
  29. package/dist/@types/components/Layout/Panel/PanelLayout.styles.d.ts +6 -0
  30. package/dist/@types/components/Layout/Panel/index.d.ts +3 -0
  31. package/dist/@types/components/Navigation/Breadcrumbs/BreadcrumbsNavigation.d.ts +15 -0
  32. package/dist/@types/components/Navigation/Breadcrumbs/BreadcrumbsNavigation.styles.d.ts +145 -0
  33. package/dist/@types/components/Navigation/Breadcrumbs/index.d.ts +3 -0
  34. package/dist/@types/components/Navigation/PagePagination/PagePaginationNavigation.d.ts +10 -0
  35. package/dist/@types/components/Navigation/PagePagination/PagePaginationNavigation.styles.d.ts +45 -0
  36. package/dist/@types/components/Navigation/PagePagination/index.d.ts +3 -0
  37. package/dist/@types/components/Navigation/PanelPagination/PanelPagination.d.ts +15 -0
  38. package/dist/@types/components/Navigation/PanelPagination/PanelPagination.styles.d.ts +43 -0
  39. package/dist/@types/components/Navigation/PanelPagination/index.d.ts +3 -0
  40. package/dist/@types/components/Navigation/Sidebar/SidebarNavigation.d.ts +35 -0
  41. package/dist/@types/components/Navigation/Sidebar/SidebarNavigation.styles.d.ts +29 -0
  42. package/dist/@types/components/Navigation/Sidebar/index.d.ts +3 -0
  43. package/dist/@types/components/Navigation/Tab/TabNavigation.d.ts +34 -0
  44. package/dist/@types/components/Navigation/Tab/TabNavigation.styles.d.ts +49 -0
  45. package/dist/@types/components/Navigation/Tab/index.d.ts +3 -0
  46. package/dist/@types/components/Navigation/Vertical/VerticalNavigation.d.ts +34 -0
  47. package/dist/@types/components/Navigation/Vertical/VerticalNavigation.styles.d.ts +23 -0
  48. package/dist/@types/components/Navigation/Vertical/index.d.ts +3 -0
  49. package/dist/@types/components/Overlay/Modal/ModalOverlay.d.ts +16 -0
  50. package/dist/@types/components/Overlay/Modal/ModalOverlay.styles.d.ts +64 -0
  51. package/dist/@types/components/Overlay/Modal/index.d.ts +3 -0
  52. package/dist/@types/components/Overlay/Notification/NotificationOverlay.d.ts +22 -0
  53. package/dist/@types/components/Overlay/Notification/NotificationOverlay.styles.d.ts +67 -0
  54. package/dist/@types/components/Overlay/Notification/index.d.ts +3 -0
  55. package/dist/@types/components/Overlay/SlideOver/SlideOverOverlay.d.ts +16 -0
  56. package/dist/@types/components/Overlay/SlideOver/SlideOverOverlay.styles.d.ts +66 -0
  57. package/dist/@types/components/Overlay/SlideOver/index.d.ts +3 -0
  58. package/dist/@types/index.d.ts +19 -0
  59. package/dist/index.esm.js +425 -303
  60. package/dist/index.esm.js.map +1 -1
  61. package/dist/index.js +442 -305
  62. package/dist/index.js.map +1 -1
  63. package/package.json +3 -2
@@ -0,0 +1,29 @@
1
+ export type StylesType = {
2
+ items?: {
3
+ base?: string;
4
+ active?: string;
5
+ notActive?: string;
6
+ };
7
+ };
8
+ export type ContainerStylesType = {
9
+ root?: string;
10
+ panel?: string;
11
+ container?: string;
12
+ content?: string;
13
+ };
14
+ export type NavigationStylesType = {
15
+ list?: string;
16
+ };
17
+ declare const styles: {
18
+ root: string;
19
+ panel: string;
20
+ container: string;
21
+ content: string;
22
+ list: string;
23
+ item: {
24
+ base: string;
25
+ active: string;
26
+ notActive: string;
27
+ };
28
+ };
29
+ export default styles;
@@ -0,0 +1,3 @@
1
+ export type { ContainerStylesType, NavigationStylesType, StylesType, } from './SidebarNavigation.styles';
2
+ export { default } from './SidebarNavigation';
3
+ export { default as styles } from './SidebarNavigation.styles';
@@ -0,0 +1,34 @@
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 NavigationProps {
11
+ children: ReactNode | ReactNode[];
12
+ active: string;
13
+ setActive: any;
14
+ styles?: NavigationStylesType;
15
+ }
16
+ export interface NavigationItemProps {
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 ViewProps {
26
+ children: ReactNode | ReactNode[];
27
+ }
28
+ declare const TabNavigation: {
29
+ Container: React.FC<ContainerProps>;
30
+ List: React.FC<NavigationProps>;
31
+ Item: React.FC<NavigationItemProps>;
32
+ View: React.FC<ViewProps>;
33
+ };
34
+ export default TabNavigation;
@@ -0,0 +1,49 @@
1
+ export type StylesType = {
2
+ tab: {
3
+ underline?: {
4
+ base?: string;
5
+ active?: string;
6
+ notActive?: string;
7
+ };
8
+ pills?: {
9
+ base?: string;
10
+ active?: string;
11
+ notActive?: string;
12
+ };
13
+ buttons?: {
14
+ base?: string;
15
+ active?: string;
16
+ notActive?: string;
17
+ };
18
+ };
19
+ };
20
+ export type ContainerStylesType = {
21
+ container: string;
22
+ };
23
+ export type NavigationStylesType = {
24
+ select?: string;
25
+ navigation?: string;
26
+ };
27
+ declare const styles: {
28
+ container: string;
29
+ select: string;
30
+ navigation: string;
31
+ tab: {
32
+ underline: {
33
+ base: string;
34
+ active: string;
35
+ notActive: string;
36
+ };
37
+ pills: {
38
+ base: string;
39
+ active: string;
40
+ notActive: string;
41
+ };
42
+ buttons: {
43
+ base: string;
44
+ active: string;
45
+ notActive: string;
46
+ };
47
+ };
48
+ };
49
+ export default styles;
@@ -0,0 +1,3 @@
1
+ export type { ContainerStylesType, NavigationStylesType, StylesType, } from './TabNavigation.styles';
2
+ export { default } from './TabNavigation';
3
+ export { default as styles } from './TabNavigation.styles';
@@ -0,0 +1,34 @@
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 NavigationProps {
11
+ children: ReactNode | ReactNode[];
12
+ active: string;
13
+ setActive: any;
14
+ styles?: NavigationStylesType;
15
+ }
16
+ export interface NavigationItemProps {
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 ViewProps {
26
+ children: ReactNode | ReactNode[];
27
+ }
28
+ declare const VerticalNavigation: {
29
+ Container: React.FC<ContainerProps>;
30
+ List: React.FC<NavigationProps>;
31
+ Item: React.FC<NavigationItemProps>;
32
+ View: React.FC<ViewProps>;
33
+ };
34
+ export default VerticalNavigation;
@@ -0,0 +1,23 @@
1
+ export type StylesType = {
2
+ items?: {
3
+ base?: string;
4
+ active?: string;
5
+ notActive?: string;
6
+ };
7
+ };
8
+ export type ContainerStylesType = {
9
+ container: string;
10
+ };
11
+ export type NavigationStylesType = {
12
+ list?: string;
13
+ };
14
+ declare const styles: {
15
+ container: string;
16
+ list: string;
17
+ item: {
18
+ base: string;
19
+ active: string;
20
+ notActive: string;
21
+ };
22
+ };
23
+ export default styles;
@@ -0,0 +1,3 @@
1
+ export type { ContainerStylesType, NavigationStylesType, StylesType, } from './VerticalNavigation.styles';
2
+ export { default } from './VerticalNavigation';
3
+ export { default as styles } from './VerticalNavigation.styles';
@@ -0,0 +1,16 @@
1
+ import { FC, ReactNode } from 'react';
2
+ import { StylesType } from '.';
3
+ export interface Props {
4
+ trigger?: ({ onOpen, onClose, }: {
5
+ onOpen: () => void;
6
+ onClose: () => void;
7
+ }) => ReactNode;
8
+ children: ({ onOpen, onClose, }: {
9
+ onOpen: () => void;
10
+ onClose: () => void;
11
+ }) => ReactNode;
12
+ size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
13
+ styles?: StylesType;
14
+ }
15
+ declare const ModalOverlay: FC<Props>;
16
+ export default ModalOverlay;
@@ -0,0 +1,64 @@
1
+ export type StylesType = {
2
+ container?: string;
3
+ background?: {
4
+ container?: string;
5
+ transition?: {
6
+ enter?: string;
7
+ enterFrom?: string;
8
+ enterTo?: string;
9
+ leave?: string;
10
+ leaveFrom?: string;
11
+ leaveTo?: string;
12
+ };
13
+ };
14
+ layout?: {
15
+ container?: string;
16
+ content?: string;
17
+ };
18
+ panel?: {
19
+ container?: string;
20
+ transition?: {
21
+ enter?: string;
22
+ enterFrom?: string;
23
+ enterTo?: string;
24
+ leave?: string;
25
+ leaveFrom?: string;
26
+ leaveTo?: string;
27
+ };
28
+ };
29
+ };
30
+ declare const styles: {
31
+ container: string;
32
+ background: {
33
+ container: string;
34
+ transition: {
35
+ enter: string;
36
+ enterFrom: string;
37
+ enterTo: string;
38
+ leave: string;
39
+ leaveFrom: string;
40
+ leaveTo: string;
41
+ };
42
+ };
43
+ layout: {
44
+ container: string;
45
+ content: string;
46
+ };
47
+ panel: {
48
+ container: string;
49
+ transition: {
50
+ enter: string;
51
+ enterFrom: string;
52
+ enterTo: string;
53
+ leave: string;
54
+ leaveFrom: string;
55
+ leaveTo: string;
56
+ };
57
+ };
58
+ xs: string;
59
+ sm: string;
60
+ md: string;
61
+ lg: string;
62
+ xl: string;
63
+ };
64
+ export default styles;
@@ -0,0 +1,3 @@
1
+ export type { StylesType } from './ModalOverlay.styles';
2
+ export { default } from './ModalOverlay';
3
+ export { default as styles } from './ModalOverlay.styles';
@@ -0,0 +1,22 @@
1
+ import React, { ReactNode } from 'react';
2
+ import { StylesType } from '.';
3
+ export interface Props {
4
+ trigger?: ({ onOpen, onClose, }: {
5
+ onOpen: () => void;
6
+ onClose: () => void;
7
+ }) => ReactNode;
8
+ children: ({ onOpen, onClose, }: {
9
+ onOpen: () => void;
10
+ onClose: () => void;
11
+ }) => ReactNode;
12
+ size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
13
+ styles?: StylesType;
14
+ }
15
+ declare const _default: {
16
+ Container: ({ children, styles: customStyles, }: {
17
+ children: React.ReactNode;
18
+ styles?: StylesType | undefined;
19
+ }) => JSX.Element;
20
+ Item: React.FC<Props>;
21
+ };
22
+ export default _default;
@@ -0,0 +1,67 @@
1
+ export type StylesType = {
2
+ container?: {
3
+ outer?: string;
4
+ inner?: string;
5
+ };
6
+ item?: {
7
+ container?: string;
8
+ background?: {
9
+ container?: string;
10
+ transition?: {
11
+ enter?: string;
12
+ enterFrom?: string;
13
+ enterTo?: string;
14
+ leave?: string;
15
+ leaveFrom?: string;
16
+ leaveTo?: string;
17
+ };
18
+ };
19
+ layout?: {
20
+ container?: string;
21
+ content?: string;
22
+ inner?: string;
23
+ };
24
+ panel?: {
25
+ container?: string;
26
+ transition?: {
27
+ enter?: string;
28
+ enterFrom?: string;
29
+ enterTo?: string;
30
+ leave?: string;
31
+ leaveFrom?: string;
32
+ leaveTo?: string;
33
+ };
34
+ };
35
+ };
36
+ };
37
+ declare const styles: {
38
+ container: {
39
+ outer: string;
40
+ inner: string;
41
+ };
42
+ item: {
43
+ container: string;
44
+ layout: {
45
+ container: string;
46
+ content: string;
47
+ inner: string;
48
+ };
49
+ panel: {
50
+ container: string;
51
+ transition: {
52
+ enter: string;
53
+ enterFrom: string;
54
+ enterTo: string;
55
+ leave: string;
56
+ leaveFrom: string;
57
+ leaveTo: string;
58
+ };
59
+ };
60
+ };
61
+ xs: string;
62
+ sm: string;
63
+ md: string;
64
+ lg: string;
65
+ xl: string;
66
+ };
67
+ export default styles;
@@ -0,0 +1,3 @@
1
+ export type { StylesType } from './NotificationOverlay.styles';
2
+ export { default } from './NotificationOverlay';
3
+ export { default as styles } from './NotificationOverlay.styles';
@@ -0,0 +1,16 @@
1
+ import { FC, ReactNode } from 'react';
2
+ import { StylesType } from '.';
3
+ export interface Props {
4
+ trigger?: ({ onOpen, onClose, }: {
5
+ onOpen: () => void;
6
+ onClose: () => void;
7
+ }) => ReactNode;
8
+ children: ({ onOpen, onClose, }: {
9
+ onOpen: () => void;
10
+ onClose: () => void;
11
+ }) => ReactNode;
12
+ size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
13
+ styles?: StylesType;
14
+ }
15
+ declare const SlideOverOverlay: FC<Props>;
16
+ export default SlideOverOverlay;
@@ -0,0 +1,66 @@
1
+ export type StylesType = {
2
+ container?: string;
3
+ background?: {
4
+ container?: string;
5
+ transition?: {
6
+ enter?: string;
7
+ enterFrom?: string;
8
+ enterTo?: string;
9
+ leave?: string;
10
+ leaveFrom?: string;
11
+ leaveTo?: string;
12
+ };
13
+ };
14
+ layout?: {
15
+ container?: string;
16
+ content?: string;
17
+ inner?: string;
18
+ };
19
+ panel?: {
20
+ container?: string;
21
+ transition?: {
22
+ enter?: string;
23
+ enterFrom?: string;
24
+ enterTo?: string;
25
+ leave?: string;
26
+ leaveFrom?: string;
27
+ leaveTo?: string;
28
+ };
29
+ };
30
+ };
31
+ declare const styles: {
32
+ container: string;
33
+ background: {
34
+ container: string;
35
+ transition: {
36
+ enter: string;
37
+ enterFrom: string;
38
+ enterTo: string;
39
+ leave: string;
40
+ leaveFrom: string;
41
+ leaveTo: string;
42
+ };
43
+ };
44
+ layout: {
45
+ container: string;
46
+ content: string;
47
+ inner: string;
48
+ };
49
+ panel: {
50
+ container: string;
51
+ transition: {
52
+ enter: string;
53
+ enterFrom: string;
54
+ enterTo: string;
55
+ leave: string;
56
+ leaveFrom: string;
57
+ leaveTo: string;
58
+ };
59
+ };
60
+ xs: string;
61
+ sm: string;
62
+ md: string;
63
+ lg: string;
64
+ xl: string;
65
+ };
66
+ export default styles;
@@ -0,0 +1,3 @@
1
+ export type { StylesType } from './SlideOverOverlay.styles';
2
+ export { default } from './SlideOverOverlay';
3
+ export { default as styles } from './SlideOverOverlay.styles';
@@ -0,0 +1,19 @@
1
+ export { default as Avatar } from 'components/Element/Avatar';
2
+ export { default as Button } from 'components/Element/Button';
3
+ export { default as ButtonGroup } from 'components/Element/ButtonGroup';
4
+ export { default as Dropdown } from 'components/Element/Dropdown';
5
+ export { default as Badge } from 'components/Element/Badge';
6
+ export { default as Container } from 'components/Layout/Container';
7
+ export { default as Divider } from 'components/Layout/Divider';
8
+ export { default as ListContainer } from 'components/Layout/ListContainer';
9
+ export { default as MediaObject } from 'components/Layout/MediaObject';
10
+ export { default as Panel } from 'components/Layout/Panel';
11
+ export { default as Breadcrumbs } from 'components/Navigation/Breadcrumbs';
12
+ export { default as PanelPagination } from 'components/Navigation/PanelPagination';
13
+ export { default as PagePagination } from 'components/Navigation/PagePagination';
14
+ export { default as Sidebar } from 'components/Navigation/Sidebar';
15
+ export { default as Tab } from 'components/Navigation/Tab';
16
+ export { default as Vertical } from 'components/Navigation/Vertical';
17
+ export { default as Modal } from 'components/Overlay/Modal';
18
+ export { default as Notification } from 'components/Overlay/Notification';
19
+ export { default as SlideOver } from 'components/Overlay/SlideOver';