greenole-design-system 1.1.45 → 1.1.46

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 (35) hide show
  1. package/README.md +147 -147
  2. package/dist/base-components/DropdownMenu/DropdownMenu.d.ts +4 -0
  3. package/dist/base-components/DropdownMenu/DropdownMenu.stories.d.ts +6 -0
  4. package/dist/base-components/DropdownMenu/DropdownMenu.styles.d.ts +13 -0
  5. package/dist/base-components/DropdownMenu/DropdownMenu.types.d.ts +10 -0
  6. package/dist/base-components/DropdownMenu/index.d.ts +1 -0
  7. package/dist/base-components/Skeleton/Skeleton.d.ts +4 -0
  8. package/dist/base-components/Skeleton/Skeleton.stories.d.ts +6 -0
  9. package/dist/base-components/Skeleton/Skeleton.styles.d.ts +2 -0
  10. package/dist/base-components/Skeleton/Skeleton.types.d.ts +5 -0
  11. package/dist/base-components/Skeleton/index.d.ts +1 -0
  12. package/dist/components/Icons/Checkbox.d.ts +4 -1
  13. package/dist/components/Table/Table.d.ts +4 -0
  14. package/dist/components/Table/Table.stories.d.ts +10 -0
  15. package/dist/components/Table/Table.styles.d.ts +23 -0
  16. package/dist/components/Table/Table.types.d.ts +35 -0
  17. package/dist/components/Table/index.d.ts +1 -0
  18. package/dist/components/Toolbar/Toolbar.d.ts +4 -0
  19. package/dist/components/Toolbar/Toolbar.stories.d.ts +6 -0
  20. package/dist/components/Toolbar/Toolbar.styles.d.ts +18 -0
  21. package/dist/components/Toolbar/Toolbar.types.d.ts +14 -0
  22. package/dist/components/Toolbar/index.d.ts +1 -0
  23. package/dist/greenole-design-system.cjs.js +921 -787
  24. package/dist/greenole-design-system.es.js +3794 -3407
  25. package/dist/greenole.css +63 -15
  26. package/dist/index.css +1 -1
  27. package/dist/index.d.ts +7 -5
  28. package/dist/mocks/user.d.ts +6 -0
  29. package/dist/mocks/userService.d.ts +13 -0
  30. package/package.json +90 -90
  31. package/dist/components/Table/DataTable.d.ts +0 -18
  32. package/dist/components/Table/DataTable.stories.d.ts +0 -8
  33. package/dist/components/Table/DataTable.styles.d.ts +0 -26
  34. package/dist/components/Table/Pagination.d.ts +0 -10
  35. package/dist/components/Table/types.d.ts +0 -10
