@grasp-labs/ds-react-components 0.13.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/LICENSE +201 -0
- package/README.md +52 -0
- package/dist/assets/fonts/Inter-VariableFont_opsz,wght.ttf +0 -0
- package/dist/components/advancedFilter/AdvancedFilter.d.ts +8 -0
- package/dist/components/advancedFilter/AdvancedFilterRow.d.ts +7 -0
- package/dist/components/advancedFilter/index.d.ts +4 -0
- package/dist/components/advancedFilter/types.d.ts +43 -0
- package/dist/components/advancedFilter/utils.d.ts +3 -0
- package/dist/components/alert/Alert.d.ts +19 -0
- package/dist/components/alert/index.d.ts +1 -0
- package/dist/components/animatedList/AnimatedList.d.ts +19 -0
- package/dist/components/animatedList/hooks/useLayoutAnimation.d.ts +9 -0
- package/dist/components/animatedList/index.d.ts +2 -0
- package/dist/components/animatedList/types.d.ts +19 -0
- package/dist/components/baseButton/BaseButton.d.ts +13 -0
- package/dist/components/baseButton/index.d.ts +1 -0
- package/dist/components/baseTextBox/BaseTextBox.d.ts +40 -0
- package/dist/components/baseTextBox/index.d.ts +1 -0
- package/dist/components/baseTextBox/useInputValidation.d.ts +3 -0
- package/dist/components/breadcrumb/Breadcrumb.d.ts +29 -0
- package/dist/components/breadcrumb/index.d.ts +1 -0
- package/dist/components/button/Button.d.ts +15 -0
- package/dist/components/button/index.d.ts +1 -0
- package/dist/components/card/Card.d.ts +27 -0
- package/dist/components/card/index.d.ts +1 -0
- package/dist/components/checkbox/Checkbox.d.ts +17 -0
- package/dist/components/checkbox/CheckboxIcon.d.ts +14 -0
- package/dist/components/checkbox/index.d.ts +4 -0
- package/dist/components/dialog/ConfirmationDialog.d.ts +36 -0
- package/dist/components/dialog/Dialog.d.ts +31 -0
- package/dist/components/dialog/index.d.ts +2 -0
- package/dist/components/dynamicIcon/DynamicIcon.d.ts +8 -0
- package/dist/components/dynamicIcon/index.d.ts +2 -0
- package/dist/components/field/Field.d.ts +82 -0
- package/dist/components/field/index.d.ts +16 -0
- package/dist/components/flow/FlowTile.d.ts +3 -0
- package/dist/components/flow/MetadataList.d.ts +6 -0
- package/dist/components/flow/StatusIcon.d.ts +5 -0
- package/dist/components/flow/TileHeader.d.ts +8 -0
- package/dist/components/flow/index.d.ts +2 -0
- package/dist/components/flow/types.d.ts +15 -0
- package/dist/components/iconButton/IconButton.d.ts +15 -0
- package/dist/components/iconButton/index.d.ts +1 -0
- package/dist/components/jsonEditor/JsonEditor.d.ts +7 -0
- package/dist/components/jsonEditor/index.d.ts +1 -0
- package/dist/components/list/List.d.ts +28 -0
- package/dist/components/list/ListItem.d.ts +20 -0
- package/dist/components/list/index.d.ts +2 -0
- package/dist/components/logo/Logo.d.ts +5 -0
- package/dist/components/logo/index.d.ts +2 -0
- package/dist/components/menu/Menu.d.ts +51 -0
- package/dist/components/menu/MenuEntry.d.ts +73 -0
- package/dist/components/menu/MenuFooter.d.ts +23 -0
- package/dist/components/menu/index.d.ts +11 -0
- package/dist/components/multiSelect/MultiSelect.d.ts +28 -0
- package/dist/components/multiSelect/index.d.ts +2 -0
- package/dist/components/popover/Popover.d.ts +60 -0
- package/dist/components/popover/index.d.ts +2 -0
- package/dist/components/radioButton/RadioButton.d.ts +29 -0
- package/dist/components/radioButton/index.d.ts +2 -0
- package/dist/components/select/Select.d.ts +30 -0
- package/dist/components/select/index.d.ts +1 -0
- package/dist/components/tabPanel/Tab.d.ts +22 -0
- package/dist/components/tabPanel/TabPanel.d.ts +20 -0
- package/dist/components/tabPanel/index.d.ts +2 -0
- package/dist/components/tabPanel/useTabKeyboard.d.ts +16 -0
- package/dist/components/table/Table.d.ts +33 -0
- package/dist/components/table/TableCell.d.ts +17 -0
- package/dist/components/table/TableHeaderCell.d.ts +17 -0
- package/dist/components/table/components/Pagination.d.ts +21 -0
- package/dist/components/table/components/index.d.ts +1 -0
- package/dist/components/table/index.d.ts +6 -0
- package/dist/components/tag/Tag.d.ts +18 -0
- package/dist/components/tag/index.d.ts +1 -0
- package/dist/components/tagList/TagList.d.ts +20 -0
- package/dist/components/tagList/index.d.ts +2 -0
- package/dist/components/tagList/utils.d.ts +2 -0
- package/dist/components/textBox/TextBox.d.ts +8 -0
- package/dist/components/textBox/index.d.ts +1 -0
- package/dist/components/toast/Toast.d.ts +2 -0
- package/dist/components/toast/Toaster.d.ts +10 -0
- package/dist/components/toast/index.d.ts +3 -0
- package/dist/components/toast/types.d.ts +22 -0
- package/dist/components/typography/Typography.d.ts +27 -0
- package/dist/components/typography/index.d.ts +2 -0
- package/dist/components/unstyledButton/UnstyledButton.d.ts +12 -0
- package/dist/components/unstyledButton/index.d.ts +1 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/useArrowNavigation.d.ts +30 -0
- package/dist/hooks/useResizeObserver.d.ts +1 -0
- package/dist/hooks/useViewportCollision.d.ts +7 -0
- package/dist/icons/icons.d.ts +256 -0
- package/dist/icons/index.d.ts +1 -0
- package/dist/index-CQ7w5dl6.js +8258 -0
- package/dist/index.css +1 -0
- package/dist/index.d.ts +32 -0
- package/dist/index.esm-DgyjJxy1.js +786 -0
- package/dist/index.js +92 -0
- package/dist/tailwind-styles.css +229 -0
- package/dist/test/setup.d.ts +0 -0
- package/dist/types/BaseOption.d.ts +5 -0
- package/dist/types/IconComponent.d.ts +6 -0
- package/dist/types/index.d.ts +1 -0
- package/package.json +94 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export type TabPanelProps = {
|
|
3
|
+
/** Tab components as children */
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
/** Default active tab name */
|
|
6
|
+
defaultActiveTab?: string;
|
|
7
|
+
/** Keep all tab contents in DOM (hidden with display:none when inactive) vs only render active tab */
|
|
8
|
+
keepTabsInDOM?: boolean;
|
|
9
|
+
/** Additional CSS classes for the container */
|
|
10
|
+
className?: string;
|
|
11
|
+
/** Additional CSS classes for the tabs container */
|
|
12
|
+
tabsClassName?: string;
|
|
13
|
+
/** Additional CSS classes for the body */
|
|
14
|
+
bodyClassName?: string;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* TabPanel component that manages tab state internally.
|
|
18
|
+
* Takes Tab components as children and handles switching between them.
|
|
19
|
+
*/
|
|
20
|
+
export declare const TabPanel: ({ children, defaultActiveTab, keepTabsInDOM, className, tabsClassName, bodyClassName, }: TabPanelProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { RefObject } from 'react';
|
|
2
|
+
export type UseTabKeyboardOptions = {
|
|
3
|
+
containerRef: RefObject<HTMLDivElement | null>;
|
|
4
|
+
activeTab: string;
|
|
5
|
+
tabs: Array<{
|
|
6
|
+
props: {
|
|
7
|
+
name: string;
|
|
8
|
+
};
|
|
9
|
+
}>;
|
|
10
|
+
onTabChange: (tabName: string) => void;
|
|
11
|
+
validTabNames: string[];
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* Tab-specific wrapper around useArrowNavigation
|
|
15
|
+
*/
|
|
16
|
+
export declare const useTabKeyboard: ({ containerRef, activeTab, tabs, onTabChange, validTabNames, }: UseTabKeyboardOptions) => void;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { PaginationState, TableOptions } from '@tanstack/react-table';
|
|
2
|
+
import { JSX } from 'react';
|
|
3
|
+
/**
|
|
4
|
+
* Props for the Table component.
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
export type TableProps<T> = Omit<TableOptions<T>, "getCoreRowModel"> & {
|
|
8
|
+
className?: string;
|
|
9
|
+
scrollWrapperClassName?: string;
|
|
10
|
+
getCoreRowModel?: TableOptions<T>["getCoreRowModel"];
|
|
11
|
+
enableRowSelection?: boolean;
|
|
12
|
+
enableMultiRowSelection?: boolean;
|
|
13
|
+
enablePagination?: boolean;
|
|
14
|
+
paginationProps?: {
|
|
15
|
+
itemsPerPageOptions?: number[];
|
|
16
|
+
pagination?: PaginationState;
|
|
17
|
+
onPaginationChange?: (pagination: PaginationState) => void;
|
|
18
|
+
totalItems?: number;
|
|
19
|
+
itemsPerPageText?: string;
|
|
20
|
+
fromText?: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* A customizable table component using TanStack Table.
|
|
25
|
+
*
|
|
26
|
+
* @template T - The row data type.
|
|
27
|
+
* @param {TableProps<T>} props - The table props.
|
|
28
|
+
* @returns {JSX.Element} The rendered table.
|
|
29
|
+
*/
|
|
30
|
+
declare function Table<T extends {
|
|
31
|
+
id?: string | number;
|
|
32
|
+
}>({ data, columns, className, scrollWrapperClassName, getCoreRowModel, enableRowSelection, enableMultiRowSelection, enablePagination, paginationProps, ...options }: TableProps<T>): JSX.Element;
|
|
33
|
+
export default Table;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Cell } from '@tanstack/react-table';
|
|
2
|
+
import { JSX } from 'react';
|
|
3
|
+
/**
|
|
4
|
+
* Props for the Table Cell component.
|
|
5
|
+
*/
|
|
6
|
+
type TableCellProps<T> = {
|
|
7
|
+
cell: Cell<T, unknown>;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* A table data cell component used to render text content.
|
|
11
|
+
*
|
|
12
|
+
* @template T - The row data type.
|
|
13
|
+
* @param {TableCellProps<T>} props - The component props.
|
|
14
|
+
* @returns {JSX.Element} The rendered cell.
|
|
15
|
+
*/
|
|
16
|
+
export declare const TableCell: <T>({ cell }: TableCellProps<T>) => JSX.Element;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Header } from '@tanstack/react-table';
|
|
2
|
+
import { JSX } from 'react';
|
|
3
|
+
/**
|
|
4
|
+
* Props for the TableHeaderCell component.
|
|
5
|
+
*/
|
|
6
|
+
type TableHeaderCellProps<T> = {
|
|
7
|
+
header: Header<T, unknown>;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* A table header cell component that renders sortable headers using TanStack Table's logic.
|
|
11
|
+
*
|
|
12
|
+
* @template T - The row data type.
|
|
13
|
+
* @param {TableHeaderCellProps<T>} props - The component props.
|
|
14
|
+
* @returns {JSX.Element} The rendered header cell.
|
|
15
|
+
*/
|
|
16
|
+
export declare const TableHeaderCell: <T>({ header, }: TableHeaderCellProps<T>) => JSX.Element;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export type PaginationProps = {
|
|
2
|
+
currentPage: number;
|
|
3
|
+
totalPages: number;
|
|
4
|
+
totalItems: number;
|
|
5
|
+
itemsPerPage: number;
|
|
6
|
+
itemsPerPageOptions?: number[];
|
|
7
|
+
onPageChange: (page: number) => void;
|
|
8
|
+
onItemsPerPageChange: (itemsPerPage: number) => void;
|
|
9
|
+
className?: string;
|
|
10
|
+
selectClassName?: string;
|
|
11
|
+
itemsPerPageText?: string;
|
|
12
|
+
fromText?: string;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* A pagination component providing navigation controls and items-per-page selection.
|
|
16
|
+
* Displays current page information and handles both internal and external pagination state.
|
|
17
|
+
*
|
|
18
|
+
* @param props - The props for the Pagination component.
|
|
19
|
+
* @returns The rendered pagination controls with navigation buttons and page info.
|
|
20
|
+
*/
|
|
21
|
+
export declare const Pagination: ({ currentPage, totalPages, totalItems, itemsPerPage, itemsPerPageOptions, onPageChange, onItemsPerPageChange, className, itemsPerPageText, fromText, }: PaginationProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Pagination';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { default as Table } from './Table';
|
|
2
|
+
export type { TableProps } from './Table';
|
|
3
|
+
export { TableCell } from './TableCell';
|
|
4
|
+
export { TableHeaderCell } from './TableHeaderCell';
|
|
5
|
+
export { Pagination } from './components/Pagination';
|
|
6
|
+
export type { PaginationProps } from './components/Pagination';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export type TagProps = {
|
|
2
|
+
content: string;
|
|
3
|
+
size?: "sm" | "md";
|
|
4
|
+
onRemove?: () => void;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
className?: string;
|
|
7
|
+
label?: string;
|
|
8
|
+
title?: string;
|
|
9
|
+
error?: boolean;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* A tag/chip component for displaying labeled content with optional removal functionality.
|
|
13
|
+
* Supports different sizes, error states, and disabled states with appropriate styling.
|
|
14
|
+
*
|
|
15
|
+
* @param props - The props for the Tag component.
|
|
16
|
+
* @returns The rendered tag with optional close button.
|
|
17
|
+
*/
|
|
18
|
+
export declare const Tag: ({ content, size, onRemove, disabled, error, className, label, title, ...props }: TagProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Tag, type TagProps } from './Tag';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { UseMultipleSelectionReturnValue } from 'downshift';
|
|
2
|
+
import { BaseOption } from '../../types/BaseOption';
|
|
3
|
+
export type TagListProps<Option extends BaseOption> = {
|
|
4
|
+
items: Option[];
|
|
5
|
+
onRemove: (item: Option) => void;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
error?: boolean;
|
|
8
|
+
className?: string;
|
|
9
|
+
removeLabel?: string;
|
|
10
|
+
getAdditionalTagProps?: UseMultipleSelectionReturnValue<Option>["getSelectedItemProps"];
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* A responsive tag list component that displays a collection of removable tags with overflow handling.
|
|
14
|
+
* When space is limited, it shows visible tags plus a count of remaining items.
|
|
15
|
+
*
|
|
16
|
+
* @template Option - The option type extending BaseOption.
|
|
17
|
+
* @param props - The props for the TagList component.
|
|
18
|
+
* @returns The rendered tag list or null if items array is empty.
|
|
19
|
+
*/
|
|
20
|
+
export declare const TagList: <Option extends BaseOption>({ items, onRemove, disabled, error, className, removeLabel, getAdditionalTagProps, }: TagListProps<Option>) => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BaseTextBoxProps } from '../baseTextBox';
|
|
2
|
+
/**
|
|
3
|
+
* A styled text input field wrapped in a label, optionally showing error or disabled states.
|
|
4
|
+
*
|
|
5
|
+
* @param props - Props to customize the textbox behavior and styling.
|
|
6
|
+
* @param ref - Ref forwarded to the underlying input element.
|
|
7
|
+
*/
|
|
8
|
+
export declare const TextBox: ({ value, error, disabled, className, id, name, ref, type, ...props }: BaseTextBoxProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { TextBox } from './TextBox';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ToasterProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Container component for rendering multiple toast notifications with animations.
|
|
4
|
+
* Toasts are always displayed in the top-right corner.
|
|
5
|
+
*
|
|
6
|
+
* This is a presentational component that handles positioning and rendering
|
|
7
|
+
* of toasts. State management (adding, removing toasts) should be handled
|
|
8
|
+
* by the consuming application.
|
|
9
|
+
*/
|
|
10
|
+
export declare const Toaster: ({ toasts, onDismiss, maxToasts, className, }: ToasterProps) => import('react').ReactPortal | null;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export type ToastVariant = "success" | "error" | "warning" | "info";
|
|
2
|
+
export type ToastItem = {
|
|
3
|
+
id: string;
|
|
4
|
+
message: string;
|
|
5
|
+
variant?: ToastVariant;
|
|
6
|
+
dismissLabel?: string;
|
|
7
|
+
};
|
|
8
|
+
export type ToastProps = {
|
|
9
|
+
onDismiss?: (id: string) => void;
|
|
10
|
+
className?: string;
|
|
11
|
+
index?: number;
|
|
12
|
+
visibleToasts?: number;
|
|
13
|
+
} & ToastItem;
|
|
14
|
+
export type ToasterProps = {
|
|
15
|
+
/** Array of toasts to display */
|
|
16
|
+
toasts: ToastItem[];
|
|
17
|
+
/** Callback when a toast is dismissed */
|
|
18
|
+
onDismiss?: (id: string) => void;
|
|
19
|
+
/** Maximum number of toasts to show at once */
|
|
20
|
+
maxToasts?: number;
|
|
21
|
+
className?: string;
|
|
22
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export type TypographyProps = {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
bold?: boolean;
|
|
5
|
+
className?: string;
|
|
6
|
+
};
|
|
7
|
+
export declare const H1: ({ children, bold, className }: TypographyProps) => React.ReactElement<{
|
|
8
|
+
className: string;
|
|
9
|
+
}, string | React.JSXElementConstructor<any>>;
|
|
10
|
+
export declare const H2: ({ children, bold, className }: TypographyProps) => React.ReactElement<{
|
|
11
|
+
className: string;
|
|
12
|
+
}, string | React.JSXElementConstructor<any>>;
|
|
13
|
+
export declare const H3: ({ children, bold, className }: TypographyProps) => React.ReactElement<{
|
|
14
|
+
className: string;
|
|
15
|
+
}, string | React.JSXElementConstructor<any>>;
|
|
16
|
+
export declare const H4: ({ children, bold, className }: TypographyProps) => React.ReactElement<{
|
|
17
|
+
className: string;
|
|
18
|
+
}, string | React.JSXElementConstructor<any>>;
|
|
19
|
+
export declare const H5: ({ children, bold, className }: TypographyProps) => React.ReactElement<{
|
|
20
|
+
className: string;
|
|
21
|
+
}, string | React.JSXElementConstructor<any>>;
|
|
22
|
+
export declare const H6: ({ children, bold, className }: TypographyProps) => React.ReactElement<{
|
|
23
|
+
className: string;
|
|
24
|
+
}, string | React.JSXElementConstructor<any>>;
|
|
25
|
+
export declare const Label: ({ children, bold, className }: TypographyProps) => React.ReactElement<{
|
|
26
|
+
className: string;
|
|
27
|
+
}, string | React.JSXElementConstructor<any>>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ButtonHTMLAttributes } from 'react';
|
|
2
|
+
export type UnstyledButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
3
|
+
ref?: React.Ref<HTMLButtonElement>;
|
|
4
|
+
};
|
|
5
|
+
/**
|
|
6
|
+
* An unstyled button component that removes all default browser styling.
|
|
7
|
+
* Provides a clean foundation for custom button implementations.
|
|
8
|
+
*
|
|
9
|
+
* @param props - The props for the UnstyledButton component.
|
|
10
|
+
* @returns The rendered unstyled button element.
|
|
11
|
+
*/
|
|
12
|
+
export declare const UnstyledButton: ({ children, type, className, ref, ...props }: UnstyledButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './UnstyledButton';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { useViewportCollision } from './useViewportCollision';
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { RefObject } from 'react';
|
|
2
|
+
export type ArrowNavigationOptions = {
|
|
3
|
+
/** Container element ref to scope the navigation */
|
|
4
|
+
containerRef: RefObject<HTMLElement | null>;
|
|
5
|
+
/** Currently active/selected item identifier */
|
|
6
|
+
activeItem: string;
|
|
7
|
+
/** List of all items with their identifiers */
|
|
8
|
+
items: Array<{
|
|
9
|
+
id: string;
|
|
10
|
+
}>;
|
|
11
|
+
/** Callback when item changes */
|
|
12
|
+
onItemChange: (itemId: string) => void;
|
|
13
|
+
/** List of valid item IDs */
|
|
14
|
+
validItems: string[];
|
|
15
|
+
/** CSS selector for focusable elements (optional) */
|
|
16
|
+
focusSelector?: string;
|
|
17
|
+
/** Whether to enable circular navigation (default: true) */
|
|
18
|
+
circular?: boolean;
|
|
19
|
+
/** Whether navigation is enabled (default: true) */
|
|
20
|
+
enabled?: boolean;
|
|
21
|
+
/** Whether to handle Enter/Space activation (default: true) */
|
|
22
|
+
handleActivation?: boolean;
|
|
23
|
+
/** Data attribute name to read item ID from target element (default: "data-id") */
|
|
24
|
+
activationAttribute?: string;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Generic hook for arrow key navigation (Left/Right + Home/End)
|
|
28
|
+
* Can be used for tabs, menus, carousels, etc.
|
|
29
|
+
*/
|
|
30
|
+
export declare const useArrowNavigation: ({ containerRef, activeItem, items, onItemChange, validItems, focusSelector, circular, enabled, handleActivation, activationAttribute, }: ArrowNavigationOptions) => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useResizeObserver: <T extends HTMLElement | null = HTMLDivElement | null>(ref: React.RefObject<T>, callback: (element: T) => void) => void;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { RefObject } from 'react';
|
|
2
|
+
type UseViewportCollisionOptions = {
|
|
3
|
+
isOpen: boolean;
|
|
4
|
+
containerRef: RefObject<HTMLElement | null>;
|
|
5
|
+
};
|
|
6
|
+
export declare const useViewportCollision: ({ isOpen, containerRef, }: UseViewportCollisionOptions) => boolean;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
import { IconComponent } from '../types/IconComponent';
|
|
2
|
+
export declare const icons: {
|
|
3
|
+
readonly calendar: import('react').LazyExoticComponent<import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
4
|
+
title?: string;
|
|
5
|
+
titleId?: string;
|
|
6
|
+
desc?: string;
|
|
7
|
+
descId?: string;
|
|
8
|
+
}>>;
|
|
9
|
+
readonly check: import('react').LazyExoticComponent<import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
10
|
+
title?: string;
|
|
11
|
+
titleId?: string;
|
|
12
|
+
desc?: string;
|
|
13
|
+
descId?: string;
|
|
14
|
+
}>>;
|
|
15
|
+
readonly chevronDoubleLeft: import('react').LazyExoticComponent<import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
16
|
+
title?: string;
|
|
17
|
+
titleId?: string;
|
|
18
|
+
desc?: string;
|
|
19
|
+
descId?: string;
|
|
20
|
+
}>>;
|
|
21
|
+
readonly chevronDoubleRight: import('react').LazyExoticComponent<import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
22
|
+
title?: string;
|
|
23
|
+
titleId?: string;
|
|
24
|
+
desc?: string;
|
|
25
|
+
descId?: string;
|
|
26
|
+
}>>;
|
|
27
|
+
readonly chevronLeft: import('react').LazyExoticComponent<import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
28
|
+
title?: string;
|
|
29
|
+
titleId?: string;
|
|
30
|
+
desc?: string;
|
|
31
|
+
descId?: string;
|
|
32
|
+
}>>;
|
|
33
|
+
readonly chevronRight: import('react').LazyExoticComponent<import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
34
|
+
title?: string;
|
|
35
|
+
titleId?: string;
|
|
36
|
+
desc?: string;
|
|
37
|
+
descId?: string;
|
|
38
|
+
}>>;
|
|
39
|
+
readonly circle: import('react').LazyExoticComponent<import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
40
|
+
title?: string;
|
|
41
|
+
titleId?: string;
|
|
42
|
+
desc?: string;
|
|
43
|
+
descId?: string;
|
|
44
|
+
}>>;
|
|
45
|
+
readonly close: import('react').LazyExoticComponent<import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
46
|
+
title?: string;
|
|
47
|
+
titleId?: string;
|
|
48
|
+
desc?: string;
|
|
49
|
+
descId?: string;
|
|
50
|
+
}>>;
|
|
51
|
+
readonly cogWheel: import('react').LazyExoticComponent<import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
52
|
+
title?: string;
|
|
53
|
+
titleId?: string;
|
|
54
|
+
desc?: string;
|
|
55
|
+
descId?: string;
|
|
56
|
+
}>>;
|
|
57
|
+
readonly dash: import('react').LazyExoticComponent<import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
58
|
+
title?: string;
|
|
59
|
+
titleId?: string;
|
|
60
|
+
desc?: string;
|
|
61
|
+
descId?: string;
|
|
62
|
+
}>>;
|
|
63
|
+
readonly database: import('react').LazyExoticComponent<import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
64
|
+
title?: string;
|
|
65
|
+
titleId?: string;
|
|
66
|
+
desc?: string;
|
|
67
|
+
descId?: string;
|
|
68
|
+
}>>;
|
|
69
|
+
readonly delete: import('react').LazyExoticComponent<import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
70
|
+
title?: string;
|
|
71
|
+
titleId?: string;
|
|
72
|
+
desc?: string;
|
|
73
|
+
descId?: string;
|
|
74
|
+
}>>;
|
|
75
|
+
readonly details: import('react').LazyExoticComponent<import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
76
|
+
title?: string;
|
|
77
|
+
titleId?: string;
|
|
78
|
+
desc?: string;
|
|
79
|
+
descId?: string;
|
|
80
|
+
}>>;
|
|
81
|
+
readonly earth: import('react').LazyExoticComponent<import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
82
|
+
title?: string;
|
|
83
|
+
titleId?: string;
|
|
84
|
+
desc?: string;
|
|
85
|
+
descId?: string;
|
|
86
|
+
}>>;
|
|
87
|
+
readonly errorFilled: import('react').LazyExoticComponent<import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
88
|
+
title?: string;
|
|
89
|
+
titleId?: string;
|
|
90
|
+
desc?: string;
|
|
91
|
+
descId?: string;
|
|
92
|
+
}>>;
|
|
93
|
+
readonly errorOutlined: import('react').LazyExoticComponent<import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
94
|
+
title?: string;
|
|
95
|
+
titleId?: string;
|
|
96
|
+
desc?: string;
|
|
97
|
+
descId?: string;
|
|
98
|
+
}>>;
|
|
99
|
+
readonly expandDown: import('react').LazyExoticComponent<import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
100
|
+
title?: string;
|
|
101
|
+
titleId?: string;
|
|
102
|
+
desc?: string;
|
|
103
|
+
descId?: string;
|
|
104
|
+
}>>;
|
|
105
|
+
readonly expandRight: import('react').LazyExoticComponent<import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
106
|
+
title?: string;
|
|
107
|
+
titleId?: string;
|
|
108
|
+
desc?: string;
|
|
109
|
+
descId?: string;
|
|
110
|
+
}>>;
|
|
111
|
+
readonly expand: import('react').LazyExoticComponent<import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
112
|
+
title?: string;
|
|
113
|
+
titleId?: string;
|
|
114
|
+
desc?: string;
|
|
115
|
+
descId?: string;
|
|
116
|
+
}>>;
|
|
117
|
+
readonly filter: import('react').LazyExoticComponent<import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
118
|
+
title?: string;
|
|
119
|
+
titleId?: string;
|
|
120
|
+
desc?: string;
|
|
121
|
+
descId?: string;
|
|
122
|
+
}>>;
|
|
123
|
+
readonly hourglassCircle: import('react').LazyExoticComponent<import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
124
|
+
title?: string;
|
|
125
|
+
titleId?: string;
|
|
126
|
+
desc?: string;
|
|
127
|
+
descId?: string;
|
|
128
|
+
}>>;
|
|
129
|
+
readonly hourglassFilled: import('react').LazyExoticComponent<import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
130
|
+
title?: string;
|
|
131
|
+
titleId?: string;
|
|
132
|
+
desc?: string;
|
|
133
|
+
descId?: string;
|
|
134
|
+
}>>;
|
|
135
|
+
readonly idea: import('react').LazyExoticComponent<import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
136
|
+
title?: string;
|
|
137
|
+
titleId?: string;
|
|
138
|
+
desc?: string;
|
|
139
|
+
descId?: string;
|
|
140
|
+
}>>;
|
|
141
|
+
readonly infoOutlined: import('react').LazyExoticComponent<import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
142
|
+
title?: string;
|
|
143
|
+
titleId?: string;
|
|
144
|
+
desc?: string;
|
|
145
|
+
descId?: string;
|
|
146
|
+
}>>;
|
|
147
|
+
readonly play: import('react').LazyExoticComponent<import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
148
|
+
title?: string;
|
|
149
|
+
titleId?: string;
|
|
150
|
+
desc?: string;
|
|
151
|
+
descId?: string;
|
|
152
|
+
}>>;
|
|
153
|
+
readonly plus: import('react').LazyExoticComponent<import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
154
|
+
title?: string;
|
|
155
|
+
titleId?: string;
|
|
156
|
+
desc?: string;
|
|
157
|
+
descId?: string;
|
|
158
|
+
}>>;
|
|
159
|
+
readonly recycle: import('react').LazyExoticComponent<import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
160
|
+
title?: string;
|
|
161
|
+
titleId?: string;
|
|
162
|
+
desc?: string;
|
|
163
|
+
descId?: string;
|
|
164
|
+
}>>;
|
|
165
|
+
readonly reload: import('react').LazyExoticComponent<import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
166
|
+
title?: string;
|
|
167
|
+
titleId?: string;
|
|
168
|
+
desc?: string;
|
|
169
|
+
descId?: string;
|
|
170
|
+
}>>;
|
|
171
|
+
readonly save: import('react').LazyExoticComponent<import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
172
|
+
title?: string;
|
|
173
|
+
titleId?: string;
|
|
174
|
+
desc?: string;
|
|
175
|
+
descId?: string;
|
|
176
|
+
}>>;
|
|
177
|
+
readonly search: import('react').LazyExoticComponent<import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
178
|
+
title?: string;
|
|
179
|
+
titleId?: string;
|
|
180
|
+
desc?: string;
|
|
181
|
+
descId?: string;
|
|
182
|
+
}>>;
|
|
183
|
+
readonly successFilled: import('react').LazyExoticComponent<import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
184
|
+
title?: string;
|
|
185
|
+
titleId?: string;
|
|
186
|
+
desc?: string;
|
|
187
|
+
descId?: string;
|
|
188
|
+
}>>;
|
|
189
|
+
readonly successOutlined: import('react').LazyExoticComponent<import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
190
|
+
title?: string;
|
|
191
|
+
titleId?: string;
|
|
192
|
+
desc?: string;
|
|
193
|
+
descId?: string;
|
|
194
|
+
}>>;
|
|
195
|
+
readonly tableArrow: import('react').LazyExoticComponent<import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
196
|
+
title?: string;
|
|
197
|
+
titleId?: string;
|
|
198
|
+
desc?: string;
|
|
199
|
+
descId?: string;
|
|
200
|
+
}>>;
|
|
201
|
+
readonly table: import('react').LazyExoticComponent<import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
202
|
+
title?: string;
|
|
203
|
+
titleId?: string;
|
|
204
|
+
desc?: string;
|
|
205
|
+
descId?: string;
|
|
206
|
+
}>>;
|
|
207
|
+
readonly warningFilled: import('react').LazyExoticComponent<import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
208
|
+
title?: string;
|
|
209
|
+
titleId?: string;
|
|
210
|
+
desc?: string;
|
|
211
|
+
descId?: string;
|
|
212
|
+
}>>;
|
|
213
|
+
readonly warningOutlined: import('react').LazyExoticComponent<import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
214
|
+
title?: string;
|
|
215
|
+
titleId?: string;
|
|
216
|
+
desc?: string;
|
|
217
|
+
descId?: string;
|
|
218
|
+
}>>;
|
|
219
|
+
};
|
|
220
|
+
export declare const CalendarIcon: IconComponent;
|
|
221
|
+
export declare const CheckIcon: IconComponent;
|
|
222
|
+
export declare const ChevronDoubleLeftIcon: IconComponent;
|
|
223
|
+
export declare const ChevronDoubleRightIcon: IconComponent;
|
|
224
|
+
export declare const ChevronLeftIcon: IconComponent;
|
|
225
|
+
export declare const ChevronRightIcon: IconComponent;
|
|
226
|
+
export declare const CircleIcon: IconComponent;
|
|
227
|
+
export declare const CloseIcon: IconComponent;
|
|
228
|
+
export declare const CogWheelIcon: IconComponent;
|
|
229
|
+
export declare const DashIcon: IconComponent;
|
|
230
|
+
export declare const DatabaseIcon: IconComponent;
|
|
231
|
+
export declare const DeleteIcon: IconComponent;
|
|
232
|
+
export declare const DetailsIcon: IconComponent;
|
|
233
|
+
export declare const EarthIcon: IconComponent;
|
|
234
|
+
export declare const ErrorFilledIcon: IconComponent;
|
|
235
|
+
export declare const ErrorOutlinedIcon: IconComponent;
|
|
236
|
+
export declare const ExpandDownIcon: IconComponent;
|
|
237
|
+
export declare const ExpandRightIcon: IconComponent;
|
|
238
|
+
export declare const ExpandIcon: IconComponent;
|
|
239
|
+
export declare const FilterIcon: IconComponent;
|
|
240
|
+
export declare const HourglassCircleIcon: IconComponent;
|
|
241
|
+
export declare const HourglassFilledIcon: IconComponent;
|
|
242
|
+
export declare const IdeaIcon: IconComponent;
|
|
243
|
+
export declare const InfoOutlinedIcon: IconComponent;
|
|
244
|
+
export declare const PlayIcon: IconComponent;
|
|
245
|
+
export declare const PlusIcon: IconComponent;
|
|
246
|
+
export declare const RecycleIcon: IconComponent;
|
|
247
|
+
export declare const ReloadIcon: IconComponent;
|
|
248
|
+
export declare const SaveIcon: IconComponent;
|
|
249
|
+
export declare const SearchIcon: IconComponent;
|
|
250
|
+
export declare const SuccessFilledIcon: IconComponent;
|
|
251
|
+
export declare const SuccessOutlinedIcon: IconComponent;
|
|
252
|
+
export declare const TableArrowIcon: IconComponent;
|
|
253
|
+
export declare const TableIcon: IconComponent;
|
|
254
|
+
export declare const WarningFilledIcon: IconComponent;
|
|
255
|
+
export declare const WarningOutlinedIcon: IconComponent;
|
|
256
|
+
export type IconName = keyof typeof icons;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './icons';
|