kelt-ui-kit-react 1.2.0 → 1.2.2
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/README.md +46 -46
- package/dist/App.d.ts +2 -3
- package/dist/App.menu.d.ts +10 -10
- package/dist/App.routes.d.ts +1 -1
- package/dist/_core/hooks/ImageChecker.d.ts +5 -6
- package/dist/_core/hooks/useIsMobile.d.ts +1 -1
- package/dist/action/Action.view.d.ts +1 -1
- package/dist/action/ButtonAction.d.ts +8 -9
- package/dist/badge/Badge.d.ts +8 -9
- package/dist/badge/Badge.view.d.ts +1 -1
- package/dist/button/Button.d.ts +1 -2
- package/dist/button/Button.view.d.ts +1 -1
- package/dist/button/button.interface.d.ts +17 -18
- package/dist/button/buttonActions/ButtonActions.d.ts +10 -11
- package/dist/card/Card.d.ts +12 -13
- package/dist/card/Card.view.d.ts +1 -1
- package/dist/card/card.interface.d.ts +10 -10
- package/dist/card/cardAction/CardAction.d.ts +13 -14
- package/dist/card/cardAction.interface.d.ts +8 -9
- package/dist/card/hook/useCardInteractions.d.ts +8 -8
- package/dist/carousel/Carousel.d.ts +14 -15
- package/dist/carousel/Carousel.view.d.ts +1 -1
- package/dist/damier/Damier.d.ts +9 -10
- package/dist/damier/Damier.view.d.ts +1 -1
- package/dist/damier/damierCell/DamierCell.d.ts +6 -7
- package/dist/damier/damierCell/damierCell.interface.d.ts +6 -6
- package/dist/dataTable/DataTable.d.ts +17 -16
- package/dist/dataTable/DataTable.view.d.ts +1 -1
- package/dist/dataTable/dataTable.interface.d.ts +30 -31
- package/dist/datePicker/DatePicker.d.ts +7 -8
- package/dist/datePicker/DatePicker.view.d.ts +1 -1
- package/dist/expands/Expands.d.ts +9 -10
- package/dist/expands/Expands.view.d.ts +1 -1
- package/dist/expands/expand/expand.d.ts +8 -9
- package/dist/expands/expand/expand.interface.d.ts +9 -9
- package/dist/filAriane/FilAriane.d.ts +8 -9
- package/dist/filAriane/FilAriane.view.d.ts +1 -1
- package/dist/filAriane/filAriane.interface.d.ts +6 -6
- package/dist/form/Form.d.ts +23 -24
- package/dist/form/Form.view.d.ts +1 -1
- package/dist/form/form.enum.d.ts +11 -11
- package/dist/form/form.interface.d.ts +29 -30
- package/dist/form/textArea/TextArea.d.ts +12 -13
- package/dist/form/textArea/TextArea.view.d.ts +1 -1
- package/dist/grid/Grid.d.ts +7 -8
- package/dist/grid/Grid.view.d.ts +1 -1
- package/dist/grid/col/Col.d.ts +10 -10
- package/dist/grid/col/colStyled/ColStyled.d.ts +9 -9
- package/dist/grid/container/Container.d.ts +5 -6
- package/dist/grid/grid.interface.d.ts +8 -8
- package/dist/grid/row/Row.d.ts +7 -8
- package/dist/header/Header.d.ts +1 -2
- package/dist/header/Header.view.d.ts +1 -1
- package/dist/header/header.interface.d.ts +9 -9
- package/dist/home/Home.d.ts +1 -1
- package/dist/icon/Icon.d.ts +1 -2
- package/dist/icon/Icons.view.d.ts +1 -1
- package/dist/icon/icon.interface.d.ts +4 -5
- package/dist/icon/iconSize.enum.d.ts +7 -7
- package/dist/index.d.ts +31 -32
- package/dist/index.html +18 -18
- package/dist/index.js +902 -885
- package/dist/loader/Loader.d.ts +7 -8
- package/dist/loader/Loader.view.d.ts +1 -1
- package/dist/main.d.ts +0 -1
- package/dist/manifest.json +25 -25
- package/dist/menus/Menus.d.ts +5 -6
- package/dist/menus/Menus.view.d.ts +1 -1
- package/dist/menus/menu/Menu.d.ts +6 -7
- package/dist/menus/menu/menu.interface.d.ts +10 -10
- package/dist/modal/Modal.d.ts +12 -13
- package/dist/modal/Modal.view.d.ts +1 -1
- package/dist/notFound/NotFound.d.ts +1 -1
- package/dist/overlayPanel/OverlayPanel.d.ts +18 -19
- package/dist/overlayPanel/OverlayPanel.view.d.ts +1 -1
- package/dist/overlayPanel/overlay.context.d.ts +9 -10
- package/dist/overlayPanel/overlayPanelStyled/OverlayPanelStyled.d.ts +7 -7
- package/dist/quantity/Quantity.d.ts +10 -11
- package/dist/robots.txt +3 -3
- package/dist/search/Search.d.ts +21 -22
- package/dist/search/Search.view.d.ts +1 -1
- package/dist/select/Select.d.ts +13 -14
- package/dist/select/Select.view.d.ts +1 -1
- package/dist/select/selectOption.interface.d.ts +4 -4
- package/dist/sidebar/Sidebar.d.ts +12 -13
- package/dist/sidebar/Sidebar.view.d.ts +1 -1
- package/dist/sidebarData/SidebarData.d.ts +6 -7
- package/dist/sidebarData/SidebarData.view.d.ts +1 -1
- package/dist/style.css +1 -1
- package/dist/toaster/Toaster.d.ts +1 -2
- package/dist/toaster/Toaster.view.d.ts +1 -1
- package/dist/toaster/store/useToasterStore.d.ts +18 -18
- package/index.html +19 -19
- package/package.json +55 -55
- package/public/index.html +18 -18
- package/public/manifest.json +25 -25
- package/public/robots.txt +3 -3
- package/src/App.css +11 -11
- package/src/App.menu.tsx +209 -209
- package/src/App.routes.tsx +16 -16
- package/src/App.tsx +28 -28
- package/src/_core/hooks/ImageChecker.tsx +26 -26
- package/src/_core/hooks/useIsMobile.ts +18 -18
- package/src/action/Action.view.tsx +21 -21
- package/src/action/ButtonAction.tsx +32 -32
- package/src/action/action.css +20 -20
- package/src/badge/Badge.tsx +34 -34
- package/src/badge/Badge.view.tsx +15 -15
- package/src/badge/badge.css +55 -55
- package/src/button/Button.tsx +44 -44
- package/src/button/Button.view.tsx +61 -61
- package/src/button/button.css +53 -53
- package/src/button/button.interface.tsx +20 -20
- package/src/button/buttonActions/ButtonActions.tsx +101 -101
- package/src/card/Card.tsx +125 -125
- package/src/card/Card.view.tsx +73 -73
- package/src/card/card.css +145 -145
- package/src/card/card.interface.tsx +9 -9
- package/src/card/cardAction/CardAction.tsx +135 -135
- package/src/card/cardAction/cardAction.css +10 -10
- package/src/card/cardAction.interface.tsx +10 -10
- package/src/card/hook/useCardInteractions.tsx +30 -30
- package/src/carousel/Carousel.css +44 -44
- package/src/carousel/Carousel.tsx +115 -115
- package/src/carousel/Carousel.view.tsx +13 -13
- package/src/damier/Damier.tsx +55 -55
- package/src/damier/Damier.view.tsx +31 -31
- package/src/damier/damier.css +44 -44
- package/src/damier/damierCell/DamierCell.tsx +18 -18
- package/src/damier/damierCell/damierCell.interface.tsx +5 -5
- package/src/dataTable/DataTable.tsx +236 -202
- package/src/dataTable/DataTable.view.tsx +59 -59
- package/src/dataTable/dataTable.css +16 -14
- package/src/dataTable/dataTable.interface.ts +29 -29
- package/src/datePicker/DatePicker.tsx +110 -110
- package/src/datePicker/DatePicker.view.tsx +9 -9
- package/src/datePicker/datePicker.css +77 -77
- package/src/expands/Expands.tsx +42 -42
- package/src/expands/Expands.view.tsx +90 -90
- package/src/expands/expand/expand.interface.tsx +8 -8
- package/src/expands/expand/expand.tsx +75 -75
- package/src/expands/expands.css +97 -97
- package/src/filAriane/FilAriane.tsx +57 -57
- package/src/filAriane/FilAriane.view.tsx +28 -28
- package/src/filAriane/filAriane.css +22 -22
- package/src/filAriane/filAriane.interface.tsx +6 -6
- package/src/form/Form.tsx +175 -175
- package/src/form/Form.view.tsx +47 -47
- package/src/form/form.css +37 -37
- package/src/form/form.enum.ts +11 -11
- package/src/form/form.interface.tsx +31 -31
- package/src/form/textArea/TextArea.tsx +53 -53
- package/src/form/textArea/TextArea.view.tsx +34 -34
- package/src/form/textArea/textArea.css +9 -9
- package/src/grid/Grid.tsx +21 -21
- package/src/grid/Grid.view.tsx +24 -24
- package/src/grid/col/Col.tsx +15 -15
- package/src/grid/col/colStyled/ColStyled.tsx +41 -41
- package/src/grid/container/Container.tsx +8 -8
- package/src/grid/container/container.css +5 -5
- package/src/grid/grid.interface.tsx +7 -7
- package/src/grid/row/Row.tsx +12 -12
- package/src/grid/row/row.css +18 -18
- package/src/header/Header.tsx +51 -51
- package/src/header/Header.view.tsx +5 -5
- package/src/header/header.css +26 -26
- package/src/header/header.interface.tsx +8 -8
- package/src/home/Home.tsx +3 -3
- package/src/icon/Icon.tsx +6 -6
- package/src/icon/Icons.view.tsx +29 -29
- package/src/icon/icon.css +20 -20
- package/src/icon/icon.interface.tsx +6 -6
- package/src/icon/iconSize.enum.ts +7 -7
- package/src/index.css +502 -502
- package/src/index.ts +33 -33
- package/src/loader/Loader.tsx +37 -37
- package/src/loader/Loader.view.tsx +20 -20
- package/src/loader/loader.css +30 -30
- package/src/main.tsx +10 -10
- package/src/menus/Menus.tsx +42 -42
- package/src/menus/Menus.view.tsx +39 -39
- package/src/menus/menu/Menu.tsx +17 -17
- package/src/menus/menu/menu.interface.tsx +9 -9
- package/src/menus/menus.css +47 -47
- package/src/modal/Modal.tsx +53 -53
- package/src/modal/Modal.view.tsx +25 -25
- package/src/modal/modal.css +69 -65
- package/src/notFound/NotFound.tsx +3 -3
- package/src/overlayPanel/OverlayPanel.tsx +189 -189
- package/src/overlayPanel/OverlayPanel.view.tsx +25 -25
- package/src/overlayPanel/overlay.context.tsx +28 -28
- package/src/overlayPanel/overlayPanel.css +35 -35
- package/src/overlayPanel/overlayPanelStyled/OverlayPanelStyled.tsx +18 -18
- package/src/quantity/Quantity.tsx +103 -103
- package/src/quantity/quantity.css +26 -26
- package/src/search/Search.tsx +161 -161
- package/src/search/Search.view.tsx +14 -14
- package/src/search/search.css +59 -59
- package/src/select/Select.tsx +53 -53
- package/src/select/Select.view.tsx +71 -71
- package/src/select/select.css +51 -51
- package/src/select/selectOption.interface.ts +4 -4
- package/src/sidebar/Sidebar.tsx +111 -111
- package/src/sidebar/Sidebar.view.tsx +17 -17
- package/src/sidebar/sidebar.css +87 -87
- package/src/sidebarData/SidebarData.tsx +19 -19
- package/src/sidebarData/SidebarData.view.tsx +19 -19
- package/src/sidebarData/sidebarData.css +27 -27
- package/src/toaster/Toaster.tsx +47 -47
- package/src/toaster/Toaster.view.tsx +3 -3
- package/src/toaster/store/useToasterStore.tsx +39 -39
- package/src/toaster/toaster.css +57 -57
- package/tsconfig.json +28 -28
- package/vite.config.ts +20 -20
- package/vite.config.ts.timestamp-1733262892554-a13dfef6e8a29.mjs +24 -24
package/README.md
CHANGED
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
# Getting Started with Create React App
|
|
2
|
-
|
|
3
|
-
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
|
|
4
|
-
|
|
5
|
-
## Available Scripts
|
|
6
|
-
|
|
7
|
-
In the project directory, you can run:
|
|
8
|
-
|
|
9
|
-
### `npm start`
|
|
10
|
-
|
|
11
|
-
Runs the app in the development mode.\
|
|
12
|
-
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
|
|
13
|
-
|
|
14
|
-
The page will reload if you make edits.\
|
|
15
|
-
You will also see any lint errors in the console.
|
|
16
|
-
|
|
17
|
-
### `npm test`
|
|
18
|
-
|
|
19
|
-
Launches the test runner in the interactive watch mode.\
|
|
20
|
-
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
|
|
21
|
-
|
|
22
|
-
### `npm run build`
|
|
23
|
-
|
|
24
|
-
Builds the app for production to the `build` folder.\
|
|
25
|
-
It correctly bundles React in production mode and optimizes the build for the best performance.
|
|
26
|
-
|
|
27
|
-
The build is minified and the filenames include the hashes.\
|
|
28
|
-
Your app is ready to be deployed!
|
|
29
|
-
|
|
30
|
-
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
|
|
31
|
-
|
|
32
|
-
### `npm run eject`
|
|
33
|
-
|
|
34
|
-
**Note: this is a one-way operation. Once you `eject`, you can’t go back!**
|
|
35
|
-
|
|
36
|
-
If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
|
|
37
|
-
|
|
38
|
-
Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
|
|
39
|
-
|
|
40
|
-
You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
|
|
41
|
-
|
|
42
|
-
## Learn More
|
|
43
|
-
|
|
44
|
-
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
|
|
45
|
-
|
|
46
|
-
To learn React, check out the [React documentation](https://reactjs.org/).
|
|
1
|
+
# Getting Started with Create React App
|
|
2
|
+
|
|
3
|
+
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
|
|
4
|
+
|
|
5
|
+
## Available Scripts
|
|
6
|
+
|
|
7
|
+
In the project directory, you can run:
|
|
8
|
+
|
|
9
|
+
### `npm start`
|
|
10
|
+
|
|
11
|
+
Runs the app in the development mode.\
|
|
12
|
+
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
|
|
13
|
+
|
|
14
|
+
The page will reload if you make edits.\
|
|
15
|
+
You will also see any lint errors in the console.
|
|
16
|
+
|
|
17
|
+
### `npm test`
|
|
18
|
+
|
|
19
|
+
Launches the test runner in the interactive watch mode.\
|
|
20
|
+
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
|
|
21
|
+
|
|
22
|
+
### `npm run build`
|
|
23
|
+
|
|
24
|
+
Builds the app for production to the `build` folder.\
|
|
25
|
+
It correctly bundles React in production mode and optimizes the build for the best performance.
|
|
26
|
+
|
|
27
|
+
The build is minified and the filenames include the hashes.\
|
|
28
|
+
Your app is ready to be deployed!
|
|
29
|
+
|
|
30
|
+
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
|
|
31
|
+
|
|
32
|
+
### `npm run eject`
|
|
33
|
+
|
|
34
|
+
**Note: this is a one-way operation. Once you `eject`, you can’t go back!**
|
|
35
|
+
|
|
36
|
+
If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
|
|
37
|
+
|
|
38
|
+
Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
|
|
39
|
+
|
|
40
|
+
You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
|
|
41
|
+
|
|
42
|
+
## Learn More
|
|
43
|
+
|
|
44
|
+
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
|
|
45
|
+
|
|
46
|
+
To learn React, check out the [React documentation](https://reactjs.org/).
|
package/dist/App.d.ts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export default App;
|
|
1
|
+
declare const App: React.FC;
|
|
2
|
+
export default App;
|
package/dist/App.menu.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export type MenuProps = {
|
|
3
|
-
id: number;
|
|
4
|
-
name: string;
|
|
5
|
-
children: JSX.Element;
|
|
6
|
-
link: string;
|
|
7
|
-
element: JSX.Element;
|
|
8
|
-
};
|
|
9
|
-
export declare const MenuList: MenuProps[];
|
|
10
|
-
export declare const AppMenu: () => JSX.Element;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export type MenuProps = {
|
|
3
|
+
id: number;
|
|
4
|
+
name: string;
|
|
5
|
+
children: JSX.Element;
|
|
6
|
+
link: string;
|
|
7
|
+
element: JSX.Element;
|
|
8
|
+
};
|
|
9
|
+
export declare const MenuList: MenuProps[];
|
|
10
|
+
export declare const AppMenu: () => JSX.Element;
|
package/dist/App.routes.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const AppRoutes: () => JSX.Element;
|
|
1
|
+
export declare const AppRoutes: () => JSX.Element;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export
|
|
7
|
-
export {};
|
|
2
|
+
interface ImageCheckerProps {
|
|
3
|
+
imageUrl: string;
|
|
4
|
+
}
|
|
5
|
+
export declare const ImageChecker: React.FC<ImageCheckerProps>;
|
|
6
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const useIsMobile: (maxWidth?: number) => boolean;
|
|
1
|
+
export declare const useIsMobile: (maxWidth?: number) => boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const ActionView: () => JSX.Element;
|
|
1
|
+
export declare const ActionView: () => JSX.Element;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { BadgeInterface } from '../badge/Badge';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
};
|
|
10
|
-
export declare const ButtonAction: ({ className, onClick, title, classIcon, badge, }: ButtonActionProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export type ButtonActionProps = {
|
|
3
|
+
className?: string;
|
|
4
|
+
onClick?: (e: React.MouseEvent) => void;
|
|
5
|
+
title?: string;
|
|
6
|
+
classIcon?: string;
|
|
7
|
+
badge?: BadgeInterface;
|
|
8
|
+
};
|
|
9
|
+
export declare const ButtonAction: ({ className, onClick, title, classIcon, badge, }: ButtonActionProps) => import("react/jsx-runtime").JSX.Element;
|
package/dist/badge/Badge.d.ts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { IconSizeEnum } from '../icon/iconSize.enum';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
};
|
|
10
|
-
export declare const Badge: ({ className, onClick, title, sizeIcon, classIcon, }: BadgeInterface) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export type BadgeInterface = {
|
|
3
|
+
className?: string;
|
|
4
|
+
onClick?: (e: React.MouseEvent) => void;
|
|
5
|
+
title?: string;
|
|
6
|
+
sizeIcon?: IconSizeEnum;
|
|
7
|
+
classIcon?: string;
|
|
8
|
+
};
|
|
9
|
+
export declare const Badge: ({ className, onClick, title, sizeIcon, classIcon, }: BadgeInterface) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const BadgeView: () => JSX.Element;
|
|
1
|
+
export declare const BadgeView: () => JSX.Element;
|
package/dist/button/Button.d.ts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
1
|
import { ButtonInterface } from './button.interface';
|
|
2
|
-
|
|
3
|
-
export declare const Button: ({ className, onClick, badge, title, sizeIcon, classIcon, positionicon, disabled, }: ButtonInterface) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const Button: ({ className, onClick, badge, title, sizeIcon, classIcon, positionicon, disabled, }: ButtonInterface) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const ButtonView: () => JSX.Element;
|
|
1
|
+
export declare const ButtonView: () => JSX.Element;
|
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
import { BadgeInterface } from '../badge/Badge';
|
|
2
2
|
import { IconSizeEnum } from '../icon/iconSize.enum';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
3
|
+
export interface ButtonInterface {
|
|
4
|
+
className?: string;
|
|
5
|
+
badge?: BadgeInterface;
|
|
6
|
+
onClick?: (e: React.MouseEvent) => void;
|
|
7
|
+
title: string;
|
|
8
|
+
classIcon?: string;
|
|
9
|
+
positionicon?: number;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
sizeIcon?: IconSizeEnum;
|
|
12
|
+
}
|
|
13
|
+
export interface buttonActionInterface {
|
|
14
|
+
icon?: string;
|
|
15
|
+
id?: number | string;
|
|
16
|
+
label: string;
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
onClick: (a: buttonActionInterface) => void;
|
|
19
|
+
}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { PositionOverlay } from '../../overlayPanel/OverlayPanel';
|
|
2
2
|
import { buttonActionInterface } from '../button.interface';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
};
|
|
13
|
-
export declare const ButtonActions: ({ className, onClick, title, actions, positionActions, disabled, }: ButtonActionsProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export type ButtonActionsProps = {
|
|
4
|
+
className?: string;
|
|
5
|
+
onClick?: (e: React.MouseEvent) => void;
|
|
6
|
+
title: string;
|
|
7
|
+
actions?: buttonActionInterface[];
|
|
8
|
+
classIcon?: string;
|
|
9
|
+
positionActions?: PositionOverlay;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
};
|
|
12
|
+
export declare const ButtonActions: ({ className, onClick, title, actions, positionActions, disabled, }: ButtonActionsProps) => import("react/jsx-runtime").JSX.Element;
|
package/dist/card/Card.d.ts
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import { PositionOverlay } from '../overlayPanel/OverlayPanel';
|
|
2
2
|
import { CardInterface } from './card.interface';
|
|
3
3
|
import { CardActionInterface } from './cardAction.interface';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
};
|
|
15
|
-
export
|
|
16
|
-
export {};
|
|
4
|
+
type CardProps = {
|
|
5
|
+
item: CardInterface;
|
|
6
|
+
actions?: CardActionInterface[];
|
|
7
|
+
className?: string;
|
|
8
|
+
handleClick?: (item: CardInterface) => void;
|
|
9
|
+
onClose?: (item: CardInterface) => void;
|
|
10
|
+
children?: JSX.Element;
|
|
11
|
+
customAction?: JSX.Element;
|
|
12
|
+
positionOverlay?: PositionOverlay;
|
|
13
|
+
};
|
|
14
|
+
export declare const Card: ({ item, actions, className, handleClick, onClose, customAction, positionOverlay, children, }: CardProps) => JSX.Element;
|
|
15
|
+
export {};
|
package/dist/card/Card.view.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const CardView: () => JSX.Element;
|
|
1
|
+
export declare const CardView: () => JSX.Element;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export interface CardInterface {
|
|
3
|
-
id?: number | string;
|
|
4
|
-
uuid?: string;
|
|
5
|
-
title: string | JSX.Element;
|
|
6
|
-
description?: string | JSX.Element;
|
|
7
|
-
image?: string;
|
|
8
|
-
prix?: string | JSX.Element;
|
|
9
|
-
quantity?: number;
|
|
10
|
-
}
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface CardInterface {
|
|
3
|
+
id?: number | string;
|
|
4
|
+
uuid?: string;
|
|
5
|
+
title: string | JSX.Element;
|
|
6
|
+
description?: string | JSX.Element;
|
|
7
|
+
image?: string;
|
|
8
|
+
prix?: string | JSX.Element;
|
|
9
|
+
quantity?: number;
|
|
10
|
+
}
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import { CardInterface } from '../card.interface';
|
|
2
2
|
import { CardActionInterface } from '../cardAction.interface';
|
|
3
|
-
|
|
4
|
-
export type
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
};
|
|
16
|
-
export declare const CardAction: ({ actions, openActions, item, positions, positionOverlay, setOpenActions, }: CardActionProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export type PositionOverlay = "left" | "right" | "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
|
|
4
|
+
export type CardActionProps = {
|
|
5
|
+
actions: CardActionInterface[];
|
|
6
|
+
item?: CardInterface;
|
|
7
|
+
openActions?: boolean;
|
|
8
|
+
positions?: {
|
|
9
|
+
top: number;
|
|
10
|
+
left: number;
|
|
11
|
+
};
|
|
12
|
+
positionOverlay?: PositionOverlay;
|
|
13
|
+
setOpenActions?: (open: boolean) => void;
|
|
14
|
+
};
|
|
15
|
+
export declare const CardAction: ({ actions, openActions, item, positions, positionOverlay, setOpenActions, }: CardActionProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { CardInterface } from './card.interface';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
2
|
+
export interface CardActionInterface {
|
|
3
|
+
icon: string;
|
|
4
|
+
label?: string;
|
|
5
|
+
disabled?: (item: CardInterface) => boolean;
|
|
6
|
+
onClick: (item: CardInterface) => void;
|
|
7
|
+
setLabel?: (item: CardInterface) => string;
|
|
8
|
+
type?: "menu" | "link";
|
|
9
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export declare const useCardInteractions: (callback: () => void) => {
|
|
2
|
-
ref: import('react').RefObject<HTMLDivElement>;
|
|
3
|
-
isHovered: boolean;
|
|
4
|
-
mouseHandlers: {
|
|
5
|
-
onMouseEnter: () => void;
|
|
6
|
-
onMouseLeave: () => void;
|
|
7
|
-
};
|
|
8
|
-
};
|
|
1
|
+
export declare const useCardInteractions: (callback: () => void) => {
|
|
2
|
+
ref: import('react').RefObject<HTMLDivElement>;
|
|
3
|
+
isHovered: boolean;
|
|
4
|
+
mouseHandlers: {
|
|
5
|
+
onMouseEnter: () => void;
|
|
6
|
+
onMouseLeave: () => void;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import { default as React, ReactNode } from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
export
|
|
16
|
-
export {};
|
|
2
|
+
interface Breakpoints {
|
|
3
|
+
sm?: number;
|
|
4
|
+
md?: number;
|
|
5
|
+
lg?: number;
|
|
6
|
+
xl?: number;
|
|
7
|
+
}
|
|
8
|
+
interface CarouselProps {
|
|
9
|
+
children: ReactNode[];
|
|
10
|
+
showControls?: boolean;
|
|
11
|
+
itemsToScroll?: number;
|
|
12
|
+
breakpoints?: Breakpoints;
|
|
13
|
+
}
|
|
14
|
+
export declare const Carousel: React.FC<CarouselProps>;
|
|
15
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const CarouselView: () => import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
export declare const CarouselView: () => import("react/jsx-runtime").JSX.Element;
|
package/dist/damier/Damier.d.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { DamierCellInterface } from './damierCell/damierCell.interface';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
export
|
|
11
|
-
export {};
|
|
2
|
+
interface DamierProps {
|
|
3
|
+
cols?: number;
|
|
4
|
+
rows?: number;
|
|
5
|
+
page?: number;
|
|
6
|
+
damierCells?: DamierCellInterface[];
|
|
7
|
+
onClick?: (cell: DamierCellInterface) => void;
|
|
8
|
+
}
|
|
9
|
+
export declare const Damier: ({ cols, rows, damierCells, page, onClick, }: DamierProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const DamierView: () => import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
export declare const DamierView: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { DamierCellInterface } from './damierCell.interface';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
cell: DamierCellInterface;
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
export
|
|
8
|
-
export {};
|
|
2
|
+
interface DamierCellProps {
|
|
3
|
+
cell: DamierCellInterface;
|
|
4
|
+
onClick?: (cell: DamierCellInterface) => void;
|
|
5
|
+
}
|
|
6
|
+
export declare const DamierCell: ({ cell, onClick }: DamierCellProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export interface DamierCellInterface {
|
|
3
|
-
child?: JSX.Element;
|
|
4
|
-
position?: number;
|
|
5
|
-
id?: number;
|
|
6
|
-
}
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface DamierCellInterface {
|
|
3
|
+
child?: JSX.Element;
|
|
4
|
+
position?: number;
|
|
5
|
+
id?: number;
|
|
6
|
+
}
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import { dataTableActionsInterface, dataTableColumnsInterface } from './dataTable.interface';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
2
|
+
export type DataTableProps<T> = {
|
|
3
|
+
id: string;
|
|
4
|
+
name?: string;
|
|
5
|
+
className?: string;
|
|
6
|
+
children?: JSX.Element;
|
|
7
|
+
element?: JSX.Element;
|
|
8
|
+
data: T[];
|
|
9
|
+
emptyMessage?: string;
|
|
10
|
+
actions?: dataTableActionsInterface<T>[];
|
|
11
|
+
columns: dataTableColumnsInterface<T>[];
|
|
12
|
+
loading?: boolean;
|
|
13
|
+
onRowClick?: (row: any) => void;
|
|
14
|
+
onColumnClick?: (column: any) => void;
|
|
15
|
+
onLoadMore?: () => void;
|
|
16
|
+
hasMore?: boolean;
|
|
17
|
+
};
|
|
18
|
+
export declare function DataTable<T>(props: DataTableProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const DataTableView: () => import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
export declare const DataTableView: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,32 +1,31 @@
|
|
|
1
1
|
import { HTMLInputTypeAttribute } from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}
|
|
2
|
+
export interface dataTableColumnsInterface<T> {
|
|
3
|
+
id: string;
|
|
4
|
+
label: string;
|
|
5
|
+
minWidth?: number;
|
|
6
|
+
maxWidth?: number;
|
|
7
|
+
width?: number;
|
|
8
|
+
align?: "right" | "left" | "center";
|
|
9
|
+
format?: (value: any) => string;
|
|
10
|
+
sortable?: boolean;
|
|
11
|
+
filterable?: boolean;
|
|
12
|
+
filterValue?: string;
|
|
13
|
+
editable?: boolean;
|
|
14
|
+
options?: {
|
|
15
|
+
label: string;
|
|
16
|
+
value: string;
|
|
17
|
+
}[];
|
|
18
|
+
onEdit?: (value: any, row: T) => void;
|
|
19
|
+
type: HTMLInputTypeAttribute | "select";
|
|
20
|
+
}
|
|
21
|
+
export interface dataTableActionsInterface<T> {
|
|
22
|
+
id: string;
|
|
23
|
+
label: string;
|
|
24
|
+
type: "button" | "link" | "icon";
|
|
25
|
+
classIcon?: string;
|
|
26
|
+
onClick: (row: T) => void;
|
|
27
|
+
shouldDisplay?: (row: T) => boolean;
|
|
28
|
+
disabled?: boolean;
|
|
29
|
+
labelButton?: (row: T) => string;
|
|
30
|
+
visible?: boolean;
|
|
31
|
+
}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { Value } from 'react-calendar/dist/cjs/shared/types';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
};
|
|
9
|
-
export declare const DatePicker: ({ value, onChange, maxDate, children, }: DatePickerProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export type DatePickerProps = {
|
|
3
|
+
value?: Value;
|
|
4
|
+
maxDate?: Date;
|
|
5
|
+
onChange?: (date: Value) => void;
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
};
|
|
8
|
+
export declare const DatePicker: ({ value, onChange, maxDate, children, }: DatePickerProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const DatePickerView: () => import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
export declare const DatePickerView: () => import("react/jsx-runtime").JSX.Element;
|