package/README.md CHANGED
@@ -1,147 +1,147 @@
1
- # Greenole Design System
2
-
3
- [![Figma Design](https://img.shields.io/badge/Figma-Design_System-blue)](https://www.figma.com/design/Zwkbh8XGfVt2At4ln7p1WE/DS-Greenole?node-id=1017-15&p=f&t=Mjdfp67Q8ADWcm9v-0)
4
-
5
- The **Greenole Design System** is a React component library designed to create consistent and scalable user interfaces.
6
- The library is constantly evolving, with new components and improvements being added over time.
7
-
8
- ## Table of Contents
9
-
10
- - [Introduction](#introduction)
11
- - [Installation](#installation)
12
- - [Usage](#usage)
13
- - [Development](#development)
14
- - [Build & Publication](#build--publication)
15
- - [Contributing](#contributing)
16
- - [License](#license)
17
-
18
- ## Introduction
19
-
20
- **Greenole Design System** gathers reusable components that follow a consistent visual identity.
21
- It helps teams maintain design and usability standards across their React projects.
22
-
23
- > **Note:**
24
- > This library is in constant evolution. Existing components may be updated and new ones added over time.
25
-
26
- ## Installation
27
-
28
- To install the library in your React project, run:
29
-
30
- ```bash
31
- npm install greenole-design-system
32
- ```
33
-
34
- > **Note:**
35
- > The library declares `react` and `react-dom` as peer dependencies, so ensure your project already has these installed.
36
-
37
- ## Usage
38
-
39
- After installation, you need to import both the CSS styles and the components:
40
-
41
- ### 1. Import the CSS styles
42
-
43
- First, import the CSS file in your main application file (usually `main.jsx`, `App.jsx`, or `index.js`):
44
-
45
- ```jsx
46
- import 'greenole-design-system/dist/greenole.css';
47
- ```
48
-
49
- ### 2. Import and use components
50
-
51
- Then you can import and use the library's components:
52
-
53
- ```jsx
54
- import React from 'react';
55
- import { Typography } from 'greenole-design-system';
56
-
57
- function App() {
58
- return (
59
- <div>
60
- <Typography variant="h1">
61
- The quick brown fox jumps over the lazy dog.
62
- </Typography>
63
- {/* Additional components will be added in the future */}
64
- </div>
65
- );
66
- }
67
-
68
- export default App;
69
- ```
70
-
71
- ## Development
72
-
73
- To contribute to or test the library locally:
74
-
75
- 1. Clone the repository:
76
- ```bash
77
- git clone https://github.com/your-username/greenole-design-system.git
78
- cd greenole-design-system
79
- ```
80
- 2. Install dependencies:
81
- ```bash
82
- npm install
83
- ```
84
- 3. Start the development environment using Vite:
85
- ```bash
86
- npm run dev
87
- ```
88
- 4. To view the documentation and components, we use **Storybook**:
89
- ```bash
90
- npm run storybook
91
- ```
92
- Storybook serves as the documentation and demo environment for the library's components.
93
-
94
- ## Build & Publication
95
-
96
- To generate the library bundle:
97
-
98
- 1. Run the build command:
99
-
100
- ```bash
101
- npm run build
102
- ```
103
-
104
- This will create the `dist` folder with both CommonJS and ESModule files, as well as type declarations (if configured).
105
-
106
- 2. To test locally in another project, use `npm link`:
107
- ```bash
108
- cd greenole-design-system
109
- npm link
110
- cd ../your-consumer-project
111
- npm link greenole-design-system
112
- ```
113
- 3. When ready to publish:
114
-
115
- ```bash
116
- npm login
117
- npm publish --access public
118
- ```
119
-
120
- ## Publishing Storybook to GitHub Pages
121
-
122
- 1. Build the Storybook:
123
-
124
- ```bash
125
- npm run build-storybook
126
- ```
127
-
128
- This generates the static files for your Storybook.
129
-
130
- 2. Deploy to GitHub Pages:
131
-
132
- ```bash
133
- npm run deploy-storybook
134
- ```
135
-
136
- This will automatically push the built files to the configured branch (`gh-pages`).
137
-
138
- After that, you can access the updated Storybook at: [Design System](https://greenole-iot.github.io/greenole-design-system)
139
-
140
- ## Contributing
141
-
142
- Contributions are welcome! If you would like to help evolve the **Greenole Design System**, follow these steps:
143
-
144
- 1. Fork the repository.
145
- 2. Create a branch for your feature (`git checkout -b my-feature`).
146
- 3. Commit your changes.
147
- 4. Open a pull request for review.
1
+ # Greenole Design System
2
+
3
+ [![Figma Design](https://img.shields.io/badge/Figma-Design_System-blue)](https://www.figma.com/design/Zwkbh8XGfVt2At4ln7p1WE/DS-Greenole?node-id=1017-15&p=f&t=Mjdfp67Q8ADWcm9v-0)
4
+
5
+ The **Greenole Design System** is a React component library designed to create consistent and scalable user interfaces.
6
+ The library is constantly evolving, with new components and improvements being added over time.
7
+
8
+ ## Table of Contents
9
+
10
+ - [Introduction](#introduction)
11
+ - [Installation](#installation)
12
+ - [Usage](#usage)
13
+ - [Development](#development)
14
+ - [Build & Publication](#build--publication)
15
+ - [Contributing](#contributing)
16
+ - [License](#license)
17
+
18
+ ## Introduction
19
+
20
+ **Greenole Design System** gathers reusable components that follow a consistent visual identity.
21
+ It helps teams maintain design and usability standards across their React projects.
22
+
23
+ > **Note:**
24
+ > This library is in constant evolution. Existing components may be updated and new ones added over time.
25
+
26
+ ## Installation
27
+
28
+ To install the library in your React project, run:
29
+
30
+ ```bash
31
+ npm install greenole-design-system
32
+ ```
33
+
34
+ > **Note:**
35
+ > The library declares `react` and `react-dom` as peer dependencies, so ensure your project already has these installed.
36
+
37
+ ## Usage
38
+
39
+ After installation, you need to import both the CSS styles and the components:
40
+
41
+ ### 1. Import the CSS styles
42
+
43
+ First, import the CSS file in your main application file (usually `main.jsx`, `App.jsx`, or `index.js`):
44
+
45
+ ```jsx
46
+ import 'greenole-design-system/dist/greenole.css';
47
+ ```
48
+
49
+ ### 2. Import and use components
50
+
51
+ Then you can import and use the library's components:
52
+
53
+ ```jsx
54
+ import React from 'react';
55
+ import { Typography } from 'greenole-design-system';
56
+
57
+ function App() {
58
+ return (
59
+ <div>
60
+ <Typography variant="h1">
61
+ The quick brown fox jumps over the lazy dog.
62
+ </Typography>
63
+ {/* Additional components will be added in the future */}
64
+ </div>
65
+ );
66
+ }
67
+
68
+ export default App;
69
+ ```
70
+
71
+ ## Development
72
+
73
+ To contribute to or test the library locally:
74
+
75
+ 1. Clone the repository:
76
+ ```bash
77
+ git clone https://github.com/your-username/greenole-design-system.git
78
+ cd greenole-design-system
79
+ ```
80
+ 2. Install dependencies:
81
+ ```bash
82
+ npm install
83
+ ```
84
+ 3. Start the development environment using Vite:
85
+ ```bash
86
+ npm run dev
87
+ ```
88
+ 4. To view the documentation and components, we use **Storybook**:
89
+ ```bash
90
+ npm run storybook
91
+ ```
92
+ Storybook serves as the documentation and demo environment for the library's components.
93
+
94
+ ## Build & Publication
95
+
96
+ To generate the library bundle:
97
+
98
+ 1. Run the build command:
99
+
100
+ ```bash
101
+ npm run build
102
+ ```
103
+
104
+ This will create the `dist` folder with both CommonJS and ESModule files, as well as type declarations (if configured).
105
+
106
+ 2. To test locally in another project, use `npm link`:
107
+ ```bash
108
+ cd greenole-design-system
109
+ npm link
110
+ cd ../your-consumer-project
111
+ npm link greenole-design-system
112
+ ```
113
+ 3. When ready to publish:
114
+
115
+ ```bash
116
+ npm login
117
+ npm publish --access public
118
+ ```
119
+
120
+ ## Publishing Storybook to GitHub Pages
121
+
122
+ 1. Build the Storybook:
123
+
124
+ ```bash
125
+ npm run build-storybook
126
+ ```
127
+
128
+ This generates the static files for your Storybook.
129
+
130
+ 2. Deploy to GitHub Pages:
131
+
132
+ ```bash
133
+ npm run deploy-storybook
134
+ ```
135
+
136
+ This will automatically push the built files to the configured branch (`gh-pages`).
137
+
138
+ After that, you can access the updated Storybook at: [Design System](https://greenole-iot.github.io/greenole-design-system)
139
+
140
+ ## Contributing
141
+
142
+ Contributions are welcome! If you would like to help evolve the **Greenole Design System**, follow these steps:
143
+
144
+ 1. Fork the repository.
145
+ 2. Create a branch for your feature (`git checkout -b my-feature`).
146
+ 3. Commit your changes.
147
+ 4. Open a pull request for review.
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ import { DropdownMenuProps } from './DropdownMenu.types';
3
+ declare const DropdownMenu: React.FC<DropdownMenuProps>;
4
+ export default DropdownMenu;
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { default as DropdownMenu } from './DropdownMenu';
3
+ declare const meta: Meta<typeof DropdownMenu>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof DropdownMenu>;
6
+ export declare const Default: Story;
@@ -0,0 +1,13 @@
1
+ import { DropdownMenuPositionProps } from './DropdownMenu.types';
2
+ export declare const DropdownMenuWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
3
+ export declare const DropdownMenuTriggerButton: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>> & string;
4
+ export declare const DropdownMenuContent: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
5
+ $position: DropdownMenuPositionProps;
6
+ $limit?: boolean;
7
+ $animate: boolean;
8
+ }>> & string;
9
+ export declare const DropdownMenuArrow: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
10
+ $position: DropdownMenuPositionProps;
11
+ $limit?: boolean;
12
+ }>> & string;
13
+ export declare const DropdownMenuContentWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
@@ -0,0 +1,10 @@
1
+ import { ReactNode } from 'react';
2
+ export interface DropdownMenuProps {
3
+ children: ReactNode;
4
+ content: ReactNode;
5
+ position?: DropdownMenuPositionProps;
6
+ limit?: boolean;
7
+ showArrow?: boolean;
8
+ onOpenChange?: (isOpen: boolean) => void;
9
+ }
10
+ export type DropdownMenuPositionProps = 'top' | 'bottom' | 'left' | 'right';
@@ -0,0 +1 @@
1
+ export { default as DropdownMenu } from './DropdownMenu';
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ import { SkeletonProps } from './Skeleton.types';
3
+ declare const Skeleton: React.FC<SkeletonProps>;
4
+ export default Skeleton;
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { default as Skeleton } from './Skeleton';
3
+ declare const meta: Meta<typeof Skeleton>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof Skeleton>;
6
+ export declare const Default: Story;
@@ -0,0 +1,2 @@
1
+ import { SkeletonProps } from './Skeleton.types';
2
+ export declare const SkeletonWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, SkeletonProps>> & string;
@@ -0,0 +1,5 @@
1
+ export interface SkeletonProps {
2
+ width?: string | number;
3
+ height?: string | number;
4
+ borderRadius?: string;
5
+ }
@@ -0,0 +1 @@
1
+ export { default as Skeleton } from './Skeleton';
@@ -2,6 +2,9 @@ import { default as React } from 'react';
2
2
  interface CheckboxProps {
3
3
  checked?: boolean;
4
4
  className?: string;
5
+ variant?: 'default' | 'outline';
6
+ width?: number;
7
+ height?: number;
5
8
  }
6
- export default function Checkbox({ checked, className }: CheckboxProps): React.JSX.Element;
9
+ export default function Checkbox({ checked, className, variant, width, height }: CheckboxProps): React.JSX.Element;
7
10
  export {};
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ import { TableProps } from './Table.types';
3
+ declare const Table: <T extends Record<string, any>>({ columns, data, currentPage, totalItems, headerExtra, actions, isMobile, itemsPerPage, loading, striped, showSearch, fetchData, onPageChange, onItemsPerPageChange, t: tProp, }: Readonly<TableProps<T>>) => React.JSX.Element;
4
+ export default Table;
@@ -0,0 +1,10 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { default as Table } from './Table';
3
+ declare const meta: Meta<typeof Table>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof Table>;
6
+ export declare const Default: Story;
7
+ export declare const FetchData: Story;
8
+ export declare const WithActions: Story;
9
+ export declare const WithHeaderExtra: Story;
10
+ export declare const WithActionsAndHeaderExtra: Story;
@@ -0,0 +1,23 @@
1
+ export declare const TableWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
2
+ export declare const TableHeader: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
3
+ $isMobile?: boolean;
4
+ }>> & string;
5
+ export declare const TableHeaderSearch: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
6
+ $isMobile?: boolean;
7
+ }>> & string;
8
+ export declare const TableHeaderSearchInputWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
9
+ $visible: boolean;
10
+ $isMobile: boolean;
11
+ }>> & string;
12
+ export declare const TableHeaderButtons: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
13
+ $isMobile?: boolean;
14
+ }>> & string;
15
+ export declare const TableContentWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
16
+ export declare const TableContent: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>, {
17
+ $striped?: boolean;
18
+ }>> & string;
19
+ export declare const TableFooter: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
20
+ export declare const LoadingWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
21
+ export declare const DropdownMenuContent: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
22
+ $showDropdownMenu?: boolean;
23
+ }>> & string;
@@ -0,0 +1,35 @@
1
+ import { ReactNode } from 'react';
2
+ import { THookTypes } from '../../utils/i18n/types';
3
+ export interface TableColumn<T = any> {
4
+ label: string;
5
+ key: keyof T | string;
6
+ render?: (value: any, row: T) => ReactNode;
7
+ }
8
+ export interface TableProps<T = any> {
9
+ columns: Array<{
10
+ label: string;
11
+ key: keyof T | string;
12
+ render?: (value: any, row: T) => ReactNode;
13
+ }>;
14
+ data?: T[];
15
+ fetchData?: (params: {
16
+ page: number;
17
+ itemsPerPage: number;
18
+ search?: string;
19
+ }) => Promise<{
20
+ data: T[];
21
+ count: number;
22
+ }>;
23
+ totalItems?: number;
24
+ currentPage: number;
25
+ itemsPerPage: number;
26
+ onPageChange: (page: number) => void;
27
+ onItemsPerPageChange: (items: number) => void;
28
+ showSearch?: boolean;
29
+ isMobile?: boolean;
30
+ loading?: boolean;
31
+ striped?: boolean;
32
+ headerExtra?: ReactNode;
33
+ actions?: ReactNode;
34
+ t?: THookTypes;
35
+ }
@@ -0,0 +1 @@
1
+ export { default as Table } from './Table';
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ import { ToolbarProps } from './Toolbar.types';
3
+ declare const Toolbar: React.FC<ToolbarProps>;
4
+ export default Toolbar;
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { default as Toolbar } from './Toolbar';
3
+ declare const meta: Meta<typeof Toolbar>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof Toolbar>;
6
+ export declare const Default: Story;
@@ -0,0 +1,18 @@
1
+ export declare const ToolbarWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
2
+ $isMobile?: boolean;
3
+ }>> & string;
4
+ export declare const ItemsPerPageWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
5
+ $isMobile?: boolean;
6
+ }>> & string;
7
+ export declare const Pagination: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
8
+ $isMobile?: boolean;
9
+ }>> & string;
10
+ export declare const PaginationWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
11
+ export declare const PaginationButton: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {
12
+ $isPrev?: boolean;
13
+ }>> & string;
14
+ export declare const PaginationButtonNumberWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
15
+ export declare const PaginationButtonNumber: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {
16
+ $active: boolean;
17
+ }>> & string;
18
+ export declare const ToolbarWrapperEmptyState: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
@@ -0,0 +1,14 @@
1
+ import { THookTypes } from '../../utils/i18n/types';
2
+ export interface ToolbarProps {
3
+ totalItems: number;
4
+ currentPage: number;
5
+ itemsPerPage: number;
6
+ isLoading?: boolean;
7
+ isMobile?: boolean;
8
+ showItemsPerPage?: boolean;
9
+ showPaginationCount?: boolean;
10
+ showPagination?: boolean;
11
+ onPageChange: (page: number) => void;
12
+ onItemsPerPageChange: (items: number) => void;
13
+ t?: THookTypes;
14
+ }
@@ -0,0 +1 @@
1
+ export { default as Toolbar } from './Toolbar';