kelt-ui-kit-react 0.1.8 → 0.2.0

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 (41) hide show
  1. package/dist/card/Card.d.ts +0 -8
  2. package/dist/card/card.interface.d.ts +1 -0
  3. package/dist/card/cardAction/CardAction.d.ts +8 -0
  4. package/dist/card/cardAction.interface.d.ts +1 -0
  5. package/dist/card/hook/useCardInteractions.d.ts +8 -0
  6. package/dist/index.d.ts +3 -0
  7. package/dist/index.js +1320 -1228
  8. package/dist/menus/menu/menu.interface.d.ts +1 -0
  9. package/dist/modal/Modal.d.ts +10 -0
  10. package/dist/modal/Modal.view.d.ts +1 -0
  11. package/dist/overlayPanel/overlay.context.d.ts +11 -0
  12. package/dist/quantity/Quantity.d.ts +7 -0
  13. package/dist/quantity/Quantity.view.d.ts +0 -0
  14. package/dist/sidebar/Sidebar.d.ts +4 -3
  15. package/dist/sidebarData/SidebarData.d.ts +3 -7
  16. package/dist/style.css +1 -1
  17. package/package.json +1 -1
  18. package/src/App.menu.tsx +8 -0
  19. package/src/App.tsx +12 -9
  20. package/src/card/Card.tsx +22 -53
  21. package/src/card/Card.view.tsx +13 -6
  22. package/src/card/card.css +56 -12
  23. package/src/card/card.interface.tsx +1 -0
  24. package/src/card/cardAction/CardAction.tsx +72 -0
  25. package/src/card/cardAction/cardAction.css +7 -0
  26. package/src/card/cardAction.interface.tsx +1 -0
  27. package/src/card/hook/useCardInteractions.tsx +30 -0
  28. package/src/index.css +15 -1
  29. package/src/index.ts +3 -0
  30. package/src/menus/menu/menu.interface.tsx +1 -0
  31. package/src/modal/Modal.tsx +34 -0
  32. package/src/modal/Modal.view.tsx +19 -0
  33. package/src/modal/modal.css +63 -0
  34. package/src/overlayPanel/OverlayPanel.tsx +52 -48
  35. package/src/overlayPanel/OverlayPanel.view.tsx +3 -2
  36. package/src/overlayPanel/overlay.context.tsx +28 -0
  37. package/src/quantity/Quantity.tsx +57 -0
  38. package/src/quantity/Quantity.view.tsx +0 -0
  39. package/src/quantity/quantity.css +19 -0
  40. package/src/sidebar/Sidebar.tsx +7 -2
  41. package/src/sidebarData/SidebarData.tsx +7 -23
@@ -10,13 +10,5 @@ type CardProps = {
10
10
  children?: JSX.Element;
11
11
  customAction?: JSX.Element;
12
12
  };
13
- export declare const useCardInteractions: (callback: () => void) => {
14
- ref: import('react').RefObject<HTMLDivElement>;
15
- isHovered: boolean;
16
- mouseHandlers: {
17
- onMouseEnter: () => void;
18
- onMouseLeave: () => void;
19
- };
20
- };
21
13
  export declare const Card: ({ item, actions, className, handleClick, onClose, customAction, children, }: CardProps) => JSX.Element;
22
14
  export {};
@@ -5,4 +5,5 @@ export interface CardInterface {
5
5
  description?: string;
6
6
  image?: string;
7
7
  prix?: string;
8
+ quantity?: number;
8
9
  }
@@ -0,0 +1,8 @@
1
+ import { CardInterface } from '../card.interface';
2
+ import { CardActionInterface } from '../cardAction.interface';
3
+
4
+ export type CardActionProps = {
5
+ actions: CardActionInterface[];
6
+ item: CardInterface;
7
+ };
8
+ export declare const CardAction: ({ actions, item }: CardActionProps) => import("react/jsx-runtime").JSX.Element;
@@ -4,4 +4,5 @@ export interface CardActionInterface {
4
4
  icon: string;
5
5
  label?: string;
6
6
  onClick: (item: CardInterface) => void;
7
+ type?: "menu" | "link";
7
8
  }
@@ -0,0 +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
+ };
package/dist/index.d.ts CHANGED
@@ -14,7 +14,10 @@ export { Icon } from './icon/Icon';
14
14
  export { IconSizeEnum } from './icon/iconSize.enum';
15
15
  export { Loader } from './loader/Loader';
16
16
  export { Menus } from './menus/Menus';
17
+ export { Modal } from './modal/Modal';
18
+ export { OverlayProvider } from './overlayPanel/overlay.context';
17
19
  export { OverlayPanel } from './overlayPanel/OverlayPanel';
20
+ export { Quantity } from './quantity/Quantity';
18
21
  export { Search } from './search/Search';
19
22
  export { Sidebar } from './sidebar/Sidebar';
20
23
  export { SidebarData } from './sidebarData/SidebarData';