caplink-saas-ui-shared-component-library 1.43.0 → 1.45.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.
@@ -1,3 +1,3 @@
1
- export { Spreadsheet } from './spreadsheet';
1
+ export { Spreadsheet, Workbook, WorkbookTabs } from './spreadsheet';
2
2
  export { ImageUploader } from './image-uploader';
3
3
  export { Dag, DagContainer } from './dag';
@@ -1 +1,3 @@
1
- export { Spreadsheet } from './ui';
1
+ export { Workbook } from './ui/workbook';
2
+ export { WorkbookTabs } from './ui/workbook-tabs';
3
+ export { Spreadsheet } from './ui/spreadsheet';
@@ -178,6 +178,7 @@ export type Context = {
178
178
  position: number;
179
179
  }) => void;
180
180
  onSelectSpreadsheet: () => void;
181
+ onNavigateWithArrowKeys: (direction: 'left' | 'right' | 'up' | 'down', shiftKey?: boolean) => void;
181
182
  onColumnVisibilityChange: (params: {
182
183
  columnId: string;
183
184
  visible?: boolean;
@@ -1 +1,3 @@
1
1
  export { Spreadsheet } from './spreadsheet';
2
+ export { Workbook } from './workbook';
3
+ export { WorkbookTabs } from './workbook-tabs';
@@ -7,6 +7,7 @@ export type SpreadsheetProps = {
7
7
  /** Defines if user can add or delete rows */
8
8
  staticRows?: boolean;
9
9
  className?: string;
10
+ toolbarClassName?: string;
10
11
  onExportData?: () => void;
11
12
  onOpenFullScreen?: () => void;
12
13
  fullScreen?: boolean;
@@ -1 +1,4 @@
1
- export declare function Toolbar(): import("react/jsx-runtime").JSX.Element;
1
+ export type ToolbarProps = {
2
+ className?: string;
3
+ };
4
+ export declare function Toolbar(props: ToolbarProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,10 @@
1
+ export type WorkbookTabsProps = {
2
+ sheets: Array<{
3
+ id: string;
4
+ name: string;
5
+ }>;
6
+ currentSheetIndex: number;
7
+ onCurrentSheetIndexChange: (index: number) => void;
8
+ className?: string;
9
+ };
10
+ export declare function WorkbookTabs(props: WorkbookTabsProps): import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,17 @@
1
+ import { SpreadsheetProps } from './spreadsheet';
2
+ export type WorkbookSheet = {
3
+ id: string;
4
+ name: string;
5
+ spreadsheet: Omit<SpreadsheetProps, 'onExportData' | 'onOpenFullScreen' | 'fullScreen' | 'onMatrixChange'>;
6
+ };
7
+ export type WorkbookProps = {
8
+ sheets: WorkbookSheet[];
9
+ currentSheetIndex: number;
10
+ onCurrentSheetIndexChange: (index: number) => void;
11
+ onWorkbookChange: (workbook: WorkbookSheet[]) => void;
12
+ onExportData?: () => void;
13
+ onOpenFullScreen?: () => void;
14
+ fullScreen?: boolean;
15
+ hideTabs?: boolean;
16
+ };
17
+ export declare function Workbook(props: WorkbookProps): import("react/jsx-runtime").JSX.Element | null;
package/dist/index.d.ts CHANGED
@@ -30,6 +30,9 @@ import { DocumentFolder, DocumentFolderCellProps, DataEditorCellProps, DataViewe
30
30
  import { Table, TablePaginationProps } from './components/table';
31
31
  import { NumericInput } from './components/numeric-input';
32
32
  import { Select } from './components/select';
33
+ import { Workbook, WorkbookTabs } from './features';
34
+ import { WorkbookProps } from './features/spreadsheet/ui/workbook';
35
+ import { WorkbookTabsProps } from './features/spreadsheet/ui/workbook-tabs';
33
36
  import { ImageUploader, ImageUploaderProps } from './features/image-uploader/ui';
34
37
  import { Spreadsheet } from './features/spreadsheet/ui';
35
38
  import { useGetAdjacentNodesProps } from './features/dag/hooks';
@@ -51,8 +54,8 @@ import { CapLinkProvider } from './providers';
51
54
  import { IconTextButtonProps } from './components/icon-text-button';
52
55
  import { Badge, BadgeProps } from './components/badge';
53
56
  import { CustomPaginationProps } from './components/pagination';
54
- export { Accordion, accordionVariants, Tabs, Status, Switch, Tooltip, Popover, Radio, Checkbox, InputOTP, Card, Input, Breadcrumb, Alert, alertVariants, ProgressBar, Button, buttonVariants, AlertBanner, Sheet, CopyTextButton, Textarea, textareaVariants, Dialog, ToastProvider, Toaster, useToast, IconButton, iconButtonVariants, AlertDialog, DownloadFileButton, UploadImageInput, InputPassword, Searchbar, RichText, DocumentFolder, DocumentFolderDataEditor, Table, NumericInput, Select, };
55
- export type { AccordionProps, CardProps, InputProps, TextareaProps, AlertProps, ProgressBarProps, ButtonProps, AlertBannerProps, SheetProps, SheetContentProps, CopyTextButtonProps, DialogProps, DialogContentProps, ToastFnProps, IconButtonProps, AlertDialogProps, AlertDialogContentProps, DownloadFileButtonProps, DownloadFileButtonVariant, UploadImageInputProps, UploadImageInputVariant, SearchbarProps, RichTextViewerProps, RichTextEditorProps, DocumentFolderCellProps, DataEditorCellProps, DataViewerProps, TablePaginationProps, };
57
+ export { Accordion, accordionVariants, Tabs, Status, Switch, Tooltip, Popover, Radio, Checkbox, InputOTP, Card, Input, Breadcrumb, Alert, alertVariants, ProgressBar, Button, buttonVariants, AlertBanner, Sheet, CopyTextButton, Textarea, textareaVariants, Dialog, ToastProvider, Toaster, useToast, IconButton, iconButtonVariants, AlertDialog, DownloadFileButton, UploadImageInput, InputPassword, Searchbar, RichText, DocumentFolder, DocumentFolderDataEditor, Table, NumericInput, Select, Workbook, WorkbookTabs, };
58
+ export type { AccordionProps, CardProps, InputProps, TextareaProps, AlertProps, ProgressBarProps, ButtonProps, AlertBannerProps, SheetProps, SheetContentProps, CopyTextButtonProps, DialogProps, DialogContentProps, ToastFnProps, IconButtonProps, AlertDialogProps, AlertDialogContentProps, DownloadFileButtonProps, DownloadFileButtonVariant, UploadImageInputProps, UploadImageInputVariant, SearchbarProps, RichTextViewerProps, RichTextEditorProps, DocumentFolderCellProps, DataEditorCellProps, DataViewerProps, TablePaginationProps, WorkbookProps, WorkbookTabsProps, };
56
59
  /** ----------- Updated Components ----------- */
57
60
  /** ----------- SVG Icons & Components ----------- */
58
61
  export { AnimatedLoaderIcon, EmptySearchIcon, EmptyFolderIcon, EmptyPageIcon, EmptyTaskIcon, EmptyDocumentIcon, UnderConstructionIcon, } from './svg';