@lateralus-ai/shipping-ui 1.1.2 → 1.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.
- package/dist/components/ModalPanel.d.ts +4 -0
- package/dist/components/PdfViewer/ImageViewer.d.ts +1 -1
- package/dist/components/PdfViewer/PdfViewer.d.ts +1 -1
- package/dist/components/PdfViewer/usePageManagement.d.ts +5 -1
- package/dist/components/SearchModal.d.ts +24 -0
- package/dist/components/Tabs.d.ts +13 -0
- package/dist/components/icons/SettingsIcon.d.ts +3 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/defect-report.pdf +0 -0
- package/dist/example.pdf +0 -0
- package/dist/index.cjs +21 -10
- package/dist/index.esm.js +17860 -1055
- package/dist/material-theme.d.ts +26 -0
- package/dist/stories/SearchModal.d.ts +1 -0
- package/dist/style.css +1 -0
- package/dist/tailwind-theme.d.ts +12 -0
- package/package.json +2 -1
- package/src/components/ModalPanel.tsx +13 -0
- package/src/components/PdfViewer/ImageViewer.tsx +8 -3
- package/src/components/PdfViewer/PdfViewer.tsx +138 -17
- package/src/components/PdfViewer/usePageManagement.ts +22 -7
- package/src/components/SearchModal.tsx +320 -0
- package/src/components/Tabs.tsx +43 -0
- package/src/components/icons/SettingsIcon.tsx +33 -0
- package/src/components/index.ts +1 -0
- package/src/material-theme.ts +30 -0
- package/src/stories/ModalHeader.stories.tsx +36 -0
- package/src/stories/PDFViewer.stories.tsx +1 -1
- package/src/stories/SearchModal.stories.tsx +132 -0
- package/src/stories/SearchModal.tsx +82 -0
- package/src/stories/Tabs.stories.tsx +51 -0
- package/src/styles/tabs.css +55 -0
- package/src/tailwind-theme.ts +12 -0
|
@@ -3,7 +3,11 @@ interface HeaderProps {
|
|
|
3
3
|
onClose: () => void;
|
|
4
4
|
right?: React.ReactNode;
|
|
5
5
|
}
|
|
6
|
+
interface BodyProps {
|
|
7
|
+
className?: string;
|
|
8
|
+
}
|
|
6
9
|
export declare const ModalPanel: {
|
|
7
10
|
Header: ({ onClose, right, children, }: PropsWithChildren<HeaderProps>) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
Body: ({ children, className }: PropsWithChildren<BodyProps>) => import("react/jsx-runtime").JSX.Element;
|
|
8
12
|
};
|
|
9
13
|
export {};
|
|
@@ -4,5 +4,5 @@ interface ImageViewerProps {
|
|
|
4
4
|
getImageSrc: (page: number) => string;
|
|
5
5
|
title?: string;
|
|
6
6
|
}
|
|
7
|
-
export declare const ImageViewer: ({ onClose, totalPages, getImageSrc, title, }: ImageViewerProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare const ImageViewer: ({ className, onClose, totalPages, getImageSrc, documentUrl, title, }: ImageViewerProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
export {};
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
export declare const usePageManagement: (
|
|
1
|
+
export declare const usePageManagement: (initialTotalPages?: number) => readonly [{
|
|
2
|
+
readonly currentPage: number;
|
|
3
|
+
readonly totalPages: number;
|
|
4
|
+
}, {
|
|
2
5
|
nextPage: () => void;
|
|
3
6
|
prevPage: () => void;
|
|
4
7
|
goToPage: (page: number) => void;
|
|
8
|
+
setTotalPages: (pages: number) => void;
|
|
5
9
|
}];
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export declare const formatDateReport: (date: string | Date) => string;
|
|
2
|
+
export interface SearchItem {
|
|
3
|
+
id: string;
|
|
4
|
+
title: string;
|
|
5
|
+
subtitle?: string;
|
|
6
|
+
icon?: React.ReactNode;
|
|
7
|
+
metadata?: Record<string, any>;
|
|
8
|
+
}
|
|
9
|
+
export interface SearchModalProps {
|
|
10
|
+
open: boolean;
|
|
11
|
+
onClose: () => void;
|
|
12
|
+
items?: SearchItem[];
|
|
13
|
+
loading?: boolean;
|
|
14
|
+
placeholder?: string;
|
|
15
|
+
onSearch?: (query: string) => void;
|
|
16
|
+
onSelect?: (item: SearchItem) => void;
|
|
17
|
+
filterOptions?: string[];
|
|
18
|
+
selectedFilter?: string;
|
|
19
|
+
onFilterChange?: (filter: string) => void;
|
|
20
|
+
recentlyViewedLabel?: string;
|
|
21
|
+
noResultsText?: string;
|
|
22
|
+
}
|
|
23
|
+
declare const SearchModal: ({ open, onClose, items, loading, placeholder, onSearch, onSelect, filterOptions, selectedFilter, onFilterChange, recentlyViewedLabel, noResultsText, }: SearchModalProps) => import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
export default SearchModal;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Tab } from '@material-tailwind/react';
|
|
3
|
+
interface Tab {
|
|
4
|
+
id: string;
|
|
5
|
+
label: string;
|
|
6
|
+
content: React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
interface TabsProps {
|
|
9
|
+
tabs: Tab[];
|
|
10
|
+
defaultTab?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const TabsContainer: React.FC<TabsProps>;
|
|
13
|
+
export {};
|
|
Binary file
|
package/dist/example.pdf
ADDED
|
Binary file
|