@sk-web-gui/react 1.2.16 → 1.2.18
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/index.d.ts +70 -0
- package/package.json +38 -38
- package/dist/types/accordion/index.d.ts +0 -1
- package/dist/types/accordion/src/accordion/accordion-item.d.ts +0 -8
- package/dist/types/accordion/src/accordion/accordion.d.ts +0 -25
- package/dist/types/accordion/src/accordion/index.d.ts +0 -10
- package/dist/types/accordion/src/disclosure/disclosure.d.ts +0 -53
- package/dist/types/accordion/src/disclosure/index.d.ts +0 -4
- package/dist/types/accordion/src/disclosure/styles.d.ts +0 -1
- package/dist/types/accordion/src/index.d.ts +0 -2
- package/dist/types/breadcrumb/index.d.ts +0 -1
- package/dist/types/breadcrumb/src/breadcrumb.d.ts +0 -41
- package/dist/types/breadcrumb/src/index.d.ts +0 -11
- package/dist/types/button/index.d.ts +0 -1
- package/dist/types/button/src/button-group.d.ts +0 -15
- package/dist/types/button/src/button.d.ts +0 -49
- package/dist/types/button/src/index.d.ts +0 -11
- package/dist/types/button/src/styles.d.ts +0 -1
- package/dist/types/card/index.d.ts +0 -1
- package/dist/types/card/src/card.d.ts +0 -60
- package/dist/types/card/src/index.d.ts +0 -21
- package/dist/types/card/src/meta-card.d.ts +0 -42
- package/dist/types/cookie-consent/index.d.ts +0 -1
- package/dist/types/cookie-consent/src/cookie-consent.d.ts +0 -32
- package/dist/types/cookie-consent/src/index.d.ts +0 -15
- package/dist/types/layout/index.d.ts +0 -1
- package/dist/types/layout/src/footer/footer-list-item.d.ts +0 -4
- package/dist/types/layout/src/footer/footer-list.d.ts +0 -4
- package/dist/types/layout/src/footer/footer.d.ts +0 -6
- package/dist/types/layout/src/footer/index.d.ts +0 -14
- package/dist/types/layout/src/header/header.d.ts +0 -17
- package/dist/types/layout/src/header/index.d.ts +0 -8
- package/dist/types/layout/src/index.d.ts +0 -2
- package/dist/types/link/index.d.ts +0 -1
- package/dist/types/link/src/index.d.ts +0 -12
- package/dist/types/link/src/link.d.ts +0 -21
- package/dist/types/link/src/styles.d.ts +0 -1
- package/dist/types/list/index.d.ts +0 -1
- package/dist/types/list/src/index.d.ts +0 -12
- package/dist/types/list/src/list.d.ts +0 -28
- package/dist/types/menu-vertical/index.d.ts +0 -1
- package/dist/types/menu-vertical/src/index.d.ts +0 -25
- package/dist/types/menu-vertical/src/menu-vertical-backbutton.d.ts +0 -9
- package/dist/types/menu-vertical/src/menu-vertical-context.d.ts +0 -62
- package/dist/types/menu-vertical/src/menu-vertical-header.d.ts +0 -9
- package/dist/types/menu-vertical/src/menu-vertical-item.d.ts +0 -26
- package/dist/types/menu-vertical/src/menu-vertical-label.d.ts +0 -7
- package/dist/types/menu-vertical/src/menu-vertical-nav.d.ts +0 -9
- package/dist/types/menu-vertical/src/menu-vertical-sidebar.d.ts +0 -9
- package/dist/types/menu-vertical/src/menu-vertical-submenu-button.d.ts +0 -25
- package/dist/types/menu-vertical/src/menu-vertical-tool-item.d.ts +0 -9
- package/dist/types/menu-vertical/src/menu-vertical.d.ts +0 -14
- package/dist/types/menubar/index.d.ts +0 -1
- package/dist/types/menubar/src/index.d.ts +0 -11
- package/dist/types/menubar/src/menubar-item.d.ts +0 -15
- package/dist/types/menubar/src/menubar.d.ts +0 -18
- package/dist/types/modal/index.d.ts +0 -1
- package/dist/types/modal/src/confirm/confirm.d.ts +0 -17
- package/dist/types/modal/src/confirm/index.d.ts +0 -1
- package/dist/types/modal/src/dialog/dialog-buttons.d.ts +0 -6
- package/dist/types/modal/src/dialog/dialog-content.d.ts +0 -6
- package/dist/types/modal/src/dialog/dialog.d.ts +0 -7
- package/dist/types/modal/src/dialog/index.d.ts +0 -12
- package/dist/types/modal/src/index.d.ts +0 -3
- package/dist/types/modal/src/modal/index.d.ts +0 -13
- package/dist/types/modal/src/modal/modal-content.d.ts +0 -5
- package/dist/types/modal/src/modal/modal-footer.d.ts +0 -5
- package/dist/types/modal/src/modal/modal.d.ts +0 -27
- package/dist/types/pagination/index.d.ts +0 -1
- package/dist/types/pagination/src/index.d.ts +0 -8
- package/dist/types/pagination/src/pagination.d.ts +0 -19
- package/dist/types/pagination/src/styles.d.ts +0 -1
- package/dist/types/popup-menu/index.d.ts +0 -1
- package/dist/types/popup-menu/src/index.d.ts +0 -18
- package/dist/types/popup-menu/src/popup-menu-button.d.ts +0 -2
- package/dist/types/popup-menu/src/popup-menu-group.d.ts +0 -5
- package/dist/types/popup-menu/src/popup-menu-item.d.ts +0 -11
- package/dist/types/popup-menu/src/popup-menu-items.d.ts +0 -20
- package/dist/types/popup-menu/src/popup-menu-panel.d.ts +0 -6
- package/dist/types/popup-menu/src/popup-menu.d.ts +0 -53
- package/dist/types/popup-menu/src/popupmenu-context.d.ts +0 -18
- package/dist/types/react/src/index.d.ts +0 -35
- package/dist/types/searchfield/index.d.ts +0 -1
- package/dist/types/searchfield/src/index.d.ts +0 -18
- package/dist/types/searchfield/src/searchfield-suggestions-input.d.ts +0 -9
- package/dist/types/searchfield/src/searchfield-suggestions-list.d.ts +0 -3
- package/dist/types/searchfield/src/searchfield-suggestions-option.d.ts +0 -3
- package/dist/types/searchfield/src/searchfield-suggestions.d.ts +0 -3
- package/dist/types/searchfield/src/searchfield.d.ts +0 -27
- package/dist/types/snackbar/index.d.ts +0 -1
- package/dist/types/snackbar/src/index.d.ts +0 -8
- package/dist/types/snackbar/src/snackbar.d.ts +0 -11
- package/dist/types/table/index.d.ts +0 -1
- package/dist/types/table/src/auto-table.d.ts +0 -48
- package/dist/types/table/src/index.d.ts +0 -24
- package/dist/types/table/src/table-body.d.ts +0 -2
- package/dist/types/table/src/table-footer.d.ts +0 -2
- package/dist/types/table/src/table-header-column.d.ts +0 -6
- package/dist/types/table/src/table-header.d.ts +0 -6
- package/dist/types/table/src/table-row-column.d.ts +0 -6
- package/dist/types/table/src/table-row.d.ts +0 -2
- package/dist/types/table/src/table-sort-button.d.ts +0 -8
- package/dist/types/table/src/table.d.ts +0 -9
- package/dist/types/tabs/index.d.ts +0 -1
- package/dist/types/tabs/src/index.d.ts +0 -15
- package/dist/types/tabs/src/tabs-button.d.ts +0 -7
- package/dist/types/tabs/src/tabs-content.d.ts +0 -6
- package/dist/types/tabs/src/tabs-context.d.ts +0 -8
- package/dist/types/tabs/src/tabs-item.d.ts +0 -6
- package/dist/types/tabs/src/tabs.d.ts +0 -11
- package/dist/types/text/index.d.ts +0 -1
- package/dist/types/text/src/index.d.ts +0 -8
- package/dist/types/text/src/text.d.ts +0 -10
- package/dist/types/user-menu/index.d.ts +0 -1
- package/dist/types/user-menu/src/index.d.ts +0 -8
- package/dist/types/user-menu/src/user-menu.d.ts +0 -32
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { _internal_ComponentDialog } from '@headlessui/react';
|
|
2
|
-
import { Button } from '@sk-web-gui/button';
|
|
3
|
-
import { DefaultProps } from '@sk-web-gui/utils';
|
|
4
|
-
import React from 'react';
|
|
5
|
-
export interface ModalComponentProps extends DefaultProps, Omit<_internal_ComponentDialog, 'displayName'> {
|
|
6
|
-
show: boolean;
|
|
7
|
-
label?: string | JSX.Element;
|
|
8
|
-
closeLabel?: string;
|
|
9
|
-
className?: string;
|
|
10
|
-
onClose?: () => void;
|
|
11
|
-
hideClosebutton?: boolean;
|
|
12
|
-
closeButtonProps?: React.ComponentProps<typeof Button>;
|
|
13
|
-
children?: React.ReactNode;
|
|
14
|
-
disableCloseOutside?: boolean;
|
|
15
|
-
/**
|
|
16
|
-
* @default article
|
|
17
|
-
*/
|
|
18
|
-
as?: React.ElementType;
|
|
19
|
-
/**
|
|
20
|
-
* @deafult label
|
|
21
|
-
*/
|
|
22
|
-
labelAs?: React.ElementType;
|
|
23
|
-
hideLabel?: boolean;
|
|
24
|
-
'aria-label'?: string;
|
|
25
|
-
}
|
|
26
|
-
export declare const ModalComponent: React.ForwardRefExoticComponent<ModalComponentProps & React.RefAttributes<HTMLDivElement>>;
|
|
27
|
-
export default ModalComponent;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './src';
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { Pagination, PaginationProps } from './pagination';
|
|
3
|
-
export { Pagination };
|
|
4
|
-
export type { PaginationProps };
|
|
5
|
-
declare const _default: {
|
|
6
|
-
Pagination: import("react").ForwardRefExoticComponent<Omit<PaginationProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
7
|
-
};
|
|
8
|
-
export default _default;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { DefaultProps } from '@sk-web-gui/utils';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
export interface PaginationProps extends DefaultProps, React.ComponentPropsWithRef<'div'> {
|
|
4
|
-
pages: number;
|
|
5
|
-
activePage: number;
|
|
6
|
-
changePage: (page: number) => void;
|
|
7
|
-
pagesBefore?: number;
|
|
8
|
-
pagesAfter?: number;
|
|
9
|
-
showFirst?: boolean;
|
|
10
|
-
showLast?: boolean;
|
|
11
|
-
nextLabel?: string;
|
|
12
|
-
prevLabel?: string;
|
|
13
|
-
hidePrevNextLabel?: boolean;
|
|
14
|
-
fitContainer?: boolean;
|
|
15
|
-
showConstantPages?: boolean;
|
|
16
|
-
asSelect?: boolean;
|
|
17
|
-
}
|
|
18
|
-
export declare const Pagination: React.ForwardRefExoticComponent<Omit<PaginationProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
19
|
-
export default Pagination;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const usePaginationClass: (args?: any) => string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './src';
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { PopupMenuComponentProps } from './popup-menu';
|
|
3
|
-
import { PopupMenuButton } from './popup-menu-button';
|
|
4
|
-
import { PopupMenuGroup } from './popup-menu-group';
|
|
5
|
-
import { PopupMenuItem } from './popup-menu-item';
|
|
6
|
-
import { PopupMenuItems } from './popup-menu-items';
|
|
7
|
-
import { PopupMenuPanel } from './popup-menu-panel';
|
|
8
|
-
interface PopupMenuProps extends React.FC<PopupMenuComponentProps> {
|
|
9
|
-
Panel: typeof PopupMenuPanel;
|
|
10
|
-
Items: typeof PopupMenuItems;
|
|
11
|
-
Item: typeof PopupMenuItem;
|
|
12
|
-
Button: typeof PopupMenuButton;
|
|
13
|
-
Group: typeof PopupMenuGroup;
|
|
14
|
-
}
|
|
15
|
-
declare const PopupMenu: PopupMenuProps;
|
|
16
|
-
export { PopupMenu };
|
|
17
|
-
export type { PopupMenuProps };
|
|
18
|
-
export default PopupMenu;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export declare const PopupMenuButton: React.ForwardRefExoticComponent<Omit<Omit<Omit<import("../../button/src/button").IButtonProps<React.ElementType<any, keyof React.JSX.IntrinsicElements>>, "ref"> & React.RefAttributes<unknown>, "ref">, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { DefaultProps } from '@sk-web-gui/utils';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
export declare const PopupMenuGroup: React.ForwardRefExoticComponent<Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
4
|
-
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
5
|
-
} & DefaultProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface PopupMenuItemsContextProps {
|
|
3
|
-
next?: () => void;
|
|
4
|
-
prev?: () => void;
|
|
5
|
-
active?: string;
|
|
6
|
-
activeMode?: 'soft' | 'hard';
|
|
7
|
-
navigate?: boolean;
|
|
8
|
-
setNavigate?: (navigate: boolean) => void;
|
|
9
|
-
}
|
|
10
|
-
export declare const usePopupMenuItems: () => PopupMenuItemsContextProps;
|
|
11
|
-
interface PopupMenuItemsProps extends React.ComponentPropsWithoutRef<'div'> {
|
|
12
|
-
/**
|
|
13
|
-
* If items inside should be autofocused on open
|
|
14
|
-
* Will focus first item on 'Enter' and 'ArrowDown', last item on 'ArrowUp'
|
|
15
|
-
* @default true
|
|
16
|
-
*/
|
|
17
|
-
autoFocus?: boolean;
|
|
18
|
-
}
|
|
19
|
-
export declare const PopupMenuItems: React.ForwardRefExoticComponent<PopupMenuItemsProps & React.RefAttributes<HTMLDivElement>>;
|
|
20
|
-
export {};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { PopupMenuBaseProps } from './popup-menu';
|
|
3
|
-
interface PopupMenuPanelProps extends Omit<PopupMenuBaseProps, 'type'>, React.ComponentPropsWithoutRef<'div'> {
|
|
4
|
-
}
|
|
5
|
-
export declare const PopupMenuPanel: React.ForwardRefExoticComponent<PopupMenuPanelProps & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
-
export {};
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { PopupMenuButton } from './popup-menu-button';
|
|
3
|
-
import { PopupMenuPanel } from './popup-menu-panel';
|
|
4
|
-
export interface PopupMenuBaseProps {
|
|
5
|
-
/**
|
|
6
|
-
* Size of popup. Does not affect button size
|
|
7
|
-
* @default md
|
|
8
|
-
*/
|
|
9
|
-
size?: 'md' | 'sm';
|
|
10
|
-
/**
|
|
11
|
-
* Position of the popup relative to the button.
|
|
12
|
-
* @default under
|
|
13
|
-
*/
|
|
14
|
-
position?: 'under' | 'over' | 'left' | 'right';
|
|
15
|
-
/**
|
|
16
|
-
* Alignment of the popup relative to the button.
|
|
17
|
-
* @default start
|
|
18
|
-
*/
|
|
19
|
-
align?: 'start' | 'end';
|
|
20
|
-
/**
|
|
21
|
-
* Type of popup.
|
|
22
|
-
* @default menu
|
|
23
|
-
*/
|
|
24
|
-
type?: 'dialog' | 'menu';
|
|
25
|
-
/**
|
|
26
|
-
* This will flip the alignment if the panel doesn't fit on screen
|
|
27
|
-
* @default true
|
|
28
|
-
*/
|
|
29
|
-
autoAlign?: boolean;
|
|
30
|
-
/**
|
|
31
|
-
* This will flip the position (under and over, left and right) if the panel doesn't fit on screen
|
|
32
|
-
* @default false
|
|
33
|
-
*/
|
|
34
|
-
autoPosition?: boolean;
|
|
35
|
-
}
|
|
36
|
-
export interface PopupMenuComponentProps extends PopupMenuBaseProps {
|
|
37
|
-
/**
|
|
38
|
-
* PopupMenu.Button & PopupMenu.Panel
|
|
39
|
-
*/
|
|
40
|
-
children: [React.ReactComponentElement<typeof PopupMenuButton>, React.ReactComponentElement<typeof PopupMenuPanel>] | React.ReactComponentElement<typeof PopupMenuPanel>;
|
|
41
|
-
id?: string;
|
|
42
|
-
/**
|
|
43
|
-
* Set true to open the menu
|
|
44
|
-
* @default false
|
|
45
|
-
*/
|
|
46
|
-
open?: boolean;
|
|
47
|
-
/**
|
|
48
|
-
* Returns true or false when menu is opened or closed
|
|
49
|
-
*/
|
|
50
|
-
onToggleOpen?: (open: boolean) => void;
|
|
51
|
-
}
|
|
52
|
-
export declare const PopupMenuComponent: React.FC<PopupMenuComponentProps>;
|
|
53
|
-
export default PopupMenuComponent;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { PopupMenuBaseProps } from './popup-menu';
|
|
3
|
-
export declare enum GoTo {
|
|
4
|
-
First = "FIRST",
|
|
5
|
-
Last = "LAST"
|
|
6
|
-
}
|
|
7
|
-
export interface PopupMenuContextProps extends PopupMenuBaseProps {
|
|
8
|
-
close?: (focusButton?: boolean) => void;
|
|
9
|
-
isOpen?: boolean;
|
|
10
|
-
open?: (goTo?: GoTo) => void;
|
|
11
|
-
goTo?: GoTo;
|
|
12
|
-
setGoTo?: (goTo?: GoTo) => void;
|
|
13
|
-
id?: string;
|
|
14
|
-
buttonId?: string;
|
|
15
|
-
setButtonId?: (id: string) => void;
|
|
16
|
-
}
|
|
17
|
-
export declare const PopupMenuContext: React.Context<PopupMenuContextProps>;
|
|
18
|
-
export declare const usePopupMenu: () => PopupMenuContextProps;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
export * from '@sk-web-gui/accordion';
|
|
2
|
-
export * from '@sk-web-gui/avatar';
|
|
3
|
-
export * from '@sk-web-gui/badge';
|
|
4
|
-
export * from '@sk-web-gui/breadcrumb';
|
|
5
|
-
export * from '@sk-web-gui/button';
|
|
6
|
-
export * from '@sk-web-gui/card';
|
|
7
|
-
export * from '@sk-web-gui/chip';
|
|
8
|
-
export * from '@sk-web-gui/cookie-consent';
|
|
9
|
-
export * from '@sk-web-gui/divider';
|
|
10
|
-
export * from '@sk-web-gui/filter';
|
|
11
|
-
export * from '@sk-web-gui/forms';
|
|
12
|
-
export * from '@sk-web-gui/icon';
|
|
13
|
-
export * from '@sk-web-gui/image';
|
|
14
|
-
export * from '@sk-web-gui/label';
|
|
15
|
-
export * from '@sk-web-gui/layout';
|
|
16
|
-
export * from '@sk-web-gui/link';
|
|
17
|
-
export * from '@sk-web-gui/menu-vertical';
|
|
18
|
-
export * from '@sk-web-gui/menubar';
|
|
19
|
-
export * from '@sk-web-gui/modal';
|
|
20
|
-
export * from '@sk-web-gui/pagination';
|
|
21
|
-
export * from '@sk-web-gui/popup-menu';
|
|
22
|
-
export * from '@sk-web-gui/progress-bar';
|
|
23
|
-
export * from '@sk-web-gui/progress-stepper';
|
|
24
|
-
export * from '@sk-web-gui/searchfield';
|
|
25
|
-
export * from '@sk-web-gui/snackbar';
|
|
26
|
-
export * from '@sk-web-gui/spinner';
|
|
27
|
-
export * from '@sk-web-gui/table';
|
|
28
|
-
export * from '@sk-web-gui/tabs';
|
|
29
|
-
export * from '@sk-web-gui/text';
|
|
30
|
-
export * from '@sk-web-gui/theme';
|
|
31
|
-
export * from '@sk-web-gui/tooltip';
|
|
32
|
-
export * from '@sk-web-gui/user-menu';
|
|
33
|
-
export * from '@sk-web-gui/utils';
|
|
34
|
-
export * from '@sk-web-gui/logo';
|
|
35
|
-
export * from '@sk-web-gui/list';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './src';
|
|
@@ -1,18 +0,0 @@
|
|
|
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;
|
|
@@ -1,9 +0,0 @@
|
|
|
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;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export declare const SearchFieldSuggestionsList: React.ForwardRefExoticComponent<Omit<Omit<import("../../forms/dist/types/combobox/combobox-list").ComboboxListProps, "ref"> & React.RefAttributes<HTMLFieldSetElement>, "ref"> & React.RefAttributes<HTMLFieldSetElement>>;
|
|
3
|
-
export default SearchFieldSuggestionsList;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export declare const SearchFieldSuggestionsOption: React.ForwardRefExoticComponent<Omit<Omit<import("../../forms/dist/types/combobox/combobox-option").ComboboxOptionProps, "ref"> & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
3
|
-
export default SearchFieldSuggestionsOption;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export declare const SearchFeildSuggestionsBase: React.ForwardRefExoticComponent<Omit<Omit<import("../../forms/dist/types/combobox/combobox").ComboboxBaseProps, "ref"> & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
3
|
-
export default SearchFeildSuggestionsBase;
|
|
@@ -1,27 +0,0 @@
|
|
|
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;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './src';
|
|
@@ -1,8 +0,0 @@
|
|
|
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;
|
|
@@ -1,11 +0,0 @@
|
|
|
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;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './src';
|
|
@@ -1,48 +0,0 @@
|
|
|
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;
|
|
@@ -1,24 +0,0 @@
|
|
|
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;
|
|
@@ -1,6 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,6 +0,0 @@
|
|
|
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>>;
|
|
@@ -1,6 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,8 +0,0 @@
|
|
|
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>>;
|
|
@@ -1,9 +0,0 @@
|
|
|
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;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './src';
|
|
@@ -1,15 +0,0 @@
|
|
|
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;
|
|
@@ -1,7 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,6 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,11 +0,0 @@
|
|
|
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>>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './src';
|
|
@@ -1,8 +0,0 @@
|
|
|
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;
|
|
@@ -1,10 +0,0 @@
|
|
|
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>>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './src';
|
|
@@ -1,8 +0,0 @@
|
|
|
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;
|
|
@@ -1,32 +0,0 @@
|
|
|
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;
|