@sito/dashboard-app 0.0.1

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 (134) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +60 -0
  3. package/dist/components/Actions/Action.d.ts +3 -0
  4. package/dist/components/Actions/Actions.d.ts +3 -0
  5. package/dist/components/Actions/ActionsDropdown.d.ts +3 -0
  6. package/dist/components/Actions/index.d.ts +4 -0
  7. package/dist/components/Actions/types.d.ts +14 -0
  8. package/dist/components/Buttons/Button.d.ts +2 -0
  9. package/dist/components/Buttons/IconButton.d.ts +2 -0
  10. package/dist/components/Buttons/ToTop.d.ts +1 -0
  11. package/dist/components/Buttons/index.d.ts +3 -0
  12. package/dist/components/Buttons/types.d.ts +12 -0
  13. package/dist/components/Chip/Chip.d.ts +7 -0
  14. package/dist/components/Chip/DeletableChip.d.ts +2 -0
  15. package/dist/components/Chip/index.d.ts +3 -0
  16. package/dist/components/Chip/types.d.ts +12 -0
  17. package/dist/components/Dialog/ConfirmationDialog.d.ts +2 -0
  18. package/dist/components/Dialog/Dialog.d.ts +2 -0
  19. package/dist/components/Dialog/FormDialog.d.ts +3 -0
  20. package/dist/components/Dialog/index.d.ts +4 -0
  21. package/dist/components/Dialog/types.d.ts +18 -0
  22. package/dist/components/Drawer/Drawer.d.ts +2 -0
  23. package/dist/components/Drawer/index.d.ts +2 -0
  24. package/dist/components/Drawer/types.d.ts +6 -0
  25. package/dist/components/Dropdown/Dropdown.d.ts +2 -0
  26. package/dist/components/Dropdown/index.d.ts +2 -0
  27. package/dist/components/Dropdown/types.d.ts +6 -0
  28. package/dist/components/Empty/Empty.d.ts +3 -0
  29. package/dist/components/Empty/index.d.ts +2 -0
  30. package/dist/components/Empty/types.d.ts +9 -0
  31. package/dist/components/Error/Error.d.ts +2 -0
  32. package/dist/components/Error/index.d.ts +2 -0
  33. package/dist/components/Error/types.d.ts +4 -0
  34. package/dist/components/Form/FormContainer.d.ts +3 -0
  35. package/dist/components/Form/ParagraphInput.d.ts +7 -0
  36. package/dist/components/Form/PasswordInput.d.ts +2 -0
  37. package/dist/components/Form/index.d.ts +4 -0
  38. package/dist/components/Form/types.d.ts +20 -0
  39. package/dist/components/Loading/Loading.d.ts +2 -0
  40. package/dist/components/Loading/SplashScreen.d.ts +1 -0
  41. package/dist/components/Loading/index.d.ts +3 -0
  42. package/dist/components/Loading/types.d.ts +6 -0
  43. package/dist/components/Navbar/Clock.d.ts +1 -0
  44. package/dist/components/Navbar/Navbar.d.ts +2 -0
  45. package/dist/components/Navbar/index.d.ts +2 -0
  46. package/dist/components/Navbar/types.d.ts +3 -0
  47. package/dist/components/Notification/Notification.d.ts +1 -0
  48. package/dist/components/Notification/index.d.ts +1 -0
  49. package/dist/components/Onboarding/Onboarding.d.ts +2 -0
  50. package/dist/components/Onboarding/Step.d.ts +2 -0
  51. package/dist/components/Onboarding/index.d.ts +3 -0
  52. package/dist/components/Onboarding/types.d.ts +10 -0
  53. package/dist/components/Page/Page.d.ts +3 -0
  54. package/dist/components/Page/PageHeader.d.ts +3 -0
  55. package/dist/components/Page/index.d.ts +2 -0
  56. package/dist/components/Page/types.d.ts +19 -0
  57. package/dist/components/PrettyGrid/PrettyGrid.d.ts +3 -0
  58. package/dist/components/PrettyGrid/index.d.ts +2 -0
  59. package/dist/components/PrettyGrid/types.d.ts +9 -0
  60. package/dist/components/TabsLayout/Tab.d.ts +2 -0
  61. package/dist/components/TabsLayout/TabsLayout.d.ts +2 -0
  62. package/dist/components/TabsLayout/index.d.ts +3 -0
  63. package/dist/components/TabsLayout/types.d.ts +21 -0
  64. package/dist/components/index.d.ts +18 -0
  65. package/dist/components/types.d.ts +8 -0
  66. package/dist/dashboard-app.cjs +1 -0
  67. package/dist/dashboard-app.js +2858 -0
  68. package/dist/hooks/actions/index.d.ts +5 -0
  69. package/dist/hooks/actions/types.d.ts +24 -0
  70. package/dist/hooks/actions/useDeleteAction.d.ts +12 -0
  71. package/dist/hooks/actions/useEditAction.d.ts +6 -0
  72. package/dist/hooks/actions/useExportAction.d.ts +11 -0
  73. package/dist/hooks/actions/useRestoreAction.d.ts +12 -0
  74. package/dist/hooks/dialogs/index.d.ts +5 -0
  75. package/dist/hooks/dialogs/types.d.ts +27 -0
  76. package/dist/hooks/dialogs/useDeleteDialog.d.ts +17 -0
  77. package/dist/hooks/dialogs/useDialog.d.ts +6 -0
  78. package/dist/hooks/dialogs/useFormDialog.d.ts +4 -0
  79. package/dist/hooks/dialogs/useRestoreDialog.d.ts +17 -0
  80. package/dist/hooks/forms/index.d.ts +3 -0
  81. package/dist/hooks/forms/types.d.ts +20 -0
  82. package/dist/hooks/forms/useConfirmationForm.d.ts +8 -0
  83. package/dist/hooks/forms/usePostForm.d.ts +5 -0
  84. package/dist/hooks/index.d.ts +7 -0
  85. package/dist/hooks/mutate/index.d.ts +1 -0
  86. package/dist/hooks/mutate/types.d.ts +9 -0
  87. package/dist/hooks/mutate/useExportActionMutate.d.ts +11 -0
  88. package/dist/hooks/queries/index.d.ts +1 -0
  89. package/dist/hooks/queries/types.d.ts +12 -0
  90. package/dist/hooks/useScrollTrigger.d.ts +1 -0
  91. package/dist/hooks/useTimeAge.d.ts +3 -0
  92. package/dist/index.d.ts +2 -0
  93. package/dist/lib/Notification.d.ts +11 -0
  94. package/dist/lib/ServiceError.d.ts +4 -0
  95. package/dist/lib/ValidationError.d.ts +3 -0
  96. package/dist/lib/api/APIClient.d.ts +48 -0
  97. package/dist/lib/api/AuthClient.d.ts +10 -0
  98. package/dist/lib/api/BaseClient.d.ts +59 -0
  99. package/dist/lib/api/IManager.d.ts +9 -0
  100. package/dist/lib/api/index.d.ts +6 -0
  101. package/dist/lib/api/types.d.ts +24 -0
  102. package/dist/lib/api/utils/index.d.ts +2 -0
  103. package/dist/lib/api/utils/query.d.ts +9 -0
  104. package/dist/lib/api/utils/services.d.ts +24 -0
  105. package/dist/lib/entities/auth/AuthDto.d.ts +4 -0
  106. package/dist/lib/entities/auth/RegisterDto.d.ts +4 -0
  107. package/dist/lib/entities/auth/SessionDto.d.ts +6 -0
  108. package/dist/lib/entities/auth/index.d.ts +3 -0
  109. package/dist/lib/entities/base/BaseCommonEntityDto.d.ts +4 -0
  110. package/dist/lib/entities/base/BaseEntityDto.d.ts +6 -0
  111. package/dist/lib/entities/base/BaseFilterDto.d.ts +3 -0
  112. package/dist/lib/entities/base/DeleteDto.d.ts +3 -0
  113. package/dist/lib/entities/base/index.d.ts +5 -0
  114. package/dist/lib/entities/index.d.ts +3 -0
  115. package/dist/lib/entities/user/CommonUserDto.d.ts +2 -0
  116. package/dist/lib/entities/user/index.d.ts +1 -0
  117. package/dist/lib/index.d.ts +8 -0
  118. package/dist/lib/models/index.d.ts +0 -0
  119. package/dist/lib/utils/date.d.ts +11 -0
  120. package/dist/lib/utils/enums.d.ts +4 -0
  121. package/dist/lib/utils/index.d.ts +6 -0
  122. package/dist/lib/utils/local.d.ts +20 -0
  123. package/dist/lib/utils/navigation.d.ts +56 -0
  124. package/dist/lib/utils/os.d.ts +1 -0
  125. package/dist/lib/utils/queryKey.d.ts +7 -0
  126. package/dist/main.css +1 -0
  127. package/dist/main.d.ts +4 -0
  128. package/dist/providers/AuthProvider.d.ts +13 -0
  129. package/dist/providers/ConfigProvider.d.ts +13 -0
  130. package/dist/providers/ManagerProvider.d.ts +15 -0
  131. package/dist/providers/NotificationProvider.d.ts +7 -0
  132. package/dist/providers/index.d.ts +5 -0
  133. package/dist/providers/types.d.ts +57 -0
  134. package/package.json +80 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 Sito
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,60 @@
1
+ # @sito/dashboard-app
2
+
3
+ ## Features
4
+
5
+ ## Installation
6
+
7
+ To install the library, use npm or yarn:
8
+
9
+ ```bash
10
+ # Using npm
11
+ npm install @sito/dashboard-app
12
+
13
+ # Using yarn
14
+ yarn add @sito/dashboard-app
15
+ ```
16
+
17
+ ## Development
18
+
19
+ Running Locally
20
+
21
+ To run the project locally:
22
+
23
+ 1. Clone the repository:
24
+
25
+ ```bash
26
+ git clone https://github.com/your-repo/sito-dashboard-app.git
27
+
28
+ cd sito-dashboard-app
29
+ ```
30
+
31
+ 2. Install dependencies:
32
+
33
+ ```bash
34
+ npm install
35
+ ```
36
+
37
+ 3. Start the development server
38
+
39
+ ```bash
40
+ npm start
41
+ ```
42
+
43
+ Building the Library
44
+
45
+ To build the library for production
46
+
47
+ ```bash
48
+ npm run build
49
+ ```
50
+
51
+ ## Contributing
52
+
53
+ Contributions are welcome! Please follow these steps:
54
+ 1. Fork the repository.
55
+ 2. Create a new branch for your feature or bugfix.
56
+ 3. Submit a pull request with a detailed description of your changes.
57
+
58
+ ## License
59
+
60
+ This project is licensed under the MIT License.
@@ -0,0 +1,3 @@
1
+ import { BaseEntityDto } from '../../lib';
2
+ import { ActionPropsType } from './types';
3
+ export declare function Action<TEntity extends BaseEntityDto>(props: ActionPropsType<TEntity>): import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,3 @@
1
+ import { BaseEntityDto } from '../../lib';
2
+ import { ActionsContainerPropsType } from './types';
3
+ export declare function Actions<TRow extends BaseEntityDto>(props: ActionsContainerPropsType<TRow>): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,3 @@
1
+ import { BaseEntityDto } from '../../lib';
2
+ import { ActionsContainerPropsType } from './types';
3
+ export declare const ActionsDropdown: <TRow extends BaseEntityDto>(props: ActionsContainerPropsType<TRow>) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ export * from './Action';
2
+ export * from './Actions';
3
+ export * from './ActionsDropdown';
4
+ export * from './types';
@@ -0,0 +1,14 @@
1
+ import { Action } from '@sito/dashboard';
2
+ import { BaseEntityDto } from '../../lib';
3
+ import { ReactNode } from 'react';
4
+ export type ActionsContainerPropsType<TRow extends BaseEntityDto> = {
5
+ actions: ActionPropsType<TRow>[];
6
+ className?: string;
7
+ showActionTexts?: boolean;
8
+ showTooltips?: boolean;
9
+ };
10
+ export interface ActionPropsType<TRow extends BaseEntityDto> extends Action<TRow> {
11
+ children?: ReactNode;
12
+ showText?: boolean;
13
+ showTooltips?: boolean;
14
+ }
@@ -0,0 +1,2 @@
1
+ import { ButtonPropsType } from './types';
2
+ export declare const Button: (props: ButtonPropsType) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { IconButtonPropsType } from './types';
2
+ export declare const IconButton: (props: IconButtonPropsType) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const ToTop: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,3 @@
1
+ export * from './IconButton';
2
+ export * from './Button';
3
+ export * from './ToTop';
@@ -0,0 +1,12 @@
1
+ import { ButtonHTMLAttributes } from 'react';
2
+ import { IconDefinition } from '@fortawesome/fontawesome-svg-core';
3
+ export type ButtonBaseProps = {
4
+ variant?: "text" | "submit" | "outlined";
5
+ color?: "default" | "primary" | "secondary" | "error" | "warning" | "success" | "info";
6
+ };
7
+ export interface IconButtonPropsType extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, "color">, ButtonBaseProps {
8
+ icon: IconDefinition;
9
+ iconClassName?: string;
10
+ }
11
+ export interface ButtonPropsType extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, "color">, ButtonBaseProps {
12
+ }
@@ -0,0 +1,7 @@
1
+ import { ChipPropsType } from './types';
2
+ /**
3
+ * Chip component
4
+ * @param {object} props - component props
5
+ * @returns Chip component
6
+ */
7
+ export declare const Chip: (props: ChipPropsType) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { DeleteChipPropsType } from './types';
2
+ export declare const DeletableChip: (props: DeleteChipPropsType) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,3 @@
1
+ export * from './Chip';
2
+ export * from './DeletableChip';
3
+ export * from './types';
@@ -0,0 +1,12 @@
1
+ import { DetailedHTMLProps, HTMLAttributes, ReactNode } from 'react';
2
+ import { IconProp } from '@fortawesome/fontawesome-svg-core';
3
+ export interface ChipPropsType extends DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement> {
4
+ text?: string;
5
+ children?: ReactNode;
6
+ icon?: IconProp;
7
+ iconClassName?: string;
8
+ variant?: "primary" | "secondary" | "success" | "danger" | "warning" | "info" | "light" | "dark" | "none";
9
+ }
10
+ export interface DeleteChipPropsType extends ChipPropsType {
11
+ onDelete: () => void;
12
+ }
@@ -0,0 +1,2 @@
1
+ import { ConfirmationDialogPropsType } from './types';
2
+ export declare const ConfirmationDialog: (props: ConfirmationDialogPropsType) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { DialogPropsType } from './types';
2
+ export declare const Dialog: (props: DialogPropsType) => import('react').ReactPortal;
@@ -0,0 +1,3 @@
1
+ import { FieldValues } from 'react-hook-form';
2
+ import { FormDialogPropsType } from './types';
3
+ export declare const FormDialog: <TInput extends FieldValues, TError extends Error>(props: FormDialogPropsType<TInput, TError>) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ export * from './Dialog';
2
+ export * from './FormDialog';
3
+ export * from './ConfirmationDialog';
4
+ export * from './types';
@@ -0,0 +1,18 @@
1
+ import { ReactNode } from 'react';
2
+ import { FieldValues } from 'react-hook-form';
3
+ import { FormContainerPropsType } from '../Form';
4
+ export type DialogPropsType = {
5
+ open?: boolean;
6
+ title: string;
7
+ children?: ReactNode;
8
+ handleClose: () => void;
9
+ containerClassName?: string;
10
+ className?: string;
11
+ animationClass?: string;
12
+ };
13
+ export interface ConfirmationDialogPropsType extends DialogPropsType {
14
+ handleSubmit: () => void;
15
+ isLoading?: boolean;
16
+ }
17
+ export interface FormDialogPropsType<TFormType extends FieldValues, TError extends Error = Error> extends DialogPropsType, Omit<FormContainerPropsType<TFormType, TError>, "children"> {
18
+ }
@@ -0,0 +1,2 @@
1
+ import { DrawerPropsTypes } from './types';
2
+ export declare function Drawer<MenuKeys>(props: DrawerPropsTypes<MenuKeys>): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ export * from './Drawer';
2
+ export * from './types';
@@ -0,0 +1,6 @@
1
+ import { MenuItemType } from '../../lib';
2
+ export type DrawerPropsTypes<MenuKeys> = {
3
+ open: boolean;
4
+ onClose: () => void;
5
+ menuMap: MenuItemType<MenuKeys>[];
6
+ };
@@ -0,0 +1,2 @@
1
+ import { DropdownPropsType } from './types';
2
+ export declare const Dropdown: (props: DropdownPropsType) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ export * from './Dropdown';
2
+ export * from './types';
@@ -0,0 +1,6 @@
1
+ import { ReactNode } from 'react';
2
+ export type DropdownPropsType = {
3
+ children: ReactNode;
4
+ open: boolean;
5
+ onClose: () => void;
6
+ };
@@ -0,0 +1,3 @@
1
+ import { EmptyPropsType } from './types';
2
+ import { BaseEntityDto } from '../../lib';
3
+ export declare const Empty: <TRow extends BaseEntityDto>(props: EmptyPropsType<TRow>) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { Empty } from './Empty';
2
+ export { Empty };
@@ -0,0 +1,9 @@
1
+ import { DetailedHTMLProps, HTMLAttributes } from 'react';
2
+ import { FontAwesomeIconProps } from '@fortawesome/react-fontawesome';
3
+ import { Action, BaseDto } from '@sito/dashboard';
4
+ export type EmptyPropsType<TRow extends BaseDto> = {
5
+ message?: string;
6
+ messageProps?: DetailedHTMLProps<HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>;
7
+ action?: Action<TRow>;
8
+ iconProps?: FontAwesomeIconProps;
9
+ };
@@ -0,0 +1,2 @@
1
+ import { ErrorPropsType } from './types';
2
+ export declare function Error(props: ErrorPropsType): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ export * from './Error';
2
+ export * from './types';
@@ -0,0 +1,4 @@
1
+ export type ErrorPropsType = {
2
+ error: any;
3
+ resetErrorBoundary?: (...args: any[]) => void;
4
+ };
@@ -0,0 +1,3 @@
1
+ import { FieldValues } from 'react-hook-form';
2
+ import { FormContainerPropsType } from './types';
3
+ export declare const FormContainer: <TInput extends FieldValues, TError extends Error>(props: FormContainerPropsType<TInput, TError>) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ import { ParagraphInputPropsType } from './types';
2
+ /**
3
+ * ParagraphInput
4
+ * @param {object} props
5
+ * @returns ParagraphInput Component
6
+ */
7
+ export declare const ParagraphInput: import('react').ForwardRefExoticComponent<Omit<ParagraphInputPropsType, "ref"> & import('react').RefAttributes<HTMLTextAreaElement>>;
@@ -0,0 +1,2 @@
1
+ import { TextInputPropsType } from '@sito/dashboard';
2
+ export declare const PasswordInput: import('react').ForwardRefExoticComponent<Omit<TextInputPropsType, "ref"> & import('react').RefAttributes<HTMLInputElement>>;
@@ -0,0 +1,4 @@
1
+ export * from './ParagraphInput';
2
+ export * from './FormContainer';
3
+ export * from './PasswordInput';
4
+ export type * from './types';
@@ -0,0 +1,20 @@
1
+ import { TextInputPropsType } from '@sito/dashboard';
2
+ import { DetailedHTMLProps, ReactNode, TextareaHTMLAttributes } from 'react';
3
+ import { Control, FieldValues, SubmitHandler, UseFormGetValues, UseFormHandleSubmit, UseFormReset, UseFormSetError, UseFormSetValue } from 'react-hook-form';
4
+ export interface ParagraphInputPropsType extends Pick<TextInputPropsType, "label" | "state" | "containerClassName" | "inputClassName" | "labelClassName" | "helperText" | "helperTextClassName">, DetailedHTMLProps<TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement> {
5
+ }
6
+ export type FormContainerPropsType<TFormType extends FieldValues, TError extends Error = Error> = {
7
+ children: ReactNode;
8
+ control?: Control<TFormType>;
9
+ getValues?: UseFormGetValues<TFormType>;
10
+ setValue?: UseFormSetValue<TFormType>;
11
+ reset?: UseFormReset<TFormType>;
12
+ setError?: UseFormSetError<TFormType>;
13
+ handleSubmit: UseFormHandleSubmit<TFormType>;
14
+ onSubmit: SubmitHandler<TFormType>;
15
+ parseFormError?: (error: TError) => string[];
16
+ releaseFormError?: () => void;
17
+ buttonEnd?: boolean;
18
+ isLoading?: boolean;
19
+ };
20
+ export type FormPropsType<TFormType extends FieldValues, TError extends Error = Error> = Omit<FormContainerPropsType<TFormType, TError>, "children">;
@@ -0,0 +1,2 @@
1
+ import { LoadingPropsType } from './types';
2
+ export declare function Loading(props: LoadingPropsType): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function SplashScreen(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,3 @@
1
+ export * from './Loading';
2
+ export * from './SplashScreen';
3
+ export * from './types';
@@ -0,0 +1,6 @@
1
+ export type LoadingPropsType = {
2
+ color?: string;
3
+ size?: string;
4
+ className?: string;
5
+ containerClassName?: string;
6
+ };
@@ -0,0 +1 @@
1
+ export declare const Clock: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { NavbarPropsType } from './types.js';
2
+ export declare function Navbar(props: NavbarPropsType): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ export * from './Navbar';
2
+ export * from './types';
@@ -0,0 +1,3 @@
1
+ export type NavbarPropsType = {
2
+ openDrawer: () => void;
3
+ };
@@ -0,0 +1 @@
1
+ export declare function Notification(): import('react').ReactPortal;
@@ -0,0 +1 @@
1
+ export * from './Notification';
@@ -0,0 +1,2 @@
1
+ import { OnboardingPropsType } from './types';
2
+ export declare const Onboarding: (props: OnboardingPropsType) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { StepPropsType } from './types';
2
+ export declare const Step: (props: StepPropsType) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,3 @@
1
+ export * from './Onboarding';
2
+ export * from './Step';
3
+ export * from './types';
@@ -0,0 +1,10 @@
1
+ export type StepPropsType = {
2
+ translation: string;
3
+ onClickNext: () => void;
4
+ image?: string;
5
+ alt?: string;
6
+ final?: boolean;
7
+ };
8
+ export type OnboardingPropsType = {
9
+ steps: string[];
10
+ };
@@ -0,0 +1,3 @@
1
+ import { PagePropsType } from './types';
2
+ import { BaseEntityDto } from '../../lib';
3
+ export declare const Page: <TEntity extends BaseEntityDto>(props: PagePropsType<TEntity>) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,3 @@
1
+ import { PageHeaderPropsType } from './types';
2
+ import { BaseEntityDto } from '../../lib';
3
+ export declare const PageHeader: <TEntity extends BaseEntityDto>(props: PageHeaderPropsType<TEntity>) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ export * from './Page';
2
+ export * from './types';
@@ -0,0 +1,19 @@
1
+ import { ReactNode } from 'react';
2
+ import { Action } from '@sito/dashboard';
3
+ import { BaseEntityDto } from '../../lib';
4
+ export type PagePropsType<TRow extends BaseEntityDto> = {
5
+ title?: string;
6
+ children: ReactNode;
7
+ isLoading?: boolean;
8
+ addOptions?: Partial<Action<TRow>>;
9
+ filterOptions?: Partial<Action<TRow>>;
10
+ isAnimated?: boolean;
11
+ actions?: Action<TRow>[];
12
+ showBackButton?: boolean;
13
+ queryKey?: string[];
14
+ };
15
+ export type PageHeaderPropsType<TRow extends BaseEntityDto> = {
16
+ title?: string;
17
+ actions?: Action<TRow>[];
18
+ showBackButton?: boolean;
19
+ };
@@ -0,0 +1,3 @@
1
+ import { BaseEntityDto } from '../../lib';
2
+ import { PrettyGridPropsType } from './types';
3
+ export declare const PrettyGrid: <TDto extends BaseEntityDto>(props: PrettyGridPropsType<TDto>) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ export * from './PrettyGrid';
2
+ export * from './types';
@@ -0,0 +1,9 @@
1
+ import { JSX, ReactNode } from 'react';
2
+ import { BaseEntityDto } from '../../lib';
3
+ export type PrettyGridPropsType<TDto extends BaseEntityDto> = {
4
+ renderComponent: (item: TDto) => JSX.Element;
5
+ emptyMessage?: string;
6
+ emptyComponent?: ReactNode;
7
+ data?: TDto[];
8
+ loading?: boolean;
9
+ };
@@ -0,0 +1,2 @@
1
+ import { TabPropsType } from './types';
2
+ export declare const Tab: (props: TabPropsType) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { TabsLayoutPropsType } from './types';
2
+ export declare const TabsLayout: (props: TabsLayoutPropsType) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,3 @@
1
+ export * from './TabsLayout';
2
+ export * from './Tab';
3
+ export * from './types';
@@ -0,0 +1,21 @@
1
+ import { ReactNode } from 'react';
2
+ export type TabsLayoutPropsType = {
3
+ tabs: TabsType[];
4
+ defaultTab?: number;
5
+ className?: string;
6
+ tabsContainerClassName?: string;
7
+ };
8
+ export type TabsType = {
9
+ id: number | string;
10
+ label: string;
11
+ content: ReactNode;
12
+ to?: string;
13
+ };
14
+ export type TabPropsType = {
15
+ children: ReactNode;
16
+ id: number | string;
17
+ to?: string;
18
+ active: boolean;
19
+ onClick: () => void;
20
+ siblings?: boolean;
21
+ };
@@ -0,0 +1,18 @@
1
+ export * from './Chip/';
2
+ export * from './Actions';
3
+ export * from './Form';
4
+ export * from './Dialog';
5
+ export * from './Drawer';
6
+ export * from './Error';
7
+ export * from './Page';
8
+ export * from './PrettyGrid';
9
+ export * from './Navbar';
10
+ export * from './Notification';
11
+ export * from './Drawer';
12
+ export * from './Loading';
13
+ export * from './TabsLayout';
14
+ export * from './Onboarding';
15
+ export * from './Buttons';
16
+ export * from './Empty';
17
+ export * from './Dropdown';
18
+ export * from './types';
@@ -0,0 +1,8 @@
1
+ import { HTMLAttributes } from 'react';
2
+ export type BaseSearchModalPropsType = {
3
+ open: boolean;
4
+ onClose: () => void;
5
+ };
6
+ export interface BaseLinkPropsType extends HTMLAttributes<HTMLAnchorElement> {
7
+ to: string;
8
+ }