@sk-web-gui/react 1.2.12 → 1.2.13
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/cjs/index.js.map +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/types/accordion/index.d.ts +1 -0
- package/dist/types/accordion/src/accordion/accordion-item.d.ts +8 -0
- package/dist/types/accordion/src/accordion/accordion.d.ts +25 -0
- package/dist/types/accordion/src/accordion/index.d.ts +10 -0
- package/dist/types/accordion/src/disclosure/disclosure.d.ts +53 -0
- package/dist/types/accordion/src/disclosure/index.d.ts +4 -0
- package/dist/types/accordion/src/disclosure/styles.d.ts +1 -0
- package/dist/types/accordion/src/index.d.ts +2 -0
- package/dist/types/breadcrumb/index.d.ts +1 -0
- package/dist/types/breadcrumb/src/breadcrumb.d.ts +41 -0
- package/dist/types/breadcrumb/src/index.d.ts +11 -0
- package/dist/types/button/index.d.ts +1 -0
- package/dist/types/button/src/button-group.d.ts +15 -0
- package/dist/types/button/src/button.d.ts +49 -0
- package/dist/types/button/src/index.d.ts +11 -0
- package/dist/types/button/src/styles.d.ts +1 -0
- package/dist/types/card/index.d.ts +1 -0
- package/dist/types/card/src/card.d.ts +60 -0
- package/dist/types/card/src/index.d.ts +21 -0
- package/dist/types/card/src/meta-card.d.ts +42 -0
- package/dist/types/cookie-consent/index.d.ts +1 -0
- package/dist/types/cookie-consent/src/cookie-consent.d.ts +32 -0
- package/dist/types/cookie-consent/src/index.d.ts +15 -0
- package/dist/types/layout/index.d.ts +1 -0
- package/dist/types/layout/src/footer/footer-list-item.d.ts +4 -0
- package/dist/types/layout/src/footer/footer-list.d.ts +4 -0
- package/dist/types/layout/src/footer/footer.d.ts +6 -0
- package/dist/types/layout/src/footer/index.d.ts +14 -0
- package/dist/types/layout/src/header/header.d.ts +17 -0
- package/dist/types/layout/src/header/index.d.ts +8 -0
- package/dist/types/layout/src/index.d.ts +2 -0
- package/dist/types/link/index.d.ts +1 -0
- package/dist/types/link/src/index.d.ts +12 -0
- package/dist/types/link/src/link.d.ts +21 -0
- package/dist/types/link/src/styles.d.ts +1 -0
- package/dist/types/list/index.d.ts +1 -0
- package/dist/types/list/src/index.d.ts +12 -0
- package/dist/types/list/src/list.d.ts +28 -0
- package/dist/types/menu-vertical/index.d.ts +1 -0
- package/dist/types/menu-vertical/src/index.d.ts +25 -0
- package/dist/types/menu-vertical/src/menu-vertical-backbutton.d.ts +9 -0
- package/dist/types/menu-vertical/src/menu-vertical-context.d.ts +62 -0
- package/dist/types/menu-vertical/src/menu-vertical-header.d.ts +9 -0
- package/dist/types/menu-vertical/src/menu-vertical-item.d.ts +26 -0
- package/dist/types/menu-vertical/src/menu-vertical-label.d.ts +7 -0
- package/dist/types/menu-vertical/src/menu-vertical-nav.d.ts +9 -0
- package/dist/types/menu-vertical/src/menu-vertical-sidebar.d.ts +9 -0
- package/dist/types/menu-vertical/src/menu-vertical-submenu-button.d.ts +25 -0
- package/dist/types/menu-vertical/src/menu-vertical-tool-item.d.ts +9 -0
- package/dist/types/menu-vertical/src/menu-vertical.d.ts +14 -0
- package/dist/types/menubar/index.d.ts +1 -0
- package/dist/types/menubar/src/index.d.ts +11 -0
- package/dist/types/menubar/src/menubar-item.d.ts +15 -0
- package/dist/types/menubar/src/menubar.d.ts +18 -0
- package/dist/types/modal/index.d.ts +1 -0
- package/dist/types/modal/src/confirm/confirm.d.ts +17 -0
- package/dist/types/modal/src/confirm/index.d.ts +1 -0
- package/dist/types/modal/src/dialog/dialog-buttons.d.ts +6 -0
- package/dist/types/modal/src/dialog/dialog-content.d.ts +6 -0
- package/dist/types/modal/src/dialog/dialog.d.ts +7 -0
- package/dist/types/modal/src/dialog/index.d.ts +12 -0
- package/dist/types/modal/src/index.d.ts +3 -0
- package/dist/types/modal/src/modal/index.d.ts +13 -0
- package/dist/types/modal/src/modal/modal-content.d.ts +5 -0
- package/dist/types/modal/src/modal/modal-footer.d.ts +5 -0
- package/dist/types/modal/src/modal/modal.d.ts +27 -0
- package/dist/types/pagination/index.d.ts +1 -0
- package/dist/types/pagination/src/index.d.ts +8 -0
- package/dist/types/pagination/src/pagination.d.ts +19 -0
- package/dist/types/pagination/src/styles.d.ts +1 -0
- package/dist/types/popup-menu/index.d.ts +1 -0
- package/dist/types/popup-menu/src/index.d.ts +18 -0
- package/dist/types/popup-menu/src/popup-menu-button.d.ts +2 -0
- package/dist/types/popup-menu/src/popup-menu-group.d.ts +5 -0
- package/dist/types/popup-menu/src/popup-menu-item.d.ts +11 -0
- package/dist/types/popup-menu/src/popup-menu-items.d.ts +20 -0
- package/dist/types/popup-menu/src/popup-menu-panel.d.ts +6 -0
- package/dist/types/popup-menu/src/popup-menu.d.ts +53 -0
- package/dist/types/popup-menu/src/popupmenu-context.d.ts +18 -0
- package/dist/types/searchfield/index.d.ts +1 -0
- package/dist/types/searchfield/src/index.d.ts +18 -0
- package/dist/types/searchfield/src/searchfield-suggestions-input.d.ts +9 -0
- package/dist/types/searchfield/src/searchfield-suggestions-list.d.ts +3 -0
- package/dist/types/searchfield/src/searchfield-suggestions-option.d.ts +3 -0
- package/dist/types/searchfield/src/searchfield-suggestions.d.ts +3 -0
- package/dist/types/searchfield/src/searchfield.d.ts +27 -0
- package/dist/types/snackbar/index.d.ts +1 -0
- package/dist/types/snackbar/src/index.d.ts +8 -0
- package/dist/types/snackbar/src/snackbar.d.ts +11 -0
- package/dist/types/table/index.d.ts +1 -0
- package/dist/types/table/src/auto-table.d.ts +48 -0
- package/dist/types/table/src/index.d.ts +24 -0
- package/dist/types/table/src/table-body.d.ts +2 -0
- package/dist/types/table/src/table-footer.d.ts +2 -0
- package/dist/types/table/src/table-header-column.d.ts +6 -0
- package/dist/types/table/src/table-header.d.ts +6 -0
- package/dist/types/table/src/table-row-column.d.ts +6 -0
- package/dist/types/table/src/table-row.d.ts +2 -0
- package/dist/types/table/src/table-sort-button.d.ts +8 -0
- package/dist/types/table/src/table.d.ts +9 -0
- package/dist/types/tabs/index.d.ts +1 -0
- package/dist/types/tabs/src/index.d.ts +15 -0
- package/dist/types/tabs/src/tabs-button.d.ts +7 -0
- package/dist/types/tabs/src/tabs-content.d.ts +6 -0
- package/dist/types/tabs/src/tabs-context.d.ts +8 -0
- package/dist/types/tabs/src/tabs-item.d.ts +6 -0
- package/dist/types/tabs/src/tabs.d.ts +11 -0
- package/dist/types/text/index.d.ts +1 -0
- package/dist/types/text/src/index.d.ts +8 -0
- package/dist/types/text/src/text.d.ts +10 -0
- package/dist/types/user-menu/index.d.ts +1 -0
- package/dist/types/user-menu/src/index.d.ts +8 -0
- package/dist/types/user-menu/src/user-menu.d.ts +32 -0
- package/package.json +3 -3
- /package/dist/types/{index.d.ts → react/src/index.d.ts} +0 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { SearchFieldBase, SearchFieldBaseProps } from './searchfield';
|
|
3
|
+
import { SearchFeildSuggestionsBase } from './searchfield-suggestions';
|
|
4
|
+
import { SearchFieldSuggestionsInput } from './searchfield-suggestions-input';
|
|
5
|
+
import { SearchFieldSuggestionsList } from './searchfield-suggestions-list';
|
|
6
|
+
import { SearchFieldSuggestionsOption } from './searchfield-suggestions-option';
|
|
7
|
+
interface SearchFieldProps extends React.ForwardRefExoticComponent<SearchFieldBaseProps> {
|
|
8
|
+
Component: typeof SearchFieldBase;
|
|
9
|
+
Input: typeof SearchFieldBase;
|
|
10
|
+
Suggestions: typeof SearchFeildSuggestionsBase;
|
|
11
|
+
SuggestionsList: typeof SearchFieldSuggestionsList;
|
|
12
|
+
SuggestionsOption: typeof SearchFieldSuggestionsOption;
|
|
13
|
+
SuggestionsInput: typeof SearchFieldSuggestionsInput;
|
|
14
|
+
}
|
|
15
|
+
declare const SearchField: SearchFieldProps;
|
|
16
|
+
export { SearchField };
|
|
17
|
+
export type { SearchFieldProps };
|
|
18
|
+
export default SearchField;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ComboboxProps } from '@sk-web-gui/forms';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { SearchFieldProps } from './index';
|
|
4
|
+
interface SearchFieldSuggestionsInputProps extends Omit<React.ComponentPropsWithRef<SearchFieldProps['Input']>, 'onSelect'> {
|
|
5
|
+
defaultValue?: string;
|
|
6
|
+
onSelect?: React.ComponentProps<ComboboxProps['Input']>['onSelect'];
|
|
7
|
+
}
|
|
8
|
+
export declare const SearchFieldSuggestionsInput: React.ForwardRefExoticComponent<Omit<SearchFieldSuggestionsInputProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
9
|
+
export default SearchFieldSuggestionsInput;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const SearchFieldSuggestionsList: React.ForwardRefExoticComponent<Omit<Omit<import("../../forms/dist/types/src/combobox/combobox-list").ComboboxListProps, "ref"> & React.RefAttributes<HTMLFieldSetElement>, "ref"> & React.RefAttributes<HTMLFieldSetElement>>;
|
|
3
|
+
export default SearchFieldSuggestionsList;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const SearchFieldSuggestionsOption: React.ForwardRefExoticComponent<Omit<Omit<import("../../forms/dist/types/src/combobox/combobox-option").ComboboxOptionProps, "ref"> & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
3
|
+
export default SearchFieldSuggestionsOption;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const SearchFeildSuggestionsBase: React.ForwardRefExoticComponent<Omit<Omit<import("../../forms/dist/types/src/combobox/combobox").ComboboxBaseProps, "ref"> & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
3
|
+
export default SearchFeildSuggestionsBase;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { InputProps } from '@sk-web-gui/forms';
|
|
2
|
+
import { DefaultProps } from '@sk-web-gui/utils';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
export interface SearchFieldBaseProps extends DefaultProps, React.ComponentProps<InputProps['Component']>, Omit<React.ComponentPropsWithRef<'input'>, 'size'> {
|
|
5
|
+
value: string;
|
|
6
|
+
onChange: React.ChangeEventHandler<HTMLInputElement>;
|
|
7
|
+
onKeyDown?: React.KeyboardEventHandler<HTMLInputElement>;
|
|
8
|
+
onSearch?: (query: string) => void;
|
|
9
|
+
onReset?: () => void;
|
|
10
|
+
/** @default onValue */
|
|
11
|
+
showSearchButton?: 'onValue' | boolean;
|
|
12
|
+
/** @default onValue */
|
|
13
|
+
showResetButton?: 'onValue' | boolean;
|
|
14
|
+
placeholder?: string;
|
|
15
|
+
smallIcon?: boolean;
|
|
16
|
+
rounded?: boolean;
|
|
17
|
+
/** @default lg */
|
|
18
|
+
size?: 'md' | 'lg';
|
|
19
|
+
/** @default Sök */
|
|
20
|
+
searchLabel?: string;
|
|
21
|
+
/** @default Rensa */
|
|
22
|
+
resetAriaLabel?: string;
|
|
23
|
+
searchIcon?: React.ReactNode;
|
|
24
|
+
resetIcon?: React.ReactNode;
|
|
25
|
+
}
|
|
26
|
+
export declare const SearchFieldBase: React.FC<SearchFieldBaseProps>;
|
|
27
|
+
export default SearchFieldBase;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './src';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { useSnackbar, Snackbar, SnackbarProps } from './snackbar';
|
|
3
|
+
export { Snackbar, useSnackbar };
|
|
4
|
+
export type { SnackbarProps };
|
|
5
|
+
declare const _default: {
|
|
6
|
+
Snackbar: import("react").ForwardRefExoticComponent<SnackbarProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
7
|
+
};
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { useToastOptions } from '@sk-web-gui/toast';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
type OmittedTypes = 'title' | 'closeIcon' | 'onUndo' | 'undoText' | 'description';
|
|
4
|
+
export interface SnackbarProps extends Omit<useToastOptions, OmittedTypes> {
|
|
5
|
+
actionCallback?: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
6
|
+
leadingIcon?: boolean;
|
|
7
|
+
action?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const Snackbar: React.ForwardRefExoticComponent<SnackbarProps & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
+
export declare const useSnackbar: () => ({ position, duration, render, ...rest }: useToastOptions) => any;
|
|
11
|
+
export default useSnackbar;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './src';
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { DefaultProps } from '@sk-web-gui/utils';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { TableComponentProps } from './table';
|
|
4
|
+
type TableValue = any;
|
|
5
|
+
type TableItem = Record<string | number, TableValue>;
|
|
6
|
+
export declare enum SortMode {
|
|
7
|
+
ASC = "ascending",
|
|
8
|
+
DESC = "descending"
|
|
9
|
+
}
|
|
10
|
+
export interface AutoTableHeader {
|
|
11
|
+
property?: string;
|
|
12
|
+
label?: string;
|
|
13
|
+
isColumnSortable?: boolean;
|
|
14
|
+
isShown?: boolean;
|
|
15
|
+
screenReaderOnly?: boolean;
|
|
16
|
+
columnPosition?: 'left' | 'center' | 'right';
|
|
17
|
+
sticky?: boolean;
|
|
18
|
+
renderColumn?: (value: TableValue, item: TableItem) => JSX.Element;
|
|
19
|
+
}
|
|
20
|
+
export interface TableHeader {
|
|
21
|
+
element: JSX.Element;
|
|
22
|
+
isColumnSortable?: boolean;
|
|
23
|
+
isShown?: boolean;
|
|
24
|
+
screenReaderOnly?: boolean;
|
|
25
|
+
sticky?: boolean;
|
|
26
|
+
}
|
|
27
|
+
export interface AutoTableColumn {
|
|
28
|
+
element: JSX.Element;
|
|
29
|
+
isShown?: boolean;
|
|
30
|
+
}
|
|
31
|
+
export interface AutoTableProps extends DefaultProps, TableComponentProps {
|
|
32
|
+
autoheaders?: Array<AutoTableHeader | string>;
|
|
33
|
+
autodata?: Array<TableItem>;
|
|
34
|
+
handleSort?: (colIndex: number, asc: boolean) => void;
|
|
35
|
+
tableSortable?: boolean;
|
|
36
|
+
sortedOrder?: SortMode;
|
|
37
|
+
pageSize?: number;
|
|
38
|
+
page?: number;
|
|
39
|
+
captionTitle?: string;
|
|
40
|
+
captionBody?: string;
|
|
41
|
+
captionClassName?: string;
|
|
42
|
+
captionShowPages?: boolean;
|
|
43
|
+
highlightedItemIndex?: number;
|
|
44
|
+
changePage?: (page: number) => void;
|
|
45
|
+
footer?: boolean;
|
|
46
|
+
}
|
|
47
|
+
export declare const AutoTable: React.ForwardRefExoticComponent<Omit<AutoTableProps, "ref"> & React.RefAttributes<HTMLTableElement>>;
|
|
48
|
+
export default AutoTable;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { TableComponent, TableComponentProps } from './table';
|
|
3
|
+
import { TableFooter } from './table-footer';
|
|
4
|
+
import { TableHeader } from './table-header';
|
|
5
|
+
import { TableHeaderColumn } from './table-header-column';
|
|
6
|
+
import { TableBody } from './table-body';
|
|
7
|
+
import { TableRow } from './table-row';
|
|
8
|
+
import { TableRowColumn } from './table-row-column';
|
|
9
|
+
import { TableSortButton } from './table-sort-button';
|
|
10
|
+
import AutoTable, { AutoTableProps, SortMode, AutoTableHeader } from './auto-table';
|
|
11
|
+
interface TableProps extends TableComponentProps, React.ForwardRefExoticComponent<TableComponentProps> {
|
|
12
|
+
Component: typeof TableComponent;
|
|
13
|
+
Header: typeof TableHeader;
|
|
14
|
+
HeaderColumn: typeof TableHeaderColumn;
|
|
15
|
+
SortButton: typeof TableSortButton;
|
|
16
|
+
Body: typeof TableBody;
|
|
17
|
+
Row: typeof TableRow;
|
|
18
|
+
Column: typeof TableRowColumn;
|
|
19
|
+
Footer: typeof TableFooter;
|
|
20
|
+
}
|
|
21
|
+
declare const Table: TableProps;
|
|
22
|
+
export { Table, AutoTable, SortMode };
|
|
23
|
+
export type { TableProps, AutoTableProps, AutoTableHeader };
|
|
24
|
+
export default Table;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface TableHeaderColumnProps extends React.ComponentPropsWithoutRef<'th'> {
|
|
3
|
+
sticky?: boolean;
|
|
4
|
+
}
|
|
5
|
+
export declare const TableHeaderColumn: React.ForwardRefExoticComponent<TableHeaderColumnProps & React.RefAttributes<HTMLTableCellElement>>;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface TableHeaderProps extends React.ComponentPropsWithoutRef<'tr'> {
|
|
3
|
+
background?: boolean;
|
|
4
|
+
sticky?: boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare const TableHeader: React.ForwardRefExoticComponent<TableHeaderProps & React.RefAttributes<HTMLTableRowElement>>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface TableRowColumnProps extends React.ComponentPropsWithoutRef<'td'> {
|
|
3
|
+
sticky?: boolean;
|
|
4
|
+
}
|
|
5
|
+
export declare const TableRowColumn: React.ForwardRefExoticComponent<TableRowColumnProps & React.RefAttributes<HTMLTableCellElement>>;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { DefaultProps } from '@sk-web-gui/utils';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { SortMode } from './auto-table';
|
|
4
|
+
export interface ITableSortButtonProps extends DefaultProps, React.ComponentPropsWithoutRef<'button'> {
|
|
5
|
+
isActive: boolean;
|
|
6
|
+
sortOrder: SortMode.ASC | SortMode.DESC | null;
|
|
7
|
+
}
|
|
8
|
+
export declare const TableSortButton: React.ForwardRefExoticComponent<ITableSortButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DefaultProps } from '@sk-web-gui/utils';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export interface TableComponentProps extends DefaultProps, React.ComponentPropsWithRef<'table'> {
|
|
4
|
+
background?: boolean;
|
|
5
|
+
dense?: boolean;
|
|
6
|
+
scrollable?: 'x' | 'y' | boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare const TableComponent: React.ForwardRefExoticComponent<Omit<TableComponentProps, "ref"> & React.RefAttributes<HTMLTableElement>>;
|
|
9
|
+
export default TableComponent;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './src';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { TabsComponent, TabsComponentProps } from './tabs';
|
|
3
|
+
import { TabsButton } from './tabs-button';
|
|
4
|
+
import { TabsContent } from './tabs-content';
|
|
5
|
+
import { TabsItem } from './tabs-item';
|
|
6
|
+
interface TabsProps extends React.ForwardRefExoticComponent<TabsComponentProps>, TabsComponentProps {
|
|
7
|
+
Component: typeof TabsComponent;
|
|
8
|
+
Item: typeof TabsItem;
|
|
9
|
+
Button: typeof TabsButton;
|
|
10
|
+
Content: typeof TabsContent;
|
|
11
|
+
}
|
|
12
|
+
declare const Tabs: TabsProps;
|
|
13
|
+
export { Tabs };
|
|
14
|
+
export type { TabsProps };
|
|
15
|
+
export default Tabs;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Button } from '@sk-web-gui/button';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
interface TabsButtonProps extends React.ComponentProps<typeof Button>, Omit<React.ComponentPropsWithoutRef<'button'>, 'color'> {
|
|
4
|
+
menuIndex?: number;
|
|
5
|
+
}
|
|
6
|
+
export declare const TabsButton: React.ForwardRefExoticComponent<Omit<TabsButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface TabsContentProps extends React.ComponentPropsWithRef<'div'> {
|
|
3
|
+
selected?: boolean;
|
|
4
|
+
}
|
|
5
|
+
export declare const TabsContent: React.ForwardRefExoticComponent<Omit<TabsContentProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { MenuBar } from '@sk-web-gui/menubar';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export interface TabsComponentProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'color'> {
|
|
4
|
+
color?: React.ComponentProps<typeof MenuBar>['color'];
|
|
5
|
+
current?: React.ComponentProps<typeof MenuBar>['current'];
|
|
6
|
+
showBackground?: React.ComponentProps<typeof MenuBar>['showBackground'];
|
|
7
|
+
onTabChange?: (index: number) => void;
|
|
8
|
+
tabslistClassName?: string;
|
|
9
|
+
panelsClassName?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const TabsComponent: React.ForwardRefExoticComponent<TabsComponentProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './src';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Text, TextProps } from './text';
|
|
3
|
+
export { Text };
|
|
4
|
+
export type { TextProps };
|
|
5
|
+
declare const _default: {
|
|
6
|
+
Text: import("react").ForwardRefExoticComponent<Omit<TextProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
7
|
+
};
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DefaultProps } from '@sk-web-gui/utils';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export interface TextProps extends DefaultProps, React.ComponentPropsWithRef<'div'> {
|
|
4
|
+
urlAsLink?: boolean;
|
|
5
|
+
externalLinks?: boolean;
|
|
6
|
+
onLinkClick?: (event: MouseEvent, url: string) => void;
|
|
7
|
+
children?: React.ReactNode;
|
|
8
|
+
as?: React.ElementType;
|
|
9
|
+
}
|
|
10
|
+
export declare const Text: React.ForwardRefExoticComponent<Omit<TextProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './src';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { UserMenu, MenuItemGroup, UserMenuProps } from './user-menu';
|
|
3
|
+
export { UserMenu };
|
|
4
|
+
export type { UserMenuProps, MenuItemGroup };
|
|
5
|
+
declare const _default: {
|
|
6
|
+
UserMenu: import("react").ForwardRefExoticComponent<Omit<UserMenuProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
7
|
+
};
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Avatar } from '@sk-web-gui/avatar';
|
|
2
|
+
import { DefaultProps } from '@sk-web-gui/utils';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
export interface MenuItemGroup {
|
|
5
|
+
label: string;
|
|
6
|
+
elements: {
|
|
7
|
+
label: string;
|
|
8
|
+
element: () => JSX.Element;
|
|
9
|
+
}[];
|
|
10
|
+
}
|
|
11
|
+
export interface UserMenuProps extends DefaultProps, React.ComponentPropsWithRef<'div'> {
|
|
12
|
+
menuTitle?: string;
|
|
13
|
+
menuSubTitle?: string;
|
|
14
|
+
initials?: string;
|
|
15
|
+
image?: string;
|
|
16
|
+
imageAlt?: string;
|
|
17
|
+
placeholderImage?: string;
|
|
18
|
+
imageElem?: React.ReactElement;
|
|
19
|
+
menuGroups: MenuItemGroup[];
|
|
20
|
+
/**
|
|
21
|
+
* Size of avatar button
|
|
22
|
+
* @default lg
|
|
23
|
+
*/
|
|
24
|
+
buttonSize?: React.ComponentProps<typeof Avatar>['size'];
|
|
25
|
+
/**
|
|
26
|
+
* If avatar button should be rounded
|
|
27
|
+
* @default true
|
|
28
|
+
*/
|
|
29
|
+
buttonRounded?: React.ComponentProps<typeof Avatar>['rounded'];
|
|
30
|
+
}
|
|
31
|
+
export declare const UserMenu: React.ForwardRefExoticComponent<Omit<UserMenuProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
32
|
+
export default UserMenu;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sk-web-gui/react",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.13",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"react-dom": "^18.2.0"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@sk-web-gui/accordion": "1.2.
|
|
41
|
+
"@sk-web-gui/accordion": "1.2.1",
|
|
42
42
|
"@sk-web-gui/avatar": "1.0.5",
|
|
43
43
|
"@sk-web-gui/badge": "1.0.1",
|
|
44
44
|
"@sk-web-gui/breadcrumb": "1.0.5",
|
|
@@ -78,5 +78,5 @@
|
|
|
78
78
|
"react": ">=18.2.0",
|
|
79
79
|
"react-dom": ">=18.2.0"
|
|
80
80
|
},
|
|
81
|
-
"gitHead": "
|
|
81
|
+
"gitHead": "49d30fc5b2971d80c5f61d0ddb5b41b55e4affb1"
|
|
82
82
|
}
|
|
File without changes
|