kelt-ui-kit-react 0.1.9 → 0.2.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.
- package/dist/card/Card.d.ts +0 -8
- package/dist/card/cardAction/CardAction.d.ts +8 -0
- package/dist/card/cardAction.interface.d.ts +1 -0
- package/dist/card/hook/useCardInteractions.d.ts +8 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1201 -1146
- package/dist/menus/menu/menu.interface.d.ts +1 -0
- package/dist/modal/Modal.d.ts +10 -0
- package/dist/modal/Modal.view.d.ts +1 -0
- package/dist/overlayPanel/overlay.context.d.ts +11 -0
- package/dist/sidebar/Sidebar.d.ts +4 -3
- package/dist/sidebarData/SidebarData.d.ts +3 -7
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/App.menu.tsx +8 -0
- package/src/App.tsx +12 -9
- package/src/card/Card.tsx +22 -53
- package/src/card/Card.view.tsx +3 -4
- package/src/card/card.css +56 -12
- package/src/card/cardAction/CardAction.tsx +72 -0
- package/src/card/cardAction/cardAction.css +7 -0
- package/src/card/cardAction.interface.tsx +1 -0
- package/src/card/hook/useCardInteractions.tsx +30 -0
- package/src/index.css +15 -1
- package/src/index.ts +2 -0
- package/src/menus/menu/menu.interface.tsx +1 -0
- package/src/modal/Modal.tsx +34 -0
- package/src/modal/Modal.view.tsx +19 -0
- package/src/modal/modal.css +63 -0
- package/src/overlayPanel/OverlayPanel.tsx +52 -48
- package/src/overlayPanel/OverlayPanel.view.tsx +3 -2
- package/src/overlayPanel/overlay.context.tsx +28 -0
- package/src/quantity/Quantity.tsx +3 -0
- package/src/quantity/quantity.css +5 -0
- package/src/sidebar/Sidebar.tsx +7 -2
- package/src/sidebarData/SidebarData.tsx +7 -23
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ModalView: () => JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
interface OverlayContextType {
|
|
4
|
+
activeOverlayId: string | null;
|
|
5
|
+
setActiveOverlay: (id: string | null) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare const OverlayProvider: React.FC<{
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
}>;
|
|
10
|
+
export declare const useOverlayContext: () => OverlayContextType;
|
|
11
|
+
export {};
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
|
|
2
|
-
interface SidebarProps {
|
|
2
|
+
export interface SidebarProps {
|
|
3
3
|
id?: string;
|
|
4
4
|
open?: boolean;
|
|
5
5
|
title?: string;
|
|
6
6
|
children?: React.ReactNode;
|
|
7
7
|
className?: string;
|
|
8
8
|
width?: string;
|
|
9
|
+
displayOverlay?: boolean;
|
|
10
|
+
closeOnClickOutside?: boolean;
|
|
9
11
|
onClose?: (close: boolean) => void;
|
|
10
12
|
}
|
|
11
|
-
export declare const Sidebar: ({ open, children, title, onClose, className, id, width, }: SidebarProps) => JSX.Element;
|
|
12
|
-
export {};
|
|
13
|
+
export declare const Sidebar: ({ open, children, title, onClose, className, id, width, closeOnClickOutside, displayOverlay, }: SidebarProps) => JSX.Element;
|
|
@@ -1,11 +1,7 @@
|
|
|
1
|
+
import { SidebarProps } from '../sidebar/Sidebar';
|
|
1
2
|
|
|
2
|
-
interface SidebarDataProps {
|
|
3
|
-
open?: boolean;
|
|
4
|
-
title?: string;
|
|
5
|
-
width?: string;
|
|
6
|
-
className?: string;
|
|
3
|
+
interface SidebarDataProps extends SidebarProps {
|
|
7
4
|
children?: React.ReactNode;
|
|
8
|
-
onClose?: (close: boolean) => void;
|
|
9
5
|
}
|
|
10
|
-
export declare const SidebarData: (
|
|
6
|
+
export declare const SidebarData: (props: SidebarDataProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
7
|
export {};
|